/* ─── Tokens ──────────────────────────────────────────── */
:root {
  --blue-950: #0a1535;
  --blue-900: #0d1d52;
  --blue-800: #1432a8;
  --blue-700: #1a3fd0;
  --blue-600: #2347c6;
  --blue-500: #3b62e0;
  --blue-100: #dce9ff;
  --blue-50:  #eef4ff;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --amber-50:  #fffbeb;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;
  --white: #ffffff;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);
}

/* ─── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
section[id], [id] { scroll-margin-top: 76px; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ─── Utility ─────────────────────────────────────────── */
.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; top: -120px; left: 16px;
  background: var(--blue-700); color: white;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 600;
  z-index: 9999; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

/* ─── Navbar ──────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 32px; transition: background .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--gray-200);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.navbar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 19px; letter-spacing: -.3px; transition: color .3s; }
.navbar:not(.scrolled) .logo-text { color: white; }
.navbar.scrolled .logo-text { color: var(--blue-700); }
.navbar:not(.scrolled) .logo-fill { fill: white; }
.navbar.scrolled .logo-fill { fill: var(--blue-600); }
.navbar:not(.scrolled) .logo-stroke { stroke: white; }
.navbar.scrolled .logo-stroke { stroke: var(--blue-600); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  text-decoration: none; transition: color .2s; letter-spacing: .1px;
}
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,.75); }
.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .nav-links a[aria-current="page"] { color: white; }
.navbar.scrolled .nav-links a { color: var(--gray-600); }
.navbar.scrolled .nav-links a:hover { color: var(--gray-900); }
.navbar.scrolled .nav-links a[aria-current="page"] { color: var(--blue-700); font-weight: 600; }

.nav-donate {
  background: var(--orange-500) !important; color: white !important;
  padding: 9px 22px; border-radius: 100px;
  font-weight: 700 !important; font-family: var(--font-heading) !important;
  transition: background .2s !important;
}
.nav-donate:hover { background: var(--orange-600) !important; }

.nav-mobile-btn {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; border-radius: var(--r-sm); transition: background .2s;
}
.navbar:not(.scrolled) .nav-mobile-btn { color: white; }
.navbar.scrolled .nav-mobile-btn { color: var(--gray-800); }
.nav-mobile-btn svg { display: block; }

.mobile-menu {
  display: none; position: fixed;
  top: 70px; left: 0; right: 0;
  background: white; padding: 8px 28px 24px;
  box-shadow: var(--shadow-lg); z-index: 199;
  border-top: 1px solid var(--gray-100);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0;
  font-family: var(--font-body); font-weight: 500; font-size: 16px;
  color: var(--gray-800); text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu-donate {
  display: block !important; margin-top: 16px;
  background: var(--orange-500); color: white !important;
  text-align: center; padding: 15px;
  border-radius: 100px; font-weight: 700; font-size: 15px;
  font-family: var(--font-heading); text-decoration: none; border-bottom: none !important;
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  padding: 14px 30px; border-radius: 100px;
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: all .2s ease;
  white-space: nowrap; min-height: 50px; line-height: 1;
}
.btn-donate {
  background: var(--orange-500); color: white; border-color: var(--orange-500);
}
.btn-donate:hover {
  background: var(--orange-600); border-color: var(--orange-600);
  transform: translateY(-1px);
}
.btn-blue {
  background: var(--blue-700); color: white; border-color: var(--blue-700);
}
.btn-blue:hover {
  background: var(--blue-800); border-color: var(--blue-800);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--blue-700); border-color: var(--blue-700);
}
.btn-outline:hover { background: var(--blue-50); }
.btn-outline-white {
  background: transparent; color: white; border-color: rgba(255,255,255,.45);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.9);
}
.btn-white {
  background: white; color: var(--orange-500); border: 2px solid white;
}
.btn-white:hover { background: var(--amber-50); }

/* ─── Section commons ─────────────────────────────────── */
.section-label {
  display: inline-block; font-family: var(--font-heading);
  font-weight: 600; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.08; color: var(--gray-900);
  margin-bottom: 20px; letter-spacing: -.8px;
}
.section-body { font-size: 17px; line-height: 1.76; color: var(--gray-600); }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ─── Page hero (interior pages) ─────────────────────── */
.page-hero {
  background: var(--blue-950);
  padding: 148px 32px 88px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,71,198,.15) 0%, transparent 100%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.page-hero-label { color: var(--amber-400) !important; }
.page-hero-title {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06; color: white;
  letter-spacing: -1.2px; margin-bottom: 20px;
}
.page-hero-sub {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.72; color: rgba(255,255,255,.65);
  max-width: 520px; margin: 0 auto 32px;
}
.page-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Fade-in ─────────────────────────────────────────── */
.fi {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fi.visible { opacity: 1; transform: none; }
.fi-d1 { transition-delay: .08s; }
.fi-d2 { transition-delay: .16s; }
.fi-d3 { transition-delay: .24s; }
.fi-d4 { transition-delay: .32s; }

/* ─── CTA Strip (shared) ──────────────────────────────── */
.cta-strip {
  background: var(--orange-500);
  padding: 80px 32px; text-align: center;
}
.cta-strip .section-title { color: white; }
.cta-strip .section-body { color: rgba(255,255,255,.85); }

/* ─── Footer ──────────────────────────────────────────── */
.footer { background: var(--blue-950); padding: 72px 32px 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-tagline { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.42); margin: 14px 0 24px; max-width: 280px; }
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); transition: all .2s; text-decoration: none;
}
.social-btn:hover { background: var(--blue-600); border-color: var(--blue-600); color: white; }
.footer-col-title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; font-weight: 500; }
.footer-links a:hover { color: white; }
.footer-bottom {
  padding-top: 28px; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.28); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,.28); text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 120px 20px 64px; }
}
