/* =====================================================================
   CAPBA — Central Alabama Prescribed Burn Association
   Design system: "Ember & Longleaf"
   Fire-warm + forest-green, formal/professional.
   ===================================================================== */

:root {
  /* Core palette — matched to the CAPBA drip-torch logo:
     Alabama crimson lantern + deep brown wordmark on cream. */
  --ink:        #201512;   /* warm near-black (smoke)   */
  --ink-soft:   #42302a;
  --paper:      #faf6ef;   /* warm cream background     */
  --paper-2:    #f3ece0;   /* panel cream               */
  --paper-3:    #ece2d2;
  --white:      #ffffff;

  --ember:      #b01e29;   /* primary — logo crimson    */
  --ember-deep: #8c1721;
  --ember-dark: #6f1119;
  --flame:      #d4832a;   /* warm ember accent         */
  --gold:       #cf9a2e;

  --pine:       #5a281e;   /* deep logo brown (was green) */
  --pine-2:     #6e3a2c;
  --pine-3:     #854a39;
  --sage:       #a98b7e;   /* muted taupe               */

  --ash:        #8a7d75;   /* muted brown-grey          */
  --line:       rgba(32,21,18,.12);
  --line-soft:  rgba(32,21,18,.07);

  /* Zone colours (map) */
  --zone-east:    #b01e29;
  --zone-central: #cf9a2e;
  --zone-west:    #6e3a2c;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(30,24,19,.06), 0 2px 8px rgba(30,24,19,.05);
  --shadow:    0 6px 22px rgba(30,24,19,.10), 0 2px 6px rgba(30,24,19,.06);
  --shadow-lg: 0 20px 55px rgba(30,24,19,.18);

  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 56px);

  /* Oversized floating brand lockup (overhangs the header bar). */
  --logo-w: clamp(150px, 25vw, 300px);
  --logo-h: calc(var(--logo-w) / 1.8846);  /* lockup aspect 588:312 */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ember-deep); text-decoration-color: rgba(140,23,33,.35); text-underline-offset: 3px; }
a:hover { color: var(--ember); }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
p  { color: var(--ink-soft); }
::selection { background: var(--flame); color: var(--ink); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(38px, 4.5vw, 68px); }
.section--tight { padding-block: clamp(26px, 3vw, 44px); }
.section--paper2 { background: var(--paper-2); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 700; font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ember-deep);
}
.kicker::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--ember);
}
.section-head { max-width: 64ch; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head.center { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: .82em 1.5em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .14s ease, box-shadow .2s ease, background .2s ease, color .2s;
  text-decoration: none; white-space: nowrap;
}
.btn .ico { width: 1.15em; height: 1.15em; }
.btn--primary {
  background: var(--ember);
  color: #fff; box-shadow: 0 8px 20px rgba(140,23,33,.30);
}
.btn--primary:hover { color:#fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(140,23,33,.38); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ember); color: var(--ember-deep); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.16); color:#fff; border-color: rgba(255,255,255,.58); backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255,255,255,.26); color:#fff; transform: translateY(-2px); }
.btn--flame { background: transparent; color: var(--flame); border-color: var(--flame); }
.btn--flame:hover { background: var(--flame); color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(244,160,31,.32); }
.btn--pine { background: var(--pine); color:#fff; }
.btn--pine:hover { background: var(--pine-2); color:#fff; transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,239,.88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar {
  background: var(--ink); color: var(--paper-2);
  font-size: .82rem;
  overflow: hidden; max-height: 60px;
  transition: max-height .5s ease;
}
/* Collapse the contact bar once scrolled → tighter, nav-focused header. */
.site-header.is-scrolled .topbar { max-height: 0; }
.topbar .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding-block: 7px; }
.topbar a { color: var(--paper-2); text-decoration: none; display:inline-flex; align-items:center; gap:.4em; }
.topbar a:hover { color: var(--flame); }
.topbar .tb-left { display:flex; gap: 18px; flex-wrap: wrap; }
.topbar .ico { width: 15px; height: 15px; opacity:.85; }
.topbar .tag { color: #a7bdab; font-style: italic; }

/* Header spans the full page width (just a gutter), while body content stays
   capped at --maxw. The nav row then stretches edge-to-edge. */
.site-header > .wrap,
.topbar .wrap { max-width: none; }
.site-header > .wrap { position: relative; transition: max-width .5s ease; }
.nav { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding-block: 12px; min-height: 64px; transition: padding-block .5s ease, min-height .5s ease; }
/* Scrolled state: shrink the bar and morph the full lockup into the round badge.
   Rather than a hard display swap, the can shrinks + fades while the round badge
   fades in over it and the wordmark collapses — a smooth transition the JS gives
   you time to watch by briefly pinning the scroll. */
.site-header.is-scrolled .nav { padding-block: 7px; min-height: 0; }
.site-header.is-scrolled .brand__logoslot { height: 50px; width: 50px; }
.site-header.is-scrolled .brand__can { opacity: 0; }
.site-header.is-scrolled .brand__round { opacity: 1; }
.site-header.is-scrolled .brand__plate { opacity: 0; max-width: 0; margin-left: -10px; }
.site-header.is-scrolled .brand { padding-right: 10px; margin-right: auto; }
/* Scrolled: narrow the row back to the contained width and repack the compact
   menu to the right (instead of spanning full width like the top state). */
.site-header.is-scrolled > .wrap { max-width: var(--maxw); }
.site-header.is-scrolled .nav-links { flex: 0 1 auto; justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* Oil-can mark + a wordmark "plate" built in markup; both centred with the nav.
   Brand scales with viewport so it stays ~20-25% of the header width, with a
   guaranteed gap (padding-right) before the nav menu. */
.site-header .brand {
  --can-h: clamp(104px, 10.2vw, 152px);
  margin: 0; z-index: 60; flex: none; position: relative;
  /* Cancel the can PNG's transparent left margin (10/312 of its height) so the
     visible can lines up with the gutter — matching the CTA on the right. */
  margin-left: calc(var(--can-h) * -0.032);
  padding-right: clamp(48px, 5.5vw, 104px);
  transition: padding-right .5s ease;
}
/* Both logos share ONE slot and are stacked (absolute) inside it, filling the
   same box. The slot shrinks as a unit on scroll, so the can and the round badge
   stay exactly the same size + position throughout — the swap is a clean
   cross-dissolve in place rather than two mismatched images flashing (shutter). */
.brand__logoslot {
  position: relative; flex: none;
  height: var(--can-h, clamp(104px, 10.2vw, 152px));
  width: calc(var(--can-h, 152px) * 0.593); /* = can PNG aspect, so it fills exactly */
  transition: height .55s ease, width .55s ease;
}
.brand__logoslot img {
  position: absolute; inset: 0; margin: auto; display: block;
  width: 100%; height: 100%; object-fit: contain;
  transition: opacity .55s ease;
}
.brand__can {
  opacity: 1;
  filter: drop-shadow(0 4px 9px rgba(32,21,18,.28));
}
/* Round badge — fades in over the can once scrolled (compact header). */
.brand__round {
  opacity: 0; pointer-events: none;
  filter: drop-shadow(0 3px 7px rgba(32,21,18,.26));
}
/* No box: wordmark sits directly on the bar. The column shrinks to the width of
   the name, and the sub line is justified to fill that exact same width. */
.brand__plate {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  justify-content: center; line-height: .95;
  overflow: hidden; max-width: 480px;
  transition: opacity .4s ease, max-width .5s ease, margin-left .5s ease;
}
/* Condensed via negative tracking (not scaleX, which leaves a phantom layout box
   that both mis-measures the brand width and opens a gap before the nav). */
.brand__plate-name {
  font-family: var(--sans); font-weight: 900; font-size: clamp(1.26rem, 1.95vw, 1.8rem);
  letter-spacing: -.028em; text-transform: uppercase; color: var(--pine);
  white-space: nowrap;
}
/* Sub-line: normal word spacing (no justify spread) — like the stacked wordmark
   reference; tracked out just enough to sit close to the name's width. */
.brand__plate-sub {
  font-family: var(--sans); font-weight: 700; font-size: clamp(.8rem, 1.24vw, 1.02rem);
  letter-spacing: .01em; text-transform: uppercase; color: var(--ember-deep);
  white-space: nowrap;
}
.brand__mark {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(32,21,18,.12), inset 0 0 0 1px rgba(32,21,18,.06);
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.site-footer .brand__mark { box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.brand__text { line-height: 1.05; }
.brand__name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1; color: var(--ink); letter-spacing: -.01em; }
.brand__sub { display: block; margin-top: 3px; font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ash); font-weight: 600; white-space: nowrap; }

.nav-links { display: flex; align-items: center; justify-content: space-between; flex: 1 1 auto; gap: 8px; list-style: none; padding: 0; }
.nav-links > li { flex: none; }
.nav-links a {
  display: block; text-decoration: none; color: var(--ink-soft);
  font-weight: 550; font-size: .94rem; padding: 9px 10px; border-radius: 8px;
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--ember-deep); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--ember-deep); }
.nav-links a[aria-current="page"]::after {
  content:""; display:block; height:2px; border-radius:2px; margin-top:3px;
  background: var(--ember);
}
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 0; cursor: pointer; z-index: 61; position: relative; }
.nav-toggle .ico { width: 24px; height: 24px; color: var(--ink); }

/* "More" dropdown — overflow bucket: holds only the links that don't fit on the
   bar. Hidden entirely when everything fits (see initNavOverflow). */
.nav-group { position: relative; }
.nav-group[hidden] { display: none; }
.nav-group__btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 550; font-size: .94rem; color: var(--ink-soft);
  background: none; border: none; cursor: pointer;
  padding: 9px 10px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-group__btn:hover { color: var(--ember-deep); background: var(--paper-2); }
.nav-group.is-current .nav-group__btn { color: var(--ember-deep); }
.nav-caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .18s; opacity: .8;
}
.nav-group:hover .nav-caret, .nav-group.open .nav-caret { transform: rotate(180deg); }
.nav-group__menu {
  position: absolute; top: 100%; right: 0; margin: 0; padding: 8px; min-width: 200px;
  list-style: none; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-group__menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-group:hover .nav-group__menu,
.nav-group:focus-within .nav-group__menu,
.nav-group.open .nav-group__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-group__menu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  text-decoration: none; color: var(--ink-soft); font-weight: 550; font-size: .9rem; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-group__menu a:hover { color: var(--ember-deep); background: var(--paper-2); }
.nav-group__menu a[aria-current="page"] { color: var(--ember-deep); background: var(--paper-2); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #221a14;
  color: var(--paper);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-block: clamp(38px, 5vw, 68px);
}
/* let grid tracks shrink below content min-width so nothing overflows on mobile */
.hero__grid > * { min-width: 0; }
.hero h1 { color: #fff; }
.hero__flameword { color: var(--flame); font-style: italic; }
.hero__lede { color: rgba(250,246,239,.82); font-size: 1.22rem; margin-top: 18px; max-width: 52ch; }
.hero .kicker { color: var(--flame); }
.hero .kicker::before { background: var(--flame); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 30px; margin-top: 40px; max-width: 430px; }
.hero__stat .n { font-family: var(--serif); font-size: 2.2rem; color: var(--flame); line-height: 1; }
.hero__stat .l { font-size: .82rem; color: rgba(250,246,239,.7); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.hero__mapcard {
  background: rgba(250,246,239,.05); border: 1px solid rgba(250,246,239,.14);
  border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(4px);
}
.hero__mapcard h3 { color:#fff; font-size: 1rem; }
.hero__mapcard .sub { color: rgba(250,246,239,.8); font-size: .82rem; margin-bottom: 8px; }

/* combined coverage: compact counties-served list, above the map in the hero card */
.hero__zonelist { margin: 4px 0 14px; }
.hero__zonelist p { font-size: .78rem; line-height: 1.5; color: rgba(250,246,239,.82); margin: 7px 0; }
.hero__zonelist strong { font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em;
  font-size: .68rem; font-weight: 700; margin-right: 7px; }
.hero__zonelist strong span { color: rgba(250,246,239,.5); font-weight: 500; }

/* page hero (inner pages) */
.page-hero {
  background: #221a14;
  color: var(--paper); padding-block: clamp(40px, 5vw, 64px);
}
.page-hero h1 { color:#fff; }
.page-hero .lede { color: rgba(250,246,239,.8); margin-top: 14px; }
.page-hero .kicker { color: var(--flame); }
.page-hero .kicker::before { background: var(--flame); }

.hero__grid { padding-top: clamp(38px, 5vw, 68px); }
.page-hero  { padding-top: clamp(20px, 2.5vw, 32px); }
.crumbs { font-size: .85rem; color: rgba(250,246,239,.6); margin-bottom: 14px; }
.crumbs a { color: rgba(250,246,239,.8); text-decoration: none; }
.crumbs a:hover { color: var(--flame); }

/* ---------- cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(212,69,24,.25); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(212,69,24,.12);
  color: var(--ember-deep); margin-bottom: 16px;
}
.card__icon .ico { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .97rem; }

/* numbered / purpose list */
/* in-page anchor targets clear the sticky header */
section[id] { scroll-margin-top: 96px; }
/* in-hero jump navigation (anchor-link buttons) */
.jump-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ember); color: #fff; flex: none;
}
.steps li p { margin: 0; color: var(--ink-soft); }
.steps li strong { color: var(--ink); font-weight: 700; }

/* feature list with check */
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.ticks .ico { width: 22px; height: 22px; color: var(--pine-2); margin-top: 2px; flex: none; }

/* ---------- board / people ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 22px; }
.person { text-align: center; }
.person__photo {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--paper-2);
  display: grid; place-items: center; color: var(--pine); font-family: var(--serif);
  font-size: 2rem; border: 3px solid var(--white); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.person__photo img { width:100%; height:100%; object-fit: cover; }
.person h3 { font-size: 1.1rem; }
.person .role { color: var(--ember-deep); font-weight: 600; font-size: .9rem; }
.person .meta { font-size: .85rem; color: var(--ash); margin-top: 4px; }
.person .meta a { color: var(--ash); text-decoration: none; }
.person .meta a:hover { color: var(--ember); }

/* ---------- tiers (sponsors / membership) ---------- */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.tier { position: relative; display:flex; flex-direction:column; border-radius: var(--r-lg); padding: 30px 26px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.tier--gold   { border-top: 5px solid var(--gold); }
.tier--silver { border-top: 5px solid #a9a29a; }
.tier--bronze { border-top: 5px solid #b07b4a; }
.tier__name { font-family: var(--serif); font-size: 1.35rem; }
.tier__price { font-family: var(--serif); font-size: 2.4rem; color: var(--ember-deep); margin: 6px 0 2px; }
.tier__price span { font-size: .9rem; color: var(--ash); font-family: var(--sans); }
.tier .ticks { margin-top: 16px; flex: 1; }
.badge-ribbon {
  position:absolute; top:-12px; right:20px; background: var(--ember); color:#fff;
  font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  padding:5px 12px; border-radius:999px; box-shadow: var(--shadow-sm);
}

/* ---------- map ---------- */
.map-shell { position: relative; }
.al-map { width: 100%; height: auto; }
.al-map .county {
  fill: #efe6d6; stroke: #cdbfa6; stroke-width: 1.1;
  transition: fill .15s, stroke .15s;
}
.al-map .county.z-East    { fill: var(--zone-east);    stroke: #fff; }
.al-map .county.z-Central { fill: var(--zone-central); stroke: #fff; }
.al-map .county.z-West    { fill: var(--zone-west);    stroke: #fff; }
.al-map .county.active { fill: var(--ink) !important; stroke:#fff; }

/* permanent county name labels (on the 22 CAPBA counties) — centered in the county */
.al-map .clabel {
  font: 600 8px/1 var(--sans); fill: #fff;
  paint-order: stroke; stroke: rgba(20,15,10,.45); stroke-width: 2.2px;
  text-anchor: middle; dominant-baseline: central; pointer-events: none;
}

/* Each CAPBA county is a group of {path + centered name label}.
   Hovering highlights the county in place (no size change) and shows the
   floating overbox below; non-CAPBA counties are plain, inert paths. */
.al-map .county-g { cursor: pointer; }
.al-map .county-g.hovered .county { stroke: #fff; stroke-width: 2; filter: brightness(1.12); }
.al-map .county-g:focus { outline: none; }
.al-map .county-g:focus-visible .county { stroke: var(--flame); stroke-width: 2.4; }

/* floating "overbox" — themed label shown on hover/focus with the county name large */
.map-overbox {
  position: absolute; z-index: 20; pointer-events: none;
  background: var(--ink); color: #fff;
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-sm);
  padding: 9px 15px; text-align: center; white-space: nowrap;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translate(-50%, -100%) translateY(2px);
  transition: opacity .14s ease, transform .14s ease;
}
.map-overbox.show { opacity: 1; transform: translate(-50%, -100%) translateY(-10px); }
.map-overbox::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px;
  background: var(--ink); border-right: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
  transform: translateX(-50%) rotate(45deg);
}
.map-overbox .ob-name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.05; }
.map-overbox .ob-zone {
  font-family: var(--sans); font-weight: 700; font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; margin-top: 4px;
}
.map-overbox .ob-zone.z-East    { color: var(--ember); }
.map-overbox .ob-zone.z-Central { color: var(--gold); }
.map-overbox .ob-zone.z-West    { color: var(--pine-3); }

/* on dark hero: dim only the non-CAPBA counties; keep zone colours vivid */
.hero .al-map .county:not(.capba) { fill: #3a2f26; stroke: #51443a; }
.hero__mapcard .al-map { max-height: 420px; width: auto; max-width: 100%; margin: 0 auto; }

.legend { display:flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: .86rem; }
.legend span { display:inline-flex; align-items:center; gap:7px; color: var(--ink-soft); }
.hero .legend span { color: rgba(250,246,239,.85); }
.legend i { width: 14px; height: 14px; border-radius: 4px; display:inline-block; }

/* county popup */
.map-pop {
  position: absolute; min-width: 230px; max-width: 290px;
  background: var(--white); border:1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 16px 18px; z-index: 20;
  opacity: 0; transform: translateY(6px) scale(.98); pointer-events:none;
  transition: opacity .15s, transform .15s;
}
.map-pop.show { opacity:1; transform: translateY(0) scale(1); pointer-events:auto; }
.map-pop h4 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 2px; }
.map-pop .zone-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing:.08em; }
.map-pop .proj { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; font-size: .88rem; }
.map-pop .proj b { color: var(--ink); }
.map-pop .proj .co { color: var(--ash); font-size: .8rem; }
.map-pop .none { color: var(--ash); font-size: .88rem; font-style: italic; }
.map-pop__close { position:absolute; top:8px; right:10px; border:none; background:none; font-size:1.2rem; cursor:pointer; color: var(--ash); line-height:1; }

/* ---------- tables (events log) ---------- */
.table-tools { display:flex; gap: 12px; flex-wrap: wrap; align-items:center; margin-bottom: 16px; }
.table-tools input, .table-tools select {
  font: inherit; font-size: .92rem; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
.table-tools input { min-width: 220px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.data td:first-child { white-space: nowrap; }
table.data thead th {
  position: sticky; top: 0; background: var(--pine); color: #fff; font-weight: 600;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; white-space: nowrap;
}
table.data thead th:hover { background: var(--pine-2); }
/* sort affordance: dim caret on every column, bright arrow on the active one */
table.data thead th[data-key]::after { content: " \2195"; opacity: .4; font-size: .85em; }
table.data thead th[aria-sort="ascending"]::after  { content: " \2191"; opacity: 1; }
table.data thead th[aria-sort="descending"]::after { content: " \2193"; opacity: 1; }
table.data tbody tr:hover { background: var(--paper-2); }
table.data tbody tr:nth-child(even) { background: rgba(243,236,224,.4); }
table.data tbody tr:nth-child(even):hover { background: var(--paper-2); }
.pill { display:inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.pill--burn  { background: rgba(176,30,41,.14);  color: var(--ember-deep); }
.pill--train { background: rgba(90,40,30,.14);   color: var(--pine); }
.pill--event { background: rgba(207,154,46,.2);  color: #8a6410; }
.pill--upcoming { background: rgba(110,58,44,.15); color: var(--pine-2); }

/* ---------- forms ---------- */
.form-card { background: var(--white); border:1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px,4vw,40px); box-shadow: var(--shadow); }
.fieldset-legend { font-family: var(--serif); font-size: 1.2rem; margin: 26px 0 14px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.fieldset-legend:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(2,1fr); margin-bottom: 18px; }
.form-row.one { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field .req { color: var(--ember); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; padding: 11px 13px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(212,69,24,.15); background: #fff;
}
.field input.required-field { border-left: 4px solid var(--ember); }
.field textarea { resize: vertical; min-height: 90px; }
.hint { font-size: .82rem; color: var(--ash); }
.form-note { background: var(--paper-2); border-left: 4px solid var(--flame); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: .92rem; margin: 10px 0 20px; }
.form-success { display:none; background: rgba(110,58,44,.12); border:1px solid var(--pine-3); color: var(--pine); border-radius: var(--r); padding: 18px 22px; margin-bottom: 20px; }
.form-success.show { display:block; }

/* ---------- gallery ---------- */
.gallery-cats { display:flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.gallery-cats button {
  font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink-soft); cursor: pointer;
  transition: all .15s;
}
.gallery-cats button:hover { border-color: var(--ember); color: var(--ember-deep); }
.gallery-cats button.active { background: var(--ember); border-color: var(--ember); color:#fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 16px; }
.photo {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden;
  background: var(--paper-2); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; text-align:center; padding: 14px;
}
.photo .ph-ico { width: 40px; height: 40px; color: var(--ash); opacity:.55; }
.photo .ph-cap { position:absolute; left:0; right:0; bottom:0; background: rgba(30,24,19,.78); color:#fff; font-size:.82rem; font-weight:600; padding: 12px; text-align:left; }

/* ---------- links list ---------- */
.linklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 14px; }
.linkrow {
  display:flex; align-items:center; gap:14px; text-decoration:none;
  background: var(--white); border:1px solid var(--line-soft); border-radius: var(--r);
  padding: 16px 18px; box-shadow: var(--shadow-sm); transition: all .15s;
}
.linkrow:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(212,69,24,.25); }
.linkrow .ico { width: 20px; height: 20px; color: var(--ember-deep); flex:none; }
.linkrow .lr-name { font-weight: 600; color: var(--ink); }
.linkrow .lr-url  { font-size: .82rem; color: var(--ash); }
.linkrow .lr-ext  { margin-left:auto; color: var(--ash); }

/* ---------- callout / banner ---------- */
.callout {
  background: var(--pine); color:#fff;
  border-radius: var(--r-lg); padding: clamp(28px,4vw,48px); position:relative; overflow:hidden;
}
.callout h2 { color:#fff; }
.callout p { color: rgba(255,255,255,.86); }
.callout .btn--light { border-color: rgba(255,255,255,.55); }
.callout__flame { position:absolute; right:-20px; bottom:-30px; width: 200px; opacity:.12; color: var(--flame); }

.quote-band { background: var(--ink); color: var(--paper); text-align:center; }
.quote-band blockquote { font-family: var(--serif); font-size: clamp(1.4rem,3vw,2.1rem); font-style: italic; max-width: 20ch; margin: 0 auto; line-height: 1.25; }
.quote-band .q-flame { color: var(--flame); }
.quote-band cite { display:block; font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--sage); margin-top: 18px; letter-spacing:.05em; }

/* info strip */
.strip { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow:hidden; border:1px solid var(--line); }
.strip > div { background: var(--white); padding: 22px; }
.strip .ico { width: 26px; height: 26px; color: var(--ember-deep); margin-bottom: 8px; }
.strip .s-n { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
.strip .s-l { font-size: .88rem; color: var(--ash); }

/* branded figure panels (used until client photography is supplied) */
.imgph {
  position: relative; overflow: hidden;
  background: var(--pine);
  border: none; border-radius: var(--r); display:grid; place-items:center;
  color: #fff; text-align:center; padding: 26px; min-height: 180px; gap: 10px;
  box-shadow: var(--shadow-sm);
}
.imgph .ico { width: 52px; height: 52px; opacity:.95; color: var(--flame); }
.imgph strong { color:#fff; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; }
.imgph small { font-size:.82rem; max-width: 30ch; color: rgba(255,255,255,.72); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper-2); padding-block: 54px 26px; margin-top: 40px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.site-footer .brand__name { color:#fff; }
/* Footer lockup "floats" up out of the footer: its top edge pokes into the gap
   above, and the wordmark lines up with the "Explore" column heading. */
.brand--footer { display: block; line-height: 0; margin-top: -100px; position: relative; z-index: 1; }
.brand__footer-logo { width: 360px; max-width: 100%; height: auto; display: block; }
.site-footer p { color: rgba(250,246,239,.6); font-size: .92rem; }
.footer-col h4 { color:#fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing:.1em; margin-bottom: 14px; }
.footer-col ul { list-style:none; padding:0; display:grid; gap: 9px; }
.footer-col { min-width: 0; }
.footer-col a { color: rgba(250,246,239,.72); text-decoration:none; font-size:.93rem; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--flame); }
.footer-bottom { border-top:1px solid rgba(250,246,239,.12); margin-top: 38px; padding-top: 20px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.84rem; color: rgba(250,246,239,.5); }

/* reveal on scroll */
.reveal { opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* keep headline/CTA first; map follows below the copy */
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .brand__sub { white-space: normal; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .nav-links a[aria-current="page"]::after { display:none; }
  .nav-cta { margin: 6px 0 0; }
  .topbar .tag { display:none; }
  /* Flatten the "More" group into the drawer — all links reachable inline */
  .nav-group { display: contents; }
  .nav-group__btn { display: none; }
  .nav-group__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; margin: 0; padding: 0; border: none; box-shadow: none; background: none;
  }
  .nav-group__menu::before { display: none; }
  .nav-group__menu a { padding: 11px 12px; font-weight: 550; }
}
/* Shrink the brand on narrow screens so the menu button always fits. */
@media (max-width: 560px) {
  .brand__can { height: 64px; }
  .brand__plate-name { font-size: 1.2rem; }
  .brand__plate-sub { font-size: .62rem; }
}
@media (max-width: 390px) {
  .brand__can { height: 56px; }
  .brand__plate-name { font-size: 1rem; }
  .brand__plate-sub { font-size: .54rem; letter-spacing: .06em; }
}
@media (max-width: 680px) {
  .grid-3, .grid-4, .tiers, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Stop the lockup from floating out of the footer once it stacks. */
  .brand--footer { margin-top: 0; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  body { font-size: 16px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity:1; transform:none; transition:none; }
}


