/* ============================================================
   OPERATION SOUL — warm, faith-inspired ministry site
   Palette: honey/amber gold + warm cream + deep wine burgundy
   Type: Fraunces (display serif) + Work Sans (body)
   ============================================================ */

:root, [data-theme="light"] {
  /* Surfaces — warm ivory, keeping the gold-on-dark brand accents */
  --color-bg: #f6f1e7;
  --color-surface: #fbf7ee;
  --color-surface-2: #fffdf7;
  --color-surface-offset: #efe7d5;
  --color-surface-offset-2: #e6dbc4;
  --color-divider: #ddd0b6;
  --color-border: #d6c8a8;

  /* Text — near-black ink (matches logo background) */
  --color-text: #17150f;
  --color-text-muted: #6f6858;
  --color-text-faint: #ada58f;
  --color-text-inverse: #f7d247;

  /* Primary — brand gold */
  --color-primary: #b88a12;
  --color-primary-hover: #9a7208;
  --color-primary-active: #7c5b05;
  --color-primary-highlight: #f2e6bf;

  /* Accent — brand gold family */
  --color-gold: #c79512;
  --color-gold-hover: #a5790a;
  --color-gold-active: #856008;
  --color-gold-soft: #f4e8c4;

  /* Ink — the deep near-black used for buttons/emphasis */
  --color-ink: #16140e;
  --color-ink-soft: #26231a;

  --shadow-sm: 0 1px 2px oklch(0.3 0.03 60 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.3 0.03 60 / 0.10);
  --shadow-lg: 0 18px 46px oklch(0.3 0.04 50 / 0.16);

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 680px;
  --content-default: 1000px;
  --content-wide: 1220px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", "Helvetica Neue", sans-serif;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4.5vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;
}

[data-theme="dark"] {
  /* Dark mode = the true brand look: gold on black */
  --color-bg: #0b0b0a;
  --color-surface: #131210;
  --color-surface-2: #1a1815;
  --color-surface-offset: #131210;
  --color-surface-offset-2: #1c1a16;
  --color-divider: #2a2621;
  --color-border: #363029;

  --color-text: #f2ead6;
  --color-text-muted: #a49a83;
  --color-text-faint: #6a6354;
  --color-text-inverse: #0b0b0a;

  --color-primary: #f7d247;
  --color-primary-hover: #ffe173;
  --color-primary-active: #ffe88f;
  --color-primary-highlight: #2c2712;

  --color-gold: #f7d247;
  --color-gold-hover: #ffe173;
  --color-gold-active: #ffe88f;
  --color-gold-soft: #2c2712;

  --color-ink: #f7d247;
  --color-ink-soft: #26231a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 18px 46px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0b0b0a; --color-surface: #131210; --color-surface-2: #1a1815;
    --color-surface-offset: #131210; --color-surface-offset-2: #1c1a16;
    --color-divider: #2a2621; --color-border: #363029;
    --color-text: #f2ead6; --color-text-muted: #a49a83; --color-text-faint: #6a6354;
    --color-text-inverse: #0b0b0a;
    --color-primary: #f7d247; --color-primary-hover: #ffe173; --color-primary-active: #ffe88f;
    --color-primary-highlight: #2c2712;
    --color-gold: #f7d247; --color-gold-hover: #ffe173; --color-gold-active: #ffe88f; --color-gold-soft: #2c2712;
    --color-ink: #f7d247; --color-ink-soft: #26231a;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  min-height: 100dvh; line-height: 1.65;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background: var(--color-bg);
  transition: background 300ms ease, color 300ms ease;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.1; font-family: var(--font-display); font-weight: 460; }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }
::selection { background: color-mix(in oklab, var(--color-gold) 30%, transparent); }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; border-radius: var(--radius-sm); }
a, button, input, textarea, select {
  transition: color var(--transition-interactive), background var(--transition-interactive),
              border-color var(--transition-interactive), box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--content-wide)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--content-narrow)); margin-inline: auto; }
section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.eyebrow {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-gold-hover);
  display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4);
}
.eyebrow::before { content:""; width: 28px; height: 1.5px; background: var(--color-gold); display:inline-block; }
.section-title { font-size: var(--text-2xl); letter-spacing: -0.01em; margin-bottom: var(--space-5); }
.lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full); letter-spacing: 0.01em;
}
/* Primary CTA = brand ink (near-black) with gold text — the emblem look */
.btn-primary { background: var(--color-ink); color: var(--color-gold); box-shadow: var(--shadow-sm); border: 1px solid var(--color-ink); }
.btn-primary:hover { background: var(--color-ink-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
[data-theme="dark"] .btn-primary { background: var(--color-gold); color: #0b0b0a; border-color: var(--color-gold); }
[data-theme="dark"] .btn-primary:hover { background: var(--color-gold-hover); }
/* Gold-filled CTA */
.btn-gold { background: var(--color-gold); color: #16140e; box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--color-gold-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border: 1.5px solid var(--color-border); color: var(--color-text); }
.btn-ghost:hover { border-color: var(--color-gold); color: var(--color-gold-hover); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.header.scrolled { border-bottom-color: var(--color-divider); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-4); }
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand .logo { color: var(--color-primary); flex-shrink: 0; }
.brand-logo { flex-shrink: 0; display: block; border-radius: 50%; }
/* Emblem is gold-on-transparent — in light mode, seat it on the brand ink disc */
.header .brand-logo, .footer .brand-logo { background: var(--color-ink); padding: 5px; }
[data-theme="dark"] .header .brand-logo, [data-theme="dark"] .footer .brand-logo { background: transparent; padding: 0; }
.hero-emblem { width: clamp(110px, 13vw, 160px); height: auto; margin-bottom: var(--space-6); filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45)); }
.brand-name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.brand-name small { display:block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-gold-hover); font-weight: 600; margin-top: 3px; }
.brand-tm { font-family: var(--font-body); font-size: 0.52em; font-weight: 600; vertical-align: super; margin-left: 2px; color: var(--color-gold-hover); }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); position: relative; }
.nav-links a:hover { color: var(--color-text); }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-4px; height:2px; width:0; background: var(--color-gold); transition: width var(--transition-interactive); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle { width: 38px; height: 38px; border-radius: var(--radius-full); display: grid; place-items: center; color: var(--color-text-muted); border: 1px solid var(--color-border); }
.theme-toggle:hover { color: var(--color-gold-hover); border-color: var(--color-gold); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: var(--radius-md); color: var(--color-text); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(105deg, color-mix(in oklab, var(--color-bg) 92%, transparent) 0%, color-mix(in oklab, var(--color-bg) 70%, transparent) 42%, transparent 75%);
}
[data-theme="dark"] .hero-bg::after {
  background: linear-gradient(105deg, color-mix(in oklab, var(--color-bg) 94%, transparent) 0%, color-mix(in oklab, var(--color-bg) 78%, transparent) 45%, color-mix(in oklab, var(--color-bg) 30%, transparent) 80%);
}
.hero-content { max-width: 42rem; padding-block: var(--space-16) var(--space-20); margin-top: calc(-1 * var(--space-10)); }
.hero h1 { font-size: var(--text-3xl); font-weight: 480; letter-spacing: -0.02em; margin-bottom: var(--space-6); }
.hero h1 em { font-style: italic; color: var(--color-primary); }
.hero .lead { font-size: var(--text-lg); color: var(--color-text); margin-bottom: var(--space-8); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero-verse { margin-top: var(--space-12); font-family: var(--font-display); font-style: italic; font-size: var(--text-base); color: var(--color-text-muted); border-left: 2px solid var(--color-gold); padding-left: var(--space-4); max-width: 40ch; }

/* ---------- Mission ---------- */
.mission-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: center; }
.mission-media { position: relative; }
.mission-media img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; }
.mission-media .badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--color-ink); color: var(--color-gold);
  padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); max-width: 220px;
}
.mission-media .badge .num { font-family: var(--font-display); font-size: var(--text-xl); display:block; line-height: 1; }
.mission-media .badge .lbl { font-size: var(--text-xs); letter-spacing: 0.08em; opacity: 0.85; margin-top: 4px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-20); }
.value-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-gold); }
.value-card .icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--color-gold-soft); color: var(--color-gold-hover); display: grid; place-items: center; margin-bottom: var(--space-4); }
.value-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.value-card p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- The Creed / Recitation ---------- */
.creed {
  background: #030509;
  background-image: url('../assets/earth-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f2ead6;
  position: relative;
  overflow: hidden;
}
/* dark scrim so the recitation text stays readable over Earth */
.creed::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,5,9,0.72) 0%, rgba(3,5,9,0.55) 45%, rgba(3,5,9,0.78) 100%),
    radial-gradient(ellipse at 50% 42%, rgba(3,5,9,0) 30%, rgba(3,5,9,0.55) 85%);
  z-index: 0;
  pointer-events: none;
}
/* keep the cosmic Earth look identical in both themes */
[data-theme="dark"] .creed { background-color: #030509; }
.creed-inner { max-width: 780px; margin-inline: auto; text-align: center; position: relative; z-index: 1; }
.creed-scripture {
  max-width: 42ch;
  margin: 0 auto var(--space-10);
  padding: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  line-height: 1.5;
  color: #f6efdc;
  text-shadow: 0 1px 14px rgba(0,0,0,0.6);
  text-wrap: pretty;
}
.creed-scripture cite {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.creed-scripture cite span { color: color-mix(in oklab, var(--color-gold) 65%, transparent); }
.creed .eyebrow { color: var(--color-gold); justify-content: center; }
.creed-emblem { width: clamp(96px, 11vw, 128px); height: auto; margin: 0 auto var(--space-6); display: block; opacity: 0.9; }
.creed-title { font-family: var(--font-display); font-size: clamp(1.05rem, 4.05vw, var(--text-2xl)); color: #f7f0dd; margin-bottom: var(--space-3); white-space: nowrap; }
.creed-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--color-gold);
  letter-spacing: 0.02em;
  margin: 0 auto var(--space-8);
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}
.creed-tagline::before,
.creed-tagline::after {
  content: "";
  width: clamp(24px, 5vw, 48px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 210, 71, 0.7), transparent);
}
.creed-body {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.7;
  font-style: italic;
  color: #ece2cd;
  text-wrap: pretty;
}
.creed-body .hl { color: var(--color-gold); font-style: normal; }
.creed-pledge { margin-top: var(--space-6); }
.creed-amen { color: var(--color-gold); font-style: normal; letter-spacing: 0.04em; }
.creed-mark {
  font-family: var(--font-display);
  font-size: 5rem; line-height: 0; color: var(--color-gold);
  opacity: 0.35; display: block; height: 2.2rem;
}
.creed-rule { width: 64px; height: 2px; background: var(--color-gold); margin: var(--space-8) auto 0; opacity: 0.7; }

/* ---------- The Pledge (standalone page) — matches original artwork ---------- */
.pledge {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-12), 7vw, var(--space-20));
  background: #05060c;
  background-image:
    radial-gradient(ellipse at 50% 42%, rgba(9,10,20,0) 30%, #05060c 82%),
    url('../assets/cosmos-bg.png');
  background-size: cover, cover;
  background-position: center, center 42%;
  background-repeat: no-repeat, no-repeat;
  color: #1b1b1b;
}
/* keep the cosmic look identical in both themes */
[data-theme="dark"] .pledge { background-color: #05060c; }

.pledge-panels {
  display: grid;
  grid-template-columns: 1fr 1.28fr;
  gap: clamp(var(--space-6), 3vw, var(--space-10));
  align-items: stretch;
  max-width: 1180px;
  margin-inline: auto;
}

/* translucent frosted panels like the original */
.pledge-panel {
  background: rgba(230, 228, 226, 0.60);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
}

/* LEFT: red script title + italic pledge */
.pledge-panel--verse { display: flex; flex-direction: column; text-align: center; }
.pledge-script-title {
  position: relative;
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.05;
  color: #c0392b;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.28);
  margin-bottom: clamp(var(--space-6), 4vw, var(--space-10));
}
.pledge-script-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 118%;
  height: 210%;
  background: radial-gradient(ellipse at center, rgba(247, 210, 71, 0.55) 0%, rgba(247, 210, 71, 0.22) 42%, rgba(247, 210, 71, 0) 72%);
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
}
.pledge-verse {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.5;
  color: #1a1a1a;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(var(--space-4), 2.4vw, var(--space-7));
}
.pledge-verse p { margin: 0; }
.pledge-amen { margin-top: clamp(var(--space-4), 2vw, var(--space-6)) !important; }
.pledge-panel--verse .pledge-source {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.8rem;
  color: #55524e;
  text-align: right;
  margin-top: var(--space-8);
}

/* RIGHT: phrase (red italic) + meaning (black) rows */
.pledge-panel--meaning { display: flex; flex-direction: column; justify-content: center; gap: clamp(var(--space-4), 1.8vw, var(--space-6)); }
.pledge-panel--meaning .meaning-row {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(var(--space-4), 2vw, var(--space-8));
  align-items: start;
}
.pledge-panel--meaning .phrase {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.3;
  color: #c0392b;
  margin: 0;
  align-self: center;
  text-align: center;
}
.pledge-panel--meaning .gloss {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  line-height: 1.42;
  color: #1a1a1a;
  margin: 0 0 var(--space-2);
}
.pledge-panel--meaning .gloss:last-child { margin-bottom: 0; }
.pledge-panel--meaning .meaning-row .gloss + .gloss { margin-top: var(--space-2); }
.pledge-panel--meaning strong { font-weight: 700; color: #111; }
.pledge-panel--meaning cite { font-style: normal; font-weight: 700; color: #111; white-space: nowrap; }

/* ---------- One Million Goal ---------- */
.goal {
  background:
    radial-gradient(circle at 15% 20%, color-mix(in oklab, var(--color-gold) 18%, transparent), transparent 45%),
    var(--color-ink);
  color: #f2ead6;
}
.goal .section-title { color: #f7f0dd !important; }
[data-theme="dark"] .goal { background: radial-gradient(circle at 15% 20%, color-mix(in oklab, var(--color-gold) 12%, transparent), transparent 50%), #050504; }
.goal-inner { max-width: 920px; margin-inline: auto; text-align: center; }
.goal-emblem { width: clamp(72px, 8vw, 96px); height: auto; margin: 0 auto var(--space-6); display: block; opacity: 0.95; }
.involved-emblem { width: clamp(72px, 8vw, 96px); height: auto; margin: 0 auto var(--space-5); display: block; opacity: 0.95; }
.mission-emblem { width: clamp(64px, 7vw, 84px); height: auto; margin: 0 0 var(--space-5); display: block; opacity: 0.95; }
.goal-scripture {
  max-width: 46ch;
  margin: 0 auto var(--space-10);
  padding: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  line-height: 1.6;
  color: #f7d247;
  text-wrap: pretty;
}
.goal-scripture cite {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f7d247;
}
.goal-scripture cite span { color: #ffe173; }
.goal-head { display: grid; place-items: center; }
.goal-count { color: var(--color-gold); font-style: italic; }
.goal-bar { height: 16px; border-radius: var(--radius-full); background: color-mix(in oklab, var(--color-text-inverse) 18%, transparent); margin-block: var(--space-8) var(--space-8); overflow: hidden; }
.goal-fill { height: 100%; width: 0; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--color-gold), var(--color-gold-hover)); transition: width 1.6s cubic-bezier(0.16,1,0.3,1); box-shadow: 0 0 20px color-mix(in oklab, var(--color-gold) 50%, transparent); }
.goal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.goal-stats > div { display: grid; gap: 4px; }
.goal-stats .gnum { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; color: var(--color-gold-soft); }
[data-theme="dark"] .goal-stats .gnum { color: var(--color-gold); }
.goal-stats .glbl { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }

/* ---------- Events ---------- */
.events { background: var(--color-surface-offset); }
.events-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--space-6); margin-bottom: var(--space-12); }
.event-list { display: grid; gap: var(--space-4); }
.event-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-6); align-items: center;
  background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6); transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
.event-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--color-gold); }
.event-date { text-align: center; min-width: 68px; border-right: 1px solid var(--color-divider); padding-right: var(--space-6); }
.event-date .day { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; color: var(--color-gold-hover); }
.event-date .mon { font-size: var(--text-xs); letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-text-muted); margin-top: 4px; }
.event-info h3 { font-size: var(--text-lg); margin-bottom: 4px; }
.event-info .meta { font-size: var(--text-sm); color: var(--color-text-muted); display: flex; flex-wrap: wrap; gap: var(--space-4); }
.event-info .meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-tag { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-full); background: var(--color-gold-soft); color: var(--color-gold-hover); white-space: nowrap; }

/* ---------- Donate ---------- */
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.give-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-10)); box-shadow: var(--shadow-md); }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-block: var(--space-6); }
.amount-btn { border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); font-family: var(--font-display); font-size: var(--text-lg); text-align: center; color: var(--color-text); }
.amount-btn:hover { border-color: var(--color-gold); color: var(--color-gold-hover); }
.amount-btn.active { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-gold); }
[data-theme="dark"] .amount-btn.active { background: var(--color-gold); border-color: var(--color-gold); color: #0b0b0a; }
.freq-toggle { display: inline-flex; background: var(--color-surface-offset); border-radius: var(--radius-full); padding: 4px; margin-bottom: var(--space-4); }
.freq-toggle button { padding: var(--space-2) var(--space-5); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.freq-toggle button.active { background: var(--color-surface-2); color: var(--color-text); box-shadow: var(--shadow-sm); }
.give-note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-4); text-align: center; }
.impact-list { display: grid; gap: var(--space-5); }
.impact-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.impact-item .amt { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-gold-hover); min-width: 62px; }
.impact-item p { font-size: var(--text-sm); color: var(--color-text-muted); }
.impact-item strong { color: var(--color-text); font-weight: 600; }

/* ---------- Get Involved / Contact ---------- */
.involved { background: var(--color-surface-offset); }
.involved-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.involved-media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.involved-media img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; display: block; }
.ways { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); }
.way { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid transparent; transition: background var(--transition-interactive), border-color var(--transition-interactive); }
.way:hover { background: var(--color-surface-2); border-color: var(--color-border); }
.way .icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-gold-soft); color: var(--color-gold-hover); display: grid; place-items: center; flex-shrink: 0; }
.way h4 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 700; margin-bottom: 2px; }
.way p { font-size: var(--text-sm); color: var(--color-text-muted); }

.form { display: grid; gap: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-8)); box-shadow: var(--shadow-md); }
.form h3 { font-size: var(--text-lg); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border); background: var(--color-surface-2); color: var(--color-text); font-size: var(--text-sm);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 3px var(--color-gold-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-msg { font-size: var(--text-sm); color: var(--color-gold-hover); font-weight: 700; display: none; }
.form-msg.show { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--color-ink); color: color-mix(in oklab, #f2ead6 88%, transparent); padding-block: var(--space-16) var(--space-8); }
[data-theme="dark"] .footer { background: #050504; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-10); margin-bottom: var(--space-12); }
.footer .brand-name { color: #f2ead6; }
.footer .brand .logo { color: var(--color-gold); }
.footer p { font-size: var(--text-sm); opacity: 0.8; margin-top: var(--space-4); max-width: 34ch; }
.footer h5 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-gold); margin-bottom: var(--space-4); }
.footer ul { list-style: none; display: grid; gap: var(--space-2); }
.footer ul a { font-size: var(--text-sm); opacity: 0.82; }
.footer ul a:hover { opacity: 1; color: var(--color-gold); }
.footer-bottom { border-top: 1px solid color-mix(in oklab, #f2ead6 15%, transparent); padding-top: var(--space-6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); font-size: var(--text-xs); opacity: 0.7; }
.socials { display: flex; gap: var(--space-3); }
.socials a { width: 36px; height: 36px; border-radius: var(--radius-full); border: 1px solid color-mix(in oklab, #f2ead6 20%, transparent); display: grid; place-items: center; }
.socials a:hover { background: var(--color-gold); color: #16140e; border-color: var(--color-gold); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(0.16,1,0.3,1), transform 700ms cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mission-grid, .donate-grid, .involved-grid { grid-template-columns: 1fr; }
  .pledge-panels { grid-template-columns: 1fr; }
  .pledge-panel--meaning .meaning-row { grid-template-columns: 1fr; gap: var(--space-1); }
  .pledge-panel--meaning .phrase { text-align: left; align-self: start; }
  .mission-media .badge { left: var(--space-4); bottom: var(--space-4); }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .involved-media { min-height: 260px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-6); background: var(--color-surface); border-bottom: 1px solid var(--color-divider); box-shadow: var(--shadow-md); }
  .menu-btn { display: grid; place-items: center; }
  .event-card { grid-template-columns: auto 1fr; }
  .event-tag { grid-column: 2; justify-self: start; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .goal-stats { grid-template-columns: 1fr; gap: var(--space-5); }
  .goal-bar { margin-block: var(--space-6) var(--space-6); }
  .header .brand-name small { display: none; }
  .header .brand-name { white-space: nowrap; }
}
