:root {
  --terra: #D4734B; --gold: #E8B84B; --sage: #6B9E6B; --navy: #1C2A3A;
  --sky: #5AA0D4; --warm-red: #D4654A;
  --dark: #2A2420; --mid: #7A6E62; --light: #FAF7F2;
  --white: #FFFFFF; --border: #E8E0D4;
  --terra-lt: #FFF3ED; --gold-lt: #FFF9EC; --sage-lt: #F0F8F0;
  --navy-lt: #EFF4FA; --sky-lt: #F0F7FD;
  --nav-bg: #1C2A3A;
  --hero-gradient: linear-gradient(135deg, #1C2A3A 0%, #4A3520 45%, #D4734B 100%);
}
[data-theme="dark"] {
  --light: #1A1A28; --white: #24243A; --dark: #EDE6DA; --mid: #B8B0A2;
  --border: #3E3E52;
  --terra-lt: #3D201A; --gold-lt: #3D301A; --sage-lt: #1A301A;
  --navy-lt: #1A2A3D; --sky-lt: #1A2A3D;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  background: var(--light); color: var(--dark); line-height: 1.65;
  -webkit-font-smoothing: antialiased; transition: background .3s, color .3s;
}
a { color: var(--terra); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Layout */
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
.site-nav {
  background: var(--nav-bg); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 56px; gap: 12px;
}
.nav-logo { color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none; white-space: nowrap; }
.nav-logo:hover { text-decoration: none; opacity: .9; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.8); font-size: .85rem; font-weight: 500;
  padding: 6px 10px; border-radius: 6px; transition: background .15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,.12); color: #fff; text-decoration: none;
}
.lang-switch {
  display: flex; background: rgba(255,255,255,.1); border-radius: 20px;
  overflow: hidden; flex-shrink: 0;
}
.lang-switch a {
  color: rgba(255,255,255,.6); font-size: .8rem; font-weight: 600;
  padding: 5px 12px; transition: all .15s;
}
.lang-switch a:hover { text-decoration: none; color: #fff; }
.lang-switch a.active { background: var(--terra); color: #fff; }
.mobile-menu-btn {
  display: none; background: none; border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer; padding: 4px;
}
.theme-toggle {
  background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; flex-shrink: 0; transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: rgba(255,255,255,.2); }

/* Hero */
.hero {
  background: var(--hero-gradient);
  color: #fff; text-align: center; padding: 80px 20px 64px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.15));
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 900;
  margin-bottom: 8px; letter-spacing: -.5px;
}
.hero .tagline {
  font-size: clamp(1.1rem, 2.8vw, 1.5rem); color: var(--gold);
  font-weight: 700; font-style: italic; margin-bottom: 16px;
}
.hero .subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem); opacity: .85;
  max-width: 650px; margin: 0 auto 40px; line-height: 1.7;
}
.hero .candidate-photo {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(255,255,255,.3); margin-bottom: 20px;
}
.hero-cta {
  display: inline-block; padding: 14px 36px; background: var(--terra);
  color: #fff; font-weight: 700; font-size: 1rem; border-radius: 8px;
  transition: background .15s, transform .15s; border: none; cursor: pointer;
}
.hero-cta:hover { background: #BE6040; transform: translateY(-2px); text-decoration: none; }

/* Stats bar */
.stat-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 24px 20px;
}
[data-theme="dark"] .stat-bar { background: var(--white); }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; max-width: 900px; margin: 0 auto; text-align: center;
}
.stat-card { padding: 12px; }
.stat-card .num { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 900; color: var(--terra); }
.stat-card .label { font-size: .78rem; color: var(--mid); margin-top: 4px; letter-spacing: .3px; }

/* Sections */
.section { padding: 64px 20px; }
.section:nth-child(even) { background: var(--white); }
.section-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800;
  margin-bottom: 24px; color: var(--dark);
  padding-bottom: 10px; border-bottom: 3px solid var(--gold); display: table;
}
.section p, .section li {
  font-size: 1rem; line-height: 1.75; color: var(--mid); margin-bottom: 16px;
}
.section strong { color: var(--dark); }

/* Issue Cards */
.issues-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; margin-top: 32px;
}
.issue-card {
  background: var(--white); border-radius: 12px; padding: 28px 24px;
  border: 1px solid var(--border); transition: transform .15s, box-shadow .15s;
}
.issue-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.issue-card .issue-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.issue-card h3 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--dark);
}
.issue-card p { font-size: .92rem; line-height: 1.6; color: var(--mid); margin: 0; }
.issue-card .issue-link {
  display: inline-block; margin-top: 14px; font-size: .88rem;
  font-weight: 600; color: var(--terra);
}

/* Countdown */
.countdown-bar {
  background: var(--navy); color: #fff; text-align: center;
  padding: 20px; font-size: .95rem;
}
.countdown-bar strong { color: var(--gold); }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1C2A3A 0%, #4A3520 100%);
  color: #fff; text-align: center; padding: 64px 20px;
}
.cta-section h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; margin-bottom: 12px; color: #fff; }
.cta-section p { font-size: 1rem; opacity: .85; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; color: #fff; }
.cta-section .hero-cta { background: var(--terra); }
.cta-section .hero-cta:hover { background: #A04E30; }

/* About page */
.about-header {
  display: flex; gap: 40px; align-items: flex-start; margin-bottom: 40px; flex-wrap: wrap;
}
.about-photo {
  width: 220px; height: 280px; object-fit: cover; border-radius: 12px;
  border: 3px solid var(--border); flex-shrink: 0;
}
.about-bio { flex: 1; min-width: 280px; }
.about-bio h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; color: var(--dark); }
.about-bio .role { color: var(--terra); font-weight: 600; font-size: 1rem; margin-bottom: 16px; }

/* Issue detail page */
.issue-detail { padding: 48px 20px; }
.issue-detail h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800;
  margin-bottom: 16px; color: var(--dark);
}
.issue-detail .issue-subtitle {
  font-size: 1.05rem; color: var(--mid); line-height: 1.7; margin-bottom: 32px;
}
.issue-detail h2 {
  font-size: 1.25rem; font-weight: 700; margin: 36px 0 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border); color: var(--dark);
}
.issue-detail p { margin-bottom: 16px; line-height: 1.75; color: var(--mid); }
.issue-detail ul { padding-left: 24px; margin-bottom: 16px; }
.issue-detail li { margin-bottom: 8px; line-height: 1.7; color: var(--mid); }
.issue-detail strong { color: var(--dark); }
.issue-detail blockquote {
  border-left: 4px solid var(--gold); padding: 16px 20px; margin: 20px 0;
  background: var(--gold-lt); border-radius: 0 8px 8px 0; font-style: italic;
}

/* Highlight box */
.highlight-box {
  padding: 24px; border-radius: 12px; margin: 24px 0;
  border-left: 4px solid var(--terra);
}
.highlight-box.terra { background: var(--terra-lt); border-color: var(--terra); }
.highlight-box.gold { background: var(--gold-lt); border-color: var(--gold); }
.highlight-box.sage { background: var(--sage-lt); border-color: var(--sage); }
.highlight-box.navy { background: var(--navy-lt); border-color: var(--navy); }
.highlight-box h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.highlight-box p { margin: 0; }

/* Volunteer form */
.volunteer-form {
  max-width: 500px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px;
}
.volunteer-form input, .volunteer-form textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 1rem; font-family: inherit;
  background: var(--white); color: var(--dark);
}
.volunteer-form input:focus, .volunteer-form textarea:focus {
  outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(184,92,56,.15);
}
.volunteer-form button { align-self: center; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.data-table th {
  background: #1C2A3A; color: #fff; padding: 12px 16px;
  text-align: left; font-size: .85rem; font-weight: 700;
}
.data-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: .92rem; color: var(--mid);
}
.data-table tr:nth-child(even) { background: var(--white); }
[data-theme="dark"] .data-table th { background: #1C2A3A; color: #fff; }

/* Footer */
.site-footer {
  background: #1C2A3A; color: rgba(255,255,255,.7); padding: 40px 20px;
  text-align: center;
}
.site-footer strong { color: #fff; }
.site-footer .tagline { color: var(--gold); font-weight: 600; margin: 8px 0; }
.site-footer .disclaimer { font-size: .78rem; margin-top: 16px; opacity: .5; }
.site-footer .social-links { margin: 16px 0; display: flex; justify-content: center; gap: 16px; }
.site-footer .social-links a { color: rgba(255,255,255,.7); font-size: .9rem; }
.site-footer .social-links a:hover { color: #fff; text-decoration: none; }

/* Skip to content */
.skip-link {
  position: absolute; top: -50px; left: 16px; background: var(--terra); color: #fff;
  padding: 8px 18px; border-radius: 0 0 8px 8px; font-weight: 600; font-size: .85rem; z-index: 200;
  transition: top .2s;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* Divider */
hr.divider { border: none; height: 1px; background: var(--border); margin: 40px auto; max-width: 200px; }

/* Page header (for inner pages) */
.page-hero {
  background: var(--hero-gradient);
  color: #fff; text-align: center; padding: 48px 20px 40px;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; margin-bottom: 8px;
}
.page-hero p { opacity: .85; font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-inner { padding: 0 12px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .issues-grid { grid-template-columns: 1fr; }
  .about-header { flex-direction: column; align-items: center; text-align: center; }
  .about-photo { width: 180px; height: 220px; }
}
@media (max-width: 520px) {
  .stat-grid { gap: 10px; }
  .stat-card .num { font-size: 1.2rem; }
  .hero { padding: 56px 16px 48px; }
  .hero .candidate-photo { width: 120px; height: 120px; }
}

/* Mobile nav toggle */
.nav-links.open {
  display: flex; flex-direction: column; position: absolute;
  top: 56px; left: 0; right: 0; background: var(--nav-bg);
  padding: 12px; gap: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.2);
  z-index: 99;
}
