/* ===== Colors & basics — change these to re-theme the whole site =====
   Colors match the campaign brochure (blue, red, cream). */
:root {
  --blue: #1d4f91;
  --blue-dark: #12346a;
  --red: #d7262e;
  --red-dark: #b51d24;
  --cream: #f7f1e6;
  --text: #1f2933;
  --muted: #56606b;
  --line: #e3e3dc;
  --radius: 12px;
  --max: 1040px;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  padding-bottom: 66px; /* room for the mobile action bar */
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.6rem; color: var(--blue); font-weight: 800; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 16px;
  background: var(--blue-dark); color: #fff;
}
.brand { color: #fff; font-family: var(--serif); text-decoration: none; font-size: 1.05rem; }
.brand-for { font-family: "Inter", sans-serif; font-weight: 400; opacity: .8; }
.menu-btn {
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px;
}
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.nav {
  position: absolute; top: 56px; left: 0; right: 0;
  display: none; flex-direction: column;
  background: var(--blue-dark); padding: 8px 0; border-top: 1px solid rgba(255,255,255,.15);
}
.nav.open { display: flex; }
.nav a { color: #fff; text-decoration: none; padding: 14px 20px; font-weight: 600; }
.nav a:hover { background: rgba(255,255,255,.08); }

/* ===== Hero ===== */
.hero { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; }
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 20px 16px 24px;
  display: grid; gap: 16px 16px;
  grid-template-columns: 120px 1fr;
  grid-template-areas: "photo name" "details details";
  align-items: center;
}
.hero-photo {
  grid-area: photo;
  aspect-ratio: 5 / 6; border-radius: var(--radius); overflow: hidden;
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: .85rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.hero-photo img, .headshot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-name { grid-area: name; }
.hero-details { grid-area: details; }
.elect { font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin: 0; opacity: .95; }
.hero h1 { font-family: var(--serif); font-weight: 900; font-size: 2.05rem; margin: 0 0 .15em; }
.office { font-family: var(--serif); font-weight: 900; font-size: 1.05rem; margin: 0; color: #fff; opacity: .9; }

.chips { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px; padding: 4px 12px; font-size: .88rem; font-weight: 600;
}
.election { font-size: 1rem; background: rgba(0,0,0,.18); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; }
.countdown {
  display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 99px;
  background: var(--red); color: #fff; font-weight: 700; font-size: .85rem; white-space: nowrap;
}

/* ===== Buttons ===== */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 0 22px; border-radius: 99px;
  font-weight: 700; text-decoration: none; flex: 1 1 140px;
  transition: transform .1s ease, filter .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:hover { filter: brightness(1.07); }
.btn-red { background: var(--red); color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-light { background: #fff; color: var(--blue-dark); }

/* ===== Slogan bar (red, like the brochure) ===== */
.slogan-bar { background: var(--red); color: #fff; text-align: center; padding: 12px 16px; }
.slogan-bar p { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 1.2rem; }

/* ===== Sections ===== */
.section { padding: 40px 0; }
.section.alt { background: var(--cream); }
.lead { font-size: 1.08rem; }
.small { font-size: .9rem; color: var(--muted); }

/* Good things checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li {
  position: relative; padding: 10px 14px 10px 46px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 600;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 800;
}

/* Priority cards */
.cards { display: grid; gap: 12px; }
.card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 16px;
}
.card-icon { font-size: 1.6rem; line-height: 1; }
.card h3 { color: var(--blue); margin-bottom: .3em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.badge {
  display: inline-block; vertical-align: middle; margin-left: 4px;
  background: var(--red); color: #fff; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 99px;
}

/* About */
.about { display: grid; gap: 24px; }
.headshot {
  width: 200px; aspect-ratio: 5 / 6; border-radius: var(--radius); overflow: hidden;
  background: #e8e8e2; color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.about-text p { font-size: 1.05rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.facts li { background: var(--cream); border-radius: 8px; padding: 10px 14px; border-left: 3px solid var(--blue); }

/* Endorsements */
.quotes { display: grid; gap: 12px; }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 16px 18px; }
.quote p { font-style: italic; margin-bottom: .5em; }
.quote footer { color: var(--muted); font-size: .95rem; }

/* Events */
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.event { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px 14px; border: 1px solid var(--line); }
.event-date { background: var(--blue); color: #fff; font-weight: 700; border-radius: 8px; padding: 8px 10px; font-size: .85rem; text-align: center; min-width: 84px; }
.event span { display: block; color: var(--muted); font-size: .95rem; }

/* Voting steps */
.steps { display: grid; gap: 10px; margin-bottom: 12px; }
.step {
  display: block; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 40px 14px 16px;
  background: #fff; position: relative;
}
.step::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--red); }
.step strong { display: block; color: var(--blue); }
.step span { color: var(--muted); font-size: .95rem; }

/* Yard sign / contact */
.cta { background: var(--blue-dark); color: #fff; text-align: center; }
.cta h2 { color: #fff; font-family: var(--serif); font-weight: 900; font-size: 1.6rem; }
.cta a:not(.btn) { color: #fff; }
.contact-line, .social { margin: 20px 0 0; }

/* Footer */
.footer { background: #0b2148; color: rgba(255,255,255,.75); text-align: center; font-size: .8rem; padding: 18px 16px; }
.footer p { margin: 0; }
.footer .disclaimer { border: 1px solid rgba(255,255,255,.4); display: inline-block; padding: 6px 10px; }
.footer .site { margin-top: 10px; font-weight: 600; }

/* Mobile sticky action bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.12);
}
.mobile-bar a {
  flex: 1; min-height: 46px; display: flex; align-items: center; justify-content: center;
  border-radius: 99px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--blue); color: var(--blue);
}
.mobile-bar a.primary { background: var(--red); border-color: var(--red); color: #fff; }

/* ===== Larger screens (tablet / desktop) ===== */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .menu-btn { display: none; }
  .nav { position: static; display: flex; flex-direction: row; background: none; padding: 0; gap: 4px; align-items: center; border: 0; }
  .nav a { padding: 8px 12px; border-radius: 8px; }
  .nav a.nav-cta { background: var(--red); margin-left: 6px; }
  .topbar { padding: 0 max(16px, calc((100% - var(--max)) / 2 + 16px)); }

  .hero-inner {
    padding: 48px 16px; gap: 8px 48px;
    grid-template-columns: 1fr 340px;
    grid-template-areas: "name photo" "details photo";
    align-items: end;
  }
  .hero-details { align-self: start; }
  .hero h1 { font-size: 3.2rem; }
  .elect { font-size: 1.6rem; }
  .office { font-size: 1.5rem; }
  .btn { flex: 0 0 auto; }

  .slogan-bar p { font-size: 1.5rem; }
  .checklist { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 260px 1fr; align-items: start; }
  .headshot { width: 100%; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 64px 0; }
  .cta h2 { font-size: 2.2rem; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* Phones only: stack contact buttons full-width; skip the repeat photo in "Meet Duane" (it's already at the top) */
@media (max-width: 759px) {
  .cta .btn { flex-basis: 100%; }
  .about .headshot { display: none; }
}
