/* ============================================================
   WEST VALLEY · WARNER CENTER CHAMBER OF COMMERCE
   Production design system — "Civic Editorial"
   Heritage navy + gold · warm paper · Fraunces × Hanken Grotesk
   Built by Heed Business Solutions
   ============================================================ */

:root {
  /* ── Brand (real WVWCCC palette — heritage forest green + antique gold,
        sampled from the chamber's circular "Since 1930" seal) ── */
  --green-deep:  #1E5631;   /* primary dark green (logo ring) */
  --green-ink:   #143C20;   /* deepest green — headers / footers */
  --forest:      #1E5631;   /* forest green — event/flyer placeholders, pricing (was undefined) */
  --green-char:  #0E2A16;   /* near-black green */
  --green:       #3A8A3F;   /* primary green / links */
  --leaf-soft:   #E4F0E4;   /* soft green wash */
  --green-bright:#5FB364;   /* hover / highlights */
  --gold:        #C9A227;   /* heritage antique-gold accent */
  --gold-bright: #E4BE45;
  --gold-soft:   #F4E9C1;
  --gold-deep:   #8C6E14;

  /* ── Paper & neutrals ── */
  --cream:       #FAF6EC;
  --cream-deep:  #F3ECDA;
  --sand:        #ECE3CD;
  --paper:       #FDFBF6;   /* warm off-white — cozier than stark white on cream */
  --ink:         #16202C;
  --slate:       #2A3340;
  --slate-mid:   #515A66;
  --muted:       #707A86;
  --line:        #E4DCC8;
  --line-soft:   #EFE8D7;

  /* ── Status ── */
  --green:       #1F7A3A;
  --green-soft:  #E3F0E6;
  --red:         #B33A3A;
  --amber:       #B5811A;

  /* ── Type ── */
  --display:  'Fraunces', 'Source Serif Pro', Georgia, serif;
  --sans:     'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:     'Spline Sans Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ── Layout ── */
  --container: 1220px;
  --narrow:    860px;

  /* ── Space scale ── */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* ── Radii ── */
  --r-sm: 5px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;

  /* ── Shadows (warm-tinted) ── */
  --sh-sm: 0 1px 2px rgba(20,60,32,.06), 0 1px 3px rgba(20,60,32,.05);
  --sh-md: 0 6px 18px rgba(20,60,32,.09), 0 2px 5px rgba(20,60,32,.05);
  --sh-lg: 0 18px 44px rgba(20,60,32,.14), 0 5px 12px rgba(20,60,32,.07);
  --sh-gold: 0 8px 28px rgba(201,162,39,.28);

  --tr: 220ms cubic-bezier(.4, 0, .2, 1);
}

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600;700;800&family=Spline+Sans+Mono:wght@400;500;600&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
/* the hidden attribute must win over display-setting utility classes (.grid etc.) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--cream);
  /* paper grain — atmosphere, not noise */
  background-image:
    radial-gradient(circle at 15% 12%, rgba(201,162,39,.05), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(58,138,63,.06), transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  /* ultra-subtle film grain */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: var(--green); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--green-deep); }
input, select, textarea, button { font-family: inherit; font-size: 1rem; }
::selection { background: var(--gold-soft); color: var(--green-ink); }

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--green-deep);
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.18rem; font-weight: 600; }
p  { margin-bottom: var(--s-4); }
.lead { font-size: 1.22rem; color: var(--slate); line-height: 1.66; }

/* ── Eyebrow / kicker ── */
.kicker {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: var(--s-3);
}
.kicker::before {
  content: ""; width: 28px; height: 1.5px; background: var(--gold); display: inline-block;
}
.kicker--center { justify-content: center; }
.bg-forest .kicker { color: var(--gold-bright); }

/* ── Layout primitives ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-7) 0; }
.bg-forest   { background: var(--green-deep); color: var(--paper); }
.bg-forest-deep { background: var(--green-ink); color: var(--paper); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-paper { background: var(--paper); }
.bg-forest h1, .bg-forest h2, .bg-forest h3, .bg-forest h4,
.bg-forest-deep h1, .bg-forest-deep h2, .bg-forest-deep h3, .bg-forest-deep h4 { color: var(--paper); }
.bg-forest p, .bg-forest-deep p { color: rgba(255,255,255,.82); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Utilities ── */
.mt-2{margin-top:var(--s-2)}.mt-3{margin-top:var(--s-3)}.mt-4{margin-top:var(--s-4)}
.mt-5{margin-top:var(--s-5)}.mt-6{margin-top:var(--s-6)}.mt-7{margin-top:var(--s-7)}
.text-center{text-align:center}.text-gold{color:var(--gold-deep)}
.measure{max-width:62ch}.measure-center{max-width:62ch;margin-left:auto;margin-right:auto}
.section-head{max-width:640px;margin-bottom:var(--s-7)}
.section-head--center{margin-left:auto;margin-right:auto;text-align:center}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: var(--r-full);
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), color var(--tr);
  white-space: nowrap; line-height: 1; cursor: pointer; border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--green-ink); box-shadow: var(--sh-gold); }
.btn--gold:hover { background: var(--gold-bright); color: var(--green-ink); transform: translateY(-2px); }
.btn--forest { background: var(--green-deep); color: #fff; }
.btn--forest:hover { background: var(--green-ink); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--green-deep); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green-deep); background: var(--paper); color: var(--green-deep); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn--ghost-light:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-full);
  background: var(--leaf-soft); color: var(--green);
}
.badge--platinum { background: #E7EAF0; color: #3A4356; }
.badge--gold     { background: var(--gold-soft); color: var(--gold-deep); }
.badge--silver   { background: #ECEEF1; color: #5A636E; }
.badge--bronze   { background: #F0E6D8; color: #8A6A3E; }
.badge--leader   { background: var(--green-deep); color: var(--gold-bright); }
.badge--new      { background: var(--green-soft); color: var(--green); }
.badge--dot::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }

/* ── Cards ── */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--gold-soft); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--green-deep); color: var(--gold-bright);
  font-family: var(--display); font-size: 1.5rem; margin-bottom: var(--s-4);
}

/* ── Member tile ── */
.member-tile { display: flex; flex-direction: column; gap: var(--s-3); }
.member-tile__seal {
  width: 50px; height: 50px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center; font-family: var(--display);
  font-weight: 600; font-size: 1.35rem; color: #fff;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
}
.member-tile__head { display: flex; align-items: flex-start; gap: var(--s-3); }
.member-tile__id { flex: 1; min-width: 0; }
.member-tile__head .badge { flex: none; margin-top: 2px; }
.member-tile__name { font-family: var(--display); font-weight: 600; font-size: 1.06rem; color: var(--green-deep); line-height: 1.18; display: inline-block; }
a.member-tile__name:hover { color: var(--green); }
.member-tile__meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.member-tile__tag { font-size: .88rem; color: var(--slate-mid); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.member-tile__facts { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; }
.member-tile__row { display: inline-flex; align-items: center; gap: 7px; color: var(--slate-mid); font-weight: 500; overflow-wrap: anywhere; }
.member-tile__row:hover { color: var(--green); }
.member-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-2); flex-wrap: wrap; }
.member-tile.card { height: 100%; padding: var(--s-5); }
.dir-grid .member-tile__name { word-break: normal; overflow-wrap: anywhere; }

/* ── Forms ── */
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); background: var(--paper); color: var(--ink); transition: border-color var(--tr);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}

/* ── Pill input (search / concierge bar) ── */
.pill-input {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--r-full); padding: 6px 6px 6px 22px; box-shadow: var(--sh-md);
}
.pill-input input { flex: 1; border: none; background: none; outline: none; font-size: 1.02rem; }
.pill-input input::placeholder { color: var(--muted); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--green-deep); border-bottom: 2px solid var(--gold); }
.site-header__top { background: var(--green-ink); color: rgba(255,255,255,.85); font-size: .82rem; }
.site-header__top .container { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.site-header__top-meta { display: flex; gap: var(--s-5); }
.site-header__top-meta span { display: inline-flex; align-items: center; gap: 6px; }
.site-header__top-actions { display: flex; align-items: center; gap: var(--s-3); }
.site-header__top-actions a { color: rgba(255,255,255,.85); font-weight: 500; }
.site-header__top-actions a:hover { color: var(--gold-bright); }
@media (max-width: 820px) { .site-header__top-meta { display: none; } }

.site-header__main {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: 78px;
}

.brand { display: flex; align-items: center; gap: var(--s-3); }
.brand__seal {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--gold);
  color: var(--green-ink); font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -.02em; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25);
}
/* real chamber seal — black corners of the PNG are clipped by the circle */
.brand__logo {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  object-fit: cover; background: var(--green-char);
  box-shadow: 0 0 0 2px var(--gold), var(--sh-sm);
}
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1rem; color: #fff; line-height: 1.05; }
.brand__sub { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); }

.nav { display: flex; align-items: center; gap: 13px; }
.nav > a { color: rgba(255,255,255,.82); font-weight: 500; font-size: .85rem; position: relative; white-space: nowrap; }
.nav > a:hover { color: #fff; }
.nav > a.active { color: var(--gold-bright); }
.nav > a:not(.nav-cta).active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -28px; height: 2px; background: var(--gold);
}
.menu-toggle { display: none; color: #fff; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; }

.lang-switch { display: inline-flex; align-items: center; gap: 4px; }
.lang-switch a { color: rgba(255,255,255,.7); font-family: var(--mono); font-size: .72rem; font-weight: 500; padding: 2px 5px; border-radius: 4px; }
.lang-switch a.active { color: var(--green-ink); background: var(--gold-bright); }

@media (max-width: 1260px) {
  .nav { position: fixed; inset: 118px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--green-ink); padding: var(--s-5); gap: var(--s-2); border-bottom: 2px solid var(--gold);
    box-shadow: var(--sh-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity var(--tr), transform var(--tr), visibility var(--tr); }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { padding: 12px 8px; }
  .nav > a.active::after { display: none; }
  .menu-toggle { display: block; }
}

/* ============================================================
   HERO  (distinctive parity hero)
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--green-deep); color: #fff; }
.hero::after {
  /* heritage gold "century" arc */
  content: ""; position: absolute; right: -180px; top: -180px; width: 620px; height: 620px;
  border-radius: 50%; border: 1.5px solid rgba(201,162,39,.22);
  box-shadow: 0 0 0 60px rgba(201,162,39,.05); pointer-events: none;
}
/* hero event-photo slider (admin-managed; falls back to solid hero when empty) */
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__overlay { position: absolute; inset: 0; z-index: 1;
  /* Left stays dark for legible copy; right lightens so the warm chamber photos
     glow through. Soft bottom vignette for depth + dot contrast. */
  background:
    linear-gradient(102deg, rgba(14,42,22,.90) 0%, rgba(20,60,32,.72) 42%, rgba(30,86,49,.40) 78%, rgba(95,179,100,.20) 100%),
    linear-gradient(to top, rgba(14,42,22,.42), transparent 38%); }
.hero__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero__dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45); border: none; cursor: pointer; padding: 0; transition: background var(--tr); }
.hero__dots button.is-active { background: var(--gold-bright); }

.hero__inner { position: relative; z-index: 2; padding: var(--s-10) 0 var(--s-9); display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-8); align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-bright); font-weight: 500; }
.hero__lead { color: rgba(255,255,255,.86); font-size: 1.25rem; max-width: 46ch; margin-top: var(--s-5); }
.hero__cta { margin-top: var(--s-6); }
.hero__concierge { margin-top: var(--s-6); max-width: 480px; }
.hero__concierge .pill-input { background: rgba(255,255,255,.97); }
.hero__stats { display: flex; gap: var(--s-7); margin-top: var(--s-8); }
.hero__stat-num { font-family: var(--display); font-size: 2.4rem; font-weight: 600; color: var(--gold-bright); line-height: 1; }
.hero__stat-lbl { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: 4px; }

/* Hero feature card (right column) */
.hero__feature {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl); padding: var(--s-6); backdrop-filter: blur(4px);
}
.hero__feature-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); }
/* Homepage "Featured this week" box: solid card for readability over the busy
   hero. Scoped to .hero so the reused .hero__feature on dark sections (e.g.
   "Support the community") keeps its translucent, light-text treatment. */
.hero .hero__feature { background: #fff; border-color: var(--gold-soft, #e6dcbf);
  box-shadow: 0 18px 44px rgba(0,0,0,.34); backdrop-filter: none; }
.hero .hero__feature .hero__feature-label { color: var(--gold-deep, #b8860b); }
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; padding: var(--s-8) 0; }
  .hero__feature { display: none; }
}

/* ── geo banner ── */
.geo-banner {
  background: var(--gold-soft); border-bottom: 1px solid var(--gold);
  font-size: .9rem; color: var(--gold-deep);
}
.geo-banner .container { display: flex; align-items: center; justify-content: center; gap: var(--s-3); height: 42px; }
.geo-banner strong { color: var(--green-deep); }
.geo-banner button { color: var(--gold-deep); font-weight: 600; text-decoration: underline; }

/* ── filter chips ── */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  font-size: .88rem; font-weight: 500; padding: 7px 15px; border-radius: var(--r-full);
  background: var(--paper); border: 1.5px solid var(--line); color: var(--slate); cursor: pointer; transition: all var(--tr);
}
.chip:hover { border-color: var(--gold); color: var(--green-deep); }
.chip.active { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

/* ── Event row / list ── */
.event-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: var(--s-5); align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-5); transition: box-shadow var(--tr), border-color var(--tr);
}
.event-row:hover { box-shadow: var(--sh-md); border-color: var(--gold-soft); }
.event-date { text-align: center; border-radius: var(--r-md); background: var(--cream-deep); padding: var(--s-3) var(--s-2); }
.event-date__mo { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.event-date__day { font-family: var(--display); font-size: 1.7rem; font-weight: 600; color: var(--green-deep); line-height: 1; }

/* ── view toggle ── */
.view-toggle { display: inline-flex; background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--r-full); padding: 4px; }
.view-toggle button { padding: 8px 18px; border-radius: var(--r-full); font-weight: 600; font-size: .9rem; color: var(--slate-mid); }
.view-toggle button.active { background: var(--green-deep); color: #fff; }

/* ── month calendar grid ── */
.cal-head { font-family: var(--display); font-size: 1.5rem; color: var(--green-deep); margin-bottom: var(--s-4); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cal-dow { background: var(--green-deep); color: #fff; text-align: center; padding: 8px 0; font-size: .72rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.cal-cell { background: var(--paper); min-height: 96px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal-cell--empty { background: var(--cream); }
.cal-day { font-family: var(--display); font-weight: 600; color: var(--slate-mid); font-size: .9rem; }
.cal-event { font-size: .72rem; background: var(--leaf-soft); color: var(--green-deep); padding: 3px 6px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 2px solid var(--green); }
.cal-event:hover { background: var(--green); color: #fff; }
@media (max-width: 700px) {
  .cal-cell { min-height: 64px; font-size: .8rem; }
  .cal-event { font-size: 0; padding: 4px; } /* dots-only on mobile */
  .cal-event::before { content: "•"; font-size: 1rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--green-ink); color: rgba(255,255,255,.72); padding: var(--s-9) 0 var(--s-6); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-6); padding-bottom: var(--s-7); border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer a { color: rgba(255,255,255,.72); font-size: .95rem; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer__brand p { color: rgba(255,255,255,.66); max-width: 38ch; }
.footer-social { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background .2s, transform .2s, border-color .2s; }
.footer-social a:hover { background: var(--green-deep); border-color: var(--gold-bright); transform: translateY(-2px); }
.footer-social img { display: block; width: 18px; height: 18px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-top: var(--s-5); font-size: .85rem; color: rgba(255,255,255,.55); }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ── Featured placement (sponsored member spot on resource pages) ── */
.featured-spot {
  position: relative; display: flex; align-items: center; gap: var(--s-5);
  background: linear-gradient(120deg, #fff 0%, var(--cream, #faf6ea) 70%);
  border: 1px solid var(--gold-soft, #e6dcbf); border-left: 4px solid var(--gold, #c9a227);
  border-radius: var(--r-lg, 16px); padding: var(--s-5) var(--s-6);
  box-shadow: 0 10px 30px rgba(27, 51, 38, .08); margin-bottom: var(--s-6);
}
.featured-spot__badge {
  position: absolute; top: -11px; left: 18px; background: var(--gold-deep, #8c6e14); color: #fff;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.featured-spot__logo { flex: none; width: 116px; height: 72px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line, #e8e3d5); border-radius: var(--r-md); padding: 6px 8px; }
.featured-spot__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.featured-spot__body { flex: 1; min-width: 220px; }
.featured-spot__name { font-family: var(--display); font-size: 1.18rem; font-weight: 700; color: var(--green-ink); text-decoration: none; }
.featured-spot__name:hover { color: var(--green-deep); }
.featured-spot__tag { margin-top: 4px; color: var(--slate-mid); font-size: .94rem; }
.featured-spot__cta { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
@media (max-width: 640px) { .featured-spot { flex-wrap: wrap; } .featured-spot__cta { flex-direction: row; width: 100%; } }

/* ── Join / list-your-business CTA band ── */
.join-cta { background: var(--green-ink); border-radius: var(--r-lg, 16px); margin-top: var(--s-8);
  background-image: radial-gradient(ellipse at 85% 10%, rgba(201, 162, 39, .22), transparent 55%); }
.join-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
  flex-wrap: wrap; padding: var(--s-7) var(--s-7); }
.join-cta h2 { color: #fff; margin-bottom: 6px; }
.join-cta p { color: rgba(255,255,255,.78); max-width: 52ch; }
.join-cta__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ── Community guide cards ── */
.guide-card { text-decoration: none; color: inherit; display: block; }
.guide-card__emoji { font-size: 2rem; margin-bottom: var(--s-2); }

/* ── Real-estate listings ── */
.listing-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--s-3); }
.listing-card__facts { font-family: var(--display); font-weight: 700; color: var(--green-deep); margin-top: 4px; }
.chip--active { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }

/* ── notice / data flag ── */
.notice {
  border-left: 3px solid var(--amber); background: var(--gold-soft);
  padding: var(--s-3) var(--s-4); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: .9rem; color: var(--gold-deep);
}

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* never let a disabled reveal animation leave content invisible */
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── reveal on load (staggered) ── */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1{animation-delay:.05s}.d2{animation-delay:.13s}.d3{animation-delay:.21s}.d4{animation-delay:.29s}.d5{animation-delay:.37s}

/* ── Event preview cards — image-forward "upcoming events" (homepage) ── */
.evp { display: grid; grid-template-columns: 248px 1fr; gap: var(--s-5); align-items: stretch;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; transition: box-shadow .22s ease, transform .22s ease; }
.evp:hover { box-shadow: 0 16px 40px rgba(20, 60, 32, .15); transform: translateY(-3px); }
.evp__media { background-size: cover; background-position: center; min-height: 184px; background-color: var(--leaf-soft); }
.evp__media--ph { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--forest), var(--green-ink)); color: #fff; }
.evp__media--ph span { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; opacity: .82; }
.evp__media--ph strong { font-family: var(--display); font-size: 2.8rem; line-height: 1; }
.evp__media--ph .evp__ph-logo { width: 74px; height: 74px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.35)); }
.evp__body { padding: var(--s-5) var(--s-5) var(--s-5) 0; display: flex; flex-direction: column; gap: 4px; }
.evp__title { font-family: var(--display); font-size: 1.42rem; line-height: 1.15; margin: 6px 0 2px; color: var(--green-ink); }
.evp__meta { color: var(--gold-deep, #b8860b); font-weight: 600; font-size: .92rem; }
.evp__sum { color: var(--slate-mid); margin: 4px 0 0; font-size: .96rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.evp__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: var(--s-4); }
@media (max-width: 640px) {
  .evp { grid-template-columns: 1fr; }
  .evp__media { min-height: 210px; }
  .evp__body { padding: 0 var(--s-5) var(--s-5); }
}

/* ── Membership pricing tiers (join.html) ── */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 940px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card { position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6) var(--s-5); display: flex; flex-direction: column;
  gap: 8px; text-align: center; transition: box-shadow .22s ease, transform .22s ease; }
.pricing-card:hover { box-shadow: 0 14px 36px rgba(20, 60, 32, .13); transform: translateY(-3px); }
.pricing-card--pop { border-color: var(--gold); box-shadow: 0 12px 30px rgba(228, 190, 69, .22); }
.pricing-card__flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--green-ink); font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--r-full); white-space: nowrap; }
.pricing-card__name { font-family: var(--display); font-size: 1.18rem; color: var(--green-ink); margin: 4px 0 0; }
.pricing-card__amt { font-family: var(--display); font-size: 2.5rem; line-height: 1; color: var(--forest); margin: 6px 0; }
.pricing-card__amt span { font-family: var(--body, inherit); font-size: .9rem; font-weight: 500; color: var(--slate-mid); }
.pricing-card__blurb { color: var(--slate-mid); font-size: .9rem; line-height: 1.5; margin: 0 0 var(--s-3); flex: 1; }
.pricing-card .btn { margin-top: auto; }

/* ── Directory: collapsed green dropdown filters + quadrant grid ── */
.dir-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.dir-filters { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.dd { position: relative; }
.dd__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green-deep); color: #fff;
  border: none; border-radius: var(--r-full); padding: 10px 18px; font-weight: 600; font-size: .9rem; cursor: pointer;
  box-shadow: var(--sh-sm); transition: background .2s, transform .2s; }
.dd__btn:hover { background: var(--green); transform: translateY(-1px); }
.dd__btn.is-set { background: var(--gold-deep); }
.dd__caret { font-size: .7rem; opacity: .85; }
.dd__menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; min-width: 232px; max-height: 60vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 6px; }
.dd__opt { display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 9px 12px; border-radius: var(--r-sm); font-size: .9rem; color: var(--ink); }
.dd__opt:hover { background: var(--cream-deep); }
.dd__opt.is-active { background: var(--leaf-soft); color: var(--green-deep); font-weight: 600; }
.dd__clear { background: none; border: none; color: var(--gold-deep); font-weight: 600; cursor: pointer; font-size: .88rem; padding: 6px 4px; }
.dd__clear:hover { text-decoration: underline; }
/* Denser "quadrant" directory: smaller boxes, more per row (Chamber feedback). */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }
.dir-grid .member-tile.card { padding: var(--s-4); gap: var(--s-2); }
.dir-grid .member-tile__seal { width: 44px; height: 44px; font-size: 1.1rem; }
@media (max-width: 560px) { .dir-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }

/* ── Member video embed (responsive 16:9) ── */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ElevenLabs "Ask Wendy" ConvAI widget — hidden on phones (crowds small screens) */
@media (max-width: 767px) { elevenlabs-convai { display: none !important; } }

/* ── Leaders wall — tiered leader/sponsor board at the bottom of every page ── */
.leaders-wall { background: var(--paper); padding: var(--s-7) 0 var(--s-8); border-top: 1px solid var(--line-soft); }
.leaders-wall__title { font-family: var(--display); font-size: 1.5rem; color: var(--green-deep); margin: 0 0 var(--s-3); padding-bottom: var(--s-3); border-bottom: 2px solid var(--green); }
.leader-wall-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: var(--s-6) var(--s-5); }
.leader-cell { flex: none; width: 132px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.leader-cell__tier { font-family: var(--display); font-size: .82rem; font-weight: 600; color: var(--green-deep); }
.leader-cell__logo { width: 132px; height: 78px; display: grid; place-items: center; background: #fff; border-radius: var(--r-sm); padding: 6px 10px; transition: transform .2s; }
.leader-cell:hover .leader-cell__logo { transform: translateY(-3px); }
.leader-cell__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.leader-wall__rule { border: none; border-top: 2px solid var(--green); margin: var(--s-6) 0; }
@media (max-width: 560px) { .leader-cell, .leader-cell__logo { width: 108px; } .leader-cell__logo { height: 66px; } }

/* ════════ Eye-comfort & UX polish pass ════════ */

/* Balanced headlines + tidy paragraph rag (no orphans) where supported */
h1, h2, h3, .section-head .lead { text-wrap: balance; }
p, .lead, .evp__sum, .member-tile__tag { text-wrap: pretty; }

/* Kicker: wrap gracefully instead of breaking mid-phrase under the dash */
.kicker { flex-wrap: wrap; row-gap: 4px; line-height: 1.5; }
@media (max-width: 640px) { .kicker { letter-spacing: .14em; font-size: .68rem; } }

/* Anchor jumps land below the sticky header */
[id] { scroll-margin-top: 118px; }

/* Consistent, accessible focus ring (keyboard only — no ring on mouse click) */
a:focus-visible, button:focus-visible, .chip:focus-visible, .btn:focus-visible,
[tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

/* Sticky header lifts off the page once you scroll */
.site-header { transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(14,42,22,.18); }

/* Cards end flush — no stray bottom margins making ragged card bottoms */
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* Warm, slim scrollbar */
html { scrollbar-color: var(--gold) var(--cream-deep); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--cream-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--gold-deep)); border-radius: 8px; border: 2px solid var(--cream-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* Gentle rise-in as sections scroll into view (added by partials.js; below-fold only) */
.sr { opacity: 0; transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.sr.sr-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sr { opacity: 1; transform: none; transition: none; } }

/* Fixed-attachment grain janks on mobile GPUs — scroll it instead */
@media (max-width: 820px) { body { background-attachment: scroll; } }

/* Hero copy legibility over bright photo slides */
.hero .kicker { color: var(--gold-bright); text-shadow: 0 1px 10px rgba(14,42,22,.55); }
.hero .kicker::before { background: var(--gold-bright); }
.hero h1 { text-shadow: 0 2px 18px rgba(14,42,22,.45); }
.hero__lead, .hero__areas { text-shadow: 0 1px 10px rgba(14,42,22,.5); }

/* Grid/flex blowout guards — inputs' intrinsic size was pushing the hero copy
   column ~20px past the viewport on phones (clipped text at the right edge) */
.hero__inner > * { min-width: 0; }
.pill-input input { min-width: 0; }

/* .card resets background to paper LATER in the sheet than .bg-forest sets it
   dark — so `card bg-forest` rendered white text on a light card (invisible) on
   join.html and the member dashboard. Specificity fix: */
.card.bg-forest { background: var(--green-deep); border-color: var(--green-deep); }

/* Leader cell company name (matches the legacy board listing style) */
.leader-cell__name { font-size: .74rem; font-weight: 600; color: var(--slate-mid); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.leader-cell:hover .leader-cell__name { color: var(--green-deep); }

/* ── Groups & networks ── */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: var(--s-5); }
.group-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; color: inherit; }
.group-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20,60,32,.15); }
.group-card__media { height: 170px; background: linear-gradient(140deg, var(--forest, #1E5631), var(--green-ink)); background-size: cover; background-position: center top; }
.group-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.group-card__body h3 { font-size: 1.22rem; line-height: 1.2; }
.group-card__tag { color: var(--slate-mid); font-size: .94rem; flex: 1; margin: 0; }
.group-card .btn { align-self: flex-start; margin-top: var(--s-2); }

.group-hero { position: relative; background: var(--green-ink); background-size: cover; background-position: center; }
.group-hero__overlay { position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,42,22,.92) 0%, rgba(20,60,32,.74) 50%, rgba(30,86,49,.42) 100%); }
.group-hero__inner { position: relative; z-index: 1; padding: var(--s-9) var(--s-5); }
.group-hero h1 { text-shadow: 0 2px 18px rgba(14,42,22,.5); }
@media (max-width: 880px) { #groupCols { grid-template-columns: 1fr !important; } #groupCols aside { position: static !important; } }

/* ── Photo gallery grid (groups + gallery page) ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }
.gallery-grid a { display: block; border-radius: var(--r-md); overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid figcaption, .gallery-card__cap { font-size: .82rem; color: var(--slate-mid); padding: 6px 2px 0; }

/* gallery page variant — larger tiles + captions */
.gallery-grid--lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-5); }
.gallery-card { margin: 0; }
.gallery-card a { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); cursor: zoom-in; }

/* ── Follow the Chamber (social section) ── */
.social-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-5); align-items: start; }
@media (max-width: 880px) { .social-grid { grid-template-columns: 1fr; } }
.social-card { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); color: inherit; }
.social-card > span:nth-child(2) { flex: 1; line-height: 1.35; }
.social-card .btn { flex: none; }
.social-card__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 1.3rem; }

/* ── Event detail modal — refined, branded "program card" (Est. 1930) ── */
.ev-modal { animation: evFade .22s ease; }
@keyframes evFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes evRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.ev-card {
  background: var(--paper); width: 100%; max-width: 660px; border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); position: relative; overflow: hidden;
  border: 1px solid var(--line); animation: evRise .3s cubic-bezier(.2,.7,.3,1) both;
}
.ev-card__accent { height: 6px; background: linear-gradient(90deg, var(--green-ink), var(--green) 45%, var(--gold) 100%); }
.ev-card__x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.7); backdrop-filter: blur(4px); font-size: 1.4rem; line-height: 1;
  cursor: pointer; color: var(--green-ink); z-index: 2; transition: background .15s, transform .15s; }
.ev-card__x:hover { background: #fff; transform: rotate(90deg); }
.ev-card__body { padding: 26px 30px 28px; }
.ev-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ev-card__seal { width: 46px; height: 46px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--gold); }
.ev-card__kicker { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); display: block; margin-bottom: 3px; }
.ev-card__title { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; margin: 0; color: var(--green-ink); }
.ev-card__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 0 4px; border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.ev-card__meta > div { font-size: .95rem; color: var(--slate); font-weight: 600; }
.ev-card__meta .ev-card__when { color: var(--green-deep); }
.ev-card__flyer { display: block; width: 100%; max-height: 560px; object-fit: contain; border-radius: var(--r-lg);
  margin: 0 0 16px; background: var(--cream-deep); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.ev-card__imgs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.ev-card__imgs img { width: 120px; height: 88px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }
.ev-card__desc { white-space: pre-wrap; line-height: 1.7; color: var(--slate); margin: 0 0 18px; }
.ev-card__row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ev-card__foot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 16px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 12px; }
.ev-card__foot .ev-card__cta { margin-left: auto; }
@media (max-width: 560px) { .ev-card__body { padding: 22px 18px 24px; } .ev-card__title { font-size: 1.4rem; } .ev-card__foot .ev-card__cta { margin-left: 0; width: 100%; } .ev-card__foot .ev-card__cta .btn { width: 100%; } }

/* ── Member profile: Meet the team ── */
.meet-team h3 { margin-bottom: var(--s-4); }
.meet-team .member-tile__seal { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
@media (max-width: 640px) {
  .meet-team .grid-2 { grid-template-columns: 1fr; }
}

/* Event image layered over the logo placeholder; removed on error → logo shows. */
.evp__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-card__flyer--ph { object-fit: contain !important; background: linear-gradient(140deg, var(--forest), var(--green-ink)); padding: 22px; }
