/* ============================================================
   Surge Impact Foundation — surgeimpact.org
   Palette drawn from the SIF logo:
   Surge Red #EE3D4A · Crimson #B9303A · Ink #171214 · Paper #FFFFFF
   ============================================================ */

:root {
  --red: #EE3D4A;
  --crimson: #B9303A;
  --ink: #171214;
  --body: #4A4145;
  --muted: #857B7E;
  --paper: #FFFFFF;
  --blush: #FBF1F1;
  --mist: #F7F4F4;
  --line: #E9E1E2;
  --display: "Archivo", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

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

h1, h2, h3, .display { font-family: var(--display); color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}

/* Signature: the surge line */
.surge { display: block; width: 150px; height: 22px; margin-top: 18px; }
.surge polyline { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  font-family: var(--display); font-size: 0.92rem; font-weight: 600;
  color: var(--ink);
}
.nav-links a:hover { color: var(--red); text-decoration: none; }
.nav-links a.active { color: var(--red); }
.nav-links a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--ink); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 6px;
  background: var(--red); color: #fff !important;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--crimson); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); }
.btn.ghost:hover { border-color: var(--red); color: var(--red) !important; background: transparent; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; }
.hero .lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  max-width: 620px; margin: 26px 0 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.mosaic {
  margin-top: 60px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px;
}
.mosaic img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; }
.mosaic img:first-child { grid-row: span 1; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section.tint { background: var(--mist); }
.section.blush { background: var(--blush); }
.section-head { max-width: 700px; margin-bottom: 44px; }

/* Drivers (Convene/Incubate/Deliver) */
.drivers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.drivers h3 { margin-bottom: 8px; }
.drivers h3 span { color: var(--red); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { border-top: 3px solid var(--red); padding-top: 16px; }
.stat .num {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--ink);
  display: block; line-height: 1;
}
.stat .lbl { font-size: 0.98rem; margin-top: 8px; display: block; }

/* Quote */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.5; color: var(--ink);
}
.quote figcaption { margin-top: 22px; font-family: var(--display); font-size: 0.95rem; color: var(--muted); }
.quote .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card img { height: 220px; width: 100%; object-fit: cover; }
.card .pad { padding: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 1.02rem; }

/* Pillars (What We Do) */
.pillar { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 44px 0; border-bottom: 1px solid var(--line); }
.pillar:last-of-type { border-bottom: 0; }
.pillar img { border-radius: 10px; width: 100%; height: 320px; object-fit: cover; }
.pillar .k { font-family: var(--display); font-weight: 900; color: var(--red); font-size: 0.95rem; letter-spacing: 0.1em; }
.pillar h2 { margin: 8px 0 14px; }
.pillar.flip img { order: 2; }

/* Board */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.board figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.board h3 { margin: 14px 0 2px; font-size: 1.05rem; }
.board .role { font-family: var(--display); font-size: 0.82rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.board p { font-size: 0.95rem; margin-top: 8px; }

/* Story blocks */
.story { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: center; margin-bottom: 54px; }
.story img { border-radius: 10px; height: 260px; width: 100%; object-fit: cover; }
.story:last-child { margin-bottom: 0; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial {
  background: var(--paper); border-left: 4px solid var(--red);
  padding: 26px; border-radius: 0 10px 10px 0;
  font-size: 1rem; font-style: italic;
}
.testimonial cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--display); font-size: 0.88rem; color: var(--muted); }

/* Partner page */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.partner-grid .card .pad { padding: 30px; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.badge {
  font-family: var(--display); font-size: 0.85rem; font-weight: 700;
  background: var(--blush); color: var(--crimson);
  border: 1px solid #F3C9CC; border-radius: 999px; padding: 8px 18px;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-list { list-style: none; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.contact-list strong { font-family: var(--display); color: var(--ink); display: inline-block; min-width: 90px; }

/* CTA band */
.cta-band { background: var(--ink); color: #EFE9EA; text-align: center; padding: 74px 24px; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; color: #C9BFC1; }

/* Footer */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 54px 0 34px; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 40px; margin-bottom: 16px; }
.site-footer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--body); }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 52px; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 640px; margin-top: 18px; font-size: 1.15rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .drivers, .stats, .board, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .pillar, .story, .cards, .partner-grid, .contact-grid, .mosaic { grid-template-columns: 1fr; }
  .pillar.flip img { order: 0; }
  .mosaic img { height: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .drivers, .stats, .board, .testimonials { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 24px; gap: 16px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 56px 0; }
}
