/* ============================================================
   Alder Health Foundation — design system
   Palette: forest greens warmed with cream, stone, rust & amber.
   Sections alternate backgrounds so the page never reads monotone.
   ============================================================ */

:root {
  --forest-950: #0c2015;
  --forest-900: #122e1f;
  --forest-800: #17402a;
  --forest-700: #1f5739;
  --forest-600: #2a7349;
  --forest-500: #35885a;
  --sage-200: #cfdccf;
  --sage-100: #e4ece1;
  --cream: #faf6ec;
  --paper: #fffdf8;
  --stone: #f2ebdb;
  --rust: #a9502a;
  --rust-dark: #833c1e;
  --amber: #d99a35;
  --amber-soft: #f3dfba;
  --ink: #1f2b24;
  --muted: #5b6a61;
  --line: #e3dccb;
  --mint-card: #e8f1e9;
  --peach-card: #f8ecda;
  --blue-card: #e4edf5;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px -18px rgba(12, 32, 21, .25);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-700); }
button { font: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--forest-900); color: #fff; padding: .7rem 1.2rem;
  border-radius: 10px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.01em; color: var(--forest-950); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }

.kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 1rem;
}
.kicker-light { color: var(--amber-soft); }
.kicker-center { text-align: center; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 44rem; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.9rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-donate { background: var(--rust); color: #fff; box-shadow: 0 10px 24px -10px rgba(169, 80, 42, .7); }
.btn-donate:hover { background: var(--rust-dark); color: #fff; }
.btn-primary { background: var(--forest-800); color: #fff; }
.btn-primary:hover { background: var(--forest-900); color: #fff; }
.btn-accent { background: var(--amber); color: var(--forest-950); }
.btn-accent:hover { background: #c9852a; color: var(--forest-950); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-outline { border-color: var(--forest-800); color: var(--forest-800); background: transparent; }
.btn-outline:hover { background: var(--forest-800); color: #fff; }
.btn-block { width: 100%; }
.linklike { background: none; border: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--amber-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(250, 246, 236, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -18px rgba(12,32,21,.35); }
.header-inner {
  width: min(1280px, 94%); margin-inline: auto; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--forest-900); }
.brand-badge { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 6px 14px; box-shadow: 0 2px 12px rgba(12,32,21,.10); }
.brand-badge img { height: 40px; width: auto; display: block; }
.brand-mark { width: 30px; height: 38px; flex: none; }
.brand-img { height: 42px; width: auto; display: block; }
.brand-word { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; line-height: 1; display: flex; flex-direction: column; }
.brand-word small { font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.main-nav .nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; padding: 0; }
.nav-top {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1rem; border-radius: 10px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 1rem; background: none; border: none;
}
.nav-top:hover { background: rgba(23, 64, 42, .08); color: var(--forest-800); }
.nav-item[aria-current="true"] > .nav-top { color: var(--forest-800); }
.nav-item[aria-current="true"] > .nav-top::after {
  content: ""; display: block; height: 3px; border-radius: 3px; background: var(--amber);
  position: absolute; left: 1rem; right: 1rem; bottom: 2px;
}
.nav-item { position: relative; }
.nav-top .chev { width: 11px; height: 8px; transition: transform .2s; }
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); list-style: none; padding: .5rem; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-drop:hover > .drop, .has-drop:focus-within > .drop { opacity: 1; visibility: visible; transform: none; }
.has-drop:hover .chev { transform: rotate(180deg); }
.drop a {
  display: block; padding: .65rem .9rem; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem;
}
.drop a:hover { background: var(--sage-100); color: var(--forest-800); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: .6rem;
}
.nav-toggle span { width: 26px; height: 2.5px; border-radius: 3px; background: var(--forest-900); transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8, 20, 13, .82) 0%, rgba(8,20,13,.45) 42%, rgba(8,20,13,.12) 72%, rgba(8,20,13,.28) 100%);
}
.hero-inner { width: min(1180px, 92%); margin-inline: auto; padding: 0 0 clamp(3.5rem, 8vh, 6rem); }
.hero h1 { color: #fff; max-width: 13ch; margin-bottom: 1.1rem; text-wrap: balance; }
.hero .lede { color: rgba(255,255,255,.88); max-width: 34rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
}

/* ---------- Icon feature bar ---------- */
.icon-bar { background: var(--forest-900); color: #fff; }
.icon-bar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.icon-bar-item {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  padding: 1.6rem 1rem; text-decoration: none; color: #fff;
  border-left: 1px solid rgba(255,255,255,.12); transition: background .2s;
}
.icon-bar-item:first-child { border-left: none; }
.icon-bar-item:hover { background: rgba(255,255,255,.06); }
.icon-bar-item svg { width: 34px; height: 34px; flex: none; color: var(--amber-soft); }
.icon-bar-item span { font-weight: 600; font-size: 1.02rem; }

/* ---------- Impact stats ---------- */
.stats { background: var(--paper); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.stat {
  text-align: center; padding: 2.2rem 1rem; border-radius: var(--radius);
  background: var(--cream); border: 1px solid var(--line);
}
.stat:nth-child(2) { background: var(--mint-card); border-color: transparent; }
.stat:nth-child(3) { background: var(--peach-card); border-color: transparent; }
.stat:nth-child(4) { background: var(--blue-card); border-color: transparent; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 700; color: var(--forest-900); line-height: 1; }
.stat-label { margin-top: .6rem; font-size: .95rem; color: var(--muted); font-weight: 500; }

/* ---------- Split / mission blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media.frame { position: relative; }
.mission { background: var(--cream); }
.mission-quote {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.45; color: var(--forest-900); font-style: italic;
  border-left: 4px solid var(--amber); padding-left: 1.4rem; margin: 1.6rem 0;
}
.vision { background: var(--forest-900); color: #fff; }
.vision h2, .vision .lede { color: #fff; }
.vision .lede { color: rgba(255,255,255,.82); }
.vision .kicker { color: var(--amber-soft); }

/* ---------- Values grid ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.6rem; }
.value-card { padding: 1.9rem 1.7rem; border-radius: var(--radius); }
.value-card:nth-child(3n+1) { background: var(--mint-card); }
.value-card:nth-child(3n+2) { background: var(--peach-card); }
.value-card:nth-child(3n) { background: var(--blue-card); }
.value-card svg { width: 30px; height: 30px; color: var(--forest-800); margin-bottom: .9rem; }
.value-card h3 { margin-bottom: .4rem; font-size: 1.2rem; }
.value-card p { color: var(--muted); font-size: .98rem; }

/* ---------- Course / program cards ---------- */
.course-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-top: 2.6rem; }
.course-card {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; display: flex; flex-direction: column; gap: .9rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--forest-600); }
.course-card.featured { border-color: var(--forest-700); background: linear-gradient(160deg, #fffdf8, #f2f7ef); }
.course-tag {
  align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem .9rem; border-radius: 999px; background: var(--sage-100); color: var(--forest-800);
}
.course-card .price {
  align-self: flex-start; font-weight: 700; font-size: 1.05rem; color: var(--paper);
  background: var(--forest-800); padding: .45rem 1.1rem; border-radius: 999px;
}
.course-card h3 { font-size: 1.6rem; }
.course-card p { color: var(--muted); }
.course-card .card-foot { margin-top: auto; padding-top: .8rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.course-meta { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--forest-700); font-size: .95rem; }
.course-meta svg { width: 20px; height: 20px; }

/* In-development program cards (pastel trio) */
.program-cards { display: grid; gap: 1.1rem; margin-top: 2.4rem; }
.program-card {
  display: grid; grid-template-columns: 76px 1fr; gap: 1.4rem; align-items: center;
  padding: 1.8rem 2rem; border-radius: var(--radius);
}
.program-card:nth-child(3n+1) { background: var(--mint-card); }
.program-card:nth-child(3n+2) { background: var(--peach-card); }
.program-card:nth-child(3n) { background: var(--blue-card); }
.program-icon {
  width: 76px; height: 76px; border-radius: 50%; background: var(--paper);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -10px rgba(12,32,21,.3);
}
.program-icon svg { width: 36px; height: 36px; color: var(--forest-800); }
.program-card h3 { font-size: 1.45rem; margin: .2rem 0 .35rem; }
.program-card p { color: var(--muted); }

/* ---------- Partner bar ---------- */
.partners { background: var(--stone); }
.partner-row {
  display: flex; align-items: center; justify-content: center; gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap; margin-top: 2.2rem;
}
.partner-word {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600;
  color: var(--forest-900); opacity: .75; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem;
}
.partner-word:hover { opacity: 1; }
.partner-note { margin-top: 1.8rem; font-size: .9rem; color: var(--muted); }

/* ---------- Donation tiers ---------- */
.tiers { background: var(--cream); }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.tier {
  background: var(--paper); border-radius: var(--radius); padding: 2.2rem 2rem;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: .7rem; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tier.hot { background: var(--forest-900); color: #fff; border-color: var(--forest-900); }
.tier.hot h3, .tier.hot .tier-amount { color: #fff; }
.tier.hot p { color: rgba(255,255,255,.78); }
.tier-amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--forest-900); }
.tier p { color: var(--muted); font-size: .98rem; flex: 1; }
.tier .btn { margin-top: .6rem; }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.quote-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; margin: 0; display: flex; flex-direction: column; gap: 1rem;
}
.quote-card::before {
  content: "\201C"; font-family: var(--font-display); font-size: 3rem; line-height: 1;
  color: var(--amber); display: block; margin-bottom: -.5rem;
}
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; color: var(--forest-900); flex: 1; }
.quote-card figcaption { color: var(--muted); font-size: .92rem; font-weight: 600; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.final-cta .hero-bg { position: absolute; inset: 0; z-index: -2; }
.final-cta .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.final-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 24, 15, .88) 20%, rgba(10,24,15,.55) 60%, rgba(10,24,15,.25) 100%);
}
.final-cta-inner { padding: clamp(4rem, 9vw, 7.5rem) 0; max-width: 620px; }
.final-cta h2 { color: #fff; margin-bottom: 1rem; }
.final-cta p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; }
.final-cta .hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Subpage hero ---------- */
.page-hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.page-hero .hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,20,13,.85), rgba(8,20,13,.45)); }
.page-hero-plain { background: var(--forest-900); }
.page-hero-inner { padding: clamp(3.5rem, 7vw, 5.5rem) 0; max-width: 780px; }
.page-hero h1 { color: #fff; margin: .8rem 0 1rem; }
.page-hero .lede { color: rgba(255,255,255,.85); }
.breadcrumb { font-size: .88rem; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Content blocks ---------- */
.prose { max-width: 46rem; }
.prose p + p { margin-top: 1.1rem; }
.prose h2 { margin: 2.4rem 0 1rem; }
.prose ul { padding-left: 1.3rem; margin: 1rem 0; }
.prose li + li { margin-top: .5rem; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.pillar {
  border-radius: var(--radius); padding: 2.2rem 1.9rem; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: .7rem; transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.pillar:nth-child(1) { background: var(--mint-card); }
.pillar:nth-child(2) { background: var(--peach-card); }
.pillar:nth-child(3) { background: var(--blue-card); }
.pillar svg { width: 38px; height: 38px; color: var(--forest-800); }
.pillar h3 { font-size: 1.4rem; }
.pillar p { color: var(--muted); font-size: .98rem; }
.pillar .go { font-weight: 700; color: var(--rust-dark); margin-top: auto; padding-top: .6rem; }

.step-list { display: grid; gap: 1rem; margin-top: 2rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
}
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff;
  background: var(--forest-800); width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .98rem; }

.notice {
  border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; margin: 1.6rem 0;
  background: var(--amber-soft); border: 1px solid #e6c98a; color: #5d4413; font-size: .96rem;
}
.notice strong { color: #4a3510; }

/* Ticked feature lists (SVG markers, no emoji) */
.check-list { list-style: none; padding: 0; display: grid; gap: .6rem; color: var(--muted); }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.15em; height: 1.15em;
  background: var(--forest-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center/contain no-repeat;
  border-radius: 50%;
}

/* ---------- Forms (Typeform-style) ---------- */
.form-shell { max-width: 640px; margin-inline: auto; }
.alder-form { display: grid; gap: 1.6rem; margin-top: 2.2rem; }
.field label { display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: .5rem; }
.field label .req { color: var(--rust); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field textarea, .field select {
  width: 100%; padding: 1rem 1.2rem; font: inherit; font-size: 1.05rem;
  border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--forest-600); box-shadow: 0 0 0 4px rgba(53, 138, 90, .15);
}
.field .hint { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.check-row { display: flex; gap: .9rem; align-items: flex-start; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem; }
.check-row input[type="checkbox"] { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--forest-700); }
.check-row label { font-weight: 500; font-size: .98rem; }
.form-note { font-size: .95rem; color: var(--muted); }
.form-status { border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; font-weight: 500; display: none; }
.form-status.ok { display: block; background: var(--mint-card); color: var(--forest-900); border: 1px solid #bcd6c0; }
.form-status.err { display: block; background: #fbe9e2; color: #7c2f14; border: 1px solid #eec4ae; }
.file-input { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 1.6rem; text-align: center; background: var(--paper); transition: border-color .18s; }
.file-input:hover, .file-input:focus-within { border-color: var(--forest-600); }
.file-input input[type="file"] { font: inherit; }
.photo-banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 2.4rem; }
.photo-banner img { width: 100%; max-height: 460px; object-fit: cover; }

/* ---------- Donate modal ---------- */
.donate-overlay {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 22, 14, .6); backdrop-filter: blur(6px); padding: 1rem;
}
.donate-overlay[hidden] { display: none; }
.donate-modal {
  position: relative; width: min(480px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--forest-950); color: #fff; border-radius: 22px; padding: 2.6rem 2.2rem;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.12);
  animation: pop .28s cubic-bezier(.2, 1.2, .4, 1);
}
@keyframes pop { from { transform: scale(.94) translateY(10px); opacity: 0; } }
.donate-modal h2 { color: #fff; font-size: 1.9rem; margin-bottom: .4rem; }
.donate-sub { color: rgba(255,255,255,.72); margin-bottom: 1.6rem; }
.donate-close {
  position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none; color: #fff; display: flex; align-items: center; justify-content: center;
}
.donate-close:hover { background: rgba(255,255,255,.22); }
.donate-close svg { width: 15px; height: 15px; }
.freq-toggle { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.08); border-radius: 999px; padding: 5px; margin-bottom: 1.2rem; }
.freq { border: none; background: transparent; color: rgba(255,255,255,.75); padding: .7rem; border-radius: 999px; font-weight: 600; }
.freq.active { background: var(--amber); color: var(--forest-950); }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1rem; }
.amount {
  border: 1.5px solid rgba(255,255,255,.25); background: transparent; color: #fff;
  padding: .85rem .3rem; border-radius: 12px; font-weight: 700; font-size: 1.02rem; transition: all .15s;
}
.amount:hover { border-color: var(--amber); }
.amount.active { background: var(--amber); border-color: var(--amber); color: var(--forest-950); }
.custom-amount { position: relative; display: block; margin-bottom: 1rem; }
.custom-amount .currency { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.6); font-weight: 600; }
.custom-amount input {
  width: 100%; padding: .95rem 1.1rem .95rem 2.2rem; font: inherit; font-weight: 600;
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.25); border-radius: 12px; color: #fff;
}
.custom-amount input::placeholder { color: rgba(255,255,255,.45); font-weight: 500; }
.custom-amount input:focus { outline: none; border-color: var(--amber); }
.donate-impact { color: var(--amber-soft); font-size: .95rem; min-height: 2.6em; margin-bottom: 1.2rem; }
.donate-secure { text-align: center; font-size: .82rem; color: rgba(255,255,255,.5); margin-top: .9rem; }
.donate-soon { margin-top: 1rem; background: rgba(217,154,53,.14); border: 1px solid rgba(217,154,53,.4); border-radius: 10px; padding: .9rem 1.1rem; font-size: .92rem; color: var(--amber-soft); }
.donate-soon a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-950); color: rgba(255,255,255,.78); }
.footer-inner { width: min(1180px, 92%); margin-inline: auto; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.brand-light { color: #fff; }
.brand-light .brand-word small { color: rgba(255,255,255,.6); }
.footer-tag { margin: 1rem 0 1.4rem; font-size: .98rem; max-width: 22rem; }
.socials { display: flex; gap: .7rem; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,.25); color: #fff; transition: all .18s;
}
.socials a:hover { background: var(--amber); border-color: var(--amber); color: var(--forest-950); }
.socials svg { width: 20px; height: 20px; }
.footer-col h3 { font-family: var(--font-body); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .65rem; }
.footer-col a, .footer-col .linklike { color: rgba(255,255,255,.72); text-decoration: none; font-size: .98rem; }
.footer-col a:hover, .footer-col .linklike:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-news p { font-size: .95rem; margin-bottom: 1rem; }
.newsletter-form { display: flex; gap: .6rem; }
.newsletter-form input {
  flex: 1; min-width: 0; padding: .8rem 1rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.07); color: #fff; font: inherit; font-size: .95rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { outline: none; border-color: var(--amber); }
.newsletter-form .btn { padding: .8rem 1.4rem; flex: none; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: rgba(255,255,255,.55);
}
.footer-legal a { color: rgba(255,255,255,.65); text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Class registration flow ---------- */
#regFlow [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.stepper {
  list-style: none; padding: 0; margin: 0 0 2.4rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
}
.step-dot { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .92rem; font-weight: 600; }
.step-dot .dot {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--stone); color: var(--muted); font-weight: 700; font-size: .95rem;
  transition: all .25s;
}
.step-dot.current { color: var(--forest-900); }
.step-dot.current .dot { background: var(--forest-800); color: #fff; box-shadow: 0 8px 18px -8px rgba(23,64,42,.6); }
.step-dot.done .dot { background: var(--forest-600); color: #fff; }
.step-dot.done { color: var(--forest-700); }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.4rem 0 1.2rem; }
.filter-btn {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  padding: .6rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--forest-600); }
.filter-btn.active { background: var(--forest-800); border-color: var(--forest-800); color: #fff; }

.class-list { display: grid; gap: 1rem; margin-top: .6rem; }
.class-card {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 1.3rem; align-items: center;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; transition: border-color .18s, box-shadow .18s;
}
.class-card:hover { border-color: var(--forest-600); }
.class-card.selected { border-color: var(--forest-700); box-shadow: var(--shadow); background: linear-gradient(160deg, #fffdf8, #f0f6ee); }
.date-badge {
  width: 84px; height: 84px; border-radius: 16px; background: var(--forest-900); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none;
}
.db-mon { font-size: .72rem; font-weight: 700; letter-spacing: .18em; color: var(--amber-soft); }
.db-day { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.class-main h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.class-when { font-weight: 600; color: var(--forest-800); font-size: .98rem; }
.class-where { color: var(--muted); font-size: .95rem; }
.class-blurb { color: var(--muted); font-size: .95rem; margin-top: .4rem; }
.class-meta { display: flex; align-items: center; gap: 1rem; margin-top: .7rem; }
.class-price { font-weight: 700; font-size: 1.1rem; color: var(--paper); background: var(--forest-800); padding: .3rem .95rem; border-radius: 999px; }
.class-seats { font-size: .9rem; color: var(--muted); font-weight: 600; }
.class-seats.low { color: var(--rust-dark); }
.class-action .btn { white-space: nowrap; }

.step-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.step-foot .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.order-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; margin: 1.4rem 0;
}
.order-card h3 { margin-bottom: .3rem; }
.order-row {
  display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0;
  border-bottom: 1px dashed var(--line); font-size: .98rem;
}
.order-row span { color: var(--muted); }
.order-row strong { text-align: right; font-weight: 600; }
.order-row.total { border-bottom: none; padding-top: .9rem; }
.order-row.total strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--forest-900); }

.returning {
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: grid; gap: .7rem; justify-items: start;
}
.confirm-icon {
  width: 84px; height: 84px; border-radius: 50%; background: var(--mint-card); color: var(--forest-700);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.4rem;
}
.confirm-icon svg { width: 42px; height: 42px; }
#confirmBody h2 { margin-bottom: .8rem; }
#confirmBody .lede { margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: var(--cream); transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; padding: 1rem 4% 3rem;
  }
  body.nav-open .main-nav { transform: none; }
  body.nav-open { overflow: hidden; }
  .main-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-top { width: 100%; justify-content: space-between; padding: 1.1rem .4rem; font-size: 1.1rem; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0 0 .8rem .6rem; display: none; min-width: 0; }
  .has-drop.open > .drop { display: block; }
  .has-drop.open .chev { transform: rotate(180deg); }
  .drop a { padding: .7rem .6rem; font-size: 1.02rem; }
  .nav-cta-mobile { display: block; padding: 1.2rem 0; border-bottom: none; }
  .nav-cta-mobile .btn { width: 100%; }
  .header-actions .btn-donate { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .icon-bar-grid { grid-template-columns: 1fr 1fr; }
  .icon-bar-item { border-left: none; border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem .6rem; }
  .icon-bar-item:nth-child(-n+2) { border-top: none; }
  .icon-bar-item:nth-child(even) { border-left: 1px solid rgba(255,255,255,.12); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .course-cards { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; margin-top: 2.2rem; }
  .quote-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .program-card { grid-template-columns: 1fr; text-align: left; gap: 1rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .values-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas .btn, .final-cta .btn { flex: 1 1 100%; }
  .step { grid-template-columns: 1fr; }
  .step::before { width: 48px; height: 48px; font-size: 1.35rem; }
  .class-card { grid-template-columns: 64px 1fr; }
  .date-badge { width: 64px; height: 64px; }
  .db-day { font-size: 1.45rem; }
  .class-action { grid-column: 1 / -1; }
  .class-action .btn { width: 100%; }
  .step-dot .lbl { display: none; }
  .step-dot { justify-content: center; }
  .step-foot { flex-direction: column; align-items: stretch; }
  .step-foot .btn { width: 100%; }
}
