:root {
  --navy: #0b2f56;
  --navy-2: #073d83;
  --blue: #0955ad;
  --blue-soft: #eef5ff;
  --orange: #f9b040;
  --orange-hover: #f4a72a;
  --ink: #17283a;
  --muted: #5d6b79;
  --line: #dce5ee;
  --surface: #ffffff;
  --surface-2: #f6f9fc;
  --shadow: 0 24px 60px rgba(5, 36, 74, .16);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid #1e78d6; outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(220,229,238,.95);
  backdrop-filter: blur(10px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 32px; }
.brand { width: 232px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.primary-nav a { color: #30465c; font-weight: 700; font-size: 14px; }
.primary-nav a:hover { color: var(--blue); }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: var(--orange);
  color: #17324d;
  box-shadow: 0 10px 28px rgba(249,176,64,.28);
}
.button-primary:hover { background: var(--orange-hover); box-shadow: 0 12px 32px rgba(249,176,64,.34); }
.button-small { min-height: 44px; padding-inline: 19px; font-size: 14px; }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.button-ghost:hover { background: rgba(255,255,255,.14); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow-light { color: #ffd58b; }

.hero { position: relative; min-height: 660px; isolation: isolate; overflow: hidden; }
.hero-media, .hero-overlay { position: absolute; inset: 0; z-index: -2; }
.hero-media {
  background-image: url('../images/children-learning.webp');
  background-size: cover;
  background-position: center 43%;
  transform: scale(1.01);
}
.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4,28,59,.94) 0%, rgba(5,36,74,.83) 47%, rgba(5,36,74,.30) 76%, rgba(5,36,74,.18) 100%),
    linear-gradient(0deg, rgba(4,28,59,.18), rgba(4,28,59,.18));
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .72fr); gap: 54px; align-items: center; min-height: 660px; padding-block: 64px; }
.hero-copy { color: #fff; max-width: 700px; }
.hero h1 { margin: 0; max-width: 780px; font-size: clamp(48px, 5.4vw, 72px); line-height: 1.01; letter-spacing: -.045em; }
.hero-lead { margin: 24px 0 0; max-width: 630px; color: rgba(255,255,255,.88); font-size: clamp(17px,1.7vw,20px); line-height: 1.6; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin: 42px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 660px; border-top: 1px solid rgba(255,255,255,.26); padding-top: 20px; }
.hero-trust li { padding-right: 18px; }
.hero-trust strong, .hero-trust span { display: block; }
.hero-trust strong { color: #fff; font-size: 17px; }
.hero-trust span { margin-top: 3px; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.35; }

.donation-card {
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.donation-card-header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.donation-card-header h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; line-height: 1.1; }
.donation-card-header p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
fieldset { margin: 22px 0 0; padding: 0; border: 0; }
legend, .custom-field label { display: block; margin-bottom: 9px; color: #405266; font-size: 12px; font-weight: 850; letter-spacing: .04em; }
.amount-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.amount-button {
  min-height: 48px;
  border: 1px solid #cfdbe7;
  border-radius: 12px;
  background: #fff;
  color: var(--navy-2);
  font-weight: 850;
  cursor: pointer;
}
.amount-button:hover { border-color: var(--blue); background: var(--blue-soft); }
.amount-button.is-selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.custom-field { margin-top: 16px; }
.currency-input { display: flex; align-items: center; min-height: 52px; border: 1px solid #cfdbe7; border-radius: 12px; background: #fff; overflow: hidden; }
.currency-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9,85,173,.10); }
.currency-input > span { padding-left: 15px; color: #516274; font-weight: 800; }
.currency-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 14px 12px 7px; color: var(--ink); }
.field-error { margin: 7px 0 0; color: #a72424; font-size: 13px; }
.donation-submit { width: 100%; margin-top: 18px; min-height: 54px; border: 0; }
.payment-note { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: #657384; font-size: 12px; line-height: 1.45; }
.payment-note svg { width: 18px; height: 18px; fill: var(--blue); margin-top: 1px; }

.section { padding: 88px 0; }
.section-intro { background: var(--surface); }
.split-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.78fr); gap: 80px; align-items: start; }
.section-heading h2, .impact-heading h2 { margin: 0; font-size: clamp(34px,4vw,52px); line-height: 1.08; letter-spacing: -.04em; }
.section-copy { color: var(--muted); font-size: 17px; }
.section-copy p { margin: 0 0 18px; }
.support-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 52px; }
.support-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(19,57,94,.06); }
.icon-wrap { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--blue-soft); }
.icon-wrap svg { width: 24px; height: 24px; fill: var(--blue); }
.support-card h3 { margin: 20px 0 8px; font-size: 20px; line-height: 1.2; }
.support-card p { margin: 0; color: var(--muted); font-size: 15px; }

.section-impact { background: var(--navy); color: #fff; }
.impact-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 70px; align-items: end; }
.impact-heading p:last-child { margin: 0; color: rgba(255,255,255,.7); }
.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-top: 46px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; overflow: hidden; }
.metric { min-height: 185px; padding: 28px; background: rgba(255,255,255,.055); display: flex; flex-direction: column; justify-content: flex-end; }
.metric strong { color: #ffd38a; font-size: clamp(34px,4vw,48px); line-height: 1; letter-spacing: -.035em; }
.metric span { margin-top: 12px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.45; }

.about-card { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.75fr); gap: 70px; padding: 48px; border-radius: 28px; background: var(--surface-2); border: 1px solid var(--line); }
.about-card > div:last-child { color: var(--muted); font-size: 16px; }
.about-card > div:last-child > p { margin-top: 0; }
.text-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.text-links a { color: var(--blue); font-weight: 800; }


.site-footer { background: #111111; color: #fff; padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-brand img { width: 190px; height: auto; padding: 7px 9px; border-radius: 8px; background: #fff; filter: none; opacity: 1; }
.footer-brand p { margin: 8px 0 0; color: rgba(255,255,255,.58); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; color: rgba(255,255,255,.75); font-size: 13px; }
.footer-links a:hover { color: #fff; }

@media (max-width: 1020px) {
  .primary-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero-layout { grid-template-columns: 1fr; gap: 34px; padding-block: 70px; }
  .hero { min-height: auto; }
  .donation-card { max-width: 620px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(4,28,59,.95), rgba(5,36,74,.78) 65%, rgba(5,36,74,.38)); }
  .split-layout, .impact-heading, .about-card { grid-template-columns: 1fr; gap: 26px; }
  .support-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }
  .container { width: min(100% - 28px, var(--container)); }
  .site-header { position: sticky; }
  .header-inner { min-height: 70px; gap: 14px; }
  .brand { width: 170px; }
  .header-inner > .button { min-height: 40px; padding-inline: 14px; font-size: 13px; }

  .hero-media { background-position: 58% 42%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(4,28,59,.93) 0%, rgba(5,36,74,.84) 60%, rgba(5,36,74,.78) 100%); }
  .hero-layout { padding-block: 52px; gap: 30px; }
  .hero h1 { font-size: clamp(42px,12vw,56px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
  .hero-trust li { padding-right: 6px; }
  .hero-trust li:last-child { grid-column: 1 / -1; }

  .donation-card { padding: 22px; border-radius: 20px; }
  .donation-card-header h2 { font-size: 27px; }
  .amount-grid { grid-template-columns: 1fr 1fr; }
  .amount-button { min-height: 50px; font-size: 16px; }

  .section { padding: 64px 0; }
  .section-heading h2, .impact-heading h2, .about-card h2 { font-size: 36px; }
  .support-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .support-card { padding: 24px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { min-height: 150px; }
  .about-card { padding: 28px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 12px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
/* WordPress utility pages */
.thank-you-page { min-height: 65vh; background: var(--surface-2); }
.thank-you-card { max-width: 820px; padding: 54px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 18px 45px rgba(5,36,74,.08); }
.thank-you-card h1 { margin: 0; font-size: clamp(38px,5vw,58px); line-height: 1.05; letter-spacing: -.04em; }
.thank-you-card > p:not(.eyebrow) { max-width: 690px; color: var(--muted); font-size: 17px; }
.button-outline { border-color: var(--line); background: #fff; color: var(--navy); }
@media (max-width: 680px) { .thank-you-card { padding: 30px 24px; } }
