/* =========================================================================
   Agentic Youth Foundation — shared styles  ·  "Sunset" palette
   Bricolage Grotesque (display) · Public Sans (body) · IBM Plex Mono (labels)
   ========================================================================= */

:root {
  --font: 'Public Sans', system-ui, -apple-system, sans-serif;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --bg: oklch(0.98 0.012 85);
  --bg-warm: oklch(0.96 0.02 70);
  --card: oklch(1 0 0);
  --ink: oklch(0.22 0.02 60);
  --muted: oklch(0.5 0.02 60);
  --line: oklch(0.9 0.01 75);

  --accent: oklch(0.64 0.18 33);      /* coral */
  --accent-dk: oklch(0.55 0.17 33);
  --accent2: oklch(0.8 0.13 72);      /* amber */
  --deep: oklch(0.32 0.06 35);        /* dark warm */
  --chip: oklch(0.93 0.04 70);

  --maxw: 1200px;
  --radius: 20px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.grid { display: grid; gap: 24px; }
.center { text-align: center; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.025em; margin: 0; font-weight: 800; line-height: 1.02; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dk);
}
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.h-xl { font-size: clamp(48px, 7vw, 84px); }
.h-lg { font-size: clamp(38px, 5vw, 56px); }
.h-md { font-size: clamp(28px, 3.4vw, 40px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px var(--accent); }
.btn-accent:hover { background: var(--accent-dk); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 600;
  color: var(--deep); background: var(--chip); padding: 6px 13px; border-radius: 999px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.98 0.012 85 / 0.85);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); display: grid; place-items: center; flex: none; }
.brand-mark span { width: 15px; height: 15px; border-radius: 50% 50% 50% 3px; background: var(--accent2); display: block; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 15px; text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 700; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: oklch(0.85 0.01 75); padding: 64px 0 36px; margin-top: 0; }
.site-footer a { color: oklch(0.85 0.01 75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: oklch(0.7 0.01 75); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 15px; padding: 5px 0; }
.footer-brand .brand-name { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid oklch(0.35 0.02 60); font-size: 13px; color: oklch(0.65 0.01 75); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card-hover { transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px oklch(0.4 0.05 40 / 0.45); border-color: var(--accent2); }

/* program icon tile */
.tile { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px; }
.tile-c1 { background: var(--accent); }
.tile-c2 { background: var(--accent2); }
.tile-c3 { background: var(--deep); }
.tile svg { width: 24px; height: 24px; }

/* ---------- placeholder imagery ---------- */
.ph {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background-color: var(--bg-warm);
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.035) 0 12px, transparent 12px 24px);
  display: flex; align-items: flex-end; padding: 16px; color: var(--muted);
}
.ph-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.ph.amber { background-color: oklch(0.9 0.05 55); }
.ph.coral { background-color: oklch(0.88 0.06 35); }
.ph.round { border-radius: 50%; }

/* ---------- stat strip ---------- */
.statbar { background: var(--ink); border-radius: 24px; padding: 38px 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.statbar .num { font-family: var(--display); font-weight: 800; font-size: 44px; }
.statbar .num.c { color: var(--accent2); }
.statbar .lbl { font-size: 14px; color: oklch(0.8 0.01 75); margin-top: 4px; }

/* ---------- generic stat (light) ---------- */
.stat .num { font-family: var(--display); font-weight: 800; font-size: 52px; color: var(--accent); line-height: 1; }
.stat .lbl { color: var(--muted); margin-top: 8px; font-weight: 500; }

/* ---------- page hero ---------- */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 18px 0 0; }

/* ---------- band ---------- */
.band-accent { background: var(--accent); color: #fff; }
.band-deep { background: var(--deep); color: oklch(0.95 0.02 80); }
.band-warm { background: var(--bg-warm); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 16px; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.64 0.18 33 / 0.15); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.list-check .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .statbar { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 16px 32px 24px;
  }
  .nav.open .nav-links a { padding: 10px 0; width: 100%; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section.tight { padding: 36px 0; }
  .statbar { grid-template-columns: 1fr 1fr; gap: 20px; padding: 28px 24px; }
  .statbar .num { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .band-accent { flex-direction: column !important; text-align: center; align-items: center !important; padding: 36px 28px !important; }
  .h-xl { font-size: clamp(36px, 10vw, 60px); }
  .page-hero { padding: 48px 0 36px; }
}

/* ---------- hero image grid ---------- */
.hero-image-grid { display: grid; grid-template-rows: 1.4fr 1fr; gap: 16px; }
.hero-image-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 680px) {
  .hero-image-grid { grid-template-rows: unset; }
  .hero-image-sub { grid-template-columns: 1fr 1fr; }
  .hero-image-grid > img { height: 200px; }
  .hero-image-sub img { height: 130px; }
}

/* hide scroll-reveal helper if JS off → content visible by default (no opacity:0 base) */
.reveal { opacity: 1; }
