:root {
  --green-900: #1b4332;
  --green-700: #2d6a4f;
  --green-600: #368a63;
  --green-500: #40916c;
  --green-100: #d8f3dc;
  --cream: #f8f6f0;
  --text: #1f2421;
  --text-muted: #5b645e;
  --accent: #e07a5f;
  --accent-dark: #c8613f;
  --border: #e2e0d6;
  --radius: 14px;
  --max-width: 1120px;
  --shadow: 0 10px 30px rgba(27, 67, 50, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green-700);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.25;
  color: var(--green-900);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--green-100);
  color: var(--green-900);
}

.btn-secondary:hover {
  border-color: var(--green-500);
  color: var(--green-900);
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-weight: 700;
  color: var(--green-900);
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--green-700);
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.15);
}

.hero .eyebrow {
  color: var(--green-100);
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  margin: 8px 0 20px;
}

.hero h1 .brand-line {
  white-space: nowrap;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.hero-actions .btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

/* Sections */
.section {
  padding-top: 12px;
  padding-bottom: 72px;
}

.section-tight {
  padding-bottom: 40px;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 16px;
  text-align: center;
}

.section-alt {
  background: #fff;
}

.prose p {
  margin: 0 0 1.2em;
  color: var(--text-muted);
  max-width: 760px;
}

.prose p:first-child {
  font-size: 1.1rem;
  color: var(--text);
}

/* Page banner photo */
.page-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Intro text + photo side by side */
.intro-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin: 24px 0 40px;
}

.intro-split .prose p {
  margin: 0;
}

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

/* Teaser cards */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--text-muted);
}

.card .more-link {
  font-weight: 700;
}

/* Program page */
.program-list {
  display: grid;
  gap: 20px;
}

.program-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}

.program-item .index {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-item h3 {
  margin: 0 0 8px;
}

.program-item p {
  margin: 0;
  color: var(--text-muted);
}

/* Candidates grid */
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.candidate-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.candidate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(27, 67, 50, 0.16);
  color: inherit;
}

.candidate-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.candidate-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-photo svg {
  width: 48%;
  height: 48%;
  color: var(--green-500);
}

.candidate-number {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green-900);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.candidate-body {
  padding: 18px 20px 22px;
}

.candidate-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.candidate-meta,
.candidate-address {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.candidate-address {
  margin-top: 4px;
  color: var(--green-700);
  font-weight: 600;
}

/* Ballot info callout */
.ballot-info {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0 40px;
  box-shadow: var(--shadow);
}

.ballot-number {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--green-900);
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ballot-info p {
  margin: 0;
  color: var(--text-muted);
}

/* Candidate detail page */
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--green-700);
}

.candidate-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.candidate-detail-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--green-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.candidate-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-detail-photo svg {
  width: 40%;
  height: 40%;
  color: var(--green-500);
}

.candidate-number-badge {
  display: inline-block;
  background: var(--green-900);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.candidate-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 20px 0 28px;
}

.candidate-facts dt {
  font-weight: 700;
  color: var(--green-900);
}

.candidate-facts dd {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .candidate-detail {
    grid-template-columns: 1fr;
  }

  .candidate-detail-photo {
    max-width: 320px;
  }
}

/* Contact */
.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 0;
}

.contact-info dt {
  font-weight: 700;
  color: var(--green-900);
}

.contact-info dd {
  margin: 0;
  color: var(--text-muted);
}

.contact-form p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.contact-form-link {
  display: none;
}

@media (max-width: 700px) {
  .contact-form-iframe {
    display: none;
  }

  .contact-form-link {
    display: inline-block;
  }
}

.form-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--green-500);
  outline-offset: 1px;
}

/* Footer */
.site-footer {
  background: var(--green-900);
  color: var(--green-100);
  padding: 32px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #fff;
}

.footer-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.9rem;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.social-links a {
  color: var(--green-100);
  font-weight: 600;
}

.social-links a:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
  }

  .nav-toggle {
    grid-column: 3;
    justify-self: end;
    display: flex;
  }

  .brand-text {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
  }

  .hero {
    padding: 48px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
  }
}
