/* Healthy Living Organization — shared stylesheet (redesign)
   Modern, polished design system on the HLO brand:
   deep emerald green + warm orange, cream background.
   Plain CSS, no frameworks, no build step, no external assets
   beyond an optional free Google Fonts import (graceful fallback
   to system fonts if it cannot load). */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --green-950: #04231a;
  --green-900: #062e22;
  --green-800: #0b3d2e;
  --green-700: #0f4d38;
  --green-600: #14684a;
  --green-500: #1d8560;
  --green-100: #dcefe4;
  --green-50: #eef7f1;
  --orange: #ef7d1a;
  --orange-dark: #d96a0d;
  --orange-soft: #ffedd6;
  --cream: #faf6ef;
  --white: #ffffff;
  --ink: #1d2621;
  --muted: #5a6b60;
  --line: #dfe7de;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --shadow-sm: 0 1px 3px rgba(6, 46, 34, 0.08), 0 4px 14px rgba(6, 46, 34, 0.06);
  --shadow-md: 0 6px 20px rgba(6, 46, 34, 0.12), 0 2px 6px rgba(6, 46, 34, 0.08);
  --shadow-lg: 0 16px 40px rgba(6, 46, 34, 0.18);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-600); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }

img { max-width: 100%; height: auto; }

::selection { background: var(--orange-soft); color: var(--green-900); }

/* Accessible keyboard focus, visible everywhere */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Entrance animation (pure CSS) ----------
   NOTE (audit 2026-12-05): the hero used to fade in over ~1s, which on
   first load left the headline and buttons nearly invisible for seconds
   while the tall hero box sat empty. Hero content is therefore NOT
   animated at all — it is fully readable on first paint. */
/* ---------- Scroll reveal (driven by JS in main.js) ----------
   JS adds .reveal to sections and cards, then .is-visible when they
   scroll into view. The hidden state exists ONLY when JS added .reveal,
   so content is fully visible if JS is off or fails. JS removes .reveal
   after the transition, so each element's own hover transition applies. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* Higher specificity so the reveal transition wins over each element's
   own hover transition while it is revealing; JS removes .reveal
   afterwards, restoring the normal hover timing. */
section.block.reveal, .card.reveal, .pillar.reveal, .post-card.reveal,
.game-box.reveal, .give-box.reveal {
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  /* Motion package off: reveals show immediately, glows hold still. */
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero::before, .hero::after { animation: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, var(--green-950), var(--green-900));
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 16px rgba(4, 35, 26, 0.35);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); min-width: 0; }
.brand img {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.01em; }
.brand-tag { font-size: 0.8rem; color: #ffd9ad; font-style: italic; }
.site-nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.site-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #ffe1bd; }
.site-nav a.active { background: var(--green-700); color: #ffe1bd; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--green-700);
  color: var(--white);
  border: 1px solid #2a6b52;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-toggle:hover { background: var(--green-600); }
.nav-toggle:active { transform: scale(0.97); }
.donate-btn {
  background: linear-gradient(135deg, #f68b2e, var(--orange-dark)) !important;
  color: var(--white) !important;
  box-shadow: 0 3px 10px rgba(239, 125, 26, 0.45);
}
.donate-btn:hover { background: linear-gradient(135deg, #ff9a3d, #e07a10) !important; box-shadow: 0 5px 14px rgba(239, 125, 26, 0.55); }
.launch-btn {
  border: 2px solid #ffc27a !important;
  color: #ffe1bd !important;
}
.launch-btn:hover { background: var(--green-700) !important; }

/* ---------- Hero / sections ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(239, 125, 26, 0.28), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(29, 133, 96, 0.45), transparent 60%),
    linear-gradient(135deg, var(--green-950) 0%, var(--green-900) 45%, var(--green-700) 100%);
  color: var(--white);
  padding: 76px 0 68px;
  position: relative;
  overflow: hidden;
}
/* Drifting glow shapes behind the hero text — slow, subtle, and purely
   decorative; the text sits above them (z-index) and stays readable. */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  top: -150px; right: -70px;
  background: radial-gradient(circle, rgba(255, 170, 60, 0.32), transparent 65%);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.hero::after {
  width: 380px; height: 380px;
  bottom: -170px; left: -90px;
  background: radial-gradient(circle, rgba(64, 205, 145, 0.28), transparent 65%);
  animation: drift-b 20s ease-in-out infinite alternate;
}
.hero .wrap { position: relative; z-index: 1; }
@keyframes drift-a { from { transform: translate(0, 0); } to { transform: translate(-48px, 36px); } }
@keyframes drift-b { from { transform: translate(0, 0); } to { transform: translate(42px, -32px); } }
.hero .eyebrow {
  color: #ffc27a;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 760px;
  text-wrap: balance;
}
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: #e3f0e8; max-width: 720px; margin: 0 0 14px; }
.hero .tagline { font-style: italic; color: #ffd9ad; margin: 0; font-size: 1.05rem; }

/* A shorter hero for pages with only a one-line intro (e.g. contact.html),
   so the band does not sit mostly empty. Other pages keep the full hero;
   the doubled class beats the plain .hero padding rules at every width. */
.hero.hero-compact { padding: 52px 0 48px; }
@media (min-width: 1280px) { .hero.hero-compact { padding: 64px 0 56px; } }

section.block { padding: 56px 0; }
section.block.alt { background: var(--white); }
h2 {
  font-family: var(--font-display);
  color: var(--green-800);
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  line-height: 1.25;
  margin: 0 0 10px;
  text-wrap: balance;
}
h3 { color: var(--green-800); margin: 0 0 6px; font-size: 1.15rem; line-height: 1.35; }
.section-intro { color: var(--muted); max-width: 720px; margin: 0 0 32px; font-size: 1.05rem; }

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #f68b2e, var(--orange-dark));
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 13px 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(217, 106, 13, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, filter 0.18s ease;
}
.btn:hover { background: linear-gradient(135deg, #ff9a3d, #e07a10); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217, 106, 13, 0.4); }
.btn:active { transform: translateY(1px) scale(0.98); box-shadow: 0 2px 8px rgba(217, 106, 13, 0.3); }
/* Ghost buttons default to the dark-text version, which is readable on
   the site's light surfaces (sections, cards). The white-text version
   applies ONLY on the dark hero / featured surfaces — a bare .btn.ghost
   on a light section used to render white-on-white (e.g. the "Contact
   us" button on volunteer.html). */
.btn.ghost {
  background: transparent;
  color: var(--green-800);
  border: 2px solid var(--green-600);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--green-50); color: var(--green-800); border-color: var(--green-700); }
.hero .btn.ghost, .featured .btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}
.hero .btn.ghost:hover, .featured .btn.ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); border-color: var(--white); }
/* Ghost buttons on light surfaces (e.g. inside a white game box) need dark text */
.game-box .btn.ghost, .give-box .btn.ghost, .post-card .btn.ghost {
  color: var(--green-800);
  border-color: var(--green-600);
}
.game-box .btn.ghost:hover, .give-box .btn.ghost:hover, .post-card .btn.ghost:hover {
  background: var(--green-50);
  color: var(--green-800);
  border-color: var(--green-700);
}
.btn.green { background: linear-gradient(135deg, var(--green-500), var(--green-700)); box-shadow: 0 4px 14px rgba(20, 104, 74, 0.3); }
.btn.green:hover { background: linear-gradient(135deg, #24976e, var(--green-800)); box-shadow: 0 8px 20px rgba(20, 104, 74, 0.35); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c4d8c8; }
.card .pill {
  display: inline-block;
  align-self: flex-start;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.card p { margin: 0; color: var(--muted); }
.card .goal { font-weight: 700; color: var(--green-800); font-size: 1.05rem; }
.card .goal-note { color: var(--orange-dark); font-weight: 700; }
.card .btn { margin-top: auto; align-self: flex-start; }
/* A card that should fit its own content instead of stretching to the
   height of the tallest card in its grid row (e.g. the logo card on
   the Press page, next to the taller media-contact card). */
.card-fit { align-self: start; }

/* A row of exactly two cards (e.g. Leadership) uses two equal columns
   so it fills the row instead of leaving an empty third column; grid
   stretch keeps both cards the same height. */
.cards-two { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
@media (max-width: 640px) { .cards-two { grid-template-columns: 1fr; } }

/* ---------- Featured ---------- */
.featured {
  background:
    radial-gradient(500px 220px at 90% 0%, rgba(239, 125, 26, 0.22), transparent 60%),
    linear-gradient(135deg, var(--green-800), var(--green-900));
  color: var(--white);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.featured h2 { color: var(--white); }
.featured p { color: #d8eadf; }
.featured .goal { color: #ffc27a; font-weight: 700; font-size: 1.1rem; }

/* ---------- Honest note ---------- */
.honest-note {
  background: linear-gradient(180deg, #fff6e6, #fff1d6);
  border: 1px solid #f2d3a0;
  border-radius: var(--radius);
  padding: 18px 22px;
  color: #6b4a12;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--green-900), var(--green-950));
  color: #cfe4d6;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 12px; letter-spacing: 0.02em; }
.site-footer a { color: #ffd9ad; transition: color 0.2s ease; }
.site-footer a:hover { color: #fff; }
.site-footer p, .site-footer li { font-size: 0.95rem; margin: 5px 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 32px;
  padding: 20px 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #9db8a9;
}
.footer-bottom p { margin: 6px 0; }

/* ---------- Forms ---------- */
form.site-form { max-width: 640px; }
/* A wider form where the page gives it room (e.g. the project-proposal
   form on projects.html, which sat at ~55% of the page width). */
form.site-form.wide { max-width: 880px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; color: var(--green-800); }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #b9c9bd;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(20, 104, 74, 0.18);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Ledger table (moderation page) ---------- */
#ledger-list { overflow-x: auto; }
#ledger-list table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
#ledger-list th, #ledger-list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #dfe8e0; vertical-align: top; }
#ledger-list th { color: var(--green-800); font-weight: 700; }
#ledger-list td:last-child, #ledger-list th:last-child { text-align: right; white-space: nowrap; }
.checks label { display: block; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.checks input { accent-color: var(--green-600); }
.form-msg {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 600;
  border: 1px solid #bcdcc8;
}

/* ---------- Donate ---------- */
.amount-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.amount-btn {
  border: 2px solid var(--green-600);
  background: var(--white);
  color: var(--green-800);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.amount-btn:hover { background: var(--green-50); transform: translateY(-1px); }
.amount-btn.selected { background: var(--green-600); color: var(--white); box-shadow: 0 4px 12px rgba(20, 104, 74, 0.3); }
.toggle-row { display: inline-flex; border: 2px solid var(--green-600); border-radius: 999px; overflow: hidden; margin-bottom: 18px; max-width: 100%; }
.toggle-row button {
  border: none;
  background: var(--white);
  color: var(--green-800);
  font-weight: 700;
  padding: 11px 22px;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.toggle-row button:hover:not(.selected) { background: var(--green-50); }
.toggle-row button.selected { background: var(--green-600); color: var(--white); }
.give-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.notice {
  background: linear-gradient(180deg, #fff6e6, #fff1d6);
  border: 1px solid #f2d3a0;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #6b4a12;
  font-weight: 600;
}

/* ---------- Blog ---------- */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.post-card h3 { font-size: 1.4rem; font-family: var(--font-display); }
.post-body { max-width: 720px; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin-bottom: 6px; }

/* ---------- Games ---------- */
.game-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.score-line { font-weight: 700; color: var(--green-800); margin: 8px 0 16px; }
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}
.memory-card {
  aspect-ratio: 1;
  font-size: clamp(1.4rem, 6vw, 2rem);
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: var(--white);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 8px rgba(6, 46, 34, 0.25);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.memory-card:hover:not(.matched) { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 14px rgba(6, 46, 34, 0.3); }
.memory-card.flipped { background: var(--white); border: 2px solid var(--green-600); color: var(--ink); }
.memory-card.matched { background: var(--green-100); border: 2px solid var(--green-600); cursor: default; box-shadow: none; }
.esp-symbols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 520px; margin: 12px auto; }
.esp-btn {
  width: 100%;
  aspect-ratio: 1;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  background: var(--white);
  border: 2px solid var(--green-600);
  border-radius: 12px;
  cursor: pointer;
  /* Symbol fonts first: in the body font (Inter) U+271A falls back to a
     plain "+" — this stack renders it as a proper heavy cross (✚). */
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif;
  color: var(--green-800);
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.esp-btn:hover:not(:disabled) { background: var(--green-100); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.esp-btn:disabled { opacity: 0.55; cursor: default; }
.esp-result { font-weight: 700; min-height: 1.5em; margin: 8px 0; color: var(--green-800); }

/* ---------- Misc ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
blockquote.quote {
  border-left: 4px solid var(--orange);
  margin: 24px 0;
  padding: 10px 0 10px 22px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--green-800);
  line-height: 1.5;
}
.small { font-size: 0.9rem; color: var(--muted); }

/* ---------- Mobile navigation ---------- */
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .hero { padding: 56px 0 52px; }
  .hero h1 { font-size: 1.85rem; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0 12px;
  }
  .site-nav.open { display: flex; animation: nav-drop 0.28s ease both; }
  .site-nav a { padding: 11px 14px; }
  .site-nav .donate-btn, .site-nav .launch-btn { text-align: center; margin-top: 6px; }
  .memory-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .esp-symbols { gap: 8px; }
  .featured, .give-box, .game-box, .post-card { padding: 22px 18px; }
  section.block { padding: 44px 0; }
  .brand-name { font-size: 1.05rem; }
  .brand img { height: 48px; width: 48px; }
  .toggle-row button { padding: 10px 16px; font-size: 0.95rem; }
  .amount-btn { padding: 10px 18px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .header-inner { padding: 10px 16px; gap: 10px; }
  .brand-tag { display: none; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .btn-row .btn { width: 100%; text-align: center; }
  .amount-row { gap: 8px; }
}

/* ---------- Wide screens ---------- */
@media (min-width: 1280px) {
  :root { --max: 1180px; }
  .hero { padding: 96px 0 84px; }
}

/* ---------- Round 2: light theme, theme toggle, progress, to-top,
   spotlight, picker, numbers strip, filters, timeline ----------
   The default (no data-theme) is the dark emerald design. Setting
   data-theme="light" on <html> switches to the light variant. */

/* Theme toggle button (injected into .site-nav by main.js) */
.theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  color: #ffe1bd;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.22); }
.theme-toggle:active { transform: scale(0.95); }

/* ---------- Light theme ---------- */
[data-theme="light"] body { background: #fdfcf7; }
[data-theme="light"] .site-header {
  background: linear-gradient(180deg, #ffffff, #f4f8f3);
  box-shadow: 0 2px 14px rgba(6, 46, 34, 0.12);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .brand { color: var(--green-900); }
[data-theme="light"] .brand-name { color: var(--green-900); }
[data-theme="light"] .brand-tag { color: var(--muted); }
[data-theme="light"] .site-nav a { color: var(--green-800); }
[data-theme="light"] .site-nav a:hover { background: var(--green-100); color: var(--green-900); }
[data-theme="light"] .site-nav a.active { background: var(--green-100); color: var(--green-900); }
[data-theme="light"] .nav-toggle { background: var(--green-100); color: var(--green-800); border-color: var(--line); }
[data-theme="light"] .nav-toggle:hover { background: var(--green-50); }
[data-theme="light"] .launch-btn { border-color: var(--green-600) !important; color: var(--green-700) !important; }
[data-theme="light"] .launch-btn:hover { background: var(--green-50) !important; }
[data-theme="light"] .theme-toggle { background: var(--green-100); color: var(--green-800); border-color: var(--line); }
[data-theme="light"] .theme-toggle:hover { background: var(--green-50); }
[data-theme="light"] .hero {
  background: linear-gradient(135deg, #eef6ee 0%, #e2efe3 55%, #d8ecdc 100%);
  color: var(--ink);
}
[data-theme="light"] .hero::before,
[data-theme="light"] .hero::after { opacity: 0.45; }
[data-theme="light"] .hero .eyebrow { color: var(--orange-dark); }
[data-theme="light"] .hero h1 { color: var(--green-900); }
[data-theme="light"] .hero p.lead { color: #33463a; }
[data-theme="light"] .hero .tagline { color: var(--orange-dark); }
[data-theme="light"] .hero blockquote.quote { color: var(--green-800) !important; border-color: var(--orange-dark) !important; }
[data-theme="light"] .hero .btn.ghost { color: var(--green-800); border-color: var(--green-600); }
[data-theme="light"] .hero .btn.ghost:hover { background: var(--green-50); color: var(--green-800); border-color: var(--green-700); }
[data-theme="light"] .featured { background: var(--green-100); border: 1px solid #c4d8c8; }
[data-theme="light"] .featured h2 { color: var(--green-800); }
[data-theme="light"] .featured p { color: var(--muted); }
[data-theme="light"] .featured .goal { color: var(--orange-dark); }
[data-theme="light"] .featured .btn.ghost { color: var(--green-800); border-color: var(--green-600); }
[data-theme="light"] .featured .btn.ghost:hover { background: var(--white); color: var(--green-800); border-color: var(--green-700); }
[data-theme="light"] .site-footer { background: var(--green-50); color: var(--muted); border-top: 1px solid var(--line); }
[data-theme="light"] .site-footer h3 { color: var(--green-800); }
[data-theme="light"] .site-footer a { color: var(--green-700); }
[data-theme="light"] .site-footer a:hover { color: var(--orange-dark); }
[data-theme="light"] .footer-bottom { border-top-color: var(--line); color: var(--muted); }

/* ---------- Scroll progress bar (injected by main.js) ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--orange), #f68b2e);
  z-index: 60;
}

/* ---------- Back-to-top button (injected by main.js) ---------- */
#to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #f68b2e, var(--orange-dark));
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 40;
}
#to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#to-top:hover { transform: translateY(-2px); }

/* ---------- Spotlight hover glow on cards ---------- */
.card, .pillar, .post-card, .game-box, .give-box, .featured { position: relative; }
.card::after, .pillar::after, .post-card::after,
.game-box::after, .give-box::after, .featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px 260px at var(--mx, 50%) var(--my, 50%), rgba(29, 133, 96, 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.card:hover::after, .pillar:hover::after, .post-card:hover::after,
.game-box:hover::after, .give-box:hover::after, .featured:hover::after { opacity: 1; }
.card > *, .pillar > *, .post-card > *,
.game-box > *, .give-box > *, .featured > * { position: relative; z-index: 1; }

/* ---------- "I want to…" guided picker (home page) ---------- */
.picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.picker-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.6s ease;
}
.picker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c4d8c8; color: var(--ink); }
.picker-card.picked { transform: scale(0.97); border-color: var(--orange); }
.picker-glyph {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.picker-card strong { font-size: 1.15rem; color: var(--green-800); line-height: 1.3; }
.picker-card .picker-desc { color: var(--muted); font-size: 0.95rem; margin: 0; }
.picker-card .picker-go { color: var(--orange-dark); font-weight: 700; font-size: 0.95rem; margin-top: 4px; }

/* ---------- "By the numbers" strip (home page) ---------- */
.numbers-strip {
  background: linear-gradient(135deg, var(--green-800), var(--green-950));
  color: var(--white);
  padding: 52px 0;
}
.numbers-strip .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  color: #ffc27a;
  line-height: 1;
}
.stat-label { color: #d8eadf; margin: 10px 0 0; font-size: 1.05rem; }

/* ---------- Project filter chips (projects.html) ---------- */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.filter-chip {
  border: 2px solid var(--green-600);
  background: var(--white);
  color: var(--green-800);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.filter-chip:hover { background: var(--green-50); transform: translateY(-1px); }
.filter-chip.active { background: var(--green-600); color: var(--white); box-shadow: 0 4px 12px rgba(20, 104, 74, 0.3); }
.card.is-hidden { display: none; }
@keyframes filter-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.card.filter-pop { animation: filter-pop 0.28s ease both; }

/* ---------- Interactive timeline (our-mission.html) ---------- */
.timeline-nav { display: flex; gap: 10px; margin-bottom: 16px; }
.timeline-arrow {
  border: 2px solid var(--green-600);
  background: var(--white);
  color: var(--green-800);
  font-weight: 700;
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, transform 0.15s ease;
}
.timeline-arrow:hover { background: var(--green-50); transform: translateY(-1px); }
.timeline-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 20px;
  -webkit-overflow-scrolling: touch;
}
.timeline-item {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.6s ease;
}
.timeline-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.timeline-item.is-active { border-color: var(--orange); box-shadow: var(--shadow-md); }
.timeline-date {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.timeline-item h3 { margin-bottom: 6px; }
.timeline-item p { margin: 0; color: var(--muted); }

@media (max-width: 720px) {
  .picker-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-track { flex-direction: column; overflow: visible; scroll-snap-type: none; }
  .timeline-item { flex: 1 1 auto; }
  .timeline-nav { display: none; }
}

@media (max-width: 400px) {
  .picker-grid { grid-template-columns: 1fr; }
  .numbers-strip .stats { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .card.filter-pop { animation: none !important; }
  .hero::before, .hero::after { animation: none !important; }
}

/* ---------- Fundraise page: share rows + host steps ---------- */
.share-row { margin-top: 16px; }
.hero .share-note { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; margin: 12px 0 0; }
details.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
details.step summary { cursor: pointer; font-weight: 700; color: var(--green-800); }
details.step summary:hover { color: var(--green-600); }
details.step summary::marker { color: var(--green-600); }
details.step[open] summary { margin-bottom: 8px; }
details.step p { margin: 8px 0; }

/* ---------- Campaign pages: /fundraise list + /fundraise/<slug> ----------
   Layout follows the big fundraising sites (GoFundMe, JustGiving,
   Givebutter): hero image on top, title, host byline, money block with a
   goal meter, Donate + Share side by side, then the share row NEXT TO
   the campaign — never in the header. Share buttons are small pill
   buttons with an icon + label, so the platform is recognisable at a
   glance. The list cards reuse .give-box. */
.campaign-hero img { width: 100%; border-radius: var(--radius); display: block; margin-bottom: 24px; box-shadow: var(--shadow-md); }
.campaign-byline { color: var(--muted); margin-top: 4px; }
.campaign-raised { font-size: 1.25rem; margin: 0 0 4px; }
.campaign-bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 12px 0; }
.campaign-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-700)); }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 2px solid var(--green-600); color: var(--green-800); background: var(--white); font: inherit; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none; }
.share-btn:hover { background: var(--green-50); color: var(--green-800); border-color: var(--green-700); }
.share-btn svg { width: 18px; height: 18px; flex: none; }
.campaign-card img { width: 100%; border-radius: var(--radius-sm); display: block; margin-bottom: 14px; }
.campaign-card h3 { margin-bottom: 4px; }
.campaign-card .campaign-byline { margin-bottom: 10px; }
/* Preset image picker on the fundraiser creation form: three small
   thumbnails the host picks from, or their own uploaded picture. */
.preset-picks { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.preset-picks label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; cursor: pointer; }
.preset-picks img { width: 140px; border-radius: var(--radius-sm); display: block; border: 2px solid transparent; }
.preset-picks input:checked + img { border-color: var(--green-600); }
/* Uploaded-picture preview on the fundraiser creation form. */
.upload-preview img { max-width: 280px; width: 100%; border-radius: var(--radius-sm); display: block; margin: 8px 0; border: 2px solid var(--green-600); }
