:root {
  --navy: #071a2f;
  --navy-2: #0d2948;
  --blue: #1769aa;
  --gold: #f2b643;
  --gold-soft: #ffd778;
  --ink: #102235;
  --paper: #f6f8fb;
  --white: #fff;
  --muted: #5e6d7c;
  --line: #dce3e9;
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "DM Sans", sans-serif; font-size: 1rem; line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: "Manrope", sans-serif; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.9rem); }
h2 { font-size: clamp(2rem, 4vw, 4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }

.skip-link { position: fixed; z-index: 999; top: 12px; left: 12px; transform: translateY(-150%); padding: .7rem 1rem; background: var(--gold); color: var(--navy); font-weight: 700; }
.skip-link:focus { transform: none; }
.site-header { position: absolute; z-index: 20; top: 0; left: 50%; width: min(calc(100% - 48px), var(--max)); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; padding: 24px 0; color: white; border-bottom: 1px solid rgba(255,255,255,.25); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; background: var(--gold); color: var(--navy); font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: -.05em; }
.brand-name { font-family: "Manrope", sans-serif; font-size: .86rem; font-weight: 700; line-height: 1.18; }
nav { display: flex; align-items: center; gap: 28px; }
nav > a { font-weight: 600; text-decoration: none; }
nav > a:not(.button):hover { color: var(--gold-soft); }
.menu-toggle { display: none; border: 0; background: transparent; color: white; font: inherit; font-weight: 700; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { background: var(--gold-soft); transform: translateY(-2px); }
.button-small { min-height: 42px; padding-inline: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: white; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--gold-soft); }

.hero { position: relative; min-height: 820px; display: grid; align-items: end; overflow: hidden; color: white; background: var(--navy); }
.hero > img, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > img { object-fit: cover; object-position: center; }
.hero-overlay { background: linear-gradient(90deg, rgba(3,17,32,.96) 0%, rgba(3,17,32,.84) 31%, rgba(3,17,32,.38) 62%, rgba(3,17,32,.05) 100%), linear-gradient(0deg, rgba(3,17,32,.62), transparent 50%); }
.hero-content { position: relative; z-index: 2; width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 190px 0 96px; }
.hero-content h1 { max-width: 820px; }
.hero-content > p:not(.eyebrow) { max-width: 650px; margin-top: 28px; color: #e5ecf2; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.eyebrow, .section-label { margin-bottom: 22px; color: var(--gold); font-size: .79rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 38px; }

.statement { width: min(calc(100% - 48px), 980px); margin: 0 auto; padding: 125px 0; text-align: center; }
.statement h2 { color: var(--navy); }
.statement > p:last-child { max-width: 760px; margin: 30px auto 0; color: var(--muted); font-size: 1.15rem; }

.work { padding: 110px max(24px, calc((100vw - var(--max)) / 2)); background: var(--paper); }
.section-intro { display: grid; grid-template-columns: 1.05fr .95fr; column-gap: 80px; align-items: end; }
.section-intro .section-label { grid-column: 1 / -1; }
.section-intro > p:last-child { color: var(--muted); font-size: 1.1rem; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 65px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.program-grid article { min-height: 310px; padding: 38px; background: white; }
.number { color: var(--blue); font-family: "Manrope", sans-serif; font-size: .82rem; font-weight: 800; }
.program-grid h3 { margin-top: 74px; color: var(--navy); }
.program-grid p { margin-top: 16px; color: var(--muted); }

.belief { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 110px max(24px, calc((100vw - var(--max)) / 2)); color: white; background: var(--blue); }
.belief .section-label { color: var(--gold-soft); }
.belief > p { align-self: end; max-width: 520px; font-size: 1.15rem; color: #eef7ff; }

.involved { padding: 115px max(24px, calc((100vw - var(--max)) / 2)); }
.involved .section-intro { display: block; max-width: 740px; }
.involved-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 22px; margin-top: 58px; }
.involved-grid article { min-height: 290px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); }
.involved-grid p { margin-top: 18px; color: var(--muted); }
.involved-grid article > a { display: inline-block; margin-top: 36px; color: var(--blue); font-weight: 800; text-decoration: none; }
.donation-card { color: white; background: var(--navy); border-color: var(--navy) !important; }
.donation-card p { color: #cdd8e2; }
.donation-card .button { margin-top: 26px; color: var(--navy); }
.donation-card small { display: block; margin-top: 16px; color: #aebdca; }
.mail-donation { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); }
.mail-donation strong, .mail-donation span, .mail-donation address { display: block; }
.mail-donation strong { color: var(--gold-soft); font-family: "Manrope", sans-serif; }
.mail-donation span { margin-top: 8px; color: #cdd8e2; }
.mail-donation address { margin-top: 10px; color: white; font-style: normal; font-weight: 700; line-height: 1.5; }

.closing { padding: 110px 24px; text-align: center; color: white; background: var(--navy-2); }
.closing .button { margin-top: 32px; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: start; padding: 56px max(24px, calc((100vw - var(--max)) / 2)); background: var(--navy); color: #cdd8e2; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand strong, .footer-heading { color: white; }
.footer-heading { margin-bottom: 8px; font-weight: 800; }
footer a { color: var(--gold-soft); }
.copyright { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; }

dialog { width: min(calc(100% - 32px), 520px); padding: 42px; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(3,17,32,.75); backdrop-filter: blur(4px); }
dialog h2 { margin-bottom: 18px; font-size: 2rem; color: var(--navy); }
dialog p:not(.section-label) { color: var(--muted); }
dialog address { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--paper); color: var(--navy); font-style: normal; font-weight: 800; line-height: 1.5; }
dialog .button { margin-top: 28px; }
.dialog-close { position: absolute; top: 16px; right: 18px; border: 0; background: transparent; color: var(--muted); font-size: 2rem; cursor: pointer; }

@media (max-width: 820px) {
  .site-header { width: calc(100% - 32px); }
  .menu-toggle { display: block; }
  nav { position: fixed; inset: 0; z-index: -1; display: none; flex-direction: column; justify-content: center; background: var(--navy); font-size: 1.35rem; }
  nav.open { display: flex; z-index: 25; }
  .menu-toggle { position: relative; z-index: 30; }
  .brand { position: relative; z-index: 30; }
  .hero { min-height: 740px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(3,17,32,.94), rgba(3,17,32,.52)), linear-gradient(0deg, rgba(3,17,32,.8), transparent); }
  .hero-content { width: calc(100% - 40px); padding-bottom: 70px; }
  .section-intro, .belief { grid-template-columns: 1fr; gap: 28px; }
  .program-grid, .involved-grid { grid-template-columns: 1fr; }
  .program-grid article { min-height: auto; }
  .program-grid h3 { margin-top: 38px; }
}

@media (max-width: 540px) {
  .brand-name { display: none; }
  .hero { min-height: 720px; }
  .hero-content { padding-top: 150px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .statement, .work, .belief, .involved, .closing { padding-top: 82px; padding-bottom: 82px; }
  footer { grid-template-columns: 1fr; }
  .copyright { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
