/* ==========================================================================
   Valley of Miracles Academy — design system
   Apple-inspired craft: translucent materials, size-specific typography,
   instant press feedback, soft depth. Brand colours preserved.
   ========================================================================== */

:root {
  /* Brand */
  --green-950: #0a2e16;
  --green-900: #0f4020;
  --green-800: #15532b;
  --green-700: #1a6636;
  --green-600: #1f7a41;
  --green-500: #2c8f51;
  --green-200: #bfd8c6;
  --green-100: #dfede3;
  --green-50: #f1f7f2;
  --gold-600: #8f6b1e;
  --gold-500: #b08a2e;
  --gold-100: #f5ecd5;

  /* Neutrals */
  --ink: #16201a;
  --ink-soft: #3c4a40;
  --muted: #5c6a60;
  --line: #e3e8e3;
  --bg: #ffffff;
  --bg-soft: #f6f8f6;
  --bg-tint: #edf3ee;

  /* Feedback */
  --danger: #b3261e;
  --danger-bg: #fdebe8;

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Shape & depth */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 20px;
  --radius-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(10, 46, 22, 0.05);
  --shadow-md: 0 18px 44px -18px rgba(10, 46, 22, 0.2);
  --shadow-lg: 0 32px 72px -26px rgba(10, 46, 22, 0.3);

  /* Motion — Apple-style easings (ease-out-quint settle, soft default) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);

  /* Materials — translucent chrome */
  --header-bg: rgba(255, 255, 255, 0.72);
  --header-blur: blur(20px) saturate(180%);
  --header-hairline: rgba(10, 46, 22, 0.06);

  --focus-ring: 0 0 0 3px rgba(31, 122, 65, 0.22);

  /* Brand palette for the header + homepage hero. Kept separate from the
     tokens above so restyling the hero never shifts the rest of the site. */
  --brand-green: #0f5c33;
  --brand-green-dark: #0a4f2d;
  --brand-cream: #fdf3e7;
  --brand-cream-deep: #f7e7d4;
  --brand-orange: #f4a23c;
  --brand-ink: #151a17;
  --brand-ink-soft: #505a54;
  --brand-line: #e6e9e6;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--ink-soft);
  background: var(--bg);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

/* Tracking and leading change with size: tight on display text,
   loose on body. Headings are set per size rather than once. */
h1 {
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3 {
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h4 {
  line-height: 1.28;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-800);
}

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--green-200);
  color: var(--green-950);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.container--narrow {
  max-width: 800px;
}

/* Wider gutter used by the header and the homepage hero. */
.container--wide {
  max-width: 1400px;
}

.section {
  padding-block: clamp(64px, 9vw, 104px);
}

.section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section--dark {
  background: var(--green-950);
  color: #c6d8cb;
}

.section--dark .section-title {
  color: #ffffff;
}

.section--dark .section-lede {
  color: #a9c4b2;
}

.section-head {
  max-width: 740px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}

.section-head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}

.section--dark .eyebrow {
  color: #e4c878;
}

.section--dark .eyebrow::before,
.section--dark .section-head--center .eyebrow::after {
  background: #e4c878;
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-block: 12px 14px;
}

.section-lede {
  font-size: 1.06rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 200;
  background: var(--green-900);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-s);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

.u-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s var(--ease-soft), border-color 0.16s var(--ease-soft),
    color 0.16s var(--ease-soft), transform 0.12s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Feedback on pointer-down, not on release — instant press response. */
.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--green-600);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--green-700);
  color: #ffffff;
}

/* Brand pair used by the header CTA and the homepage hero. Deeper than
   --primary so the cream hero keeps its contrast. */
.btn--brand {
  background: var(--brand-green);
  color: #ffffff;
}

.btn--brand:hover {
  background: var(--brand-green-dark);
  color: #ffffff;
}

.btn--brand-outline {
  background: transparent;
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.btn--brand-outline:hover {
  background: rgba(15, 92, 51, 0.08);
  color: var(--brand-green-dark);
}

.btn--dark {
  background: var(--green-950);
  color: #ffffff;
}

.btn--dark:hover {
  background: #123a20;
  color: #ffffff;
}

.btn--light {
  background: #ffffff;
  color: var(--green-900);
}

.btn--light:hover {
  background: var(--green-100);
  color: var(--green-900);
}

.btn--outline {
  border-color: var(--green-600);
  color: var(--green-700);
  background: transparent;
}

.btn--outline:hover {
  background: var(--green-50);
  color: var(--green-800);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  background: transparent;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn--lg {
  padding: 15px 30px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--brand-line);
  box-shadow: none;
  transition: box-shadow 0.3s var(--ease-soft);
}

/* Scroll edge effect: a whisper of depth once content passes under the bar.
   At rest the header stays flat, per the reference. */
.site-header.is-scrolled {
  box-shadow: 0 8px 28px -22px rgba(10, 46, 22, 0.4);
}

/* Logo | nav | CTA. The nav centres itself in the free middle column. */
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  min-height: 92px;
}

.main-nav {
  justify-self: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* The project logo is a vertical lockup (shield above stacked wordmark), so it
   is sized to the full header height to stay legible. Swap in a horizontal
   lockup here if one is ever produced. */
.brand-logo {
  display: block;
  height: clamp(56px, 5.2vw, 72px);
  width: auto;
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.6vw, 10px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a:not(.btn) {
  display: inline-block;
  position: relative;
  padding: 10px 4px;
  color: var(--brand-ink);
  font-size: clamp(14px, 1.05vw, 15.5px);
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s var(--ease-soft);
}

/* Short centred underline, as in the reference, rather than a full-width rule. */
.nav-list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brand-green);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.25s var(--ease-out);
}

.nav-list a:not(.btn):hover {
  color: var(--brand-green);
}

.nav-list a:not(.btn):hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-list a.is-active {
  color: var(--brand-green);
  font-weight: 650;
}

.nav-list a.is-active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Right-hand cluster: desktop CTA + mobile hamburger. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

/* The drawer copy of the CTA; only shown once the nav collapses. */
.nav-cta {
  display: none;
  margin-left: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  border-radius: 2px;
  background: var(--ink-soft);
  transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    /* Clear the desktop grid centring, or the drawer shrinks to fit. */
    justify-self: stretch;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-md);
    padding: 14px;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list a:not(.btn) {
    display: block;
    padding: 12px 14px;
    font-size: 16px;
  }

  .nav-list a.is-active::after {
    display: none;
  }

  /* Apply button moves into the drawer; the header keeps only the hamburger. */
  .header-cta {
    display: none;
  }

  .nav-cta {
    display: block;
    margin: 10px 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Homepage hero (v2)

   Two-column cream hero: copy left, cut-out students layered over orange
   shapes right, and a white feature bar overlapping the bottom edge.
   Everything is fluid — no fixed page-wide widths or heights.
   -------------------------------------------------------------------------- */

.hero-v2 {
  position: relative;
  background: var(--brand-cream);
  overflow: hidden;
  isolation: isolate;
}

.hero-v2-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  /* Room at the bottom for the feature bar to ride over the hero edge. */
  padding-block: clamp(44px, 5vw, 76px) clamp(128px, 12.6vw, 178px);
  min-height: clamp(540px, 70vh, 720px);
}

/* ---- Left column ---- */

.hero-v2-copy {
  max-width: 620px;
}

.hero-eyebrow {
  display: block;
  margin-bottom: clamp(14px, 1.6vw, 20px);
  color: var(--brand-orange);
  font-size: clamp(12px, 0.95vw, 13.5px);
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Sized so "Education for" / "Real-Life Success" break over two lines at
   desktop widths without needing a hard <br>. */
.hero-v2-title {
  margin: 0;
  font-size: clamp(2.75rem, 4.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--brand-ink);
  text-wrap: balance;
}

/* "Real-Life" — the elegant serif italic counterweight to the bold sans. */
.hero-v2-title .hero-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-green);
  /* The hyphen is a legal break point; keep the phrase on one line. */
  white-space: nowrap;
}

.hero-v2-lede {
  margin: clamp(18px, 2.2vw, 26px) 0 0;
  max-width: 500px;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.6;
  color: var(--brand-ink-soft);
}

.hero-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.4vw, 20px);
  margin-top: clamp(24px, 3vw, 38px);
}

.hero-v2-actions .btn {
  padding: 15px 28px;
  font-size: clamp(15px, 1.1vw, 16px);
}

.hero-v2-actions .btn svg {
  flex: none;
}

/* ---- Together We Can mini CTA ---- */

.hero-twc {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  flex-wrap: wrap;
  margin-top: clamp(26px, 3vw, 40px);
  text-decoration: none;
}

.hero-twc-faces {
  display: flex;
  align-items: center;
}

.hero-twc-faces img {
  width: clamp(44px, 3.6vw, 54px);
  height: clamp(44px, 3.6vw, 54px);
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-cream-deep);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px -2px rgba(10, 46, 22, 0.25);
}

.hero-twc-faces img + img {
  margin-left: clamp(-16px, -1.2vw, -12px);
}

.hero-twc-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-twc-icon {
  flex: none;
  color: var(--brand-orange);
}

.hero-twc-join {
  display: block;
  color: var(--brand-orange);
  font-weight: 700;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.35;
}

.hero-twc-label {
  display: block;
  color: var(--brand-ink);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.35;
}

.hero-twc:hover .hero-twc-label {
  color: var(--brand-green);
}

/* ---- Right column: students over orange shapes ---- */

/* Pulled down into the hero's bottom padding so the feature card overlaps the
   learners, as in the reference. .hero-v2 clips the overhang. */
.hero-v2-media {
  position: relative;
  align-self: end;
  min-height: clamp(300px, 43vw, 600px);
  margin-bottom: clamp(-86px, -6.5vw, -46px);
}

.hero-shape {
  position: absolute;
  border-radius: clamp(24px, 2.6vw, 38px);
  pointer-events: none;
}

.hero-shape--outline {
  right: 4%;
  bottom: 16%;
  width: 86%;
  height: 78%;
  border: 2px solid var(--brand-orange);
}

.hero-shape--block {
  right: 0;
  bottom: 4%;
  width: 72%;
  height: 68%;
  background: var(--brand-orange);
}

.hero-students {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(340px, 48vw, 620px);
  object-fit: contain;
  object-position: bottom center;
}

/* ---- Decorative geometry ---- */

.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  color: var(--brand-orange);
}

.hero-decor > * {
  position: absolute;
}

.hero-decor-diamond--tl {
  top: 2%;
  left: 1%;
  width: clamp(46px, 4.4vw, 74px);
  opacity: 0.5;
}

.hero-decor-dots--tc {
  top: 6%;
  left: 41%;
  width: clamp(40px, 3.4vw, 56px);
  opacity: 0.5;
}

.hero-decor-dots--tr {
  top: 3%;
  right: 3%;
  width: clamp(52px, 5vw, 78px);
  opacity: 0.45;
}

.hero-decor-diamond--bc {
  bottom: 16%;
  left: 41%;
  width: clamp(70px, 7vw, 118px);
  opacity: 0.4;
}

.hero-decor-rings {
  bottom: -24%;
  left: -12%;
  width: clamp(280px, 34vw, 520px);
  opacity: 0.5;
  color: var(--brand-cream-deep);
}

/* ---- Feature bar ---- */

.hero-features-wrap {
  position: relative;
  z-index: 4;
  margin-top: clamp(-96px, -8vw, -60px);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border-radius: clamp(22px, 2vw, 28px);
  box-shadow: 0 26px 64px -34px rgba(10, 46, 22, 0.4);
  padding: clamp(22px, 2.6vw, 34px) clamp(10px, 1.4vw, 20px);
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.3vw, 18px);
  padding-inline: clamp(12px, 1.8vw, 28px);
  transition: transform 0.25s var(--ease-out);
}

.hero-feature + .hero-feature {
  border-left: 1px solid var(--brand-line);
}

.hero-feature:hover {
  transform: translateY(-2px);
}

.hero-feature-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(44px, 3.6vw, 56px);
  height: clamp(44px, 3.6vw, 56px);
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
}

.hero-feature h2 {
  margin: 0 0 5px;
  font-size: clamp(15px, 1.2vw, 17.5px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-ink);
}

.hero-feature p {
  margin: 0;
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.5;
  color: var(--brand-ink-soft);
}

/* ---- Responsive ---- */

/* Tablet: keep two columns but tighten the type and shrink the media. */
@media (max-width: 1100px) {
  .hero-v2-inner {
    grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
    min-height: 0;
  }

  .hero-v2-lede {
    max-width: 40ch;
  }

  .hero-decor-dots--tc,
  .hero-decor-diamond--bc {
    display: none;
  }
}

/* Stack point: copy first, students below, per the brief. */
@media (max-width: 860px) {
  .hero-v2-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vw, 40px);
    padding-bottom: clamp(112px, 20vw, 150px);
  }

  .hero-v2-copy {
    max-width: none;
  }

  .hero-v2-lede {
    max-width: 52ch;
  }

  .hero-v2-media {
    min-height: 0;
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
    /* Nothing overlaps the learners once stacked, so the pull-down would
       only clip them against the hero's bottom edge. */
    margin-bottom: 0;
  }

  .hero-decor-diamond--tl {
    display: none;
  }

  .hero-students {
    max-height: none;
  }

  .hero-features {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 4vw, 24px);
    padding: clamp(22px, 5vw, 30px) clamp(20px, 5vw, 28px);
  }

  /* Separators are a desktop-only device. */
  .hero-feature + .hero-feature {
    border-left: 0;
    border-top: 1px solid var(--brand-line);
    padding-top: clamp(18px, 4vw, 24px);
  }

  .hero-feature {
    padding-inline: 0;
  }
}

@media (max-width: 560px) {
  .hero-v2-title {
    font-size: clamp(2.4rem, 11.5vw, 3rem);
  }

  .hero-v2-actions {
    gap: 12px;
  }

  /* Full-width stacked buttons on phones. */
  .hero-v2-actions .btn {
    width: 100%;
  }

  .hero-twc {
    gap: 16px;
  }

  .hero-decor-diamond--tl,
  .hero-decor-dots--tr {
    opacity: 0.35;
  }
}

/* --------------------------------------------------------------------------
   Hero (legacy — retained for any page still using the original markup)
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(40px, 6vw, 72px) 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(48px, 7vw, 88px);
}

.hero-copy h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  margin-block: 18px 20px;
}

.hero-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--green-700);
}

.hero-lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-bullets {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-bullets svg {
  flex: none;
  color: var(--green-600);
}

.hero-media {
  margin: 0;
}

.hero-media figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--bg-soft);
}

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
  }
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  background: linear-gradient(180deg, var(--green-900) 0%, var(--green-950) 62%);
  color: #c6d8cb;
  padding-block: clamp(48px, 8vw, 92px);
}

.page-hero .eyebrow {
  color: #e4c878;
}

.page-hero .eyebrow::before {
  background: #e4c878;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-block: 14px 16px;
  max-width: 18ch;
}

.page-hero .hero-lede {
  color: #a9c4b2;
  margin-bottom: 0;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-block: 28px;
}

.trust-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trust-item strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 3px;
}

.trust-item span {
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
}

.grid > * {
  min-width: 0;
}

.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: 1023px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(22px, 3vw, 30px);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-size: 1.13rem;
  margin: 18px 0 8px;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.card--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.card--dark:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.card--dark .card-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #e4c878;
}

.card--dark .card-title {
  color: #ffffff;
}

.card--dark p {
  color: #a9c4b2;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: steps;
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-600);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.step h3 {
  font-size: 1.08rem;
  margin: 4px 0 6px;
}

.step p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th {
  text-align: left;
  background: var(--green-900);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 14px 18px;
}

td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

td strong {
  color: var(--ink);
}

tbody tr:nth-child(even) {
  background: var(--bg-soft);
}

.table-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */

.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion details + details {
  border-top: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--green-600);
  transition: transform 0.3s var(--ease-out);
}

.accordion details[open] summary::after {
  transform: rotate(45deg);
}

.accordion summary:hover {
  background: var(--bg-soft);
}

/* Smooth expansion: the body is a 0fr -> 1fr grid row, so opening and
   closing follows the easing instead of popping. */
.accordion .accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}

.accordion details[open] .accordion-body {
  grid-template-rows: 1fr;
}

.accordion .accordion-body p {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 78ch;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.field .req {
  color: var(--green-700);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--green-600);
  box-shadow: var(--focus-ring);
}

.field-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green-600);
  cursor: pointer;
}

.checkbox-field a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-field input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.field.has-error .checkbox-field {
  color: var(--danger);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}

.field-error {
  display: none;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--danger);
}

.field.has-error .field-error {
  display: block;
}

.form-status {
  display: none;
  margin-top: 18px;
}

.form-status.is-visible {
  display: block;
}

.success-panel {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-m);
  padding: 22px 24px;
}

.success-panel h3 {
  color: var(--green-800);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.success-panel p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.success-panel .success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.error-panel {
  display: none;
  background: var(--danger-bg);
  border: 1px solid #f0c9c2;
  border-radius: var(--radius-m);
  padding: 22px 24px;
}

.error-panel.is-visible {
  display: block;
}

.error-panel h3 {
  color: var(--danger);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.error-panel p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   News & events
   -------------------------------------------------------------------------- */

.news-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--green-500);
  color: var(--green-700);
}

.filter-chip.is-active {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #ffffff;
}

.search-input {
  flex: 1 1 220px;
  max-width: 340px;
  margin-left: auto;
  font: inherit;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
}

.search-input:focus-visible {
  outline: none;
  border-color: var(--green-600);
  box-shadow: var(--focus-ring);
}

@media (max-width: 720px) {
  .search-input {
    max-width: none;
    margin-left: 0;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.chip--news {
  background: var(--green-100);
  color: var(--green-800);
}

.chip--event {
  background: var(--gold-100);
  color: #7a5e12;
}

.chip--demo {
  background: var(--danger-bg);
  color: #a13b2e;
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-card .card-media {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-tint);
  border: 1px solid var(--line);
}

.news-card .card-media img,
.news-card .card-media svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.news-card h3 {
  font-size: 1.1rem;
}

.news-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 8px;
}

.news-card .card-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.92rem;
  font-weight: 650;
}

.empty-state {
  /* Rendered into a 3-column grid, so span it rather than sit in column one. */
  grid-column: 1 / -1;
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(44px, 7vw, 72px) 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-m);
  color: var(--muted);
}

.empty-state svg {
  color: var(--green-500);
  margin-bottom: 14px;
}

.empty-state h3 {
  color: var(--ink);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.article-head {
  max-width: 800px;
  margin-inline: auto;
  padding-top: clamp(40px, 6vw, 72px);
}

.article-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-block: 14px 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.article-cover {
  max-width: 900px;
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.article-cover img,
.article-cover svg {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.article-body {
  max-width: 720px;
  margin: 36px auto clamp(48px, 7vw, 88px);
  font-size: 1.06rem;
}

.prose p {
  margin-block: 14px;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 40px 0 12px;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 30px 0 10px;
}

.prose ul {
  padding-left: 24px;
  margin: 14px 0;
  display: grid;
  gap: 8px;
}

.prose li::marker {
  color: var(--green-600);
}

.prose blockquote {
  margin: 22px 0;
  border-left: 3px solid var(--green-600);
  background: var(--green-50);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  font-size: 0.93rem;
}

.notice svg {
  flex: none;
  margin-top: 2px;
}

.notice--demo {
  background: #fdf4ee;
  border: 1px solid #f0d9c6;
  color: #7a4a24;
}

.notice--info {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-900);
}

/* --------------------------------------------------------------------------
   Stats (Together We Can)
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-m);
  padding: 22px 18px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.88rem;
  color: #a9c4b2;
  margin-top: 4px;
}

@media (max-width: 1023px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat-num {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Check list
   -------------------------------------------------------------------------- */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.check-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--green-600);
}

.section--dark .check-list li {
  color: #c6d8cb;
}

.section--dark .check-list svg {
  color: #e4c878;
}

/* --------------------------------------------------------------------------
   Map / placeholder frame
   -------------------------------------------------------------------------- */

.map-frame {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-m);
  background: var(--bg-soft);
  padding: clamp(28px, 5vw, 48px) 24px;
  text-align: center;
  color: var(--muted);
}

.map-frame svg {
  color: var(--green-500);
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--green-950);
  color: #c6d8cb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 48px);
  padding-block: clamp(48px, 7vw, 72px);
}

.footer-logo-wrap {
  display: inline-block;
  margin-bottom: 18px;
}

.footer-logo {
  display: block;
  height: 56px;
  width: auto;
}

.footer-col--brand p {
  font-size: 0.95rem;
  color: #a9c4b2;
  max-width: 40ch;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: #8fb59c;
  margin-top: 14px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #c6d8cb;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact {
  font-size: 0.95rem;
  color: #c6d8cb;
  margin-block: 8px;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 550;
}

.footer-contact a:hover {
  text-decoration: underline;
  text-decoration-color: #e4c878;
  text-underline-offset: 3px;
}

.footer-muted {
  font-size: 0.85rem;
  color: #8aa693;
  margin-top: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  font-size: 0.88rem;
  color: #a9c4b2;
}

.footer-bottom-inner a {
  color: #c6d8cb;
}

.footer-bottom-inner a:hover {
  color: #ffffff;
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg-soft);
  padding: clamp(22px, 3vw, 30px);
}

.contact-card h2 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.contact-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}

.contact-row:first-of-type {
  border-top: 0;
}

.contact-row .trust-icon {
  width: 40px;
  height: 40px;
}

.contact-row strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.contact-row p {
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-row a {
  font-weight: 600;
}

.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 30ch;
}

.quote cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 14px;
}

.section--dark .quote {
  color: #ffffff;
}

.section--dark .quote cite {
  color: #a9c4b2;
}

.divider-rule {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Scroll reveal — one gentle wave per top-level block, added only when
   motion is allowed and JS is available (.js-reveal is set by main.js).
   Opacity + transform only, so no layout shift; every element keeps its
   full box and is reachable even mid-animation.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal main > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  }

  .js-reveal main > *.is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Materials adapt to user preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .main-nav {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .btn {
    display: none !important;
  }
  body {
    color: #000;
  }
}
