/* ============================================================
   Wellspring Mission — Main Stylesheet
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:          #FAF9F6;
  --bg-alt:      #EEF5F3;
  --navy:        #16345B;
  --navy-deep:   #0F2542;
  --teal:        #1C8CAD;
  --teal-light:  #6FC6DE;
  --green:       #4F9B4C;
  --green-light: #8CC63F;
  --ink:         #22262B;
  --ink-soft:    #566072;
  --line:        rgba(22,52,91,0.12);
  --max:         1080px;
  --grad:        linear-gradient(120deg, var(--teal) 0%, var(--green) 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }

/* ---------- Utilities ---------- */
.wrap    { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}
.btn-primary             { background: var(--grad); color: #fff; }
.btn-primary:hover       { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost               { border: 1px solid var(--navy); color: var(--navy); }
.btn-ghost:hover         { border-color: var(--teal); color: var(--teal); }
.btn-sm                  { padding: 9px 18px; font-size: 0.82rem; }

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand           { display: flex; align-items: center; gap: 10px; }
.brand img       { height: 40px; width: auto; display: block; }
.brand span {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.navlinks        { display: flex; gap: 28px; font-size: 0.92rem; color: var(--ink-soft); }
.navlinks a:hover { color: var(--teal); }

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s ease;
}
/* X state */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(250,249,246,0.98);
  border-top: 1px solid var(--line);
  padding: 16px 28px 24px;
  gap: 4px;
}
.mobile-nav a {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--teal); }
.mobile-nav.open { display: flex; }

@media (max-width: 640px) {
  .navlinks      { display: none; }
  .nav-cta       { display: none; }
  .nav-toggle    { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 28px 90px;
  text-align: center;
}
.verse {
  max-width: 620px;
  margin: 0 auto 48px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.12rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.verse cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.hero-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.hero-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  font-size: 1rem;
  margin-top: 4px;
}
.hero-sub::before,
.hero-sub::after {
  content: "";
  height: 1px;
  width: 22px;
  background: var(--green-light);
}
.hero .tagline {
  max-width: 540px;
  margin: 22px auto 40px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero .tagline strong { color: var(--navy); font-weight: 600; }
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Wave ---------- */
.wave { width: 100%; height: 48px; display: block; }

/* ---------- Sections ---------- */
section        { padding: 80px 28px; }
.section-alt   { background: var(--bg-alt); }

/* ---------- Problem ---------- */
.problem            { max-width: 680px; margin: 0 auto; text-align: center; }
.problem h2         { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 22px; }
.problem p          { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 16px; }
.problem .ask {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--navy);
  font-size: 1.2rem;
  margin-top: 24px;
}

/* ---------- Model grid ---------- */
.model-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 760px) { .model-grid { grid-template-columns: 1fr; gap: 44px; } }
.model-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 18px;
  display: block;
}
.model-card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.model-card p  { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Mission banner ---------- */
.mission-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--teal) 100%);
  color: #fff;
  padding: 80px 28px;
  text-align: center;
}
.mission-banner h2              { color: #fff; font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 16px; }
.mission-banner p               { color: #D7E4EC; max-width: 520px; margin: 0 auto 30px; font-size: 1.05rem; }
.mission-banner .btn-primary    { background: #fff; color: var(--navy); }
.mission-banner .btn-primary:hover { background: #EFF6F3; }
.mission-banner .eyebrow        { color: #A9C2D1; }
.mission-banner .note           { margin-top: 18px; font-size: 0.85rem; color: #A9C2D1; font-style: italic; }

/* ---------- Involvement cards ---------- */
.involve-head       { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.involve-head h2    { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.cards {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 28px 30px;
  border-top: 3px solid var(--teal);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:nth-child(2)  { border-top-color: #2E9E8C; }
.card:nth-child(3)  { border-top-color: var(--green); }
.card:hover         { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(22,52,91,0.1); }
.card h3            { font-size: 1.3rem; margin-bottom: 12px; }
.card p             { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 22px; min-height: 70px; }
.card a             { color: var(--teal); font-weight: 600; font-size: 0.92rem; }
.card a:hover       { color: var(--navy); }

/* ---------- Instagram ---------- */
.ig          { text-align: center; }
.ig h2       { font-size: 1.6rem; margin-bottom: 8px; }
.ig p        { color: var(--ink-soft); margin-bottom: 36px; }
.ig p a      { color: var(--teal); font-weight: 600; }
.ig p a:hover{ color: var(--navy); }
.ig-embed {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: #C7D6E0;
  padding: 56px 28px 32px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand           { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img       { height: 36px; width: auto; flex-shrink: 0; }
.footer-brand h3        { color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.footer-brand p         { font-size: 0.88rem; color: #8FA6B8; max-width: 280px; }
.footer-links           { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col a           { display: block; font-size: 0.9rem; margin-bottom: 10px; color: #C7D6E0; }
.footer-col a:hover     { color: #fff; }
.footer-bottom {
  max-width: var(--max);
  margin: 20px auto 0;
  font-size: 0.8rem;
  color: #6C8399;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 640px) {
  .footer-grid {
    flex-direction: column;
    gap: 28px;
  }
  .footer-links {
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal    { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html    { scroll-behavior: auto; }
}

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- Supporters ---------- */
.supporters {
  background: var(--bg);
  padding: 80px 28px;
  text-align: center;
}
.supporters-head {
  margin-bottom: 48px;
}
.supporters-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  max-width: 560px;
  margin: 0 auto;
}
.supporters-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
}
.supporter-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.supporter-tile:hover {
  opacity: 1;
}
.supporter-tile img {
  height: 72px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
@media (max-width: 640px) {
  .supporters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
  .supporter-tile img {
    height: 52px;
    max-width: 140px;
  }
}
