/* ========================================================================
 * Gale for Wasaga — brand styles (v2)
 * Tokens pulled from logo + hero asset; see design.md.
 * ====================================================================== */

:root {
  --navy:       #16306E;
  --navy-deep:  #0E2250;
  --royal:      #1E4FB8;
  --maple-red:  #C41E2A;
  --maple-red-dark: #9E1621;
  --gold:       #F5B71F;
  --gold-deep:  #D79A0E;
  --sand:       #E8D4A8;
  --sand-soft:  #F1E7CE;
  --sunset:     #F4A88C;
  --cream:      #FFF8EC;
  --cream-2:    #FCF4E0;
  --ink:        #0F1A33;
  --ink-soft:   #4A5673;
  --line:       #E4DCC7;
  --white:      #FFFFFF;

  --shadow-sm:  0 1px 2px rgba(15, 26, 51, .08);
  --shadow-md:  0 6px 20px rgba(15, 26, 51, .10);
  --shadow-lg:  0 20px 50px rgba(15, 26, 51, .18);
  --shadow-xl:  0 30px 80px rgba(15, 26, 51, .22);

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  30px;

  --font-display: "Anton", "Barlow Condensed", Impact, sans-serif;
  --font-head:    "Barlow Condensed", "Source Sans 3", system-ui, sans-serif;
  --font-body:    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --nav-h: 132px;
  --container: 1180px;
  --container-narrow: 780px;

  --ease-out: cubic-bezier(.2, .9, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 14px, 18px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  /* Document-level guard: prevent the entire page from horizontally panning
     when any child accidentally overflows or when iOS Safari rubber-bands
     a horizontal swipe over the carousel. */
  overflow-x: hidden;
}
html { overflow-x: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--royal); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 40px);
}
.container.narrow { max-width: var(--container-narrow); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ================ Typography ================ */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: .01em; color: var(--navy); margin: 0 0 .5em; line-height: 1.05; }
h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.0;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .6em;
}
h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 1.5vw + .5rem, 1.4rem); color: var(--navy); text-transform: none; letter-spacing: normal; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem;
  color: var(--maple-red);
  margin: 0 0 14px;
  padding: 5px 0;
  border-top: 3px solid var(--gold);
}
.eyebrow.light { color: var(--gold); }

.lede {
  font-size: clamp(1.05rem, 1vw + .8rem, 1.28rem);
  color: var(--ink-soft);
  max-width: 68ch;
  line-height: 1.5;
}
.lede.light { color: #EBE5D1; }

.section-navy h2,
.section-navy .eyebrow,
.section-navy h3 { color: var(--white); }
.section-navy p, .section-navy li { color: #DEE5F4; }
.section-navy a { color: var(--gold); }
.section-navy a:hover { color: #FFE38A; }

/* ================ Buttons ================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); letter-spacing: .04em;
  font-size: 1rem; text-transform: uppercase;
  padding: 13px 24px;
  border: 0; border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .15s ease, background .15s, box-shadow .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--royal); color: var(--white); }
.btn-secondary { background: var(--maple-red); color: var(--white); }
.btn-secondary:hover { background: var(--maple-red-dark); color: var(--white); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
  padding: 11px 22px;
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 8px;
  color: #FFE5B5; font-weight: 700; padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.btn-ghost-light:hover { color: var(--gold); border-bottom-color: var(--gold); }
/* Gold filled button — for high-prominence CTAs on navy backgrounds.
   .btn.btn-gold has higher specificity than .section-navy a so the navy
   text colour wins inside dark sections. */
.btn.btn-gold {
  background: var(--gold); color: var(--navy);
  border: 2px solid var(--gold);
}
.btn.btn-gold:hover, .section-navy a.btn-gold:hover {
  background: #FFC93B; border-color: #FFC93B; color: var(--navy);
}
.section-navy a.btn-gold { color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ================ Nav ================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  /* Col 3 reserves space matching home's nav-right (social + 2 CTAs) so
     nav-center sits in the SAME horizontal position on every page —
     even sub-pages without a nav-right. Prevents the page-to-page shift. */
  grid-template-columns: auto 1fr minmax(280px, auto) auto;
  align-items: center; gap: 16px;
  padding: 8px clamp(16px, 3vw, 40px);
  background: rgba(255, 248, 236, .95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  min-height: var(--nav-h);
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 120px; width: auto; display: block; }
@media (max-width: 960px) { .nav-logo img { height: 96px; } }
@media (max-width: 520px) { .nav-logo img { height: 76px; } }
.nav-center {
  display: flex; gap: clamp(12px, 2vw, 28px);
  justify-self: center;
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: 1rem;
}
.nav-center a {
  color: var(--ink);
  padding: 8px 6px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.nav-center a:hover { color: var(--navy); border-bottom-color: var(--gold); text-decoration: none; }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--navy);
}
.nav-social svg { width: 20px; height: 20px; }
.nav-social a:hover { background: var(--navy); color: var(--white); }
.nav-social .nav-jingle {
  -webkit-appearance: none; appearance: none;
  background: none; background-color: transparent;
  border: 0; outline: none; box-shadow: none;
  padding: 0; margin: 0;
  font: inherit; color: var(--navy); text-align: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-social .nav-jingle::-moz-focus-inner { border: 0; padding: 0; }
.nav-social .nav-jingle:focus { outline: none; }
.nav-social .nav-jingle:hover,
.nav-social .nav-jingle:focus-visible {
  background: var(--navy); color: var(--white); outline: none;
}
.nav-social .nav-jingle[aria-pressed="true"] {
  background: var(--maple-red, #C41E2A); color: var(--white);
}
.nav-social .nav-jingle[aria-pressed="true"] svg {
  animation: navJinglePulse 1s ease-out infinite;
}
@keyframes navJinglePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: .72; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-social .nav-jingle[aria-pressed="true"] svg { animation: none; }
}
.nav-cta { padding: 10px 18px; font-size: .85rem; }
.nav-cta-secondary { padding: 9px 16px; font-size: .82rem; border-width: 1.5px; }

.nav-toggle { display: none; background: transparent; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-center { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; transform: none; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-md); }
  .nav-center.open { display: flex; }
  .nav-center a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-center a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .nav-cta-secondary { display: none; }
}
@media (max-width: 520px) {
  .nav-social { display: none; }
}

/* ================ Hero ================ */
/* The .hero section is the carousel viewport. Slide #1 (.hero-slide-home)
   stays in flow and drives natural height; later slides are absolute
   overlays that crossfade on top via opacity. .hero-carousel is the
   class hero-carousel.js looks for. */
.hero {
  position: relative;
  min-height: clamp(620px, 88vh, 900px);
  overflow: hidden; isolation: isolate;
  background-color: var(--navy-deep); /* fallback so hero-lede keeps contrast if photo fails to load */
}
/* Lock horizontal pan on the carousel so iOS Safari + Edge don't try to
   horizontally page-pan when the user swipes sideways. pan-y still allows
   vertical scroll to pass through normally. touch-action only governs the
   element receiving the touch event, so apply it to the carousel AND every
   descendant — touch lands on a slide child, not the carousel root. */
.hero-carousel,
.hero-carousel * { touch-action: pan-y; }

/* Each slide centers its content vertically (was the old .hero behavior) */
.hero-slide {
  display: grid; align-items: center;
  transition: opacity 500ms ease;
}
.hero-slide-home { position: relative; min-height: inherit; }
.hero-slide-media { position: absolute; inset: 0; }
.hero-slide:not(.is-active) { opacity: 0; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
.hero-photo { position: absolute; inset: 0; z-index: -2; }
/* --hero-pos-desktop / --hero-pos-mobile are set inline by the hero-rotation
   Pages Function (functions/index.js). Each of the 4 rotating images
   declares its own focal point, so portrait sources don't crop the
   horizon and the sunset's tree silhouette stays in frame. Falls back
   to a sensible center for the static template / preview deploys. */
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--hero-pos-desktop, center 60%);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(14, 34, 80, .80) 0%, rgba(22, 48, 110, .55) 35%, rgba(22, 48, 110, .20) 65%, transparent 90%),
    linear-gradient(180deg, transparent 55%, rgba(22, 48, 110, .55) 100%);
}
/* Dan portrait cutout (desktop only — mobile uses the stacked layout
   below where Dan lives in the navy band, not overlaid on the photo).
   Anchored bottom-right of the hero; object-fit: contain keeps him
   proportional. The H1 + lede + CTAs sit on the LEFT (hero-content
   max-width does the work on desktop) so the portrait never overlaps
   the text. drop-shadow lifts him off the beach photo subtly. */
.hero-portrait {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: clamp(380px, 48%, 760px);
  pointer-events: none;
  display: flex; align-items: flex-end; justify-content: flex-end;
  /* z-index: 2 keeps Dan's stacking context above .hero-content (z:1) so
     real clicks on the img reach the easter-egg handler instead of being
     swallowed by .hero-content's transparent right-padding region. The
     host stays pointer-events:none so non-img regions still pass through. */
  z-index: 2;
}
.hero-portrait img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35));
  /* Re-enable pointer events on Dan only (host stays pointer-events:none
     so it doesn't block the rest of the hero). The triple-click easter
     egg in easter-egg.js binds directly on this img. */
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  touch-action: manipulation;
}
.hero-content { position: relative; z-index: 1; }
.hero-content {
  width: 100%; max-width: var(--container);
  padding: 120px clamp(20px, 4vw, 40px) 80px;
  color: var(--white);
  margin: 0 auto;
}

/* ----- Mobile hero (≤820px): stacked two-frame layout -----
   Cutout-on-photo composites collapse to "Photoshop sticker" on phone
   widths (no shared lighting between cutout + photo, hard mask edges,
   no canvas room for two competing subjects). Switch to a two-frame
   composition: top = beach scene only, bottom = solid navy band with
   text on the left + Dan cutout as a portrait card on the right. Each
   frame has one subject, both read clean. */
@media (max-width: 820px) {
  /* On mobile, the carousel viewport shrinks to slide content height. */
  .hero { min-height: 0; }
  /* Slide #1 grid layout (was on .hero before the carousel wrap) — these
     classes apply to .hero-slide-home; slide-media has its own layout. */
  .hero-slide-home {
    display: grid;
    grid-template-rows: clamp(160px, 22vh, 220px) auto;
    grid-template-columns: 1fr clamp(150px, 44vw, 260px);
    align-items: stretch;
    min-height: 0;
    overflow: visible;
  }
  /* Top frame: rotating beach scene, both columns */
  .hero-photo {
    position: relative;
    inset: auto;
    grid-row: 1; grid-column: 1 / -1;
    overflow: hidden;
  }
  .hero-photo img { object-position: var(--hero-pos-mobile, center 40%); }
  .hero-overlay {
    grid-row: 1; grid-column: 1 / -1;
    position: relative; inset: 0;
    /* Soft fade only at the very bottom edge so beach colors stay
       saturated up top. Avoids the "washed out + dark blue tint"
       look of a too-aggressive vertical gradient. */
    background: linear-gradient(180deg, transparent 0%, transparent 88%, var(--navy) 100%);
  }
  /* Bottom row, left cell: tight navy band — SCOPED to .hero-slide-home
     so it doesn't leak into .hero-slide-media (whose .hero-content must
     stay transparent to let the /media screenshot bleed through). */
  .hero-slide-home .hero-content {
    grid-row: 2; grid-column: 1;
    background: var(--navy);
    /* Bottom padding clears the absolutely-positioned .hero-carousel-dots
       (bottom: 10px) so they don't crowd the jingle badge that now lives
       below the CTA row. */
    padding: 22px 14px 48px 20px;
    margin: 0;
    max-width: none;
    width: auto;
  }
  /* Bottom row, right cell: Dan card */
  .hero-portrait {
    position: relative;
    inset: auto;
    grid-row: 2; grid-column: 2;
    width: auto;
    height: 100%;
    background: var(--navy);
    align-items: flex-end; justify-content: flex-end;
    /* Match desktop — keep stacking above any sibling so clicks on Dan
       reach the img regardless of layout shifts. */
    z-index: 2;
  }
  .hero-portrait img {
    object-position: bottom right;
    filter: none;
  }
  /* Tighter H1 so "for Wasaga Beach" fits on one line in the narrowed
     left cell instead of wrapping to "for Wasaga / Beach". */
  .hero h1 { font-size: clamp(1.5rem, 6.4vw, 2.4rem); line-height: 1.05; }
  .hero-lede {
    font-size: clamp(.95rem, 2.6vw + .35rem, 1.15rem);
    max-width: 22ch;
    margin: 0 0 18px;
  }
  .hero-ctas { gap: 12px; }
  /* Primary button needs contrast on the solid navy band — switch
     to gold-on-navy for the lawn sign CTA on mobile. */
  .hero-content .btn-primary {
    background: var(--gold);
    color: var(--navy);
  }
  .hero-content .btn-primary:hover { background: var(--gold); color: var(--navy); }
  .hero-content .btn-ghost-light { color: var(--gold); }
}
@media (max-width: 480px) {
  .hero-slide-home {
    grid-template-rows: clamp(140px, 18vh, 180px) auto;
    grid-template-columns: 1fr clamp(150px, 46vw, 220px);
  }
}
.hero-logo {
  max-width: 320px; width: 44%; min-width: 180px;
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .45));
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  margin: 0 0 .25em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
}
.hero h1 .h1-line1 { display: block; }
.hero h1 .h1-line2 { display: block; color: var(--gold); font-size: .85em; }
.hero-lede {
  font-size: clamp(1.15rem, 1.4vw + .8rem, 1.55rem);
  color: #F3EAD1;
  max-width: 28ch;
  margin: 0 0 30px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  font-weight: 500;
}
.hero-ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* ================ Hero carousel — Media slide + dots ================ */
/* Slide 2 promotes /media. Layered background, top to bottom:
     1. Faint gold accent (top-left radial)
     2. Navy gradient overlay at .82-.92 alpha — semi-transparent so the
        screenshot bleeds through as textured navy without competing with
        the foreground play icon / title / CTA.
     3. Static screenshot of /media (images/media-bg.jpg) — refresh when
        the video lineup changes meaningfully. Capture via Playwright at
        1920x760, hide nav + breadcrumbs + footer, scroll to top.
     4. Solid var(--navy-deep) fallback in case the image fails to load. */
.media-slide-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 28% 18%, rgba(245, 183, 31, .14) 0%, transparent 55%),
    linear-gradient(135deg, rgba(14, 34, 80, .82) 0%, rgba(22, 48, 110, .92) 55%, rgba(26, 61, 138, .82) 100%),
    url('/images/media-bg.jpg') center / cover no-repeat,
    var(--navy-deep);
  z-index: 0;
}
.media-slide-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg,  transparent 0 38px, rgba(255, 255, 255, .035) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 64px, rgba(255, 255, 255, .035) 64px 65px);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
/* Mobile gets a portrait-aspect screenshot (720x1280, 3-col grid) so the
   cards bleed through across the full slide instead of clipping to a
   narrow center strip the way the wide desktop image does on portrait
   viewports. Lighter overlay (.62-.68 alpha) than desktop's .82-.92
   because portrait + 180deg vertical was reading as a "blue rectangle"
   band across the middle of the slide where the title/CTA sit. Diagonal
   135deg + lower alpha lets cards bleed through everywhere — the white
   foreground text is already legible thanks to its text-shadow. */
@media (max-width: 600px) {
  .media-slide-bg {
    background:
      radial-gradient(ellipse at 28% 18%, rgba(245, 183, 31, .14) 0%, transparent 55%),
      linear-gradient(135deg, rgba(14, 34, 80, .72) 0%, rgba(22, 48, 110, .80) 55%, rgba(26, 61, 138, .72) 100%),
      url('/images/media-bg-mobile.jpg') center / cover no-repeat,
      var(--navy-deep);
  }
}
.hero-slide-media .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  /* Override the desktop default 120/80 vertical padding so the media
     promo sits centered in the carousel instead of pushed up. */
  padding: clamp(60px, 10vh, 120px) clamp(20px, 4vw, 40px);
}
.hero-slide-media .hero-lede {
  text-align: center;
  max-width: 38ch;
  color: #F3EAD1;
  margin: 0;
}
.media-play-icon {
  width: clamp(96px, 11vw, 144px);
  height: auto;
  color: var(--gold);
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, .55));
  margin-bottom: 4px;
}
.media-slide-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--white);
  margin: 0 0 .15em;
  letter-spacing: .01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
  line-height: 1;
}
/* Default .btn-primary is navy-on-white — invisible on the media slide's
   navy gradient. Recolor to gold so the CTA pops, matching the mobile
   hero behaviour where the lawn-sign CTA flips gold over the navy band. */
.hero-slide-media .btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.hero-slide-media .btn-primary:hover {
  background: #FFD24A;
  color: var(--navy);
}

/* ----- Carousel dots (overlaid at the bottom of the hero) ----- */
.hero-carousel-dots {
  position: absolute;
  bottom: clamp(16px, 2.5vh, 32px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 10px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, .22);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .75);
  background: transparent;
  padding: 0; margin: 0;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, .35); }
.hero-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.18);
}
.hero-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-dot { transition: none; }
}

/* Mobile tweaks for the media slide */
@media (max-width: 820px) {
  .hero-slide-media .hero-content {
    padding: clamp(36px, 6vh, 60px) 18px;
    gap: 10px;
  }
  .media-play-icon { width: clamp(72px, 18vw, 110px); }
  .media-slide-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero-slide-media .hero-lede {
    font-size: clamp(.95rem, 2.6vw + .35rem, 1.15rem);
    max-width: 28ch;
  }
  .hero-carousel-dots { bottom: 10px; }
}

/* ================ Sections ================ */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-cream { background: var(--cream); }
.section-sand  { background: var(--sand-soft); }
.section-navy  { background: var(--navy); color: var(--white); }

/* Reading comfort: cap body-copy line length on direct-child paragraphs of
 * section containers. Grid cards (.issue, .endorsement, form labels, etc.)
 * keep their own widths since they are nested deeper. */
.section > .container > p,
.section > .container.narrow > p { max-width: 68ch; }
/* Sitewide reading-comfort cap on body paragraphs. Anything over 75ch
   strains the eye on wide viewports. .lede already has 68ch (line 110);
   this catches every <p> inside a section regardless of nesting depth.
   .form-* and .eyebrow are excluded because they're micro-copy that
   benefits from filling its container. .endorsement and .issue-body
   carry their own width contracts. */
.section p:not(.eyebrow):not(.form-status):not(.form-consent):not(.form-required-note):not(.endorsement-quote) { max-width: 68ch; }

/* CTA below the Our Town map, linking to /our-town. The .section p
   cascade above caps every paragraph at max-width: 68ch; without
   margin auto the 68ch box itself sits flush-left inside .map-wrap
   (which is wider) and the button looks left-aligned even though
   text-align:center is set. margin auto re-centers the p block. */
.our-town-cta { text-align: center; margin: 36px auto 8px; }

/* ================ Marquee strip ================ */
.marquee {
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 22px 0;
  border-bottom: 3px solid var(--gold);
}
.marquee-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  align-items: center; gap: 16px;
  text-align: center;
}
@media (max-width: 680px) {
  .marquee-row { grid-template-columns: 1fr; gap: 6px; }
}
.marquee-cell { display: flex; flex-direction: column; gap: 2px; }
.marquee-cell.accent .marquee-value { color: var(--gold); }
.marquee-label {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .15em;
  font-size: .7rem; color: #B3BFDB;
}
.marquee-value {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2vw + .6rem, 1.8rem);
  letter-spacing: .02em;
}
.marquee-value.count { font-variant-numeric: tabular-nums; }

/* ================ Issues ================ */
.issues {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.issue {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--maple-red);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), box-shadow .25s;
  display: flex; flex-direction: column;
}
.issue:nth-child(3n+1) { border-top-color: var(--navy); }
.issue:nth-child(3n+2) { border-top-color: var(--gold); }
.issue:nth-child(3n+3) { border-top-color: var(--maple-red); }
.issue:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.issue-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--sand-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 14px;
  color: var(--navy);
}
.issue:nth-child(3n+2) .issue-icon { background: #FCE9B8; color: var(--gold-deep); }
.issue:nth-child(3n+3) .issue-icon { background: #F8D0D4; color: var(--maple-red); }
.issue-icon svg { width: 30px; height: 30px; display: block; }
/* Inline icon next to <h2> on /issues/ deep-content sections. Same SVG
   set as the homepage iconMap (above), rendered at heading-row scale
   with a small tinted tile for visual rhythm down the article list. */
.issue-h2 { display: flex; align-items: center; gap: 14px; }
.issue-h2-icon {
  display: inline-flex; flex: 0 0 auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(245, 183, 31, .14);
  color: var(--gold-deep);
}
.issue-h2-icon svg { width: 26px; height: 26px; display: block; }
.issue h3 { margin-bottom: 8px; }
.issue p { margin: 6px 0; color: var(--ink-soft); }
.issue .issue-body { display: none; margin-top: 6px; color: var(--ink); }
.issue.open .issue-body { display: block; }
.issue-toggle {
  margin-top: auto; padding-top: 12px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--navy); font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: .82rem;
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
}
.issue-toggle:hover { color: var(--royal); }
.issue-toggle::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.issue.open .issue-toggle::after { content: "−"; }
/* Link out from homepage card to /issues/{slug}/ deep-content sub-page.
   Replaced the old in-place accordion (.issue-toggle) so each card is a
   teaser pointing to its canonical URL. Same display treatment as the
   toggle so the visual pattern is preserved. */
.issue-link {
  margin-top: auto; padding-top: 12px;
  color: var(--navy); font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: .82rem;
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-bottom-color .15s;
}
.issue-link:hover { color: var(--royal); border-bottom-color: var(--gold); }
.issue-link span { transition: transform .2s var(--ease-out); }
.issue-link:hover span { transform: translateX(3px); }
/* "Read the full position →" link below each /issues/ index article. */
.issue-stand-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: .92rem;
  color: var(--navy); text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-bottom-color .15s, color .15s;
}
.issue-stand-link:hover { color: var(--royal); border-bottom-color: var(--gold); }

/* ---------- Hero image on /issues/{slug}/ deep pages ----------
   Sits between the H1 and the lede paragraph. Container enforces a
   3:2 letterbox so all 6 issues share a consistent visual cadence
   regardless of source aspect ratio. object-fit:cover crops to fit;
   --hero-pos (set inline via the SSR function) keeps the focal point
   visible (e.g. portraits get pulled upward). */
.issue-hero {
  margin: 28px 0 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
  background: var(--ink, #0F1A33);
  /* Container aspect ratio. Source image is positioned via object-fit. */
  aspect-ratio: 3 / 2;
}
.issue-hero picture,
.issue-hero img {
  display: block; width: 100%; height: 100%;
}
.issue-hero img {
  object-fit: cover;
  object-position: var(--hero-pos, center);
}
@media (max-width: 600px) {
  .issue-hero { aspect-ratio: 4 / 3; margin: 22px 0 26px; }
}
@media (prefers-reduced-data: reduce) {
  /* Browsers that opt out of heavy images (low-data Save-Data hint) get a
     graceful empty container that still preserves layout. */
  .issue-hero img { content-visibility: auto; }
}

/* ================ Meet Dan ================ */
.meet-dan {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 860px) {
  .meet-dan { grid-template-columns: 1fr 1.3fr; gap: 60px; }
}
.meet-dan-photo { position: relative; }
.meet-dan-photo img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.meet-dan-caption {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  background: rgba(22, 48, 110, .9); color: var(--white);
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .92rem; line-height: 1.35;
  backdrop-filter: blur(4px);
}
.meet-dan blockquote {
  margin: 26px 0 0; padding: 18px 0 18px 24px;
  border-left: 5px solid var(--gold);
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  color: var(--navy); line-height: 1.35;
}

/* ================ Map section ================ */
.map-wrap { margin-top: 40px; padding: 0 clamp(18px, 3vw, 40px); }
#map {
  width: 100%; height: clamp(320px, 52vh, 560px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-xl);
  background: #20345f; /* navy placeholder while loading */
  position: relative;
}
.map-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #B3BFDB; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .15em; font-size: .9rem;
}
.map-attrib { text-align: right; font-size: .75rem; color: #B3BFDB; margin-top: 8px; max-width: var(--container); margin-left: auto; margin-right: auto; padding: 0 clamp(18px, 3vw, 40px); }
.map-attrib a { color: var(--gold); }

/* ================ Breadcrumbs (sub-page navigation) ================ */
/* Visible breadcrumb above the H1 on every sub-page (Issues / Events /
   Media / Our town / Map / Contact / Meet Dan). Pairs with a
   BreadcrumbList JSON-LD block in the page <head> for SERP rich-result
   eligibility. The current page is exposed via aria-current="page" so
   AT users hear "current page". Gold › between segments matches the
   /404 sitemap-fallback list styling. */
.breadcrumbs ol {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 8px;
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem;
  color: var(--ink-soft);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after {
  content: "\203A"; /* › */
  color: var(--gold);
  font-weight: 700;
  margin-left: 2px;
}
.breadcrumbs a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-bottom-color .15s, color .15s;
}
.breadcrumbs a:hover { border-bottom-color: var(--gold); color: var(--royal); }
.breadcrumbs li[aria-current="page"] { color: var(--ink-soft); }

/* ================ Endorsements ================ */
/* One-column editorial treatment. Replaces the 3-up card grid (taste-skill
   anti-pattern: "3-card carousel testimonials" / "Three equal card columns
   as feature row"). Each endorsement is a full-width pull quote with the
   gold quotation mark anchored in the gutter and the attribution flowing
   beneath. Visual rhythm comes from the dividers between rows. */
.endorsements {
  list-style: none; padding: 0; margin: 40px auto 0;
  display: flex; flex-direction: column;
  gap: 28px;
  max-width: 720px;
}
.endorsement {
  position: relative;
  padding: 6px 0 28px 56px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.endorsement:last-child { border-bottom: 0; padding-bottom: 0; }
.endorsement::before {
  content: "\201C"; /* left double quote */
  position: absolute; top: -14px; left: 0;
  font-family: serif; color: var(--gold); font-size: 5.5rem; line-height: 1;
  pointer-events: none;
}
.endorsement-quote {
  font-size: 1.18rem;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 18px;
  font-style: italic;
  font-family: var(--font-body);
  max-width: 60ch;
}
.endorsement-attrib { display: flex; align-items: center; gap: 14px; padding-top: 0; border-top: 0; }
.endorsement-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem;
  flex-shrink: 0;
}
.endorsement-name { font-weight: 700; color: var(--navy); font-size: 1rem; }
.endorsement-role { color: var(--ink-soft); font-size: .85rem; line-height: 1.35; }
@media (max-width: 540px) {
  .endorsement { padding-left: 36px; }
  .endorsement::before { font-size: 4rem; top: -8px; }
  .endorsement-quote { font-size: 1.08rem; }
}

/* ================ Events ================ */
.events {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; gap: 14px;
}
.event {
  display: grid; grid-template-columns: auto 1fr;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.event-date {
  background: var(--navy); color: var(--white);
  padding: 18px 22px; min-width: 120px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; line-height: 1;
}
.event-date .m {
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
}
.event-date .d {
  font-family: var(--font-display); font-size: 2.6rem;
  margin: 6px 0 4px;
}
.event-date .t {
  font-size: .8rem; color: #B3BFDB;
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
}
.event-body { padding: 18px 22px; }
.event-body h3 { margin: 0 0 4px; }
.event-body .loc { color: var(--ink-soft); font-size: .9rem; margin: 0 0 6px; }
.event-body p { margin: 0; color: var(--ink); }
.event-body .rsvp {
  display: inline-flex; margin-top: 10px;
  font-weight: 700; color: var(--maple-red); font-size: .9rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.event-body .rsvp:hover { color: var(--maple-red-dark); }
@media (max-width: 540px) {
  .event { grid-template-columns: 1fr; }
  .event-date { flex-direction: row; gap: 10px; padding: 10px 22px; }
  .event-date .d { font-size: 1.3rem; margin: 0; }
}

/* ================ Get involved tiles ================ */
.actions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 40px;
}
.action-tile {
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(245, 183, 31, .25);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  color: var(--white) !important;
  transition: transform .2s var(--ease-out), border-color .2s, background .2s;
}
.action-tile:hover { transform: translateY(-3px); border-color: var(--gold); background: rgba(245, 183, 31, .1); text-decoration: none; }
.action-tile h3 { color: var(--gold) !important; margin: 4px 0; }
.action-tile p { color: #DEE5F4 !important; margin: 0; line-height: 1.45; font-size: .95rem; }
.action-tile .action-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(245, 183, 31, .2);
  color: var(--white); /* gold-on-gold fails contrast; white reads cleanly on the gold-tint circle */
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
}
.action-tile .action-cta {
  margin-top: auto; padding-top: 14px;
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold) !important;
}
.action-tile-red { border-color: rgba(196, 30, 42, .4); }
.action-tile-red .action-icon { background: rgba(196, 30, 42, .2); color: #FFA5AB; }
.action-tile-red h3 { color: #FFA5AB !important; }
.action-tile-red .action-cta { color: #FFA5AB !important; }
.action-tile-red:hover { border-color: #FFA5AB; background: rgba(196, 30, 42, .12); }

/* ================ Forms ================ */
.form { margin-top: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid label.full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.form label em { color: var(--maple-red); font-style: normal; }
.form input, .form textarea, .form select {
  font: inherit; font-size: 1rem;
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(245, 183, 31, .45);
}
.form .hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.btn-submit { margin-top: 22px; }
.form-status { margin-top: 14px; min-height: 1.5em; font-weight: 600; }
.form-status.success { color: #1B7A3E; }
.form-status.error { color: var(--maple-red); }
/* Visible thank-you panel that replaces the form on successful submit.
   Gives submitters a clear "what happens next" + secondary CTA. Mirrors
   the success-green palette of .form-status.success. */
.form-thanks {
  margin-top: 14px;
  padding: 24px 22px;
  border: 2px solid #1B7A3E;
  border-left-width: 6px;
  border-radius: 8px;
  background: #F4FBF6;
}
.form-thanks-title { margin: 0 0 8px; color: #1B7A3E; font-size: 1.25rem; line-height: 1.25; }
.form-thanks-body  { margin: 0 0 16px; color: var(--ink); }
.form-thanks-cta   { display: inline-block; }
.form-inline .form-thanks { margin-top: 18px; flex-basis: 100%; }
/* Required-field marker (the asterisk after each required field's label).
   aria-hidden in the HTML; sighted users see colour, screen readers get
   aria-required="true" on the input itself. */
.form-req { color: var(--maple-red); margin-left: 2px; font-weight: 700; }
/* "* Required fields" hint at the top of each form. */
.form-required-note {
  font-size: .82rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.form-required-note span[aria-hidden="true"] {
  color: var(--maple-red);
  font-weight: 700;
}
/* Privacy / consent micro-copy under each form's submit button. CASL +
   plain-language disclosure pattern. */
.form-consent {
  font-size: .82rem;
  color: var(--ink-soft);
  margin: 10px 0 0;
  line-height: 1.45;
}
.form-consent a { color: var(--navy); text-decoration: underline; }
.form-consent a:hover { color: var(--royal); }
/* Single-row submit area: large primary submit + optional SMS-consent pill
   toggle on the left, consent micro-copy on the right. Wraps on narrow
   screens so the consent text drops to its own line with full width.
   Top-aligned (align-items: flex-start) so the buttons sit flush with the
   first line of the consent text instead of floating mid-height when the
   text wraps to multiple lines. */
.form-actions {
  display: flex;
  align-items: flex-start;
  gap: 14px 20px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.form-actions .btn-submit { flex: 0 0 auto; margin: 0; }
.form-actions .notify-prefs,
.form-actions .subscribe-prefs { flex: 0 0 auto; margin: 0; padding: 0; }
.form-actions .form-consent {
  flex: 1 1 240px;
  margin: 0;
  max-width: 480px;
  min-width: 200px;
}
@media (max-width: 720px) {
  .form-actions .form-consent { flex: 1 1 100%; max-width: none; }
}
/* Inline "Try again" button shown next to error messages on transient
   failures (5xx, network drop). Re-runs the submission with the same
   payload so an anxious visitor doesn't have to re-type and re-click. */
.form-retry-btn {
  display: inline-block;
  margin-left: 8px;
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  padding: 4px 12px;
  background: var(--maple-red);
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .15s, transform .12s;
}
.form-retry-btn:hover { background: #A41822; transform: translateY(-1px); }

.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; max-width: 640px; margin: 0; }
.form-inline input:not([type="checkbox"]):not([type="hidden"]) { flex: 1 1 200px; min-width: 0; padding: 11px 14px; }
.form-inline .form-status { flex-basis: 100%; margin-top: 6px; }

/* Floating-label pattern for the inline subscribe ribbon. The label sits
   "inside" the input (visually as the placeholder) until the field is
   focused or filled — at which point it floats up so the user can still
   see the field name. Fixes WCAG SC 3.3.2 / 2.5.3 and replaces the
   placeholder-only pattern that disappeared on type. */
.float-field { position: relative; flex: 1 1 200px; min-width: 0; }
.float-field input {
  width: 100%; box-sizing: border-box;
  padding: 18px 14px 8px;
}
.float-field label {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--ink-soft);
  font-size: 1rem; line-height: 1;
  background: transparent;
  transition: top .15s ease, font-size .15s ease, color .15s ease;
}
.float-field input:focus + label,
.float-field input:not(:placeholder-shown) + label {
  top: 11px; font-size: .72rem; color: var(--navy); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}

/* Inline help text under a form field (e.g. "Lawn signs delivered within
   Wasaga Beach only"). Visible to all users; sits below the input it
   describes. */
.form-help {
  display: block; margin-top: 4px;
  font-size: .82rem; color: var(--ink-soft); line-height: 1.4;
}

/* Visible "why this is disabled" hint shown next to the SMS-consent checkbox
   when the phone field is empty. Toggled by wireSmsGating in script.js. */
.sms-hint {
  display: inline-block; flex-basis: 100%;
  font-size: .82rem; color: var(--ink-soft); font-style: italic;
  margin-top: 2px;
}
.sms-hint[hidden] { display: none; }

.fieldset { border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 16px 20px 10px; background: var(--white); }
.fieldset legend { padding: 0 8px; font-weight: 700; color: var(--navy); }
.fieldset legend em { color: var(--maple-red); font-style: normal; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 20px; }
.checkbox-grid label {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  font-weight: 500; color: var(--ink);
  font-size: .95rem; padding: 6px 0; cursor: pointer;
}
.checkbox-grid input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--navy); margin: 0;
}

/* Shared pill-toggle style for notification prefs (lawn sign + volunteer +
   subscribe). Sized to match the SIGN UP / submit button. Underlying
   checkbox is visually hidden but still focusable + keyboard-operable. */
.notify-prefs {
  background: transparent; border: 0; padding: 6px 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  font-size: .85rem; color: var(--ink-soft); margin: 0;
}
.notify-prefs-label {
  color: var(--ink);
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  font-size: .82rem;
}
.notify-prefs .checkbox-row, .subscribe-prefs .checkbox-row {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
  font-family: var(--font-display); letter-spacing: .04em;
  font-size: 1rem; text-transform: uppercase;
  padding: 13px 24px;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  color: var(--navy);
  background: transparent;
  transition: background .15s, color .15s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.notify-prefs .checkbox-row:hover, .subscribe-prefs .checkbox-row:hover {
  background: var(--cream-2); transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.notify-prefs .checkbox-row:has(input:checked),
.subscribe-prefs .checkbox-row:has(input:checked) {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.notify-prefs .checkbox-row:has(input:checked):hover,
.subscribe-prefs .checkbox-row:has(input:checked):hover {
  background: var(--navy-deep);
}
.notify-prefs .checkbox-row:has(input:focus-visible),
.subscribe-prefs .checkbox-row:has(input:focus-visible) {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.notify-prefs .checkbox-row:has(input:disabled),
.subscribe-prefs .checkbox-row:has(input:disabled) {
  opacity: .45; cursor: not-allowed;
}
.notify-prefs .checkbox-row:has(input:disabled):hover,
.subscribe-prefs .checkbox-row:has(input:disabled):hover {
  background: transparent; transform: none; box-shadow: none;
}
.notify-prefs .checkbox-row input[type="checkbox"],
.subscribe-prefs .checkbox-row input[type="checkbox"] {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
  margin: 0; padding: 0; border: 0;
}

/* Subscribe-form prefs — same pill style as the lawn-sign / volunteer
   .notify-prefs blocks, but inline with the SIGN UP button (no
   flex-basis: 100% so it can sit on the same row when there's space). */
.subscribe-prefs {
  display: inline-flex; gap: 10px 12px; flex-wrap: wrap; align-items: center;
  font-size: .85rem; color: var(--ink-soft);
}
.subscribe-prefs-label {
  color: var(--ink);
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  font-size: .82rem;
}

/* ================ Ribbon (stay informed) ================ */
.ribbon {
  background: linear-gradient(135deg, var(--sand) 0%, var(--cream-2) 100%);
  padding: 36px 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.ribbon-row {
  display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 24px;
}
@media (max-width: 720px) { .ribbon-row { grid-template-columns: 1fr; gap: 12px; } }
.ribbon-text h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .02em; text-transform: uppercase; }
.ribbon-text p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ================ Contact ================ */
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; max-width: 720px; }
.contact-list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 24px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none;
}
.contact-list a:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.contact-label {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--maple-red);
  min-width: 70px; font-size: .78rem;
}
.contact-value { font-size: 1.1rem; color: var(--navy); font-weight: 600; }
.contact-social {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 24px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.contact-social a { padding: 4px 0; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }
.contact-social a:hover { color: var(--royal); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* ================ Footer ================ */
.footer { background: var(--ink); color: #B9C2D9; padding: 36px 0 44px; }
.footer-body { text-align: center; display: grid; gap: 10px; }
.authorization { color: var(--gold); font-weight: 600; margin: 0; font-size: .92rem; }
.copyright { margin: 0; font-size: .88rem; }
.footer a { color: var(--gold); }

/* ================ Placeholder notes (dev-mode reminder) ================ */
.placeholder-note {
  display: inline-block; margin-top: 22px;
  background: rgba(245, 183, 31, .16);
  border: 1px dashed var(--gold-deep);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--ink);
}
body.is-live [data-placeholder] { display: none; }

/* ================ Scroll reveal ================ */
/* Content is always visible — the reveal effect is only a subtle slide-up.
 * If JS doesn't run or IntersectionObserver doesn't fire (e.g. full-page screenshot
 * tools), the page is still readable. Opacity is left alone deliberately. */
.reveal { transform: translateY(16px); transition: transform .7s var(--ease-out); }
.reveal.in { transform: none; }
/* Stagger reveal of sibling cards inside the issues / endorsements / events
   lists. --idx is set by the renderer (script.js or functions/index.js).
   Each subsequent sibling delays its slide-up by 100ms, capped at 6 items.
   The translate distance is bumped from the base 16px to 32px and the
   duration extended slightly so the cascading slide-up is clearly
   perceptible (the base 16px reveal was almost invisible). */
.issue.reveal,
.endorsement.reveal,
.event.reveal {
  transform: translateY(32px);
  transition: transform .8s var(--ease-out);
  transition-delay: calc(min(var(--idx, 0), 6) * 100ms);
}
.issue.reveal.in,
.endorsement.reveal.in,
.event.reveal.in { transform: none; }

/* ================ Lazy-image fade-in ================ */
/* script.js tags lazy images with data-loaded="1" on the load event. While
   un-tagged, hold opacity at 0; fade to 1 over 300ms when tagged. Prevents
   the pop-in effect when images stream in below the fold. */
img[loading="lazy"] { transition: opacity .3s ease-out; }
img[loading="lazy"]:not([data-loaded]) { opacity: 0; }

/* ================ FAQ smooth disclosure ================ */
/* Native <details> snaps open. We use a max-height transition rather
   than the grid-template-rows: 0fr → 1fr trick because the latter
   doesn't animate on Safari < 17 (still common on older iPhones).
   Cap is 800px — taller than any reasonable FAQ answer. The duration
   is short (.32s) so the perceived animation feels punchy even when
   the actual content is 60-80px (the visible interpolation finishes
   quickly; the rest of the 320ms is the cap continuing to grow but
   doesn't matter visually). */
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s var(--ease-out);
}
.faq-item[open] .faq-body { max-height: 800px; }

/* Honour visitor's reduced-motion preference: disable all bespoke
   transitions and animations on the marketing-page sections. The
   transform-only reveal still ships its end state instantly. */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .issue.reveal,
  .endorsement.reveal,
  .event.reveal,
  img[loading="lazy"],
  .faq-body { transition: none !important; }
  img[loading="lazy"]:not([data-loaded]) { opacity: 1 !important; }
}

/* ================ FAQ (homepage common-questions section) ================ */
/* <details>/<summary> is the disclosure widget. Accessible + keyboard-
   navigable by default. The custom marker rotates on open via the
   [open] state attribute. Mirrors the FAQPage JSON-LD in <head>. */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 22px;
  transition: border-color .15s, box-shadow .2s;
}
.faq-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.08rem;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform .2s, background .15s;
}
.faq-item[open] > summary::after { content: "\2212"; transform: rotate(180deg); }
.faq-item > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: var(--radius-sm); }
/* The answer paragraph used to be a direct child of .faq-item; now it's
   wrapped in .faq-body for the smooth-disclosure transition. The selector
   widens to .faq-item p to match either form. */
.faq-item p {
  margin: 0 0 18px;
  color: var(--ink);
  line-height: 1.6;
}
.faq-item p a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.faq-item p a:hover { color: var(--royal); }

/* ================ Consent banner (rendered by /consent.js) ================ */
#gw-consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  background: var(--navy, #16306E);
  color: #fff;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 18px rgba(15, 26, 51, .35);
  font-family: var(--font-body, "Source Sans 3", system-ui, sans-serif);
  font-size: .95rem;
  line-height: 1.45;
}
#gw-consent-banner .gw-cb-row {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
#gw-consent-banner .gw-cb-text { flex: 1 1 360px; margin: 0; color: #fff; }
#gw-consent-banner .gw-cb-text a { color: var(--gold, #F5B71F); text-decoration: underline; }
#gw-consent-banner .gw-cb-actions { display: flex; gap: 10px; flex: 0 0 auto; }
#gw-consent-banner .gw-cb-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font: 700 .95rem var(--font-head, "Barlow Condensed", sans-serif);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1;
}
#gw-consent-banner .gw-cb-decline { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
#gw-consent-banner .gw-cb-decline:hover { background: rgba(255, 255, 255, .18); }
#gw-consent-banner .gw-cb-accept { background: var(--gold, #F5B71F); color: var(--navy, #16306E); }
#gw-consent-banner .gw-cb-accept:hover { background: #fff; }
#gw-consent-banner .gw-cb-btn:focus-visible { outline: 3px solid var(--gold, #F5B71F); outline-offset: 2px; }
@media (max-width: 560px) {
  #gw-consent-banner .gw-cb-actions { flex: 1 1 100%; }
  #gw-consent-banner .gw-cb-btn { flex: 1; }
}

/* ============= HERO JINGLE BADGE =============
   Tertiary audio affordance below the hero CTAs. Plays Dan's 10s campaign
   jingle from R2 (preload=none, fetched on first interaction). Visual
   weight: quieter than .btn-primary, no louder than .btn-ghost-light.
   The two stacked sound-wave arcs animate outward on play to read as
   "broadcast" rather than the generic media-player throb. */
.hero-jingle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  background: transparent;
  border: 1.5px solid rgba(245, 183, 31, 0.55);
  color: var(--white);
  font: 500 14px/1.2 var(--font-body);
  letter-spacing: 0.01em;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s var(--ease-out),
              border-color .2s var(--ease-out),
              transform .2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.hero-jingle:hover,
.hero-jingle:focus-visible {
  background: rgba(245, 183, 31, 0.10);
  border-color: rgba(245, 183, 31, 0.95);
}
.hero-jingle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.hero-jingle:active { transform: scale(0.98); }

/* Playing state: lock the hover treatment + light tint so the button
   reads as active even when focus has moved on. */
.hero-jingle[aria-pressed="true"] {
  background: rgba(245, 183, 31, 0.10);
  border-color: var(--gold);
}

.hero-jingle-svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: inherit;
  display: block;
}
.hero-jingle-svg .hero-jingle-body { fill: currentColor; }
.hero-jingle-svg .hero-jingle-wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  opacity: 0.55;
  transition: opacity .25s var(--ease-out);
  transform-origin: 8px 12px;
}
.hero-jingle-svg .hero-jingle-wave-2 { opacity: 0.22; }
.hero-jingle:hover .hero-jingle-wave,
.hero-jingle:focus-visible .hero-jingle-wave { opacity: 0.8; }
.hero-jingle:hover .hero-jingle-wave-2,
.hero-jingle:focus-visible .hero-jingle-wave-2 { opacity: 0.45; }

/* Outward-emanating wave animation while playing. wave-2 trails wave-1
   by 180ms so the pair reads as sound moving outward, not a single throb. */
.hero-jingle[aria-pressed="true"] .hero-jingle-wave-1 {
  animation: jingleWave 1s var(--ease-out) infinite;
}
.hero-jingle[aria-pressed="true"] .hero-jingle-wave-2 {
  animation: jingleWave 1s var(--ease-out) 0.18s infinite;
}
@keyframes jingleWave {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

.hero-jingle small {
  opacity: 0.7;
  font-weight: 400;
  margin-left: 3px;
  letter-spacing: 0;
}

/* Mobile: switch text + icon to gold so the badge keys off the existing
   .btn-ghost-light gold-on-navy override (line ~392) and sits in the
   same visual register as "See what I stand for". Also tightens padding
   while keeping a 44px touch target via vertical padding + line-height. */
@media (max-width: 820px) {
  .hero-jingle {
    color: var(--gold);
    margin-top: 14px;
    padding: 11px 14px 11px 11px;
    font-size: 13.5px;
    border-color: rgba(245, 183, 31, 0.5);
  }
  .hero-jingle:hover,
  .hero-jingle:focus-visible,
  .hero-jingle[aria-pressed="true"] {
    background: rgba(245, 183, 31, 0.13);
    border-color: var(--gold);
  }
  .hero-jingle-svg {
    width: 20px; height: 20px; flex-basis: 20px;
  }
}

/* Reduced motion: kill the wave animation but keep waves visible so the
   playing state is still distinguishable. Also disables transition decay. */
@media (prefers-reduced-motion: reduce) {
  .hero-jingle { transition: none; }
  .hero-jingle[aria-pressed="true"] .hero-jingle-wave {
    animation: none;
    opacity: 0.85;
  }
}
