:root {
  --navy: #071d3a;
  --blue: #145da8;
  --sky: #2f8bd1;
  --gold: #d99a16;
  --gold-soft: #fff4d8;
  --surface: #f6f9fc;
  --white: #ffffff;
  --text: #172033;
  --muted: #5d6b82;
  --border: #dbe3ee;
  --shadow: 0 22px 55px rgba(7, 29, 58, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 18px;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 139, 209, .35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  padding: 10px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .94) 48%, rgba(238, 247, 255, .72)),
    linear-gradient(180deg, rgba(255, 248, 232, .5), rgba(255, 255, 255, 0));
  border-bottom: 1px solid rgba(219, 227, 238, .82);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, padding .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 35px rgba(7, 29, 58, .09);
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(100%, 520px);
  justify-self: start;
  padding: 0;
  color: var(--navy);
  font-weight: 900;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  transition: transform .22s ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-2px);
}

.brand img {
  width: 100%;
  height: 94px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 12px rgba(7, 29, 58, .08));
  transition: transform .22s ease;
}

.brand:hover img,
.brand:focus-visible img {
  transform: translateY(-2px) scale(1.01);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 6px;
  width: fit-content;
  padding: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(219, 227, 238, .86);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(7, 29, 58, .07);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  text-decoration: none;
  opacity: .82;
  transition: color .2s ease, opacity .2s ease, background .2s ease, transform .2s ease;
}

.nav a:hover,
.nav a.is-active {
  opacity: 1;
  background: rgba(20, 93, 168, .08);
  transform: translateY(-1px);
}

.nav a:not(.nav-button)::after {
  content: none;
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: none;
}

.nav-button {
  padding: 11px 18px !important;
  color: var(--white) !important;
  background: var(--navy);
  border-radius: 999px;
  opacity: 1 !important;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, .72fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  min-height: 720px;
  padding: 84px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88)),
    radial-gradient(circle at 86% 16%, rgba(217, 154, 22, .32), transparent 28%),
    radial-gradient(circle at 6% 12%, rgba(47, 139, 209, .22), transparent 32%),
    linear-gradient(135deg, #f6fbff 0%, #ffffff 48%, #fff8e9 100%);
}

.hero::before {
  content: "";
  position: absolute;
}

.hero-copy {
  max-width: 830px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.2;
}

p {
  line-height: 1.72;
}

.hero-text {
  max-width: 710px;
  margin-bottom: 30px;
  color: #42516a;
  font-size: clamp(18px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span {
  padding: 9px 12px;
  color: var(--navy);
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 14px 30px rgba(20, 93, 168, .23);
}

.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--border);
}

.secondary:hover {
  border-color: rgba(20, 93, 168, .3);
  box-shadow: 0 12px 26px rgba(7, 29, 58, .08);
}

.hero-panel {
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(219, 227, 238, .9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel img {
  display: block;
  width: min(100%, 390px);
  margin: 0 auto 26px;
  filter: drop-shadow(0 18px 26px rgba(7, 29, 58, .12));
  transition: transform .28s ease, filter .28s ease;
}

.hero-panel:hover img {
  filter: drop-shadow(0 24px 34px rgba(7, 29, 58, .18));
  transform: translateY(-4px) scale(1.02);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panel-grid div {
  min-height: 128px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.panel-grid strong,
.panel-grid span {
  display: block;
}

.panel-grid strong {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 17px;
}

.panel-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section {
  padding: 88px clamp(18px, 5vw, 72px);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.body-copy {
  color: var(--muted);
  font-size: 18px;
}

.body-copy p:last-child,
.program-card p,
.involved-list p,
.donation p,
.contact p,
.footer p {
  margin-bottom: 0;
}

.programs {
  background: var(--surface);
}

.credibility {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 34px;
  padding-bottom: 34px;
  background: var(--navy);
}

.cred-card {
  padding: 22px;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
}

.cred-card strong,
.cred-card span {
  display: block;
}

.cred-card strong {
  margin-bottom: 8px;
  color: #ffc84b;
  font-size: 17px;
}

.cred-card span {
  color: #dbeafe;
  line-height: 1.6;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading p {
  color: var(--muted);
}

.section-heading.left {
  margin: 0;
  text-align: left;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.program-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 32, 51, .05);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.program-card::after {
  content: "Hover or focus to explore";
  display: block;
  margin-top: 20px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.program-card:hover,
.program-card:focus-visible {
  border-color: rgba(20, 93, 168, .34);
  box-shadow: 0 24px 55px rgba(23, 32, 51, .1);
  transform: translateY(-6px);
}

.program-card ul {
  display: grid;
  gap: 9px;
  max-height: 0;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  opacity: 0;
  transition: max-height .28s ease, opacity .28s ease, margin-top .28s ease;
}

.program-card:hover ul,
.program-card:focus-visible ul {
  max-height: 180px;
  margin-top: 18px;
  opacity: 1;
}

.program-card li {
  position: relative;
  padding-left: 18px;
  line-height: 1.45;
}

.program-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 999px;
}

.program-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--navy);
  background: var(--gold-soft);
  border: 1px solid rgba(217, 154, 22, .28);
  border-radius: 8px;
  font-weight: 900;
}

.program-card p,
.involved-list p {
  color: var(--muted);
}

.impact {
  color: var(--white);
  background:
    linear-gradient(rgba(7, 29, 58, .95), rgba(7, 29, 58, .95)),
    radial-gradient(circle at 80% 20%, rgba(217, 154, 22, .34), transparent 28%),
    var(--navy);
}

.impact h2,
.impact .eyebrow {
  color: var(--white);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.impact-grid div {
  padding: 28px 20px;
  text-align: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
}

.impact-grid strong {
  display: block;
  margin-bottom: 10px;
  color: #ffc84b;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1;
}

.impact-grid span {
  display: block;
  color: #dbeafe;
  font-weight: 800;
  line-height: 1.4;
}

.note {
  max-width: 740px;
  margin: 24px auto 0;
  color: #cbdaf0;
  text-align: center;
}

.involved {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 6vw, 72px);
}

.involved-list {
  display: grid;
  gap: 16px;
}

.involved-list article {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.involved-list article:hover {
  box-shadow: 0 18px 42px rgba(23, 32, 51, .08);
  transform: translateX(4px);
}

.process {
  background: var(--surface);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline div {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 32, 51, .05);
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 19px;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.donation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  background: linear-gradient(135deg, #fff8e8, #eef7ff);
}

.donation p {
  max-width: 760px;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 6vw, 64px);
  background: var(--surface);
}

.faq {
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--navy);
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.contact a {
  color: var(--blue);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .btn {
  justify-self: start;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)),
    radial-gradient(circle at 18% 12%, rgba(47, 139, 209, .24), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(217, 154, 22, .28), transparent 28%),
    var(--surface);
}

.thank-you {
  width: min(100%, 760px);
  padding: clamp(28px, 6vw, 56px);
  text-align: center;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.thank-you-brand {
  width: fit-content;
  margin: 0 auto 28px;
}

.thank-you-brand img {
  width: 180px;
  height: 180px;
}

.thank-you p:not(.eyebrow) {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 18px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(7, 29, 58, .22);
  font-size: 21px;
  font-weight: 900;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: minmax(240px, 390px) auto;
  }

  .brand {
    width: min(100%, 390px);
  }

  .brand img {
    height: 78px;
  }

  .nav {
    gap: 4px;
    font-size: 13px;
  }

  .nav a {
    padding: 9px 10px;
  }

  .hero,
  .intro,
  .involved,
  .donation,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .program-grid,
  .impact-grid,
  .credibility,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donation .btn {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    margin-left: auto;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 8px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 8px 10px;
    background: var(--surface);
    border-radius: 999px;
  }

  .nav .nav-button {
    background: var(--navy);
  }

  .hero,
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 620px) {
  .program-grid,
  .impact-grid,
  .panel-grid,
  .credibility,
  .timeline {
    grid-template-columns: 1fr;
  }

  .brand img {
    height: 66px;
  }

  .hero-actions,
  .hero-actions .btn,
  .donation .btn,
  .contact-form .btn {
    width: 100%;
  }

  .footer {
    display: block;
  }

  .footer p + p {
    margin-top: 8px;
  }
}
