/* ===========================
   Access4All Youth — Design Tokens
   =========================== */
:root {
  --cloud: #FFF9F2;
  --ink: #211D2E;
  --indigo: #2E2140;
  --coral: #A27FC8;
  --coral-dark: #8A66B3;
  --yellow: #E8D6FD;
  --teal: #7C5AA6;
  --teal-dark: #6B4A91;
  --line: rgba(33, 29, 46, 0.12);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cloud);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em 0; }

a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: 0.9em;
}

/* Visible keyboard focus, everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cloud);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); box-shadow: 0 10px 24px rgba(162,127,200,0.4); }

.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #d8bdf5; box-shadow: 0 10px 24px rgba(232,214,253,0.5); }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cloud); }

.btn-outline-light { background: transparent; border-color: var(--cloud); color: var(--cloud); }
.btn-outline-light:hover { background: var(--cloud); color: var(--indigo); }

/* ===========================
   Header / Nav
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo .mark { width: 34px; height: 34px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-links a.active { color: var(--coral-dark); }
.nav-links a:hover { text-decoration: underline; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cloud);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 24px; width: 100%; }
  .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
}

/* ===========================
   Hero
   =========================== */
.hero {
  padding: 64px 0 40px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* kit piece reveal animation */
.kit-piece {
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  animation: kitReveal 0.6s ease forwards;
}
@keyframes kitReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .kit-piece { opacity: 1; transform: none; animation: none; }
}

/* ===========================
   Sound-wave divider (loud -> quiet motif)
   =========================== */
.wave-divider {
  width: 100%;
  height: 48px;
  display: block;
}
.wave-divider .bar { fill: currentColor; }

/* ===========================
   Sections
   =========================== */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.section-dark {
  background: var(--indigo);
  color: var(--cloud);
}
.section-dark .eyebrow { color: var(--yellow); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: var(--yellow); }

.section-coral { background: var(--coral); color: #fff; }
.section-coral .eyebrow { color: var(--indigo); }
.section-coral h2 { color: #fff; }

.lede-block { max-width: 62ch; }

.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--coral-dark);
}

.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 28px;
}

/* stat row */
.stat {
  text-align: left;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--coral-dark);
  line-height: 1;
}
.section-dark .stat .num { color: var(--yellow); }
.stat .label { font-size: 0.95rem; opacity: 0.85; margin-top: 6px; }

/* CTA banner */
.cta-banner {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin-bottom: 0.2em; }

/* ===========================
   Forms
   =========================== */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field { margin-bottom: 20px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cloud);
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
fieldset { border: none; padding: 0; margin: 0 0 20px 0; }
legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; padding: 0; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row label { font-weight: 400; margin-bottom: 0; }

.form-note {
  font-size: 0.88rem;
  opacity: 0.75;
  margin-top: 18px;
}

.confirm-msg {
  display: none;
  background: rgba(124,90,166,0.12);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-top: 20px;
  font-weight: 600;
}
.confirm-msg.show { display: block; }
.confirm-msg.confirm-error {
  background: rgba(33,29,46,0.06);
  border-color: var(--ink);
}

/* tier cards (donate page) */
.tier {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  background: #fff;
}
.tier .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--coral-dark);
}
.tier.featured { border-color: var(--coral); box-shadow: 0 12px 30px rgba(162,127,200,0.22); }

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--ink);
  color: var(--cloud);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 { color: #fff; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer a { color: rgba(255,249,242,0.85); }
.site-footer .logo { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,249,242,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.social-row { display: flex; gap: 14px; margin-top: 10px; }
.social-row a svg { width: 22px; height: 22px; }

/* utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 70ch; margin-bottom: 40px; }
