/*
Theme Name: Airline Flying Club Coastal
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: airline-coastal
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* Coastal announcement: narrow reading rhythm and an edge-to-edge sky. */
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks main { padding-block: var(--wp--preset--spacing--lg); }
.wp-site-blocks main.is-flush { padding-block: 0; }
.wp-site-blocks > header { position: sticky; top: 0; z-index: 20; }
body.admin-bar .wp-site-blocks > header { top: 32px; }
.club-header { border-bottom: 1px solid var(--wp--preset--color--powder); padding: 14px var(--wp--style--root--padding-left); }
.header-row { max-width: 1440px; margin-inline: auto; }
.club-brand { gap: 14px; }
.club-logo { flex: 0 0 68px; margin: 0; }
.club-logo img { width: 68px; height: 68px; object-fit: contain; }
.brand-name { font-size: 14px; font-weight: 600; line-height: 1.15; letter-spacing: .08em; margin: 0; }
.header-location { text-align: right; line-height: 1.6; letter-spacing: .11em; margin: 0; }
.announcement { padding-block: 30px 32px; }
.header-action { flex-shrink: 0; }
.new-site-label { letter-spacing: .14em; font-weight: 600; margin: 0; }
.new-site-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; vertical-align: 2px; margin-right: 12px; }
.hero-title { margin-block: 18px 20px; text-wrap: balance; }
.hero-intro { margin-block: 0; }
.announcement .wp-block-buttons { margin-top: 30px; }
.wp-element-button { transition: background-color .3s ease-out, color .3s ease-out; }
.destination-note { opacity: .65; letter-spacing: .06em; margin-top: 13px; }
.sky-interruption { margin-block: 0; overflow: hidden; }
.wp-block-image.sky-interruption img { width: 100%; height: clamp(320px, 42vw, 620px); object-fit: cover; object-position: center 50%; filter: brightness(1.04) saturate(1.05); vertical-align: middle; }
.entry-content > .club-story { margin-block-start: 0; }
.club-story { padding-block: 84px 88px; }
.story-eyebrow { letter-spacing: .13em; font-weight: 600; }
.story-title { font-size: clamp(2.3rem, 5vw, 3.1rem); line-height: 1.1; margin-block: 22px 28px; }
.club-story .wp-block-buttons { margin-top: 32px; }
.club-footer { padding-block: 42px; }
.footer-name { font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.footer-address { font-size: 15px; line-height: 1.6; margin-top: 0; }
.footer-link { font-size: 15px; margin-top: 22px; }
.footer-link a { color: var(--wp--preset--color--text); text-underline-offset: 5px; }
.footer-note { opacity: .65; margin-top: 28px; }
@media (max-width: 781px) {
 .club-header { padding-block: 12px; }
 .club-logo { flex-basis: 54px; }
 .club-logo img { width: 54px; height: 54px; }
 .brand-name { font-size: 11px; }
 .club-brand { gap: 9px; }
 .header-location { font-size: 9px; letter-spacing: .05em; }
 .announcement { padding-block: 24px 28px; }
 .club-brand .brand-name { display: none; }
 .header-action .wp-element-button { font-size: 16px; padding: 16px 20px; }
 .hero-title { letter-spacing: -.04em; }
 .hero-intro { font-size: 17px; }
 .wp-block-image.sky-interruption img { height: 320px; object-position: 67% center; }
 .club-story { padding-block: 56px 60px; }
 .club-footer { padding-block: 34px; }
}
@media (max-width: 480px) {
 .wp-block-button { max-width: 100%; }
 .wp-block-button .wp-element-button { font-size: 17px; padding: 21px 25px; }
 .hero-title { font-size: var(--wp--preset--font-size--display); }
 .hero-intro br { display: initial; }
 .header-location { max-width: 120px; }
}
@media (max-width: 782px) { body.admin-bar .wp-site-blocks > header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .wp-site-blocks > header { top: 0; } }
@media (prefers-reduced-motion: reduce) { .wp-element-button { transition: none; } }
