/* Living Emotionally Free Foundation (LEFF) — main.css
   Warm & hopeful: sage-teal / warm gold / ivory. Vanilla, no build step, no CDN fonts. */

/* ---------- Tokens ---------- */
:root {
  --sage: #2F6E5F;        /* primary deep teal-green */
  --sage-2: #244F45;      /* darker — headings / strong text on light */
  --sage-3: #3E8A78;
  --sage-soft: #6FB3A3;
  --gold: #C88A2E;        /* warm gold — decorative accent */
  --gold-ink: #8F5E12;    /* accessible gold for small text on ivory (AA) */
  --gold-bright: #E0A94A;
  --gold-soft: #ECD6A2;
  --ivory: #FBF8F2;
  --ivory-2: #F1E9DA;
  --ivory-3: #E7DcC6;
  --white: #ffffff;
  --ink: #26302C;         /* warm near-black body text */
  --muted: #566259;
  --line: rgba(200,138,46,.30);

  --serif: Georgia, "Iowan Old Style", "Times New Roman", "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --gap: clamp(1rem, 3vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 16px 44px rgba(36,79,69,.14);
  --shadow-soft: 0 8px 24px rgba(36,79,69,.09);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; color: var(--sage-2); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap); }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--gold-ink); margin: 0 0 .6rem; }
.lead { font-size: 1.18rem; color: var(--muted); }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; z-index: 1000;
  background: var(--sage); color: var(--white);
}
.skip-link:focus {
  width: auto; height: auto; clip: auto; clip-path: none;
  top: 8px; left: 8px; padding: 12px 16px; border-radius: var(--radius-sm);
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; letter-spacing: .02em;
  padding: .85rem 1.7rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  min-height: 48px; line-height: 1.4;
}
.btn-donate { background: var(--gold); color: #2b1c00; box-shadow: var(--shadow-soft); }
.btn-donate:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-primary { background: var(--sage); color: var(--white); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--sage-3); transform: translateY(-2px); }
.btn-ghost { border-color: var(--sage); color: var(--sage); background: transparent; }
.btn-ghost:hover { background: var(--sage); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.8); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--sage-2); }

/* ---------- Header / Nav ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--sage-2); text-decoration: none; font-size: .95rem; letter-spacing: .01em; font-weight: 600;
  padding: .4rem .2rem; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--sage); border-bottom-color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--sage); border-radius: var(--radius-sm);
  color: var(--sage); width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); text-align: center;
  padding: clamp(4rem, 12vw, 8.5rem) 0; background-size: cover; background-position: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,63,55,.55), rgba(30,63,55,.78)); }
.hero .container { position: relative; }
.hero h1 { color: #fff; margin-bottom: .5rem; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero .kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: .26em; color: var(--gold-soft); font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.hero .lead { color: rgba(255,255,255,.94); max-width: 720px; margin: 0 auto 1.8rem; }
.hero .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero--sm { padding: clamp(3rem, 8vw, 5rem) 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--sage { background: var(--sage-2); color: var(--ivory); }
.section--sage h2, .section--sage h3 { color: #fff; }
.section--sage .lead, .section--sage p { color: rgba(255,255,255,.92); }
.section--sage .eyebrow { color: var(--gold-soft); }
.section--cream { background: var(--ivory-2); }
.section-head { max-width: 760px; margin: 0 auto 2.6rem; text-align: center; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-soft);
  border: 1px solid rgba(200,138,46,.16); transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-top: .2rem; color: var(--sage-2); }
.card .icon {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--ivory-2); color: var(--sage); margin-bottom: 1rem;
}
.card .icon svg { width: 28px; height: 28px; }
.card--photo { padding: 0; overflow: hidden; }
.card--photo img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card--photo .card-body { padding: 1.6rem 2rem 2rem; }

/* ---------- Media / figure ---------- */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.media-split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.figure-caption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); text-align: center; }
.stat .num { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--gold-soft); line-height: 1; }
.section--sage .stat .num { color: var(--gold-soft); }
.stat .label { font-size: .95rem; letter-spacing: .04em; }

/* ---------- Values / list ---------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.value { display: flex; gap: 1rem; align-items: flex-start; }
.value .check { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--sage); color: #fff; display: flex; align-items: center; justify-content: center; }
.value .check svg { width: 17px; height: 17px; }
.value h3 { margin: .1rem 0 .3rem; font-size: 1.15rem; }
.value p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Board / people ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.person { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-soft); border: 1px solid rgba(200,138,46,.16); }
.person .avatar { width: 66px; height: 66px; border-radius: 50%; background: linear-gradient(135deg, var(--sage-soft), var(--sage)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-bottom: .9rem; }
.person .name { font-family: var(--serif); font-weight: 700; color: var(--sage-2); font-size: 1.15rem; }
.person .role { color: var(--gold-ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.person-email { display: inline-block; margin-top: .55rem; font-size: .82rem; color: var(--sage); text-decoration: none; word-break: break-word; }
.person-email:hover { color: var(--gold-ink); text-decoration: underline; }

/* ---------- Quote ---------- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem,3vw,1.9rem); color: #fff; margin: 0; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; color: var(--gold-soft); letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }

/* ---------- Banner ---------- */
.banner { background: linear-gradient(135deg, var(--sage-2), var(--sage)); color: var(--ivory); text-align: center; }
.banner h2 { color: #fff; }

/* ---------- Callout / policy ---------- */
.callout { background: var(--white); border-left: 5px solid var(--gold); padding: 1.6rem 1.8rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }
.callout a { color: var(--sage); }
.pledge { display: grid; gap: .8rem; }
.pledge li { list-style: none; padding-left: 2rem; position: relative; }
.pledge li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 800; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; margin: 1rem 0 .3rem; color: var(--sage-2); }
input, textarea, select { width: 100%; padding: .8rem; border: 1px solid var(--muted); border-radius: var(--radius-sm); font: inherit; font-size: 1rem; background: #fff; }

/* ---------- Draft ribbon ---------- */
.draft-note { background: var(--gold-soft); color: #5b3d08; text-align: center; font-size: .82rem; padding: .5rem 1rem; font-weight: 600; letter-spacing: .02em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-2); color: rgba(255,255,255,.82); padding: 3rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--gap); }
.site-footer h4 { color: var(--gold-soft); font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.footer-logo img { height: 60px; margin-bottom: .8rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.16); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .82rem; color: rgba(255,255,255,.62); }
.footer-legal p { margin: 0 0 .6rem; }
.footer-legal a { color: var(--gold-soft); }
.antidiscrim { font-style: italic; }
.powered { margin-top: 1rem; font-size: .8rem; }
.powered a { color: var(--gold-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .people, .stats { grid-template-columns: repeat(2, 1fr); }
  .media-split { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--white); padding: 1rem var(--gap); gap: .2rem; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid rgba(0,0,0,.06); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .grid-3, .grid-2, .people, .stats, .footer-grid { grid-template-columns: 1fr; }
  .nav-cta .btn { padding: .6rem 1.1rem; }
}
