/* =========================================================
   Cynthia Johnson for GA House District 148 — Site Styles
   ---------------------------------------------------------
   Palette (Red / White / Blue, cream background retained):
   --cream:   background
   --terracotta: royal blue accent (buttons, links, highlights)
   --terracotta-dark: deep red accent (emphasis text, button hover)
   --navy:    deep navy headline / nav text
   --gold:    small accents / dividers
   ========================================================= */

:root {
  --cream: #FAF6EF;
  --cream-alt: #F2EBDD;
  --terracotta: #0039AD;
  --terracotta-dark: #8F1220;
  --navy: #001D69;
  --gold: #C79A4B;
  --white: #FFFFFF;
  --text: #33301F;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
}

a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand span { color: var(--terracotta-dark); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links a:hover { color: var(--terracotta); text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover { background: var(--terracotta-dark); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--navy) !important;
  border: 2px solid var(--navy);
}

.btn-outline:hover { background: var(--navy); color: var(--white) !important; }

.btn-outline-white {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid var(--white);
}

.btn-outline-white:hover { background: var(--white); color: var(--navy) !important; }

/* "I Wish" button: gold, tied to the I Wish section's navy+gold hope palette.
   Sparkles + a soft pulsing glow + a shimmer sweep, because a wish deserves a little magic. */
.btn-wish {
  position: relative;
  background: linear-gradient(135deg, #e0b563, var(--gold) 45%, #b98a3d);
  color: var(--navy) !important;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.15s ease;
  animation: wish-glow 2.6s ease-in-out infinite;
}

.btn-wish:hover { transform: translateY(-2px) scale(1.03); text-decoration: none; }

.btn-wish::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.75), transparent);
  transform: skewX(-20deg);
  animation: wish-shimmer 3.2s ease-in-out infinite;
}

@keyframes wish-shimmer {
  0% { left: -60%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

@keyframes wish-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(199,154,75,0.0), 0 4px 14px rgba(0,0,0,0.12); }
  50% { box-shadow: 0 0 18px 3px rgba(230,190,110,0.55), 0 4px 14px rgba(0,0,0,0.12); }
}

.btn-wish-wrap {
  position: relative;
  display: inline-flex;
}

.btn-wish-wrap .sparkle {
  position: absolute;
  color: #c98f2e;
  font-size: 0.85rem;
  pointer-events: none;
  animation: sparkle-twinkle 2.2s ease-in-out infinite;
  text-shadow: 0 0 5px rgba(255,255,255,0.9), 0 0 8px rgba(201,143,46,0.6);
}

.btn-wish-wrap .sparkle-1 { top: -10px; left: -8px; animation-delay: 0s; }
.btn-wish-wrap .sparkle-2 { top: -6px; right: -10px; animation-delay: 0.7s; font-size: 0.65rem; }
.btn-wish-wrap .sparkle-3 { bottom: -10px; right: 18%; animation-delay: 1.3s; font-size: 0.7rem; }

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(20deg); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-wish, .btn-wish::after, .btn-wish-wrap .sparkle { animation: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 64px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-photo {
  background: var(--cream-alt);
  border-radius: 8px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a9a08a;
  font-style: italic;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.hero-photo img.photo-top { object-position: center 12%; }

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-text .tagline {
  font-size: 1.25rem;
  color: var(--terracotta-dark);
  margin-bottom: 28px;
  font-weight: 500;
}

.election-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.election-box {
  background: var(--cream-alt);
  border-left: 4px solid var(--terracotta);
  padding: 20px 24px;
  border-radius: 4px;
  display: inline-block;
}

.election-box .label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  font-weight: 700;
}

.election-box .date {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
}

.countdown-box {
  background: var(--cream-alt);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 4px;
  display: inline-block;
}

.countdown-box .label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  font-weight: 700;
}

.countdown-box .date {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
}

.countdown-box .date strong {
  font-size: 1.7rem;
  color: var(--terracotta-dark);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 24px;
}

.section-alt { background: var(--white); }

.priorities-section { background: var(--cream-alt); }

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

.section-header h2 { font-size: 2.2rem; }
.section-header p { color: #6b6552; }

/* ---------- Priorities Grid ---------- */
.priorities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.priority-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px;
  border: 1px solid #eee5d3;
  box-shadow: 0 2px 12px rgba(30,42,60,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.priority-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); transform: translateY(-3px); }

.priority-card .icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.priority-card .icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.priority-card .icon-badge svg { width: 20px; height: 20px; stroke: var(--terracotta-dark); fill: none; }
.priority-card h3 { font-size: 1.1rem; margin: 0; }
.priority-card p { color: #6b6552; font-size: 0.95rem; margin: 0; }

/* ---------- Wish / CTA section (replaces old popup) ---------- */
.wish-section {
  position: relative;
  background: var(--navy);
  background-image: radial-gradient(circle at 80% 15%, rgba(199,154,75,0.22), transparent 45%);
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
  overflow: hidden;
}

.wish-section h2, .wish-section p { color: var(--white); }
.wish-section .sub { max-width: 600px; margin: 0 auto 32px; color: #cfd6e2; font-size: 1.1rem; position: relative; z-index: 1; }
.wish-section .wish-form { position: relative; z-index: 1; }

/* Flowing, hopeful script heading, like a wish being made */
.wish-heading {
  font-family: 'Dancing Script', var(--font-display), cursive;
  font-weight: 700;
  font-size: 4rem;
  color: #f2dfae;
  text-shadow: 0 0 22px rgba(230,190,110,0.45);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

/* Twinkling background stars, purely decorative */
.wish-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.wish-stars .star {
  position: absolute;
  color: rgba(244,219,160,0.7);
  text-shadow: 0 0 8px rgba(244,219,160,0.5);
  animation: sparkle-twinkle 3.5s ease-in-out infinite;
}

.wish-stars .s1 { top: 12%; left: 8%; font-size: 1.1rem; animation-delay: 0s; }
.wish-stars .s2 { top: 22%; left: 22%; font-size: 0.7rem; animation-delay: 0.6s; }
.wish-stars .s3 { top: 15%; right: 12%; font-size: 1.3rem; animation-delay: 1.1s; }
.wish-stars .s4 { top: 40%; right: 22%; font-size: 0.8rem; animation-delay: 1.7s; }
.wish-stars .s5 { bottom: 18%; left: 15%; font-size: 1rem; animation-delay: 0.3s; }
.wish-stars .s6 { bottom: 25%; left: 40%; font-size: 0.65rem; animation-delay: 2.1s; }
.wish-stars .s7 { bottom: 15%; right: 10%; font-size: 1.1rem; animation-delay: 1.4s; }
.wish-stars .s8 { top: 55%; left: 6%; font-size: 0.7rem; animation-delay: 2.6s; }

@media (prefers-reduced-motion: reduce) {
  .wish-stars .star { animation: none; opacity: 0.4; }
}

@media (max-width: 600px) {
  .wish-heading { font-size: 3rem; }
}

.wish-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  text-align: left;
}

.wish-form input, .wish-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 4px;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

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

.wish-form .btn { justify-self: start; }

/* ---------- Dynamic tile gallery (on-the-trail.html + homepage preview)
   True masonry via CSS grid: JS measures each photo's rendered aspect ratio
   and sets grid-row-end: span N, so portrait shots run tall and landscape
   shots run wide, automatically, for any photos dropped in. ---------- */
.trail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-auto-rows: 8px;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.trail-grid-item {
  background: var(--cream-alt);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trail-grid-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}

.trail-grid-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Homepage preview: same technique, smaller/denser */
.trail-grid.trail-grid-preview {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  max-width: 1050px;
}

@media (max-width: 700px) {
  .trail-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}

/* ---------- Endorsements coverflow carousel ---------- */
.coverflow {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 240px;
}

.coverflow-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  height: 220px;
  width: 100%;
  max-width: 700px;
}

.coverflow-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 190px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.5s ease, opacity 0.5s ease, z-index 0.5s;
  cursor: pointer;
}

.coverflow-item img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }

/* JS assigns one of these position classes to each item based on distance from center */
.coverflow-item.pos-center { transform: translate(-50%, -50%) scale(1.25); z-index: 5; opacity: 1; }
.coverflow-item.pos-l1 { transform: translate(calc(-50% - 165px), -50%) scale(0.85); z-index: 4; opacity: 0.85; }
.coverflow-item.pos-r1 { transform: translate(calc(-50% + 165px), -50%) scale(0.85); z-index: 4; opacity: 0.85; }
.coverflow-item.pos-l2 { transform: translate(calc(-50% - 300px), -50%) scale(0.65); z-index: 3; opacity: 0.55; }
.coverflow-item.pos-r2 { transform: translate(calc(-50% + 300px), -50%) scale(0.65); z-index: 3; opacity: 0.55; }
.coverflow-item.pos-hidden { transform: translate(-50%, -50%) scale(0.4); z-index: 1; opacity: 0; pointer-events: none; }

.coverflow-arrow {
  background: var(--white);
  border: 1px solid #eee5d3;
  color: var(--navy);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.coverflow-arrow:hover { background: var(--cream-alt); }

.coverflow-caption {
  text-align: center;
  margin-top: 18px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  min-height: 1.4em;
}

.coverflow-caption .county {
  font-weight: 500;
  color: var(--terracotta-dark);
}

@media (max-width: 700px) {
  .coverflow-item { width: 110px; height: 140px; }
  .coverflow-item.pos-l1 { transform: translate(calc(-50% - 120px), -50%) scale(0.8); }
  .coverflow-item.pos-r1 { transform: translate(calc(-50% + 120px), -50%) scale(0.8); }
  .coverflow-item.pos-l2, .coverflow-item.pos-r2 { opacity: 0; pointer-events: none; }
}

.gallery-note {
  text-align: center;
  margin-top: 28px;
  color: #6b6552;
  font-size: 0.95rem;
}

.trail-row {
  display: flex;
  gap: 12px;
}

.trail-row-item {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
}

.trail-row-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .trail-row { flex-wrap: wrap; }
  .trail-row-item { flex: 1 1 30%; }
}

.support-banner {
  display: block;
  background: var(--terracotta-dark);
  color: var(--white) !important;
  text-align: center;
  padding: 18px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s ease;
}

.support-banner:hover { background: #a81729; text-decoration: none; }

/* ---------- Endorsements ---------- */
.endorsements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.endorsement-card {
  background: var(--cream-alt);
  border-radius: 8px;
  padding: 28px;
}

.endorsement-card p.quote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
}

.endorsement-card p.name {
  font-weight: 700;
  color: var(--terracotta-dark);
  margin: 12px 0 0;
}

/* ---------- Video ---------- */
.video-wrap {
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfd6e2;
}

/* ---------- Voting info (modernized, compact, light — sits between two navy
   sections, so this stays light to break up the rhythm and keep contrast clean) ---------- */
.vote-section {
  background: var(--cream-alt);
  padding: 44px 24px;
  border-radius: 0;
}

.vote-section .section-header { margin-bottom: 28px; }
.vote-section .section-header h2 { font-size: 1.6rem; color: var(--navy); }
.vote-section .section-header p { color: #6b6552; font-size: 0.92rem; }

.vote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.vote-card {
  background: var(--white);
  border: 1px solid #e6dcc4;
  border-radius: 10px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vote-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.vote-card .vote-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.vote-card .vote-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vote-card .vote-icon svg { width: 17px; height: 17px; stroke: var(--white); fill: none; }

.vote-card h3 { color: var(--navy); font-size: 1.05rem; margin: 0; }
.vote-card p { color: var(--text); margin: 0; font-size: 0.88rem; }
.vote-card .vote-highlight { color: var(--terracotta-dark); font-weight: 700; display: block; margin-bottom: 2px; font-size: 0.9rem; }

.vote-cta {
  text-align: center;
  margin-top: 24px;
  color: #6b6552;
  font-size: 0.9rem;
}

.vote-cta a.btn {
  margin-top: 10px;
}

/* ---------- Footer (modernized) ---------- */
.site-footer {
  background: var(--navy);
  color: #b9c1d1;
  padding: 64px 24px 28px;
  font-size: 0.92rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col .footer-brand {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.footer-col .footer-brand span { color: var(--terracotta); }

.footer-col p { color: #b9c1d1; margin: 0 0 8px; line-height: 1.5; }

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #cfd6e2; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--terracotta); text-decoration: none; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
}

.footer-social svg { width: 18px; height: 18px; fill: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8b93a5;
}

.footer-bottom a { color: #8b93a5; }
.footer-bottom a:hover { color: var(--white); }

/* Inline social icon link (nav/general use) */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream-alt);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon:hover { background: var(--terracotta); transform: translateY(-2px); }
.social-icon svg { width: 21px; height: 21px; fill: var(--navy); transition: fill 0.2s ease; }
.social-icon:hover svg { fill: var(--white); }

/* ---------- Quote block (About page) ---------- */
.quote-block {
  border-left: 4px solid var(--gold);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy);
}

/* ---------- Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > * {
  animation: fadeUp 0.6s ease forwards;
}

.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0.03s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 0.17s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: 0.31s; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: 0.38s; }

.reveal-stagger > * { opacity: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* Subtle hover lift, used on cards/buttons generally */
.priority-card, .endorsement-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.endorsement-card:hover {
  transform: translateY(-4px);
}

.btn { transition: background 0.2s ease, transform 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-outline:hover { transform: translateY(-2px); }

/* ---------- Campaign Updates ticker ---------- */
.ticker-section {
  background: var(--cream-alt);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid #eee5d3;
  border-bottom: 1px solid #eee5d3;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: ticker-scroll 32s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.ticker-item:hover {
  opacity: 0.72;
  text-decoration: none;
}

.ticker-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}

.ticker-item .date {
  color: var(--terracotta-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}

/* ---------- Stat counters ---------- */
.stats-section {
  padding: 56px 24px;
  background: var(--terracotta);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Simple photo carousel (campaign trail) ---------- */
.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--cream-alt);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: #ddd2b8;
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.active { background: var(--terracotta); }

/* Landmarks-per-county variant: taller frame, caption overlay, nav arrows */
.carousel-landmarks { aspect-ratio: 3/2; max-width: 760px; }

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.carousel-nav {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-nav button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-nav button:hover { background: var(--white); }

@media (max-width: 700px) {
  .carousel-landmarks { aspect-ratio: 4/3; }
}

/* ---------- Landmark card grid (five counties, all visible at once) ---------- */
.landmark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.landmark-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee5d3;
  box-shadow: 0 2px 12px rgba(30,42,60,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landmark-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.landmark-card .landmark-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-alt);
}

.landmark-card .landmark-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landmark-card .landmark-caption {
  padding: 14px 16px 16px;
}

.landmark-card .landmark-caption .landmark-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.3;
}

.landmark-card .landmark-caption .landmark-county {
  display: block;
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ---------- Landmark banner strip (full-bleed, connective divider) ---------- */
.landmark-band {
  height: 6px;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
}

.landmark-banner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100vw;
  margin: 0 calc(50% - 50vw);
}

.landmark-banner-cell {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(30,42,60,0.08);
}

.landmark-banner-cell:last-child { border-right: none; }

.landmark-banner-img {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-alt);
  padding: 8px;
}

.landmark-banner-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.landmark-banner-label {
  padding: 8px 6px 10px;
  text-align: center;
  background: var(--white);
}

.landmark-banner-label .landmark-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.74rem;
  line-height: 1.25;
}

.landmark-banner-label .landmark-county {
  display: block;
  color: var(--terracotta-dark);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .landmark-banner { grid-template-columns: repeat(2, 1fr); }
  .landmark-banner-cell:nth-child(2n) { border-right: none; }
}

/* =========================================================
   Issues page layouts (v1 sidebar / v2 tabs / v3 accordion)
   ========================================================= */

/* --- v1: sticky sidebar --- */
.issues-v1-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 600px;
}

.issues-sidebar {
  background: var(--navy);
}

.issues-sidebar button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #cfd6e2;
  padding: 22px 28px;
  cursor: pointer;
  font-family: var(--font-body);
}

.issues-sidebar button .issue-title { display: block; font-weight: 700; color: var(--white); font-size: 1.02rem; }
.issues-sidebar button .issue-sub { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: #8b93a5; margin-top: 4px; }
.issues-sidebar button:hover { background: rgba(255,255,255,0.06); }
.issues-sidebar button.active { background: var(--terracotta); }
.issues-sidebar button.active .issue-sub { color: #f3d9d2; }

.issues-panel { display: none; padding: 48px; }
.issues-panel.active { display: block; }
.issues-panel h2 { font-size: 2rem; margin-bottom: 4px; }
.issues-panel .issue-kicker { color: var(--terracotta-dark); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; font-weight: 700; margin-bottom: 12px; display: block; }
.issues-panel p { margin-bottom: 18px; }
.issues-panel h4 { color: var(--terracotta-dark); font-size: 1.05rem; margin-top: 28px; }
.issues-panel ul { margin: 0 0 18px; padding-left: 20px; }
.issues-panel li { margin-bottom: 8px; }

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

/* --- v2: horizontal pill tabs --- */
.issues-tabbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  position: sticky;
  top: 69px;
  z-index: 90;
  background: rgba(250,246,239,0.96);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #eee5d3;
}

.issues-tabbar button, .issues-tabbar a {
  background: var(--white);
  border: 1px solid #eee5d3;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.issues-tabbar button:hover, .issues-tabbar a:hover { border-color: var(--terracotta); text-decoration: none; }
.issues-tabbar button.active, .issues-tabbar a.active { background: var(--terracotta); color: var(--white); border-color: var(--terracotta); }

.issues-tab-panel { display: none; max-width: 820px; margin: 0 auto; padding: 0 24px 40px; }
.issues-tab-panel.active { display: block; }
.issues-tab-panel h2 { font-size: 2rem; }
.issues-tab-panel p { margin-bottom: 18px; }
.issues-tab-panel h4 { color: var(--terracotta-dark); font-size: 1.05rem; margin-top: 28px; }
.issues-tab-panel ul { margin: 0 0 18px; padding-left: 20px; }
.issues-tab-panel li { margin-bottom: 8px; }

/* --- Issues page: single scrolling page with sticky jump tabs --- */
.issue-block {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px;
  scroll-margin-top: 136px;
}

.issue-block:nth-of-type(even) { background: var(--white); }

.issue-block h2 { font-size: 2rem; }
.issue-block p { margin-bottom: 18px; }
.issue-block h4 { color: var(--terracotta-dark); font-size: 1.05rem; margin-top: 28px; }
.issue-block ul { margin: 0 0 18px; padding-left: 20px; }
.issue-block li { margin-bottom: 8px; }
.issue-block .issue-kicker { color: var(--terracotta-dark); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; font-weight: 700; display: block; margin-bottom: 10px; }
.issue-block .issue-dek { font-style: italic; color: #6b6552; margin-bottom: 24px; }

/* --- v3: accordion --- */
.issues-accordion { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.accordion-item {
  border: 1px solid #eee5d3;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--white);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 22px 26px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
}

.accordion-header .plus {
  font-size: 1.4rem;
  color: var(--terracotta);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.accordion-item.open .accordion-header .plus { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 26px;
}

.accordion-item.open .accordion-body {
  max-height: 3000px;
  padding: 0 26px 28px;
}

.accordion-body p { margin-bottom: 16px; }
.accordion-body h4 { color: var(--terracotta-dark); font-size: 1rem; margin-top: 22px; }
.accordion-body ul { margin: 0 0 16px; padding-left: 20px; }
.accordion-body li { margin-bottom: 8px; }

/* Version-picker banner used on mockup pages */
.version-banner {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.version-banner a { color: var(--navy); text-decoration: underline; margin: 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .priorities-grid { grid-template-columns: 1fr; }
  .endorsements-grid { grid-template-columns: 1fr; }
  .vote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
