/* ==========================================================================
   RestoringAmericanIntegrity.com — Design System
   Author: (c) Restoring American Integrity
   Structure: 1) Tokens 2) Reset 3) Typography 4) Layout 5) Components
              6) Sections 7) Pages 8) Utilities 9) Motion 10) Print
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --navy-950: #060e1b;
  --navy-900: #0a1628;
  --navy-800: #0f2137;
  --navy-700: #16304d;
  --navy-600: #1f4268;
  --navy-100: #e6ecf4;

  --gold-600: #a9871b;
  --gold-500: #c9a227;
  --gold-400: #dcb84a;
  --gold-300: #efd27a;
  --gold-100: #fbf3dc;

  --red-700: #8f2222;
  --red-600: #b32d2d;

  --cream: #faf8f4;
  --paper: #ffffff;
  --ink: #16202e;
  --ink-soft: #33445a;
  --muted: #5c6b7f;

  /* Semantic */
  --bg: var(--cream);
  --surface: var(--paper);
  --surface-alt: #f2efe9;
  --text: var(--ink);
  --text-muted: var(--muted);
  --line: rgba(15, 33, 55, 0.12);
  --line-strong: rgba(15, 33, 55, 0.22);
  --focus: #1d6fd1;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.16vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.42rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.25vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.65rem + 2.2vw, 3.4rem);
  --step-5: clamp(2.5rem, 1.8rem + 3.4vw, 4.4rem);

  /* Space */
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  /* Shape */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(6, 14, 27, 0.06), 0 2px 8px rgba(6, 14, 27, 0.05);
  --shadow-md: 0 4px 12px rgba(6, 14, 27, 0.08), 0 12px 32px rgba(6, 14, 27, 0.08);
  --shadow-lg: 0 12px 28px rgba(6, 14, 27, 0.12), 0 32px 64px rgba(6, 14, 27, 0.14);

  --container: 1180px;
  --container-narrow: 760px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.35s;
}

/* Dark sections / inverse context */
.is-dark {
  --bg: var(--navy-900);
  --surface: var(--navy-800);
  --surface-alt: var(--navy-700);
  --text: #f4f6fa;
  --text-muted: #a9b8cc;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   2) RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-lg) 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--gold-300); color: var(--navy-900); }

/* --------------------------------------------------------------------------
   3) TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5 { font-size: var(--step-0); }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--space-sm);
}

.is-dark .eyebrow { color: var(--gold-400); }

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.eyebrow.is-centered::after {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  flex: none;
}

blockquote {
  margin: 0;
  padding-left: var(--space-md);
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   4) LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container-narrow { width: min(100% - 2.5rem, var(--container-narrow)); margin-inline: auto; }

section { padding-block: var(--space-2xl); }
section.is-dark { background: var(--bg); }
.section-alt { background: var(--surface-alt); }
.section-tight { padding-block: var(--space-xl); }

.section-head {
  max-width: 68ch;
  margin-bottom: var(--space-xl);
}

.section-head.is-centered {
  margin-inline: auto;
  text-align: center;
}

.section-head.is-centered .lead { margin-inline: auto; }

.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.stack > * + * { margin-top: var(--space-md); }
.stack-sm > * + * { margin-top: var(--space-sm); }

/* --------------------------------------------------------------------------
   5) COMPONENTS
   -------------------------------------------------------------------------- */

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--navy-900);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --- Buttons --- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.82rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-full);
  font-weight: 650;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  --btn-fg: var(--navy-950);
  box-shadow: 0 2px 10px rgba(201, 162, 39, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(201, 162, 39, 0.45); }

.btn-dark { --btn-bg: var(--navy-800); --btn-fg: #fff; }
.btn-dark:hover { --btn-bg: var(--navy-700); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-border: var(--line-strong); }
.btn-ghost:hover { --btn-bg: var(--text); --btn-fg: var(--bg); }

.btn-light { --btn-bg: #fff; --btn-fg: var(--navy-900); }
.btn-light:hover { --btn-bg: var(--gold-300); }

.btn-red { --btn-bg: var(--red-600); --btn-fg: #fff; }
.btn-red:hover { --btn-bg: var(--red-700); }

.btn-lg { padding: 1rem 2rem; font-size: var(--step-1); }
.btn-sm { padding: 0.55rem 1rem; font-size: var(--step--1); }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* --- Text link --- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 640;
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 2px solid var(--gold-500);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), gap 0.25s var(--ease);
}
.link-arrow:hover { color: var(--gold-600); gap: 0.65em; }
.is-dark .link-arrow { color: var(--gold-300); border-color: var(--gold-500); }

/* --- Badge / pill --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid rgba(201, 162, 39, 0.35);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.is-dark .badge {
  background: rgba(201, 162, 39, 0.14);
  color: var(--gold-300);
  border-color: rgba(201, 162, 39, 0.4);
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 39, 0.5);
}

.card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: var(--step-0); }
.card .card-foot { margin-top: auto; padding-top: var(--space-md); }

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
  margin-bottom: var(--space-md);
  flex: none;
}
.card-icon svg { width: 26px; height: 26px; }

.card-number {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* --- Stat --- */
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-500);
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 0.6rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Callout --- */
.callout {
  border-left: 4px solid var(--gold-500);
  background: var(--surface-alt);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }

/* --- Timeline --- */
.timeline { list-style: none; position: relative; padding-left: var(--space-lg); }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold-500), var(--line));
}
.timeline li { position: relative; padding-bottom: var(--space-lg); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(var(--space-lg) * -1);
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--gold-500);
}
.timeline h4 { margin-bottom: 0.25rem; }
.timeline time {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.is-dark .timeline time { color: var(--gold-400); }

/* --- Forms --- */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-md); }
.field label { font-weight: 620; font-size: var(--step--1); letter-spacing: 0.02em; }
.field .hint { font-size: var(--step--1); color: var(--text-muted); }
.field .req { color: var(--red-600); }

.input, .select, .textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}
.textarea { min-height: 150px; resize: vertical; }

.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); }
.checkbox input { margin-top: 0.35rem; width: 18px; height: 18px; flex: none; accent-color: var(--gold-600); }

.form-note { font-size: var(--step--1); color: var(--text-muted); }

.field-error { color: var(--red-600); font-size: var(--step--1); font-weight: 600; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red-600); }

.form-status {
  margin-top: var(--space-md);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--step-0);
}
.form-status[data-state="success"] { background: #e8f6ec; color: #1c6b34; border: 1px solid #b6e0c3; }
.form-status[data-state="error"] { background: #fdecec; color: #8f2222; border: 1px solid #f3c3c3; }
.form-status:empty { display: none; }

/* --- Newsletter inline form --- */
.subscribe {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  max-width: 520px;
}
.subscribe .input { flex: 1 1 240px; border-radius: var(--radius-full); }
.subscribe .btn { flex: none; }

/* --------------------------------------------------------------------------
   6) SECTIONS
   -------------------------------------------------------------------------- */

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(6, 14, 27, 0.07);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.brand-sub {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
}

/* --- Nav --- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  color: var(--navy-900);
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.35rem);
  list-style: none;
}
.nav-list a {
  display: block;
  padding: 0.4rem 0.15rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold-500);
  transition: right 0.3s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--navy-900); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; flex: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md) 1.25rem var(--space-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { padding: 0.95rem 0.25rem; font-size: 1.05rem; }
  .nav-list a::after { display: none; }
  .nav-cta .btn-donate-desktop { display: none; }
  .nav-mobile-cta { padding-top: var(--space-md); display: flex; gap: 0.75rem; }
}

body.nav-open { overflow: hidden; }

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 3rem + 8vw, 7rem) clamp(3.5rem, 3rem + 7vw, 6.5rem);
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(201, 162, 39, 0.22), transparent 62%),
    radial-gradient(900px 600px at 8% 100%, rgba(31, 66, 104, 0.55), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  color: #f4f6fa;
  --text: #f4f6fa;
  --text-muted: #a9b8cc;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 9px);
  pointer-events: none;
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 110px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
  position: relative;
}
.hero .lead { color: #c3d0e0; font-size: var(--step-1); max-width: 56ch; }
.hero .btn-row { margin-top: var(--space-lg); }

.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  aspect-ratio: 4 / 3.2;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  display: grid;
  place-items: center;
}
.hero-figure svg { width: 62%; height: auto; opacity: 0.95; }

.hero-meta {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-xl);
  font-size: var(--step--1);
  color: #a9b8cc;
  letter-spacing: 0.03em;
}
.hero-meta strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; display: block; }

/* --- Trust bar --- */
.trust-bar {
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.trust-bar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
}
.trust-bar li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-bar svg { width: 18px; height: 18px; color: var(--gold-500); flex: none; }

/* --- Principles strip --- */
.pillar {
  padding-left: var(--space-md);
  border-left: 3px solid var(--gold-500);
}
.pillar h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.pillar p { color: var(--text-muted); margin: 0; }

/* --- CTA band --- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 15%, rgba(201, 162, 39, 0.2), transparent 60%),
    linear-gradient(140deg, var(--navy-900), var(--navy-700));
  color: #fff;
  --text: #fff;
  --text-muted: #bccbdb;
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 4vw, 4rem);
}
.cta-band h2 { color: #fff; }
.cta-band .btn-row { margin-top: var(--space-lg); }

/* --- News cards --- */
.post-card { overflow: hidden; padding: 0; }
.post-card .post-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  display: grid;
  place-items: center;
  color: var(--gold-400);
}
.post-card .post-thumb svg { width: 40%; }
.post-card .post-body { padding: 1.35rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.6rem;
}
.post-card h3 { font-size: var(--step-1); }
.post-card .card-foot { margin-top: auto; padding-top: var(--space-md); }

/* --- Quote block --- */
.pull-quote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.25;
  color: var(--navy-900);
  text-wrap: balance;
}
.is-dark .pull-quote { color: #fff; }
.attribution {
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-950);
  color: #c3d0e0;
  padding-block: var(--space-2xl) var(--space-lg);
  --line: rgba(255, 255, 255, 0.12);
  --text-muted: #8fa1b8;
}
.footer-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--line);
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--space-md);
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer a { color: #c3d0e0; text-decoration: none; font-size: 0.94rem; transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--gold-300); }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: var(--space-md); }
.footer-brand .brand-name { color: #fff; }
.footer-about { font-size: 0.94rem; color: var(--text-muted); max-width: 40ch; }
.footer-bottom {
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: space-between;
  align-items: center;
  font-size: var(--step--1);
  color: var(--text-muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.social { display: flex; gap: 0.6rem; }
.social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.social svg { width: 18px; height: 18px; }

/* --- Back to top --- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy-800);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy-800); color: #fff; }
.to-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   7) PAGES
   -------------------------------------------------------------------------- */

/* --- Page hero (interior pages) --- */
.page-hero {
  position: relative;
  background:
    radial-gradient(800px 420px at 82% 0%, rgba(201, 162, 39, 0.18), transparent 62%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800));
  color: #fff;
  --text: #fff;
  --text-muted: #b3c2d4;
  padding-block: clamp(3rem, 2.2rem + 5vw, 5rem);
}
.page-hero h1 { color: #fff; margin-bottom: 0.4em; max-width: 20ch; }
.page-hero .lead { color: #bccbdb; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  font-size: var(--step--1);
  margin-bottom: var(--space-md);
  color: #9fb0c4;
}
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-300); text-decoration: underline; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.45rem; opacity: 0.55; }

/* --- Prose --- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-3); margin-top: var(--space-xl); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-lg); }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.35rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--gold-600); font-weight: 700; }
.prose a { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-600); }
.prose img { border-radius: var(--radius); margin-block: var(--space-lg); }

/* --- Accordion (FAQ) --- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--space-md) 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-500);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin-top: var(--space-sm); color: var(--text-muted); }

/* --- Data table --- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
caption { text-align: left; padding: var(--space-sm) var(--space-md); font-weight: 620; color: var(--text-muted); }
th, td { padding: 0.75rem var(--space-md); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-alt); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.05em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }

/* --- Donation tiers --- */
.tier-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tier {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  background: var(--surface);
  text-align: center;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tier:hover { border-color: var(--gold-500); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier.is-featured { border-color: var(--gold-500); box-shadow: var(--shadow-md); position: relative; }
.tier.is-featured::before {
  content: "Most Impact";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.tier-amount {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1;
}
.tier-period { font-size: var(--step--1); color: var(--text-muted); display: block; margin-top: 0.35rem; }
.tier ul { list-style: none; margin: var(--space-md) 0; text-align: left; display: flex; flex-direction: column; gap: 0.5rem; }
.tier li { display: flex; gap: 0.5rem; font-size: 0.94rem; color: var(--text-muted); }
.tier li svg { width: 17px; height: 17px; color: var(--gold-600); flex: none; margin-top: 0.28rem; }

/* --- Contact split --- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-md); }
.info-list li { display: flex; gap: var(--space-sm); align-items: flex-start; }
.info-list svg { width: 20px; height: 20px; color: var(--gold-600); flex: none; margin-top: 0.28rem; }
.info-list strong { display: block; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.info-list a { color: var(--navy-700); text-decoration: none; border-bottom: 1px solid var(--gold-500); }
.info-list a:hover { color: var(--gold-600); }

/* --- 404 --- */
.error-page {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 50% 0%, rgba(201, 162, 39, 0.16), transparent 65%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
  --text: #fff;
  --text-muted: #b3c2d4;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 20vw, 12rem);
  line-height: 0.85;
  color: transparent;
  background: linear-gradient(140deg, var(--gold-300), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   8) UTILITIES
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mx-auto { margin-inline: auto; }
.flow-lg > * + * { margin-top: var(--space-lg); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.no-wrap { white-space: nowrap; }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   9) MOTION
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.09s; }
[data-reveal][data-delay="2"] { transition-delay: 0.18s; }
[data-reveal][data-delay="3"] { transition-delay: 0.27s; }
[data-reveal][data-delay="4"] { transition-delay: 0.36s; }
[data-reveal][data-delay="5"] { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   9b) CAMPAIGN COMPONENTS
   -------------------------------------------------------------------------- */

/* --- Hero action row: a deliberate stack of equal choices --- */
/* The stack sizes itself to its widest label so long button text
   (e.g. "Request a free sign (Coming Soon)") is never clipped by the
   nowrap rule on .btn. Buttons still share one width. */
.hero-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  width: fit-content;
  max-width: 100%;
}
.hero-actions .btn { width: 100%; justify-content: center; }

/* Narrow screens: allow the long label to wrap rather than overflow */
@media (max-width: 620px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn {
    white-space: normal;
    line-height: 1.3;
    padding-inline: 1.15rem;
    text-align: center;
  }
}

.btn .ext { flex: none; opacity: 0.75; transition: transform 0.25s var(--ease); }
.btn:hover .ext { transform: translate(2px, -2px); }

/* --- Big action cards --- */
.action-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.action-card {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  border-top: 4px solid var(--navy-600);
  padding-top: clamp(1.5rem, 3vw, 2.1rem);
}
.action-card.is-urgent { border-top-color: var(--red-600); }
.action-card.is-primary { border-top-color: var(--gold-500); }

.action-card h3 { font-size: var(--step-2); margin-top: 0.75rem; margin-bottom: 0.5rem; }
.action-card > p { color: var(--text-muted); }
.action-card .card-icon { width: 60px; height: 60px; }

.action-card .badge { align-self: flex-start; }
.badge-urgent {
  background: #fdecec;
  color: var(--red-700);
  border-color: rgba(179, 45, 45, 0.35);
}
.is-dark .badge-urgent { background: rgba(179, 45, 45, 0.18); color: #f3b9b9; }

.action-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: var(--space-md) 0 var(--space-lg);
  font-size: 0.96rem;
}
.action-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-muted); }
.action-list svg { width: 17px; height: 17px; color: var(--gold-600); flex: none; margin-top: 0.3rem; }

.action-card .btn { margin-top: auto; width: 100%; }
.action-card .form-note { margin-top: 0.75rem; font-size: 0.82rem; line-height: 1.5; }

/* Highlight pulse when a quick link targets a card */
@keyframes card-flash {
  from { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.55); }
  to   { box-shadow: 0 0 0 16px rgba(201, 162, 39, 0); }
}
.is-flashing { animation: card-flash 0.85s var(--ease) 2; }

/* --- Steps --- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.step {
  counter-increment: step;
  position: relative;
  padding-top: 3.6rem;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.96rem; }

/* --- Yard sign hero figure --- */
.sign-figure svg { width: min(100%, 400px); height: auto; }

/* --- Sticky mobile action bar --- */
.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(6, 14, 27, 0.08);
}
.sticky-actions .btn { flex: 1 1 0; padding-inline: 0.5rem; font-size: 0.82rem; }

@media (max-width: 900px) {
  .sticky-actions { display: flex; }
  body { padding-bottom: 4.5rem; }
  .to-top { bottom: 5.25rem; }
}

/* --------------------------------------------------------------------------
   10) PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .to-top, .nav, .cta-band, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  section { padding-block: 1rem; break-inside: avoid; }
}
