/* =============================================================
   PROJECT ONE FOCUS — Design System & Global Styles
   Author: v0 build. Mobile-first. WCAG 2.1 AA target.
   Palette from client-captured brand tokens.
   ============================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand palette (client tokens — do not reinvent shades) */
  --brand-50: #e7e6eb;
  --brand-100: #cbc8d4;
  --brand: #11053b;
  --brand-700: #0e042f;
  --brand-900: #090320;
  --accent-50: #fff8ec;
  --accent-100: #ffefd5;
  --accent: #feb43f;
  --accent-700: #cb9032;
  --accent-900: #8c6323;
  --ink: #1a1f2b;
  --ink-soft: #5b6475;
  --bg: #ffffff;
  --line: #e6e9f0;

  /* Semantic surfaces */
  --surface: #ffffff;
  --surface-muted: #f6f7fb;
  --surface-brand: var(--brand);
  --surface-brand-2: var(--brand-700);

  /* Text roles */
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --text-on-brand: #f4f3f8;
  --text-on-brand-soft: #b9b4cc;
  --text-on-accent: #2a1e05;

  /* Focus + states */
  --focus: #7c5cff;
  --focus-on-dark: var(--accent);
  --success: #1f7a4d;
  --danger: #b3261e;

  /* Typography */
  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale (clamp: min, preferred, max) */
  --fs-300: clamp(0.8rem, 0.77rem + 0.15vw, 0.875rem);
  --fs-400: clamp(0.95rem, 0.92rem + 0.15vw, 1rem);      /* body */
  --fs-500: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);         /* lead */
  --fs-600: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);      /* h4/h3 */
  --fs-700: clamp(1.5rem, 1.3rem + 1vw, 2rem);            /* h3/h2 */
  --fs-800: clamp(1.9rem, 1.5rem + 2vw, 2.75rem);         /* h2 */
  --fs-900: clamp(2.3rem, 1.7rem + 3vw, 3.75rem);         /* h1 */

  --lh-tight: 1.12;
  --lh-snug: 1.28;
  --lh-body: 1.65;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(9, 3, 32, 0.06), 0 1px 3px rgba(9, 3, 32, 0.08);
  --shadow-md: 0 6px 18px rgba(9, 3, 32, 0.10), 0 2px 6px rgba(9, 3, 32, 0.06);
  --shadow-lg: 0 18px 48px rgba(9, 3, 32, 0.18);

  /* Layout */
  --container: 1140px;
  --container-narrow: 780px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.25s;
}

/* ---------- 2. Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
picture,
video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text);
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-900); font-weight: 800; }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-700); }
h4 { font-size: var(--fs-600); }

p { margin: 0 0 var(--sp-4); max-width: 68ch; }

a {
  color: var(--brand);
  text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--accent-700); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.2em; }
li { margin-bottom: var(--sp-2); }

strong { font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

/* ---------- 3. Accessibility helpers ---------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--sp-3);
  top: -100px;
  z-index: 1000;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 0.7em 1.1em;
  border-radius: var(--r-sm);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--sp-8); }
.section--sm { padding-block: var(--sp-7); }
.section--lg { padding-block: var(--sp-9); }

.section--muted { background: var(--surface-muted); }
.section--brand {
  background: var(--brand);
  color: var(--text-on-brand);
}
.section--brand h1, .section--brand h2, .section--brand h3, .section--brand h4 { color: #fff; }
.section--brand p { color: var(--text-on-brand-soft); }
.section--brand a { color: var(--accent); }

.section-head { max-width: 62ch; margin-bottom: var(--sp-6); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: var(--sp-3);
}
.section--brand .eyebrow { color: var(--accent); }
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.lead { font-size: var(--fs-500); color: var(--text-soft); }
.section--brand .lead { color: var(--text-on-brand-soft); }

/* Grid utilities */
.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.split {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .split--media-first > .split__media { order: -1; }
}

.stack > * + * { margin-top: var(--sp-4); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--text-on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-400);
  line-height: 1;
  padding: 0.95em 1.5em;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--text-on-accent); }
.btn--primary:hover { background: var(--accent-700); }

.btn--secondary {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
}
.btn--secondary:hover { background: var(--brand-700); }

.btn--outline {
  background: transparent;
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
  box-shadow: none;
}
.btn--outline:hover { border-color: var(--brand); background: var(--brand-50); }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn--lg { padding: 1.1em 1.9em; font-size: var(--fs-500); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.btn-row--center { justify-content: center; }

/* icon inside button */
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- 6. Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  height: 100%;
}
.card--link:hover,
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }

.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--accent-50);
  color: var(--accent-900);
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: var(--fs-600); margin-bottom: var(--sp-2); }
.card p { color: var(--text-soft); margin-bottom: var(--sp-3); }

.card__more {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-400);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  margin-top: auto;
}
.card__more::after { content: "→"; transition: transform var(--dur) var(--ease); }
.card--link:hover .card__more::after,
a.card:hover .card__more::after { transform: translateX(4px); }

a.card { color: inherit; text-decoration: none; display: flex; flex-direction: column; }

/* Stat / impact tiles */
.stat {
  text-align: center;
  padding: var(--sp-5);
}
.stat__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-800);
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat__label { color: var(--text-on-brand-soft); font-size: var(--fs-400); margin: 0; }

/* Pills / badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.85em;
  border-radius: var(--r-pill);
  background: var(--accent-50);
  color: var(--accent-900);
  font-weight: 600;
  font-size: var(--fs-300);
  border: 1px solid var(--accent-100);
}

.tag-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; list-style: none; }
.tag-list li { margin: 0; }

/* Feature list with check icons */
.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 2em;
  margin-bottom: var(--sp-3);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15em;
  width: 1.35em; height: 1.35em;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1e05' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.85em no-repeat;
}

/* ---------- 7. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--brand) 96%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 0.5em 0.7em;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.nav-menu > li { margin: 0; position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.6em 0.85em;
  color: var(--text-on-brand);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--r-sm);
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.10); color: #fff; text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85em; right: 0.85em; bottom: 0.35em;
  height: 2px; background: var(--accent); border-radius: 2px;
}

/* Dropdown */
.has-dropdown > .nav-link svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.has-dropdown > .nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown {
  list-style: none;
  margin: 0;
  padding: var(--sp-2);
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 20;
}
.dropdown.is-open { display: block; }
/* Invisible bridge across the gap between the button and the menu so the
   pointer never leaves the item while moving onto the dropdown. */
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.dropdown li { margin: 0; }
.dropdown a {
  display: block;
  padding: 0.65em 0.8em;
  border-radius: var(--r-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.dropdown a small { display: block; font-weight: 400; color: var(--text-soft); font-size: 0.8rem; }
.dropdown a:hover { background: var(--surface-muted); }

.nav-cta { margin-left: var(--sp-2); }

/* Mobile nav */
@media (max-width: 899px) {
  .nav-toggle { order: 3; }
  .nav-menu {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur) var(--ease);
  }
  .site-header.is-open .nav-menu { max-height: 80vh; overflow-y: auto; padding-bottom: var(--sp-4); }
  .nav-link { padding: 0.85em 0.6em; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-menu > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    background: rgba(255,255,255,0.06);
    min-width: 0;
    margin: 0 0 var(--sp-2);
  }
  .dropdown.is-open { display: block; }
  .dropdown::before { display: none; } /* no bridge needed in the mobile stacked menu */
  .dropdown a { color: var(--text-on-brand); }
  .dropdown a small { color: var(--text-on-brand-soft); }
  .dropdown a:hover { background: rgba(255,255,255,0.08); }
  .nav-cta { margin: var(--sp-3) 0 0; }
  .nav-cta .btn { width: 100%; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu { max-height: none; }
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(254, 180, 63, 0.16), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(124, 92, 255, 0.18), transparent 55%),
    linear-gradient(160deg, var(--brand-900), var(--brand) 55%, var(--brand-700));
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-6);
  padding-block: var(--sp-8);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; padding-block: var(--sp-9); gap: var(--sp-8); }
}
.hero h1 { color: #fff; margin-bottom: var(--sp-4); }
.hero .lead { color: var(--text-on-brand-soft); margin-bottom: var(--sp-5); max-width: 54ch; }
.hero__inner .eyebrow { color: var(--accent); }

.hero__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
  aspect-ratio: 4 / 3.2;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.hero__card {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-4);
  right: var(--sp-4);
  background: rgba(255,255,255,0.95);
  color: var(--text);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.hero__card .card__icon { margin: 0; flex: none; width: 46px; height: 46px; }
.hero__card p { margin: 0; font-size: var(--fs-300); color: var(--text-soft); }
.hero__card strong { display: block; font-family: var(--font-heading); color: var(--text); font-size: var(--fs-400); }

/* Page hero (interior pages, compact) */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(254, 180, 63, 0.15), transparent 60%),
    linear-gradient(160deg, var(--brand-900), var(--brand-700));
  color: #fff;
  padding-block: var(--sp-8);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--text-on-brand-soft); max-width: 60ch; }
.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  padding: 0; margin: 0 0 var(--sp-4);
  font-size: var(--fs-300);
  color: var(--text-on-brand-soft);
}
.breadcrumbs li { margin: 0; display: inline-flex; gap: 0.4em; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: rgba(255,255,255,0.4); }
.breadcrumbs a { color: var(--text-on-brand-soft); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #fff; }

/* ---------- 9. Media / figure ---------- */
.media-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: var(--surface-muted);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease);
}
.gallery a:hover img { transform: scale(1.03); }

/* ---------- 10. Events / list rows ---------- */
.event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.event__date {
  text-align: center;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  min-width: 76px;
}
.event__date .m { display: block; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; }
.event__date .d { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.event h3 { font-size: var(--fs-600); margin-bottom: 0.2em; }
.event p { margin: 0; color: var(--text-soft); font-size: var(--fs-300); }

/* ---------- 11. Forms ---------- */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: 0.4em; }
.field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-400);
  color: var(--text);
}
.field .req { color: var(--danger); }
.field .hint { font-size: var(--fs-300); color: var(--text-soft); font-weight: 400; }

.input,
.select,
.textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.75em 0.9em;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--brand-100); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  background-size: 1.1em;
  padding-right: 2.6em;
}

.field--inline { grid-template-columns: auto 1fr; align-items: start; gap: 0.7em; }
.field--inline input[type="checkbox"] { width: 1.2em; height: 1.2em; margin-top: 0.25em; accent-color: var(--brand); }
.field--inline label { font-weight: 400; font-family: var(--font-body); }

/* honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.field-error { color: var(--danger); font-size: var(--fs-300); font-weight: 600; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 15%, transparent);
}

.form-note { font-size: var(--fs-300); color: var(--text-soft); }

.alert {
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid;
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.alert svg { flex: none; width: 1.4em; height: 1.4em; margin-top: 0.1em; }
.alert p { margin: 0; }
.alert--success { background: #eaf6ef; border-color: #b9e0c9; color: #16502f; }
.alert--error { background: #fdeceb; border-color: #f4c4c0; color: #7d1a15; }

@media (min-width: 640px) {
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .form-row--3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-4); }
}

/* ---- Grouped fieldsets (enrollment form) ---- */
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-section {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.form-section > legend,
.form-section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-600);
  color: var(--text);
  padding: 0;
  margin-bottom: var(--sp-1);
  float: left;            /* keep legend on its own line in a grid context */
  width: 100%;
}
.form-section__hint { color: var(--text-soft); font-size: var(--fs-300); margin: 0 0 var(--sp-4); }
.form-section .field + .field,
.form-section .field + .form-row,
.form-section .form-row + .field,
.form-section .form-row + .form-row,
.form-section .options + .field,
.form-section .field + .options,
.form-section .form-row--3 + .field { margin-top: var(--sp-4); }

/* Group label (for radio/checkbox groups that can't use a single <label>) */
.label-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-400);
  color: var(--text);
}
.field-note { color: var(--text-soft); font-weight: 400; font-size: var(--fs-300); }

/* Radio / checkbox groups */
.options { display: grid; gap: var(--sp-3); margin: 0; padding: 0; border: 0; }
@media (min-width: 560px) { .options--cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { .options--cols-3 { grid-template-columns: repeat(3, 1fr); } }
.options--inline { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.option {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}
.option input {
  margin-top: 0.15em;
  width: 1.15em; height: 1.15em;
  accent-color: var(--brand);
  flex: none;
}

/* Second-guardian disclosure */
.disclosure { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 0; margin-top: var(--sp-4); }
.disclosure > summary {
  cursor: pointer;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--brand);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: "+"; font-size: 1.2em; line-height: 1; }
.disclosure[open] > summary::before { content: "\2212"; }
.disclosure__body { padding: 0 var(--sp-4) var(--sp-4); }

/* Conditionally-revealed sub-fields (progressive enhancement: visible without JS) */
.js .is-conditional[hidden] { display: none; }

/* ---------- 12. FAQ accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: var(--sp-5) 2.4em var(--sp-5) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-500);
  color: var(--text);
  cursor: pointer;
  position: relative;
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}
.accordion__btn::after {
  content: "";
  position: absolute;
  right: 0.2em; top: 50%;
  width: 1.4em; height: 1.4em;
  transform: translateY(-50%);
  background: var(--accent-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c6323' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / 0.9em no-repeat;
  border-radius: 50%;
  transition: transform var(--dur) var(--ease);
}
.accordion__btn[aria-expanded="true"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c6323' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}
.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur) var(--ease);
}
.accordion__panel > div { padding: 0 2.4em var(--sp-5) 0; }
.accordion__panel p:last-child { margin-bottom: 0; }

/* ---------- 13. CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(254,180,63,0.2), transparent 60%),
    linear-gradient(120deg, var(--brand), var(--brand-700));
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 1rem + 4vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--text-on-brand-soft); margin-inline: auto; }

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--brand-900);
  color: var(--text-on-brand-soft);
  padding-block: var(--sp-8) var(--sp-5);
  font-size: var(--fs-400);
}
.footer-grid {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-brand__logo {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-heading); font-weight: 800; color: #fff;
  text-decoration: none; font-size: 1.1rem; margin-bottom: var(--sp-3);
}
.footer-brand__logo img { width: 40px; height: 40px; }
.footer-tagline { color: var(--accent); font-weight: 600; margin-bottom: var(--sp-3); }
.site-footer h3 { font-size: var(--fs-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-4); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: var(--sp-2); }
.footer-links a { color: var(--text-on-brand-soft); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.footer-contact li { display: flex; gap: 0.7em; align-items: flex-start; margin: 0; }
.footer-contact svg { width: 1.2em; height: 1.2em; flex: none; color: var(--accent); margin-top: 0.2em; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

.social {
  display: flex; gap: var(--sp-2); list-style: none; padding: 0; margin: var(--sp-4) 0 0;
}
.social li { margin: 0; }
.social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.social a:hover { background: var(--accent); color: var(--text-on-accent); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-300);
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-bottom a { color: var(--text-on-brand-soft); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- 15. Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-6 { margin-bottom: var(--sp-6); }
.maxw-narrow { max-width: var(--container-narrow); }

/* Legal / long-form content pages */
.legal { font-size: var(--fs-400); }
.legal > p, .legal li { color: var(--text); }
.legal h2 { font-size: var(--fs-700); margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.legal h3 { font-size: var(--fs-500); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: var(--sp-2); }
.legal__updated {
  color: var(--text-soft);
  font-size: var(--fs-300);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.lazy-fade { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.lazy-fade.is-visible { opacity: 1; transform: none; }

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.error-code {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(4rem, 2rem + 12vw, 9rem);
  line-height: 1;
  color: var(--brand);
  background: linear-gradient(120deg, var(--brand), var(--accent-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--sp-3);
}

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