/* =========================================================
   NOVA Educational and Charitable Trust — stylesheet
   Tokens pulled from the org's own seal/logo (see DESIGN_NOTES.md)
   ========================================================= */

:root{
  --sky:        #2E77A8;
  --sky-tint:   #EAF3F8;
  --leaf:       #2F7A4F;
  --leaf-dark:  #1F5638;
  --gold:       #C6862B;
  --gold-tint:  #FBF0DD;
  --paper:      #FBF9F4;
  --paper-alt:  #F3EFE4;
  --ink:        #23302B;
  --ink-soft:   #5B6660;
  --white:      #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, Segoe UI, Roboto, sans-serif;

  --radius: 14px;
  --wrap: 1160px;
  --shadow-sm: 0 2px 10px rgba(35,48,43,0.06);
  --shadow-md: 0 12px 30px rgba(35,48,43,0.12);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(46,119,168,0.08), transparent 28%),
    linear-gradient(180deg, #fcfbf7 0%, var(--paper) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

.wrap{
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--leaf-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1{ font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3{ font-size: 1.25rem; margin-bottom: 0.4em; }

p{ margin: 0 0 1em; color: var(--ink); }

.eyebrow{
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.6em;
}
.center{ text-align: center; }
h2.center{ max-width: 640px; margin-inline: auto; margin-bottom: 2.5rem; }
.eyebrow.center{ text-align: center; }

.skip-link{
  position: absolute; left: -999px; top: auto;
}
.skip-link:focus{
  left: 12px; top: 12px; z-index: 999;
  background: var(--white); padding: 8px 14px; border-radius: 8px;
  box-shadow: var(--shadow-md);
}

a{ color: var(--sky); text-decoration: none; }
a:focus-visible, button:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Buttons */
.btn{
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary{
  background: var(--leaf);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ background: var(--leaf-dark); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  color: var(--leaf-dark);
  border: 1.5px solid var(--leaf-dark);
}
.btn-ghost:hover{ background: var(--leaf-dark); color: var(--white); }

/* ---------------- Header ---------------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,244,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(35,48,43,0.08);
  box-shadow: 0 8px 24px rgba(35,48,43,0.05);
}
.header-row{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.wordmark{
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); 
}
.wordmark-seal{ width: 40px; height: 40px; border-radius: 50%; }
.wordmark-text{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--leaf-dark);
  line-height: 1.1;
  display: flex; flex-direction: column;
}
.wordmark-text small{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.main-nav{ display: flex; gap: 28px; }
.main-nav a{
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.main-nav a::after{
  content: ""; position: absolute; left:0; right:0; bottom: -6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.2s ease;
}
.main-nav a:hover::after{ transform: scaleX(1); }

.nav-toggle{
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span{
  width: 22px; height: 2px; background: var(--ink); display: block;
}

/* ---------------- Hero ---------------- */
.hero{ padding: 72px 0 48px; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy{ max-width: 620px; }
.hero-badges{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.hero-pill{
  display: inline-flex; align-items: center;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(46,119,168,0.1);
  color: var(--sky);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.seal-badge{
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(145deg, var(--leaf), var(--leaf-dark));
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
}
.seal-badge span{ font-size: 0.6rem; letter-spacing: 0.12em; }
.seal-badge strong{ font-size: 1.3rem; line-height: 1; }

.hero-sub{ font-size: 1.08rem; color: var(--ink-soft); max-width: 540px; }
.hero-ctas{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.photo-seal{
  border-radius: 50% / 45%;
  overflow: hidden;
  aspect-ratio: 1 / 0.95;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--white);
  outline: 2px solid var(--sky-tint);
}
.photo-seal img{ width: 100%; height: 100%; object-fit: cover; }
.photo-seal--sm{ max-width: 380px; margin-inline: auto; }

/* ---------------- Stats ---------------- */
.stats{ background: linear-gradient(135deg, var(--leaf-dark), #28563b); color: var(--white); padding: 42px 0; }
.stats-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat strong{
  display: block; font-family: var(--font-display); font-size: 2.3rem; color: var(--gold);
}
.stat strong span{ font-size: 1.3rem; }
.stat span:last-child{ font-size: 0.88rem; color: #DCE7DE; }

/* ---------------- About ---------------- */
.about{ padding: 96px 0; }
.about-grid{
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center;
}
.mission-list{ margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.mission-list div{ display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--ink-soft); }
.dot{
  width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--leaf));
  margin-top: 6px; flex-shrink: 0;
}

/* ---------------- Pillars ---------------- */
.pillars{ background: var(--sky-tint); padding: 96px 0; }
.pillar-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.pillar-card{
  background: var(--white); border-radius: 20px; padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(35,48,43,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-num{
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold-tint); color: var(--gold);
  font-family: var(--font-display); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 0.95rem;
}
.pillar-card p{ color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

/* ---------------- Impact feature ---------------- */
.impact{ padding: 96px 0; }
.impact-grid{
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
}
.impact-copy p{ color: var(--ink-soft); }

/* ---------------- Gallery ---------------- */
.gallery{ padding: 96px 0; background: var(--paper-alt); }
.gallery-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.gallery-grid figure{ margin: 0; }
.gallery-grid img{
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 18px;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}
.gallery-grid figure:hover img{ transform: scale(1.04); }
.gallery-grid figcaption{
  text-align: center; margin-top: 12px; font-size: 0.85rem; color: var(--ink-soft);
}

/* ---------------- CTA band ---------------- */
.cta-band{ background: var(--gold-tint); padding: 80px 0; }
.cta-grid{
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.cta-band h2{ margin-bottom: 0.4em; }
.contact-card{
  background: var(--white); border-radius: 22px; padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(35,48,43,0.06);
}
.contact-card address{ font-style: normal; color: var(--ink-soft); }
.contact-card p{ margin-bottom: 16px; }
.contact-card .btn{ width: 100%; text-align: center; }

/* ---------------- Footer ---------------- */
.site-footer{ background: var(--leaf-dark); color: #E7EFE7; padding: 56px 0 28px; }
.footer-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start;
}
.footer-brand{ display: flex; gap: 14px; align-items: flex-start; }
.footer-seal{ width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.footer-brand strong{ display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 6px; color: var(--white); }
.footer-brand address{ font-style: normal; color: #C7D8C9; font-size: 0.9rem; line-height: 1.6; }
.footer-links{ display: flex; flex-direction: column; gap: 10px; }
.footer-links a{ color: #DCE7DE; font-size: 0.92rem; }
.footer-links a:hover{ color: var(--gold); }
.footer-note{ font-size: 0.82rem; color: #A9C0AC; }
.footer-note p{ margin-bottom: 8px; }

/* ---------------- Scroll-in animation ---------------- */
[data-animate]{
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].in-view{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  [data-animate]{ opacity: 1; transform: none; transition: none; }
  html{ scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px){
  .main-nav{
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; gap: 0;
    border-bottom: 1px solid rgba(35,48,43,0.08);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .main-nav.open{ max-height: 320px; }
  .main-nav a{ padding: 14px 24px; border-top: 1px solid rgba(35,48,43,0.06); }
  .nav-toggle{ display: flex; }

  .hero-grid, .about-grid, .impact-grid, .cta-grid{
    grid-template-columns: 1fr; gap: 32px;
  }
  .about-photo, .impact-photo{ order: -1; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .pillar-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px){
  .pillar-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero{ padding-top: 40px; }
  .about, .pillars, .impact, .gallery, .cta-band{ padding: 64px 0; }
}
