/* SFVAA.org rebuild — single stylesheet, tokens from src/design-tokens.json */

/* ---------- fonts (self-hosted variable woff2) ---------- */
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-var.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/Lora-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: optional;
  ascent-override: 105%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 98%;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --text: #22292e;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #fafbfc;
  --primary: #6d8fe7;
  --primary-dark: #5a7bd0;
  --primary-btn: #4a66c8;
  --primary-btn-dark: #3f57b4;
  --orange: #ff8414;
  --orange-dark: #e87206;
  --tint: #eefbfa;
  --neutral-mid: #6b7280;
  --neutral-line: #e5e7eb;
  --input-border: #c8cdd4;
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-bg-scrolled: rgba(255, 255, 255, 0.96);
  --footer-bg: #f6f8fb;
  --notice-bg: #fff7ef;
  --online-bg: #eef4ff;
  --body-font: 'DM Sans', system-ui, sans-serif;
  --heading-font: 'Lora', Georgia, serif;
  --max: 1180px;
  --prose: 800px;
  /* depth + motion */
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(34,41,46,.06), 0 2px 6px rgba(34,41,46,.06);
  --shadow-md: 0 8px 26px rgba(34,41,46,.09);
  --shadow-lg: 0 22px 50px rgba(34,41,46,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --text: #e8ecf1;
  --bg: #0f1419;
  --surface: #1a222c;
  --surface-muted: #151b24;
  --primary: #8aa8f0;
  --primary-dark: #9bb5f2;
  --primary-btn: #6d8fe7;
  --primary-btn-dark: #5a7bd0;
  --tint: #151f28;
  --neutral-mid: #9aa5b4;
  --neutral-line: #2a3544;
  --input-border: #3a4656;
  --header-bg: rgba(15, 20, 25, 0.92);
  --header-bg-scrolled: rgba(15, 20, 25, 0.98);
  --footer-bg: #0c1016;
  --notice-bg: #2a2018;
  --online-bg: #1a2438;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.22);
  --shadow-md: 0 8px 26px rgba(0,0,0,.32);
  --shadow-lg: 0 22px 50px rgba(0,0,0,.42);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, h4, h5 {
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h4 { font-size: 1.2rem; font-family: var(--body-font); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary-dark); }
a:hover { color: var(--primary); }
img:not(.logo-img) { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: #fff; padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 16px 28px;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: var(--primary-btn);
  box-shadow: 0 2px 8px rgba(74,102,200,.30);
  transition: background-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { background: var(--primary-btn-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(74,102,200,.40); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(74,102,200,.30); }
.btn-orange { background: var(--orange); box-shadow: 0 2px 8px rgba(255,132,20,.32); }
.btn-orange:hover { background: var(--orange-dark); box-shadow: 0 10px 24px rgba(255,132,20,.44); }
.btn-secondary {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--neutral-line);
}
.btn-secondary:hover { background: var(--tint); color: var(--primary-dark); box-shadow: inset 0 0 0 1.5px var(--primary), 0 10px 24px rgba(34,41,46,.10); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--neutral-line);
  box-shadow: 0 1px 0 rgba(34,41,46,.04);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: 0 1px 0 rgba(34,41,46,.04), 0 8px 26px rgba(34,41,46,.10);
}
[data-theme="dark"] .site-header.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 8px 26px rgba(0,0,0,.35);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  min-height: 68px;
}
.logo {
  display: inline-flex; align-items: center; flex-shrink: 0;
  line-height: 0; text-decoration: none;
}
.logo-frame {
  position: relative; display: block;
  width: 141px; height: 36px;
}
.logo-img {
  position: absolute; left: 0; top: 50%;
  height: 36px; width: auto; max-width: 141px;
  transform: translateY(-50%);
}
.logo .logo-img-light { transform: translateY(calc(-50% + 1px)); }
.logo .logo-img-dark { transform: translateY(-50%); }
.logo .logo-img-light { display: block; }
.logo .logo-img-dark { display: none; }
[data-theme="dark"] .logo .logo-img-light { display: none; }
[data-theme="dark"] .logo .logo-img-dark { display: block; }

/* theme toggle — icon only, far right */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: 8px;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--neutral-line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary-dark); }
.theme-toggle:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.theme-icon { display: block; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }
@media (min-width: 1024px) {
  .site-nav { margin-left: auto; }
}
.nav-toggle {
  display: none;
  font: 700 16px var(--body-font);
  background: none; border: 2px solid var(--text); color: var(--text);
  padding: 8px 14px; cursor: pointer; align-items: center; gap: 8px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--text); position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-nav { position: relative; }   /* containing block for mega panels */
.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.nav-menu > li { display: flex; align-items: center; }
/* mega items go position:static so the panel's containing block is .site-nav
   (full nav width), not the individual <li>. */
.nav-item.has-mega { position: static; }

/* top-level triggers (buttons) and the Contact link share one look */
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 15px var(--body-font); color: var(--text);
  background: none; border: 0; cursor: pointer;
  padding: 10px 12px; text-decoration: none; white-space: nowrap;
  border-radius: var(--radius);
}
.nav-link:hover { color: var(--primary-dark); }
.nav-item.has-mega > .nav-link[aria-expanded="true"] { color: var(--primary-dark); }
.nav-link .caret {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s var(--ease);
}
.nav-link[aria-expanded="true"] .caret { transform: translateY(1px) rotate(-135deg); }

.nav-cta a.btn { padding: 8px 14px; font-size: 13px; border-radius: 4px; }
.nav-cta:first-of-type { margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--neutral-line); }
.nav-cta + .nav-cta { margin-left: 4px; }

/* ---------- Mega menu ---------- */
.mega {
  position: absolute; top: calc(100% + 1px); left: 0; right: 0;
  background: var(--surface); border-top: 2px solid var(--primary);
  box-shadow: 0 18px 40px rgba(34,41,46,.14);
  z-index: 95;
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s linear .15s;
}
.nav-item.has-mega.open > .mega {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s;
}
.mega-inner {
  display: flex; gap: 48px;
  max-width: var(--max); margin: 0 auto; padding: 32px 40px;
}
.mega-col { min-width: 150px; }
.mega-head {
  font: 700 12px var(--body-font); letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 12px;
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col a {
  display: block; padding: 7px 0; font-size: 15px; color: var(--text);
  text-decoration: none;
  transition: color .15s var(--ease), padding-left .15s var(--ease);
}
.mega-col a:hover, .mega-col a:focus-visible { color: var(--primary-dark); padding-left: 4px; }
.mega .flag { margin-right: 3px; }

@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .site-nav { position: static; margin-left: auto; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--neutral-line);
    padding: 8px 0 16px; max-height: calc(100vh - 100px); overflow-y: auto;
  }
  .site-nav.open .nav-menu { display: flex; }
  .nav-menu > li { display: block; }
  .nav-link {
    width: 100%; justify-content: space-between;
    padding: 14px 24px; font-size: 17px;
  }
  /* mobile: panel collapses to an inline accordion (no flyout, no animation) */
  .mega {
    position: static; display: none;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    box-shadow: none; border-top: 0; background: var(--tint);
    transition: none;
  }
  .nav-item.has-mega.open > .mega { display: block; }
  .mega-inner { flex-direction: column; gap: 14px; max-width: none; padding: 6px 0 12px; }
  .mega-col { min-width: 0; padding: 0 24px; }
  .mega-head { margin: 8px 0 4px; }
  .mega-col a { padding: 10px 0; font-size: 16px; }
  .mega-col a:hover, .mega-col a:focus-visible { padding-left: 0; }
  .nav-cta { padding: 12px 24px 0; }
  .nav-cta:first-of-type { border-left: 0; margin-left: 0; padding-left: 24px; }
  .nav-cta + .nav-cta { margin-left: 0; }
}

/* ---------- hero (homepage) ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #22292e;
  overflow: hidden;
}
/* photographic layer — separated so it can slowly drift (ken burns) */
.hero::before {
  content: ''; position: absolute; inset: -2%;
  background: url('/assets/uploads/2022/05/Warner-Center-Hero-Image-1200w.webp') center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-zoom 22s var(--ease) forwards;
}
/* legibility + depth gradient (darker top & bottom, lighter middle) */
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,21,33,.66) 0%, rgba(16,21,33,.30) 38%, rgba(16,21,33,.40) 64%, rgba(16,21,33,.74) 100%),
    radial-gradient(120% 90% at 50% 40%, rgba(16,21,33,0) 40%, rgba(16,21,33,.45) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 96px 20px; max-width: 980px; }
.hero h1 {
  color: #fff; font-weight: 400; margin-bottom: 0.35em;
  font-family: Georgia, 'Times New Roman', serif;
  text-shadow: 0 2px 30px rgba(0,0,0,.30);
}
.hero .hero-sub {
  color: #eaf1ff; font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.3rem, 2.6vw, 2rem); margin-bottom: 1.4em;
  letter-spacing: .01em;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* glassy secondary CTA reads beautifully over the photo */
.hero-actions .btn:not(.btn-orange) {
  background: rgba(74, 102, 200, .92);
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  color: #fff;
}
.hero-actions .btn:not(.btn-orange):hover {
  background: var(--primary-btn-dark);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

/* hero meeting search — WebMCP declarative tool */
.hero-find-form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 22px; max-width: 520px; margin-left: auto; margin-right: auto;
}
.hero-find-form input[type="search"] {
  flex: 1 1 220px; min-width: 180px; padding: 14px 16px; border: 0; border-radius: var(--radius);
  font: inherit; font-size: 16px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* gentle scroll cue */
.hero-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 2;
  width: 26px; height: 42px; transform: translateX(-50%);
  border: 2px solid rgba(255,255,255,.7); border-radius: 14px;
  animation: rise-in 1s var(--ease) 1s both;
}
.hero-cue::before {
  content: ''; position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: rgba(255,255,255,.85);
  animation: cue-bob 1.8s var(--ease) infinite;
}

@keyframes hero-zoom { to { transform: scale(1.12); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cue-bob { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(12px); opacity: .3; } }

/* ---------- inner page banner ---------- */
.page-banner {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(135deg, var(--primary) 0%, #4a66c8 58%, #3f57b4 100%);
  color: #fff; text-align: center;
  padding: clamp(54px, 8.5vw, 104px) 20px;
}
/* soft luminous orb — matches the CTA-band atmosphere */
.page-banner::after {
  content: ''; position: absolute; right: -90px; bottom: -130px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,132,20,.26) 0%, rgba(255,132,20,0) 70%);
  pointer-events: none;
}
.page-banner h1 {
  color: #fff; margin: 0; position: relative; z-index: 1;
  text-shadow: 0 2px 24px rgba(0,0,0,.18);
  animation: rise-in .7s var(--ease) both;
}
.page-banner .breadcrumbs {
  position: relative; z-index: 1;
  margin: 0 auto 14px; max-width: var(--max);
  animation: rise-in .55s var(--ease) both;
}
.page-banner .breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0;
  font-size: 14px; font-weight: 600; line-height: 1.4;
}
.page-banner .breadcrumbs li { display: inline-flex; align-items: center; color: rgba(255,255,255,.92); }
.page-banner .breadcrumbs li + li::before {
  content: '/'; margin: 0 10px; color: rgba(255,255,255,.55); font-weight: 400;
}
.page-banner .breadcrumbs a {
  color: rgba(255,255,255,.92); text-decoration: none;
}
.page-banner .breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.page-banner .breadcrumbs [aria-current="page"] span { color: #fff; }
.page-banner-sub {
  position: relative; z-index: 1; margin: 10px 0 0;
  color: rgba(255,255,255,.92); font-size: clamp(1rem, 2vw, 1.25rem);
  animation: rise-in .65s var(--ease) both;
}

/* ---------- generic sections ---------- */
.section { padding: clamp(40px, 7vw, 84px) 20px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-tint { background: var(--tint); }
.section-label {
  font-family: var(--body-font); font-weight: 700; font-size: 14px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange);
  display: block; margin-bottom: 10px;
}
.prose { max-width: var(--prose); margin: 0 auto; }
.prose img { margin: 1.2em 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.prose iframe { max-width: 100%; border-radius: var(--radius-lg); }
.center { text-align: center; }

/* card grid (homepage trio, resource cards) */
.card-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--neutral-line);
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card picture { display: block; }
.card img, .card picture img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .55s var(--ease); }
.card:hover img, .card:hover picture img { transform: scale(1.06); }
/* clip the image zoom to the card's top corners */
.card > img, .card > picture { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); overflow: hidden; }
.card > picture img { border-radius: 0; aspect-ratio: auto; }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3, .card-body .card-title { margin: 0; font-size: clamp(1.3rem, 2vw, 1.6rem); font-family: var(--heading-font); font-weight: 500; }
.h3-size { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.card-body .btn { align-self: flex-start; margin-top: auto; }

/* homepage "trust ribbon": a condensed card trio overlaps the bottom of the
   hero, breaking the seam. Sized so hero + ribbon sit above the fold. */
.section-ribbon { padding-top: 0; padding-bottom: clamp(32px, 5vw, 60px); }
.section-ribbon .section-inner { max-width: 1240px; }   /* wider, more spread out */
.section-ribbon .card-grid {
  position: relative; z-index: 5;
  gap: 30px;
  margin-top: clamp(-118px, -7.5vw, -84px);
}
/* condensed, squarer cards — fixed shorter image + tight body */
.section-ribbon .card { box-shadow: var(--shadow-lg); border-radius: var(--radius); }
.section-ribbon .card > img, .section-ribbon .card > picture img {
  height: 152px; aspect-ratio: auto;
  border-top-left-radius: var(--radius); border-top-right-radius: var(--radius);
}
.section-ribbon .card > picture { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.section-ribbon .card-body { padding: 18px 24px 22px; gap: 10px; }
.section-ribbon .card-body .card-title { font-size: clamp(1.12rem, 1.4vw, 1.34rem); font-family: Georgia, 'Times New Roman', serif; }
.section-ribbon .card-body p { font-size: 15px; line-height: 1.5; }

/* the scroll cue would collide with the ribbon — hide it on the homepage
   (markup/logic stays for any future inner-page hero) */
.home .hero-cue { display: none; }
.home .hero { padding-bottom: 56px; }

/* desktop: keep the entire hero + ribbon above the fold.
   hero height = viewport minus the card overhang below the hero. */
@media (min-width: 761px) {
  .home .hero {
    min-height: calc(100vh - 252px);
    min-height: calc(100svh - 252px);
    padding-bottom: 48px;
  }
}
@media (max-width: 900px) {
  .section-ribbon .card-grid { margin-top: -64px; }
  .home .hero { padding-bottom: 44px; }
}
@media (max-width: 560px) {
  .section-ribbon .card-grid { margin-top: -32px; }
  .home .hero { padding-bottom: 24px; }
  .section-ribbon .card > img, .section-ribbon .card > picture img { height: 190px; }   /* one column — give images presence */
}

/* two-column feature (mission, volunteer, etc.) */
.split {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: var(--max); margin: 0 auto;
}
.split img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }

/* framed image with an offset accent block for depth (homepage splits) */
.split-media { position: relative; }
.split-media::before {
  content: ''; position: absolute; z-index: 0;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, #4a66c8 100%);
  opacity: .14;
}
.split-media img { position: relative; z-index: 1; }
.split-media.accent-orange::before { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%); opacity: .16; }

/* hairline accent under section headings inside splits */
.split h2 { position: relative; }
.split h2::after {
  content: ''; display: block; width: 54px; height: 3px; margin-top: 14px;
  background: var(--orange); border-radius: 2px;
}

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 140% at 15% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(135deg, var(--primary) 0%, #4a66c8 60%, #3f57b4 100%);
  color: #fff; text-align: center;
  padding: clamp(52px, 8vw, 84px) 20px;
}
/* soft luminous orb for atmosphere */
.cta-band::after {
  content: ''; position: absolute; right: -80px; bottom: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,132,20,.30) 0%, rgba(255,132,20,0) 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); }
.cta-band .btn { background: var(--orange); box-shadow: 0 6px 18px rgba(0,0,0,.20); }
.cta-band .btn:hover { background: var(--orange-dark); box-shadow: 0 12px 28px rgba(0,0,0,.28); }

/* numbered list cards (12 steps / traditions / concepts) */
.num-list { list-style: none; margin: 0 auto; padding: 0; max-width: var(--prose); counter-reset: num; }
.num-list > li {
  counter-increment: num;
  position: relative;
  padding: 22px 26px 22px 86px;
  border: 1px solid var(--neutral-line);
  background: var(--surface);
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(34,41,46,.05);
}
.num-list > li::before {
  content: counter(num);
  position: absolute; left: 24px; top: 22px;
  font-family: var(--heading-font); font-size: 30px; color: var(--primary);
  width: 44px; height: 44px; line-height: 44px; text-align: center;
  border: 2px solid var(--primary); border-radius: 50%;
}
.num-list h3, .num-list h4 { margin: 0 0 6px; font-family: var(--heading-font); font-weight: 500; font-size: 1.25rem; }
.num-list p { margin: 0; }

/* ---------- contact page cards (vertical reusable) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  text-align: left;
}
.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  --contact-accent: var(--primary);
  position: relative;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--neutral-line);
  border-radius: 12px;
  border-top: 3px solid var(--contact-accent);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.contact-card--phone { --contact-accent: var(--orange); }
.contact-card--email { --contact-accent: var(--primary); }
.contact-card--form {
  --contact-accent: var(--primary);
  text-align: left;
  padding: 32px 28px 28px;
}
.contact-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--contact-accent);
}
.contact-card--phone .contact-card__icon { background: var(--notice-bg); }
.contact-card--email .contact-card__icon { background: var(--online-bg); }
.contact-card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-card__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-mid);
  margin-bottom: 10px;
}
.contact-card__phone {
  font-family: var(--heading-font);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 8px;
}
.contact-card__phone a {
  color: var(--text);
  text-decoration: none;
}
.contact-card__phone a:hover,
.contact-card__phone a:focus-visible {
  color: var(--orange);
}
.contact-card__email {
  font-family: var(--heading-font);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 500;
  margin: 0 0 8px;
  word-break: break-word;
}
.contact-card__email a {
  color: var(--primary-dark);
  text-decoration: none;
}
.contact-card__email a:hover,
.contact-card__email a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}
.contact-card__hint {
  font-size: 15px;
  line-height: 1.5;
  color: var(--neutral-mid);
  margin: 0 0 20px;
}
.contact-card__title {
  font-family: var(--heading-font);
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 500;
  margin: 0 0 6px;
  text-align: left;
}
.contact-card__sub {
  font-size: 15px;
  color: var(--neutral-mid);
  margin: 0 0 22px;
  text-align: left;
}
.contact-card--form .sfv-form { gap: 16px; }
.contact-card--form .btn { width: 100%; margin-top: 4px; }
.contact-visit {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 20px 24px;
  border: 1px solid var(--neutral-line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--text);
  display: grid;
  gap: 8px 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  font-size: 16px;
}
.contact-visit strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-mid);
  margin-bottom: 4px;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card--form { order: 3; }
}

/* agent / WebMCP forms */
.sfv-form { display: grid; gap: 18px; }
.sfv-form-compact { gap: 14px; margin-top: 8px; }
.sfv-field { display: grid; gap: 6px; }
.sfv-field label { font-weight: 700; font-size: 15px; }
.sfv-optional { font-weight: 400; color: var(--neutral-mid); font-size: 14px; }
.sfv-form input[type="text"],
.sfv-form input[type="email"],
.sfv-form input[type="tel"],
.sfv-form input[type="search"],
.sfv-form textarea,
.sfv-form select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--neutral-line);
  border-radius: var(--radius); background: var(--surface); color: var(--text);
}
.sfv-form input:focus-visible, .sfv-form textarea:focus-visible, .sfv-form select:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--primary);
}
.sfv-form-inline { grid-template-columns: 1fr auto; align-items: end; gap: 12px; max-width: 480px; margin: 0 auto; }
.sfv-form-inline.center-form { justify-content: center; }
.cta-band .sfv-form-inline .btn { margin: 0; }
.meetings-search-form { max-width: var(--max); margin: 0 auto; }

/* flyer grids (events / activities) */
ul.flyer-grid { list-style: none; margin: 0; padding: 0; }
.flyer-grid .card-body h4 { font-family: var(--heading-font); font-weight: 500; font-size: 1.15rem; }

/* video embeds */
.prose iframe.video { width: 100%; aspect-ratio: 16 / 9; border: 0; margin-bottom: 2em; }

/* tables */
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--neutral-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--tint); font-family: var(--body-font); font-weight: 700; }
.prose tr:nth-child(even) td { background: var(--surface-muted); }

/* notice / alert box */
.notice {
  max-width: var(--prose); margin: 0 auto;
  border-left: 5px solid var(--orange); background: var(--notice-bg);
  padding: 18px 22px;
}

/* ---------- meetings app ---------- */
.meetings-app { max-width: var(--max); margin: 0 auto; }
.m-filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 18px; border: 1px solid var(--neutral-line); background: var(--surface);
  margin-bottom: 22px;
}
.m-filters input[type="search"], .m-filters select {
  font: 16px var(--body-font); color: var(--text);
  padding: 10px 12px; border: 1px solid var(--input-border); min-width: 170px;
  background: var(--surface); color: var(--text);
}
.m-filters input[type="search"] { flex: 1 1 220px; }
.m-daybtns { display: flex; flex-wrap: wrap; gap: 6px; }
.m-daybtns button {
  font: 700 14px var(--body-font); padding: 9px 13px; cursor: pointer;
  border: 1px solid var(--input-border); background: var(--surface); color: var(--text);
}
.m-daybtns button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.m-count { font-size: 15px; color: var(--neutral-mid); margin-bottom: 14px; }
.m-day-heading { margin: 30px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.m-list { list-style: none; margin: 0; padding: 0; }
.m-item {
  display: grid; gap: 4px 18px; grid-template-columns: 110px 1fr;
  padding: 14px 16px; border: 1px solid var(--neutral-line); margin-bottom: 10px; background: var(--surface);
}
.m-time { font-weight: 700; white-space: nowrap; }
.m-name { font-weight: 700; }
.m-name a { text-decoration: none; }
.m-loc, .m-addr { font-size: 15.5px; color: var(--neutral-mid); grid-column: 2; }
.m-types { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.m-types span {
  font-size: 12.5px; font-weight: 700; padding: 3px 8px;
  background: var(--tint); color: var(--primary-dark); border: 1px solid #d3e3ef;
}
.m-online { background: var(--online-bg); }
@media (max-width: 560px) {
  .m-item { grid-template-columns: 1fr; }
  .m-loc, .m-addr, .m-types { grid-column: 1; }
}
.m-error {
  border-left: 5px solid var(--orange); background: var(--notice-bg);
  padding: 22px 26px; font-size: 18px;
}

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--neutral-line); margin-top: 60px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 56px 20px 28px; }
.footer-cols {
  display: grid; gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text); text-decoration: none; font-size: 15.5px; }
.footer-col a:hover { color: var(--primary-dark); text-decoration: underline; }
.footer-heading, .footer-heading a { font-weight: 700; font-size: 16.5px; }
.footer-contact p { margin-bottom: 14px; font-size: 15.5px; }
.footer-legal {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--neutral-line);
  font-size: 14px; color: var(--neutral-mid); text-align: center;
}
.footer-legal a { color: var(--neutral-mid); }

/* ---------- utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
/* stagger children of a grid/flow that opt in */
.reveal-group.in > * { animation: rise-in .7s var(--ease) both; }
.reveal-group.in > *:nth-child(2) { animation-delay: .12s; }
.reveal-group.in > *:nth-child(3) { animation-delay: .24s; }
.reveal-group.in > *:nth-child(4) { animation-delay: .36s; }

/* ---------- reduced motion: keep it calm and instant ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero::before { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .card:hover img { transform: none; }
}
