:root {
  --navy: #081a45;
  --navy-2: #102d73;
  --blue: #1642b8;
  --gold: #dcc383;
  --gold-soft: #f2e8cc;
  --ivory: #f8f3e8;
  --white: #ffffff;
  --ink: #182033;
  --muted: #667085;
  --line: #e5e7eb;
  --shadow: 0 24px 70px rgba(8, 26, 69, .12);
  --radius: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
section { scroll-margin-top: 86px; }
.container { width: min(calc(100% - 44px), var(--container)); margin-inline: auto; }

.skip-link { position: fixed; left: 12px; top: 12px; z-index: 9999; transform: translateY(-160%); background: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; transition: .25s ease; }
.site-header.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 8px 28px rgba(8,26,69,.08); backdrop-filter: blur(14px); }
.nav-wrap { height: 86px; display: flex; align-items: center; justify-content: space-between; }
.brand { width: 126px; flex: 0 0 auto; }
.brand img { width: 100%; height: 62px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: white; text-decoration: none; font-size: .9rem; font-weight: 600; letter-spacing: .01em; }
.site-header.scrolled .site-nav a { color: var(--ink); }
.site-nav a:hover { color: var(--gold); }
.site-nav .nav-donate { padding: 11px 19px; border-radius: 8px; color: var(--navy); background: var(--gold); }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 6px; background: white; }
.site-header.scrolled .menu-toggle span { background: var(--ink); }

.hero { min-height: 780px; height: 100vh; position: relative; display: grid; align-items: center; overflow: hidden; color: white; }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 48%; transform: scale(1.015); }
.hero-overlay { background: linear-gradient(90deg, rgba(5,20,55,.96) 0%, rgba(5,20,55,.85) 42%, rgba(5,20,55,.36) 72%, rgba(5,20,55,.12) 100%), linear-gradient(0deg, rgba(5,20,55,.45), transparent 45%); }
.hero-content { position: relative; z-index: 2; padding-top: 72px; }
.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.light { color: var(--gold); }
.eyebrow.gold { color: var(--gold); }
h1, h2 { margin: 0; font-family: "Libre Baskerville", serif; letter-spacing: -.035em; line-height: 1.1; }
h1 { max-width: 850px; font-size: clamp(3.4rem, 6.6vw, 6.3rem); color: white; }
h2 { font-size: clamp(2.35rem, 4.3vw, 4.15rem); }
h3 { line-height: 1.3; }
.hero-copy { max-width: 700px; margin: 26px 0 34px; color: rgba(255,255,255,.84); font-size: clamp(1.06rem, 1.7vw, 1.24rem); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 23px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: var(--navy); background: var(--gold); }
.button-gold:hover { background: #ead9aa; }
.button-ghost { color: white; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.06); }

.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; color: rgba(255,255,255,.8); text-decoration: none; font-size: 1.5rem; }

.section, .section-blue { padding: 118px 0; }
.section-blue { color: white; background: var(--navy); }
.purpose-grid { display: block; }
.purpose h2 { max-width: 850px; color: white; }
.purpose-lead { max-width: 900px; margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: 1.13rem; }
.mission-panel { position: relative; padding: 38px; border: 1px solid rgba(220,195,131,.4); background: rgba(255,255,255,.05); }
.mission-panel::before { content: "“"; position: absolute; top: 8px; right: 24px; color: rgba(220,195,131,.22); font-family: Georgia, serif; font-size: 7rem; line-height: 1; }
.mission-panel p:last-child { position: relative; margin: 0; font-family: "Libre Baskerville", serif; font-size: 1.32rem; line-height: 1.6; }
.founder-signature { margin-top: 24px; display: grid; grid-template-columns: 180px 1fr; column-gap: 18px; align-items: center; }
.founder-signature img { width: 180px; height: 66px; object-fit: contain; object-position: left center; grid-row: span 2; }
.founder-signature strong { align-self: end; font-size: .95rem; }
.founder-signature span { align-self: start; color: rgba(255,255,255,.62); font-size: .88rem; }
.value-grid { margin-top: 72px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; max-width: 880px; }
.value-item { padding: 30px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.04); }
.value-number { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .16em; }
.value-item h3 { margin: 12px 0 8px; font-size: 1.24rem; }
.value-item p { margin: 0; color: rgba(255,255,255,.65); }

.section-heading { display: grid; grid-template-columns: 1fr .72fr; gap: 80px; align-items: end; margin-bottom: 50px; }
.section-heading p:last-child { margin: 0; color: var(--muted); font-size: 1.04rem; }
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature-card { position: relative; padding: 34px 32px; border: 1px solid var(--line); background: white; box-shadow: 0 10px 35px rgba(8,26,69,.04); transition: .25s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-box { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #e8dfc7; background: var(--gold-soft); color: var(--navy); }
.icon-box svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin: 23px 0 10px; font-size: 1.3rem; }
.feature-card p { margin: 0; color: var(--muted); }
.status { display: inline-block; margin-top: 22px; color: var(--blue); font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.projects { background: var(--ivory); }
.projects-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 82px; align-items: start; }
.projects-intro { position: sticky; top: 120px; }
.projects-intro p:not(.eyebrow) { color: var(--muted); font-size: 1.04rem; }
.text-link { display: inline-flex; gap: 9px; margin-top: 16px; color: var(--blue); font-weight: 700; text-decoration: none; }
.project-list { border-top: 1px solid #d9d5ca; }
.project-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 20px; align-items: start; padding: 30px 0; border-bottom: 1px solid #d9d5ca; }
.project-index { color: #9b7e39; font-weight: 700; font-size: .82rem; }
.project-row h3 { margin: 0 0 7px; font-size: 1.28rem; }
.project-row p { margin: 0; color: var(--muted); }
.project-tag { padding: 7px 11px; border: 1px solid #ddd6c6; color: var(--navy-2); background: white; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.donate-section { padding: 76px 0; background: white; }
.donate-card { padding: 66px; color: white; background: linear-gradient(135deg, var(--navy), var(--navy-2)); display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; box-shadow: var(--shadow); border-top: 5px solid var(--gold); }
.donate-card h2 { max-width: 720px; }
.donate-card p:not(.eyebrow) { max-width: 700px; color: rgba(255,255,255,.76); }

.contact-grid { display: grid; grid-template-columns: 1fr .78fr; gap: 88px; align-items: start; }
.contact-grid > div:first-child > p:last-child { max-width: 600px; color: var(--muted); font-size: 1.05rem; }
.contact-card { padding: 36px; border-left: 4px solid var(--gold); background: var(--ivory); }
.contact-card a { color: var(--blue); font-size: 1.15rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-label { margin: 20px 0 3px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-label:first-child { margin-top: 0; }
.contact-note { margin-top: 27px; color: var(--muted); font-size: .86rem; }

footer { padding: 68px 0 26px; color: white; background: #061334; }
.footer-grid { display: grid; grid-template-columns: 145px 1fr auto; gap: 44px; align-items: center; }
.footer-grid img { width: 125px; }
.footer-title { margin: 0 0 5px; font-weight: 700; }
.footer-grid p:last-child { margin: 0; color: rgba(255,255,255,.57); }
.footer-links { display: grid; gap: 7px; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; color: rgba(255,255,255,.48); font-size: .82rem; }
.footer-bottom a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-nav { position: fixed; inset: 86px 18px auto; display: none; flex-direction: column; align-items: stretch; padding: 22px; background: white; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a, .site-header.scrolled .site-nav a { color: var(--ink); }
  .menu-toggle { display: block; }
  .purpose-grid, .section-heading, .projects-layout, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .card-grid { grid-template-columns: 1fr; }
  .projects-intro { position: static; }
  .donate-card { grid-template-columns: 1fr; padding: 50px; }
  .footer-grid { grid-template-columns: 125px 1fr; }
  .footer-links { grid-column: 2; grid-template-columns: repeat(2,auto); justify-content: start; gap: 9px 26px; }
}


@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav-wrap { height: 76px; }
  .brand { width: 106px; }
  .brand img { height: 54px; }
  .site-nav { inset: 76px 14px auto; }
  .hero { min-height: 720px; }
  .hero-content { padding-top: 44px; }
  h1 { font-size: clamp(3rem, 15vw, 4.35rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section, .section-blue { padding: 88px 0; }
  .mission-panel { padding: 28px; }
  .founder-signature { grid-template-columns: 145px 1fr; }
  .founder-signature img { width: 145px; }
  .value-grid { grid-template-columns: 1fr; margin-top: 52px; }
  .project-row { grid-template-columns: 32px 1fr; }
  .project-tag { grid-column: 2; justify-self: start; }
  .donate-section { padding: 42px 0; }
  .donate-card { padding: 38px 25px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-column: 1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.mission-panel, .value-grid { display: none !important; }


/* Final section color direction */
.section-cream {
  padding: 118px 0;
  color: var(--navy);
  background: var(--ivory);
}
.section-cream .eyebrow { color: var(--blue); }
.section-cream .purpose-grid {
  max-width: 980px;
}
.section-cream .purpose h2,
.section-cream h2 {
  color: var(--blue);
}
.section-cream .purpose-lead {
  max-width: 900px;
  color: #415071;
  font-size: 1.13rem;
}
.section-cream .founder-signature strong { color: var(--navy); }
.section-cream .founder-signature span { color: #6b7280; }

.scholarships.section-blue {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy-2) 56%, var(--navy) 100%);
}
.scholarships.section-blue .eyebrow { color: var(--gold); }
.scholarships.section-blue h2 { color: var(--white); }
.scholarships.section-blue .section-heading p:last-child { color: rgba(255,255,255,.76); }
.scholarships.section-blue .feature-card {
  border: 1px solid rgba(255,255,255,.16);
  color: var(--white);
  background: rgba(255,255,255,.07);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.scholarships.section-blue .feature-card:hover {
  background: rgba(255,255,255,.11);
  box-shadow: 0 24px 60px rgba(3,14,48,.24);
}
.scholarships.section-blue .feature-card p { color: rgba(255,255,255,.72); }
.scholarships.section-blue .icon-box {
  border-color: rgba(220,195,131,.45);
  color: var(--gold);
  background: rgba(220,195,131,.1);
}
.scholarships.section-blue .status { color: var(--gold); }

@media (max-width: 640px) {
  .section-cream { padding: 88px 0; }
}

/* Centered, readable Our Mission section */
.section-cream#about {
  text-align: center;
  color: var(--navy);
  background: var(--ivory);
}
.section-cream#about .purpose-grid {
  max-width: 900px;
  margin-inline: auto;
}
.section-cream#about .reveal {
  width: 100%;
}
.section-cream#about .eyebrow,
.section-cream#about .eyebrow.gold {
  margin: 0 0 20px;
  color: #9b7e39;
  text-align: center;
  letter-spacing: .18em;
}
.section-cream#about h2 {
  max-width: 850px;
  margin: 0 auto;
  color: var(--blue);
  text-align: center;
}
.section-cream#about .purpose-lead {
  max-width: 820px;
  margin: 30px auto 0;
  color: #263653;
  text-align: center;
  font-size: 1.13rem;
  line-height: 1.85;
}
.section-cream#about .founder-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 34px auto 0;
  text-align: center;
}
.section-cream#about .founder-signature img {
  width: 175px;
  height: 62px;
  margin: 0 auto 7px;
  object-fit: contain;
  object-position: center;
}
.section-cream#about .founder-signature strong {
  color: var(--navy);
  font-size: .95rem;
}
.section-cream#about .founder-signature span {
  color: #526079;
  font-size: .86rem;
}

@media (max-width: 640px) {
  .section-cream#about .purpose-lead {
    font-size: 1.02rem;
    line-height: 1.75;
  }
  .section-cream#about .founder-signature img {
    width: 150px;
    height: 56px;
  }
}

/* HARD FIX: centered and readable mission section */
#about.section-cream {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: auto !important;
  padding: 110px 0 !important;
  background: #f8f3e8 !important;
  color: #081a45 !important;
  text-align: center !important;
}
#about.section-cream > .container,
#about.section-cream .purpose-grid {
  width: min(calc(100% - 44px), 920px) !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
  text-align: center !important;
}
#about.section-cream .reveal,
#about.section-cream .reveal.visible {
  width: 100% !important;
  opacity: 1 !important;
  transform: none !important;
  text-align: center !important;
}
#about.section-cream .eyebrow,
#about.section-cream .eyebrow.gold {
  display: block !important;
  margin: 0 auto 18px !important;
  color: #9b7e39 !important;
  text-align: center !important;
}
#about.section-cream h2 {
  display: block !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  color: #1642b8 !important;
  text-align: center !important;
}
#about.section-cream .purpose-lead {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 800px !important;
  margin: 30px auto 0 !important;
  color: #182033 !important;
  text-align: center !important;
  font-size: 1.13rem !important;
  line-height: 1.85 !important;
}
#about.section-cream .founder-signature {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 34px auto 0 !important;
  gap: 2px !important;
  color: #081a45 !important;
  text-align: center !important;
}
#about.section-cream .founder-signature img {
  display: block !important;
  width: 170px !important;
  height: 64px !important;
  margin: 0 auto 8px !important;
  object-fit: contain !important;
  object-position: center !important;
}
#about.section-cream .founder-signature strong {
  display: block !important;
  color: #081a45 !important;
  text-align: center !important;
}
#about.section-cream .founder-signature span {
  display: block !important;
  color: #526079 !important;
  text-align: center !important;
}
@media (max-width: 640px) {
  #about.section-cream { padding: 82px 0 !important; }
  #about.section-cream > .container,
  #about.section-cream .purpose-grid { width: min(calc(100% - 28px), 920px) !important; }
  #about.section-cream .purpose-lead { font-size: 1.02rem !important; line-height: 1.75 !important; }
}
