/* ============================================================
   PAT MOORE FOR CONGRESS — Design Tokens & Components
   ============================================================ */

/* ---------- Fonts ---------- */
:root {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Public Sans', 'Segoe UI', sans-serif;
}

/* ---------- Type Scale ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.03rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.3rem + 3.8vw, 4.5rem);
  --text-hero: clamp(2.75rem, 1.2rem + 5.5vw, 6rem);
}

/* ---------- Spacing (4px system) ---------- */
:root {
  --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;
}

/* ---------- Radius & Motion ---------- */
:root {
  --radius-sm: 0.3rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.9rem;
  --radius-xl: 1.4rem;
  --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
}

/* ---------- Color: Brand constants (do not toggle) ---------- */
:root {
  --color-navy: #0b2545;
  --color-navy-deep: #071829;
  --color-navy-light: #17396a;
  --color-cream: #fbf8f1;
}

/* ---------- Color: Light mode ---------- */
:root,
[data-theme='light'] {
  --color-bg: #fbf8f1;
  --color-surface: #ffffff;
  --color-surface-2: #f6f2e6;
  --color-surface-offset: #efe7d3;
  --color-surface-dynamic: #e9dfc4;
  --color-divider: #e7dfc8;
  --color-border: #ded2ac;

  --color-text: #101a30;
  --color-text-muted: #4c5771;
  --color-text-faint: #909bb2;
  --color-text-inverse: #fbf8f1;

  --color-gold: #b6902f;
  --color-gold-hover: #997a28;
  --color-gold-active: #7c631f;
  --color-gold-highlight: #f2e6c4;
  --color-gold-ink: #4a3a12;

  --color-primary: var(--color-navy);
  --color-primary-hover: var(--color-navy-light);
  --color-primary-active: var(--color-navy-deep);
  --color-primary-highlight: #dbe3ee;

  --color-success: #3f7d42;
  --color-success-highlight: #dcebdc;
  --color-error: #ad2f3f;
  --color-error-highlight: #f4dade;
  --color-warning: #a8631f;
  --color-warning-highlight: #f1e0c9;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 250 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.2 0.02 250 / 0.1);
  --shadow-lg: 0 20px 48px oklch(0.2 0.02 250 / 0.16);
}

/* ---------- Color: Dark mode ---------- */
[data-theme='dark'] {
  --color-bg: #0a1830;
  --color-surface: #0f2140;
  --color-surface-2: #122548;
  --color-surface-offset: #16294e;
  --color-surface-dynamic: #1b3157;
  --color-divider: #1c3054;
  --color-border: #29406a;

  --color-text: #f1ede1;
  --color-text-muted: #b7c0d4;
  --color-text-faint: #78859f;
  --color-text-inverse: #0a1830;

  --color-gold: #e2bf5f;
  --color-gold-hover: #ecd07f;
  --color-gold-active: #f2dd9c;
  --color-gold-highlight: #3a3016;
  --color-gold-ink: #2c2409;

  --color-primary: var(--color-gold);
  --color-primary-hover: var(--color-gold-hover);
  --color-primary-active: var(--color-gold-active);
  --color-primary-highlight: #3a3016;

  --color-success: #6daa45;
  --color-success-highlight: #24361f;
  --color-error: #d1687c;
  --color-error-highlight: #3a222b;
  --color-warning: #c98a4a;
  --color-warning-highlight: #3a2c19;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 24px 56px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0a1830;
    --color-surface: #0f2140;
    --color-surface-2: #122548;
    --color-surface-offset: #16294e;
    --color-surface-dynamic: #1b3157;
    --color-divider: #1c3054;
    --color-border: #29406a;
    --color-text: #f1ede1;
    --color-text-muted: #b7c0d4;
    --color-text-faint: #78859f;
    --color-text-inverse: #0a1830;
    --color-gold: #e2bf5f;
    --color-gold-hover: #ecd07f;
    --color-gold-active: #f2dd9c;
    --color-gold-highlight: #3a3016;
    --color-primary: var(--color-gold);
    --color-primary-hover: var(--color-gold-hover);
    --color-primary-active: var(--color-gold-active);
    --color-primary-highlight: #3a3016;
  }
}

/* ============================================================
   Layout Primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.section--tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.section-eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--color-gold);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 62ch;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--color-navy);
  color: var(--color-cream);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  z-index: 200;
  font-weight: 600;
  transition: top var(--transition-interactive);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-gold-ink);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover {
  background: var(--color-gold-hover);
  box-shadow: var(--shadow-md);
}
.btn-gold:active {
  background: var(--color-gold-active);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover {
  background: oklch(from currentColor l c h / 0.08);
}

.btn-outline-navy {
  color: var(--color-navy);
  border-color: var(--color-navy);
}
[data-theme='dark'] .btn-outline-navy {
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost-cream {
  color: var(--color-cream);
  border-color: oklch(from var(--color-cream) l c h / 0.4);
}
.btn-ghost-cream:hover {
  background: oklch(from var(--color-cream) l c h / 0.1);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  min-height: 36px;
}

/* ============================================================
   Header / Nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-navy) l c h / 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-cream) l c h / 0.12);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header--hidden {
  transform: translateY(-100%);
}
.site-header--scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.brand,
.social-icon,
.share-icon {
  text-decoration: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-cream);
  text-decoration: none;
}
.brand-mark {
  color: var(--color-gold);
  flex-shrink: 0;
}
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-sub {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.nav-links a {
  color: oklch(from var(--color-cream) l c h / 0.85);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  padding-block: var(--space-1);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-interactive);
}
.nav-links a:hover {
  color: var(--color-cream);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-cream);
  border: 1px solid oklch(from var(--color-cream) l c h / 0.25);
}
.theme-toggle:hover {
  background: oklch(from var(--color-cream) l c h / 0.1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  color: var(--color-cream);
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  background: var(--color-navy-deep);
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid oklch(from var(--color-cream) l c h / 0.12);
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav a {
  color: var(--color-cream);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 600;
  padding-block: var(--space-3);
  border-bottom: 1px solid oklch(from var(--color-cream) l c h / 0.08);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .nav {
    gap: var(--space-3);
  }
  .nav-actions {
    gap: var(--space-2);
  }
  .brand-sub {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }
  .nav-actions .btn {
    display: none;
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 15% 20%,
      oklch(from var(--color-gold) l c h / 0.12) 0%,
      transparent 45%
    ),
    radial-gradient(circle at 85% 80%, oklch(from var(--color-gold) l c h / 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-12);
  align-items: center;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-12);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-light, var(--color-gold));
  border: 1px solid oklch(from var(--color-gold) l c h / 0.5);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: var(--space-5);
}
.hero-title em {
  font-style: normal;
  color: var(--color-gold);
}

.hero-district {
  font-size: var(--text-lg);
  font-weight: 600;
  color: oklch(from var(--color-cream) l c h / 0.92);
  margin-bottom: var(--space-6);
}

.hero-tagline {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-gold);
  border-top: 1px solid oklch(from var(--color-gold) l c h / 0.4);
  border-bottom: 1px solid oklch(from var(--color-gold) l c h / 0.4);
  padding-block: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-portrait-wrap {
  position: relative;
  justify-self: center;
}

.hero-portrait-frame {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 3px solid oklch(from var(--color-gold) l c h / 0.55);
  box-shadow: var(--shadow-lg);
}
.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-portrait-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--color-gold);
  color: var(--color-gold-ink);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  max-width: 190px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-eyebrow,
  .hero-tagline {
    margin-inline: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-portrait-wrap {
    order: -1;
  }
  .hero-portrait-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -16px;
  }
}

/* ============================================================
   About
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-16);
  align-items: center;
}
.about-grid--single {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-inline: auto;
}

.about-image-wrap {
  position: relative;
}
.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.about-caption {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}

.about-highlights {
  list-style: none;
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.about-highlights li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.about-highlights svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-gold);
}

.about-copy p + p {
  margin-top: var(--space-4);
}
.about-copy p {
  color: var(--color-text-muted);
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Priorities
   ============================================================ */

.priorities-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}
.priorities-header .section-eyebrow {
  justify-content: center;
}
.priorities-header .section-eyebrow::before {
  display: none;
}
.priorities-header .section-title {
  font-size: var(--text-2xl);
}
.priorities-header .section-lead {
  margin-inline: auto;
}

.priorities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.priority-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive),
    border-color var(--transition-interactive);
}
.priority-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.priority-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-gold-highlight);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.priority-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.priority-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .priorities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .priorities-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Announcement / Press
   ============================================================ */

.announcement {
  background: var(--color-surface-2);
}

.announcement-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-16);
  align-items: center;
}

.announcement-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.press-list {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-8);
}
.press-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
}
.press-list a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-hover, var(--color-gold));
}
.press-list span.outlet {
  color: var(--color-text-faint);
  font-weight: 400;
}

.share-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.share-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-right: var(--space-2);
}
.share-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.share-icon:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-hover, var(--color-gold));
  background: var(--color-gold-highlight);
}

@media (max-width: 900px) {
  .announcement-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Volunteer
   ============================================================ */

.volunteer {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: var(--color-cream);
  position: relative;
}

.volunteer-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-16);
  align-items: flex-start;
}

.volunteer .section-eyebrow {
  color: var(--color-gold);
}
.volunteer .section-title {
  color: var(--color-cream);
}
.volunteer .section-lead {
  color: oklch(from var(--color-cream) l c h / 0.78);
}

.volunteer-points {
  list-style: none;
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.volunteer-points li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: oklch(from var(--color-cream) l c h / 0.85);
  font-size: var(--text-sm);
}
.volunteer-points svg {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-card {
  background: var(--color-cream);
  color: var(--color-text);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.form-grid .field-full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.field input[type='text'],
.field input[type='email'],
.field input[type='tel'] {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-base);
  min-height: 46px;
}
.field input:focus-visible {
  border-color: var(--color-navy);
}
.field .error-msg {
  display: none;
  color: var(--color-error);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
  font-weight: 600;
}
.field.has-error input {
  border-color: var(--color-error);
}
.field.has-error .error-msg {
  display: block;
}

.interest-group {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
}
.interest-group > span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-4);
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
}
.checkbox-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-navy);
  flex-shrink: 0;
}

.form-submit-row {
  grid-column: 1 / -1;
  margin-top: var(--space-3);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
  grid-column: 1 / -1;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}
.form-success.is-visible {
  display: block;
}
.form-success .success-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-success-highlight);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.form-success p {
  color: var(--color-text-muted);
  margin-inline: auto;
}
.volunteer-form.is-submitted {
  display: none;
}

@media (max-width: 900px) {
  .volunteer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Donate
   ============================================================ */

.donate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.donate-tier {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}
.donate-tier:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-highlight);
}
.donate-tier span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  text-transform: none;
}

.donate-custom {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}
.donate-custom input {
  flex: 1;
  min-width: 200px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  font-size: var(--text-base);
  background: var(--color-surface);
  min-height: 46px;
}

.donate-security {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.donate-security svg {
  color: var(--color-success);
  flex-shrink: 0;
}

@media (max-width: 780px) {
  .donate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.1 0.02 250 / 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--space-6);
}
.modal-overlay.is-open {
  display: flex;
}
.modal-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}
.modal-close:hover {
  background: var(--color-surface-offset);
}
.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-gold-highlight);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}
.modal-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.modal-card p {
  color: var(--color-text-muted);
  margin-inline: auto;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--color-navy-deep);
  color: oklch(from var(--color-cream) l c h / 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-12);
  padding-block: var(--space-16);
}

.footer-brand .brand {
  margin-bottom: var(--space-4);
}
.footer-brand p {
  font-size: var(--text-sm);
  max-width: 40ch;
  color: oklch(from var(--color-cream) l c h / 0.65);
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}
.footer-col a {
  color: oklch(from var(--color-cream) l c h / 0.75);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer-col a:hover {
  color: var(--color-gold);
}

.social-row {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid oklch(from var(--color-cream) l c h / 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
}
.social-icon:hover {
  background: var(--color-gold);
  color: var(--color-gold-ink);
  border-color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid oklch(from var(--color-cream) l c h / 0.12);
  padding-block: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: oklch(from var(--color-cream) l c h / 0.55);
}

.footer-disclaimer {
  background: oklch(from var(--color-cream) l c h / 0.06);
  border: 1px dashed oklch(from var(--color-gold) l c h / 0.5);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
  color: oklch(from var(--color-cream) l c h / 0.7);
  margin-bottom: var(--space-6);
}
.footer-disclaimer strong {
  color: var(--color-gold);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ============================================================
   Fade-up reveal (scroll)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
