/* ============================================================
   Friends of Durham Guardian ad Litem — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Mulish:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Brand */
  --teal-900: #10453a;
  --teal-800: #154f42;
  --teal-700: #1a5e4e;
  --teal-600: #1f6f5c;   /* primary */
  --teal-500: #2a8470;
  --teal-200: #bcd9cf;
  --teal-100: #e2efe9;
  --teal-50:  #f1f7f4;

  --gold-600: #cf9a26;
  --gold-500: #e8b34a;   /* accent */
  --gold-300: #f4d28a;
  --gold-100: #fbeecb;

  /* Neutrals */
  --cream:    #fbf8f3;
  --cream-2:  #f4eee3;
  --ink:      #20302b;
  --ink-soft: #54635c;
  --ink-faint:#8a958e;
  --white:    #ffffff;
  --line:     #e8e1d4;
  --line-2:   #ddd4c4;

  /* Type */
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Mulish', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16,69,58,.06), 0 2px 8px rgba(16,69,58,.05);
  --shadow-md: 0 6px 24px rgba(16,69,58,.10), 0 2px 8px rgba(16,69,58,.06);
  --shadow-lg: 0 20px 60px rgba(16,69,58,.16);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-padding-top: 132px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--teal-900); letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before { content:""; width: 24px; height: 2px; background: var(--gold-500); display: inline-block; }
.eyebrow.center::before { display: none; }
.lead { font-size: 1.22rem; color: var(--ink-soft); line-height: 1.65; }
.serif-quote { font-family: var(--serif); font-style: italic; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: var(--container-narrow); margin-left: auto; margin-right: auto; }
section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.bg-cream { background: var(--cream); }
.bg-cream2 { background: var(--cream-2); }
.bg-teal { background: var(--teal-700); color: #eaf3ef; }
.bg-teal h1, .bg-teal h2, .bg-teal h3 { color: #fff; }
.bg-teal50 { background: var(--teal-50); }
.bg-white { background: var(--white); }

.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  letter-spacing: .01em;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  line-height: 1; white-space: nowrap; cursor: pointer;
}
.btn svg { width: 17px; height: 17px; }
.btn-donate { background: var(--gold-500); color: var(--teal-900); box-shadow: 0 4px 14px rgba(207,154,38,.35); }
.btn-donate:hover { background: var(--gold-300); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(207,154,38,.42); }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--teal-700); border: 1.5px solid var(--teal-200); }
.btn-ghost:hover { background: var(--teal-50); border-color: var(--teal-500); }
.btn-ondark { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-ondark:hover { background: rgba(255,255,255,.95); color: var(--teal-800); border-color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.text-link { color: var(--teal-600); font-weight: 700; display: inline-flex; align-items: center; gap: 7px; transition: gap .2s var(--ease); }
.text-link:hover { gap: 12px; color: var(--teal-700); }
.text-link svg { width: 16px; height: 16px; }

/* ============================================================
   Promo banner
   ============================================================ */
.promo-banner {
  background: var(--teal-900);
  color: var(--gold-300);
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 9px 20px;
  display: flex; align-items: center; justify-content: center; gap: 11px;
}
.promo-banner .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); flex: none; }
.promo-banner strong { color: #fff; }

/* ============================================================
   Navigation
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; }
.nav {
  background: rgba(251,248,243,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .b1 { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--teal-900); letter-spacing: -.01em; }
.brand-text .b2 { font-family: var(--sans); font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-weight: 600; font-size: 15px; color: var(--ink-soft);
  padding: 9px 15px; border-radius: 8px; transition: color .15s, background .15s; position: relative;
}
.nav-links a:hover { color: var(--teal-700); background: var(--teal-50); }
.nav-links a.active { color: var(--teal-800); }
.nav-links a.active::after {
  content:""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  background: var(--gold-500); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--teal-800); border-radius: 2px; transition: .25s var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 640px; display: flex; align-items: center;
  color: #fff; overflow: hidden; padding: 100px 0; }
.hero-ph { position: absolute; inset: 0; z-index: 0; }
.hero-ph .ph-photo { width: 100%; height: 100%; }
.hero::after { /* readability scrim */
  content:""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(16,69,58,.86) 0%, rgba(16,69,58,.64) 48%, rgba(16,69,58,.30) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 4rem); max-width: 16ch; }
.hero .hero-sub { font-size: 1.3rem; color: rgba(255,255,255,.9); max-width: 40ch; margin-top: 22px; font-weight: 400; }
.hero .hero-kicker { color: var(--gold-300); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; margin-bottom: 22px; display: block; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* Page header (interior pages) */
.page-head { padding: 76px 0 64px; background: var(--teal-700); color: #eaf3ef; position: relative; overflow: hidden; }
.page-head::after { content:""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle, rgba(232,179,74,.18), transparent 70%); }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); max-width: 20ch; }
.page-head p { color: rgba(255,255,255,.85); font-size: 1.18rem; max-width: 56ch; margin-top: 18px; }
.page-head .eyebrow { color: var(--gold-300); }
.page-head .eyebrow::before { background: var(--gold-400, var(--gold-500)); }

/* ============================================================
   Image placeholders
   ============================================================ */
.ph {
  position: relative; background:
    repeating-linear-gradient(135deg, rgba(31,111,92,.04) 0 14px, transparent 14px 28px),
    var(--teal-50);
  border: 1.5px dashed var(--teal-200);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; padding: 26px; color: var(--teal-600); overflow: hidden;
}
.ph svg.ph-ico { width: 30px; height: 30px; opacity: .65; }
.ph .ph-label { font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-500); }
.ph .ph-cap { font-size: 13.5px; color: var(--ink-soft); max-width: 30ch; line-height: 1.4; font-weight: 500; }
.ph-photo { /* dark variant for hero */
  border: none; border-radius: 0;
  background: linear-gradient(135deg, #1c5e4f, #0f4135);
  color: rgba(255,255,255,.5);
}
.ph-photo .ph-label, .ph-photo .ph-cap { color: rgba(255,255,255,.55); }
.ph-tall { aspect-ratio: 3/4; }
.ph-wide { aspect-ratio: 16/10; }
.ph-square { aspect-ratio: 1/1; }
.ph-card { min-height: 200px; }
.ph-round { border-radius: 50%; aspect-ratio: 1/1; }

/* ============================================================
   Cards & grids
   ============================================================ */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.media-left { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 26px 26px 30px; }
.card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--teal-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; color: var(--teal-600); }

/* Stat / fact */
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; text-align: center; box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--serif); font-weight: 700; font-size: 3rem; color: var(--teal-600); line-height: 1; }
.stat .num .unit { color: var(--gold-600); }
.stat .lbl { margin-top: 12px; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.stat.placeholder .num { color: var(--teal-200); }
.tbd { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-600); background: var(--gold-100); padding: 4px 9px; border-radius: 6px; margin-bottom: 14px; }

/* ============================================================
   Board members
   ============================================================ */
.board-card { text-align: center; }
.board-card .ph-round { margin: 0 auto 18px; max-width: 168px; }
.board-card .bm-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--teal-900); }
.board-card .bm-role { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); margin-top: 4px; }
.board-card .bm-bio { font-size: 14.5px; color: var(--ink-soft); margin-top: 12px; }

/* ============================================================
   Expander (See More)
   ============================================================ */
.expander { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; }
.expander + .expander { margin-top: 18px; }
.expander-head { width: 100%; display: flex; align-items: center; gap: 20px; padding: 28px 30px; text-align: left; }
.expander-head .ex-ico { width: 50px; height: 50px; border-radius: 12px; background: var(--teal-100); flex: none;
  display: flex; align-items: center; justify-content: center; }
.expander-head .ex-ico svg { width: 25px; height: 25px; color: var(--teal-600); }
.expander-head .ex-title { flex: 1; }
.expander-head h3 { font-size: 1.45rem; }
.expander-head .ex-sub { color: var(--ink-soft); font-size: 15px; margin-top: 3px; font-family: var(--sans); }
.expander-toggle { flex: none; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-600); font-size: 14px; }
.expander-toggle .plus { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--teal-200);
  display: flex; align-items: center; justify-content: center; transition: .25s var(--ease); }
.expander-toggle .plus svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.expander.open .expander-toggle .plus { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.expander.open .expander-toggle .plus svg { transform: rotate(45deg); }
.expander-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.expander.open .expander-body { max-height: 900px; }
.expander-body-inner { padding: 0 30px 30px 100px; color: var(--ink-soft); }
.expander-body-inner p { margin-bottom: 14px; }

/* ============================================================
   Partners
   ============================================================ */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner {
  aspect-ratio: 3/2; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 18px; text-align: center; transition: .2s var(--ease);
}
.partner:hover { box-shadow: var(--shadow-sm); border-color: var(--teal-200); }
.partner .p-logo { width: 40px; height: 40px; border-radius: 9px; background: var(--teal-50);
  display: flex; align-items: center; justify-content: center; color: var(--teal-300, var(--teal-500)); }
.partner .p-name { font-weight: 700; font-size: 14px; color: var(--teal-800); }
.partner .p-tag { font-size: 11.5px; color: var(--ink-faint); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: linear-gradient(120deg, var(--teal-800), var(--teal-600)); color: #fff;
  border-radius: var(--radius-lg); padding: 60px 56px; position: relative; overflow: hidden; }
.cta-band::after { content:""; position: absolute; right: -60px; bottom: -90px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(232,179,74,.22), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: 2.2rem; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.86); margin-top: 14px; max-width: 48ch; font-size: 1.1rem; }
.cta-band .hero-actions { margin-top: 30px; }

/* Pull quote */
.pullquote { text-align: center; }
.pullquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.3; color: var(--teal-800); max-width: 24ch; margin: 0 auto; }
.pullquote .mark { font-size: 4rem; color: var(--gold-500); line-height: .4; font-family: var(--serif); }
.bg-teal .pullquote p { color: #fff; }

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 13.5px; color: var(--teal-800); margin-bottom: 7px; letter-spacing: .01em; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line-2); border-radius: 10px;
  padding: 13px 15px; transition: border .15s, box-shadow .15s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(31,111,92,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--ink-faint); margin-top: 4px; }
.form-success { background: var(--teal-50); border: 1px solid var(--teal-200); color: var(--teal-800);
  border-radius: 10px; padding: 16px 18px; font-weight: 600; display: none; align-items: center; gap: 10px; }
.form-success.show { display: flex; }

/* ============================================================
   Email signup strip
   ============================================================ */
.signup { background: var(--teal-800); color: #eaf3ef; border-radius: var(--radius-lg); padding: 48px 52px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.signup h3 { color: #fff; font-size: 1.8rem; }
.signup p { color: rgba(255,255,255,.82); margin-top: 8px; }
.signup-form { display: flex; gap: 10px; min-width: 380px; }
.signup-form input { flex: 1; border: none; border-radius: 999px; padding: 15px 22px; font-size: 15px; }
.signup-form input:focus { outline: 2px solid var(--gold-500); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.72); padding: 70px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand-text .b1 { color: #fff; }
.footer-brand p { margin-top: 18px; font-size: 14.5px; max-width: 34ch; line-height: 1.6; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 800; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; color: rgba(255,255,255,.72); margin-bottom: 11px; transition: color .15s; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13px; color: rgba(255,255,255,.5); gap: 16px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--gold-300); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 78px; left: 0; right: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); padding: 14px 20px 22px; box-shadow: var(--shadow-md);
  }
  .nav-open .nav-links a { padding: 14px 12px; font-size: 16px; border-radius: 8px; }
  .nav-open .nav-links a.active::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split .ph { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .signup { grid-template-columns: 1fr; gap: 24px; }
  .signup-form { min-width: 0; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2, .partner-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .cta-band, .signup { padding: 38px 26px; }
  .expander-body-inner { padding: 0 24px 26px; }
  .expander-head { padding: 22px; gap: 14px; }
  .expander-head .ex-sub { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { min-height: 540px; }
}
