:root {
  --ww-red: #c8102e;
  --ww-red-dark: #8f0b21;
  --ww-gold: #d4a017;
  --ww-gold-light: #f0c75e;
  --ww-blue: #003366;
  --ww-blue-dark: #001a33;
  --ww-blue-mid: #154a7a;
  --white: #ffffff;
  --cream: #faf8f5;
  --text: #2a2a32;
  --muted: #5c5c68;
  --border: #e2d8c8;
  --shadow: 0 8px 28px rgba(0, 26, 51, 0.14);
  --radius: 6px;
  --max: 1200px;
  --header-h: 88px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ww-blue-dark);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ww-blue-mid); }

.site-wrap {
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 4px solid var(--ww-gold);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo img { height: 72px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ww-blue);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
  transition: color 150ms, background 150ms;
}

.nav-desktop a:hover,
.nav-desktop a.active { color: var(--ww-red); background: rgba(200, 16, 46, 0.06); }

.btn-donate {
  background: linear-gradient(135deg, var(--ww-red) 0%, var(--ww-red-dark) 100%) !important;
  color: var(--white) !important;
  border: 2px solid var(--ww-gold) !important;
  padding: 0.5rem 1rem !important;
}

.btn-donate:hover {
  background: var(--ww-red-dark) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ww-blue);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.45rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ww-blue);
  margin: 4px 0;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ww-blue-dark);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 999;
  overflow-y: auto;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-mobile a:hover { color: var(--ww-gold-light); }

/* Election countdown */
.election-countdown {
  background: linear-gradient(90deg, var(--ww-blue-dark), var(--ww-blue), var(--ww-blue-dark));
  color: var(--white);
  text-align: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 3px solid var(--ww-gold);
}

.election-countdown-main {
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.03em;
}

.election-countdown-note {
  margin-top: 0.35rem;
  font-size: clamp(0.9rem, 1.7vw, 1.02rem);
  opacity: 0.92;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  background: linear-gradient(135deg, var(--ww-red), var(--ww-red-dark));
  border: 2px solid var(--ww-gold);
  border-radius: var(--radius);
  padding: 0.75rem 1.35rem;
  cursor: pointer;
  transition: transform 150ms, box-shadow 150ms;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--ww-gold-light);
}

.btn-light {
  background: var(--white);
  color: var(--ww-blue);
  border-color: var(--ww-gold);
}

/* Hero */
.hero-home {
  position: relative;
  overflow: hidden;
  background: var(--ww-blue-dark);
  color: var(--white);
  padding: 3.5rem 1.25rem 4.5rem;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(0, 26, 51, 0.92) 0%, rgba(0, 51, 102, 0.78) 45%, rgba(200, 16, 46, 0.55) 100%),
    url("../assets/hero-bg.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero-home::after {
  content: "★ ★ ★ ★ ★";
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ww-gold-light);
  font-size: 0.75rem;
  letter-spacing: 0.6em;
  opacity: 0.55;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ww-gold-light);
  margin-bottom: 0.75rem;
}

.hero-home h1,
.hero__hed {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-home h1 b,
.hero__hed b { color: var(--ww-gold-light); }

.hero-motto {
  font-style: italic;
  color: var(--ww-gold-light);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.hero-home .lead {
  font-size: 1.1rem;
  opacity: 0.94;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-signup {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 2px solid var(--ww-gold);
  box-shadow: var(--shadow);
}

.hero-signup h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ww-blue);
  margin-bottom: 0.75rem;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  border-radius: var(--radius);
  border: 4px solid var(--ww-gold);
  box-shadow: var(--shadow);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(212, 160, 23, 0.45);
  border-radius: calc(var(--radius) + 4px);
  pointer-events: none;
}

/* Sections */
.section {
  padding: 3.5rem 1.25rem;
}

.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-dark {
  background: linear-gradient(160deg, var(--ww-blue-dark), var(--ww-blue));
  color: var(--white);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ww-red);
  margin-bottom: 0.5rem;
}

.section-dark .section-label { color: var(--ww-gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--ww-blue);
}

.section-dark .section-title { color: var(--white); }

.section-lead {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-dark .section-lead { color: rgba(255, 255, 255, 0.82); }

/* Priority cards */
.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.priority-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--ww-red);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.priority-card .star {
  color: var(--ww-gold);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.priority-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ww-blue);
  margin-bottom: 0.5rem;
}

/* Actions */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  color: var(--ww-blue);
  transition: border-color 150ms, transform 150ms;
}

.action-card:hover {
  border-color: var(--ww-gold);
  transform: translateY(-2px);
  color: var(--ww-red);
}

.action-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.action-card-btn {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ww-red);
}

/* Split layouts */
.split,
.meet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split img,
.meet-photo img {
  border-radius: var(--radius);
  border: 3px solid var(--ww-gold);
  box-shadow: var(--shadow);
}

/* Forms */
.form-section { padding: 2.5rem 1.25rem 4rem; }

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  border-top: 4px solid var(--ww-gold);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-row,
.form-row-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--ww-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--ww-gold);
  border-color: var(--ww-gold);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.75rem 0 1rem;
}

.checkbox-group label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.form-success {
  margin-top: 1rem;
  color: #0d6b3a;
  font-weight: 600;
}

.form-error {
  margin-top: 1rem;
  color: var(--ww-red);
  font-weight: 600;
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--ww-blue-dark), var(--ww-blue-mid));
  color: var(--white);
  text-align: center;
  padding: 3rem 1.25rem;
  border-bottom: 4px solid var(--ww-gold);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 36rem;
  margin: 0 auto;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.page-content h2 {
  font-family: var(--font-display);
  color: var(--ww-blue);
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.page-content ul { margin: 0.75rem 0 1rem 1.25rem; }

.text-center { text-align: center; }

/* CTA strip */
.cta-strip {
  text-align: center;
  padding: 3rem 1.25rem;
  background: linear-gradient(135deg, var(--ww-red-dark), var(--ww-red));
  color: var(--white);
  border-top: 4px solid var(--ww-gold);
}

.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.cta-strip p { opacity: 0.92; margin-bottom: 1.25rem; }

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--ww-blue-dark);
  color: var(--white);
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.82;
  margin: 0.75rem 0;
  max-width: 280px;
}

.footer-brand .logo img {
  height: 64px;
  filter: brightness(1.05);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-links a {
  color: var(--ww-gold-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.social-links a:hover { color: var(--white); }

.footer-nav h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ww-gold);
  margin-bottom: 0.75rem;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.35rem; }

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

.footer-bottom a { color: var(--ww-gold-light); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .split, .meet-grid { grid-template-columns: 1fr; }
  .priority-grid { grid-template-columns: 1fr; }
  .actions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 76px; }
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .logo img { height: 58px; }
  .actions-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-inline { grid-template-columns: 1fr; }
  .election-countdown-main { display: flex; flex-direction: column; gap: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .action-card:hover { transform: none; }
}