/* John Stuart for City Council — District 3
   Design system matched to the Stitch "City Council Campaign Site" project:
   white header, deep-navy hero overlays, crimson CTAs, light blue-gray
   sections, white rounded cards, navy footer. Brand: red #ED1C26 / navy. */

:root {
  --navy-900: #16203f;
  --navy-800: #1b2a55;
  --navy-700: #20356b;
  --navy-600: #2b3a6b;
  --brand-royal: #15309c;
  --red-600: #c32030;
  --red-700: #a6101f;
  --red-bright: #ed1c26;
  --bg: #f5f7fa;
  --bg-alt: #eef2f7;
  --card: #ffffff;
  --border: #e2e8f0;
  --ink: #1f2b5b;
  --body: #43506c;
  --muted: #64748b;
  --on-navy-muted: #c7d2e8;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(22, 32, 63, .06), 0 8px 24px rgba(22, 32, 63, .08);
  --shadow-lg: 0 4px 12px rgba(22, 32, 63, .12), 0 20px 48px rgba(22, 32, 63, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
}
h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
a { color: var(--red-600); }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy-800);
  color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 64px; width: auto; }
.brand-fallback {
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.15rem;
  color: var(--ink); letter-spacing: -.01em;
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--muted); text-decoration: none; font-weight: 500;
  font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] {
  color: var(--ink); border-bottom-color: var(--red-600); font-weight: 600;
}
/* Keep button styling when a .btn sits inside the nav */
.main-nav a.btn { color: #fff; border-bottom: none; padding: 8px 16px; }
.main-nav a.btn:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px; font-weight: 600;
  font-size: .95rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background .15s ease, transform .1s ease;
  font-family: "Inter", sans-serif;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red-600); color: #fff; }
.btn-red:hover { background: var(--red-700); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline-light { border-color: rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-800); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .88rem; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--ink);
  margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(rgba(20, 28, 66, .9), rgba(27, 38, 84, .82)),
    url("../img/hero-bg.jpg") center 65% / cover no-repeat;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center; padding: 84px 0 88px;
}
.kicker {
  display: inline-block; background: var(--red-bright); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 4px;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p.lede { color: #d4ddf2; max-width: 46ch; font-size: 1.06rem; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-photo img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; height: auto; max-width: 420px; margin-left: auto;
}
.hero strong { color: #fff; }

/* Page hero (interior pages) */
.page-hero {
  position: relative; color: #fff; padding: 64px 0;
  background: linear-gradient(rgba(20, 28, 66, .9), rgba(27, 38, 84, .85)),
    var(--page-hero-img, url("../img/park-skyline.jpg")) center / cover no-repeat;
}
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { color: #d4ddf2; max-width: 62ch; margin-bottom: 0; font-size: 1.05rem; }

/* ---------- Quick actions ---------- */
.quick-actions { background: var(--navy-800); }
.quick-actions .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.quick-actions a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 16px 10px; border-left: 1px solid rgba(255,255,255,.12);
}
.quick-actions a:first-child { border-left: 0; }
.quick-actions a:hover { background: var(--navy-700); }
.quick-actions svg { flex: none; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head p { color: var(--muted); }
.eyebrow {
  color: var(--red-600); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px;
}

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow);
}
.card .icon-chip {
  width: 46px; height: 46px; border-radius: 10px; background: #e8eef6;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-600); margin-bottom: 18px;
}
.card h3 { margin-bottom: .45em; }
.card p { font-size: .94rem; color: var(--body); margin-bottom: .6em; }
.card .more { font-weight: 600; font-size: .9rem; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split .sub { color: var(--red-600); font-weight: 600; margin-bottom: 14px; }
.split-rev { direction: rtl; }
.split-rev > * { direction: ltr; }

/* Feature band (slope ordinance) */
.feature-band {
  color: #fff; position: relative;
  background: linear-gradient(rgba(20, 28, 66, .92), rgba(27, 38, 84, .88)),
    url("../img/green-mountain-bridge.jpg") center / cover no-repeat;
  padding: 76px 0;
}
.feature-band h2 { color: #fff; }
.feature-band p { color: #d4ddf2; max-width: 60ch; }
.feature-band .stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin: 28px 0; }
.feature-band .stat b {
  display: block; font-family: "Poppins", sans-serif; font-size: 1.9rem;
  color: #fff; line-height: 1.1;
}
.feature-band .stat span { color: #aab8da; font-size: .88rem; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li {
  padding-left: 32px; position: relative; margin-bottom: 12px; color: var(--body);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px;
  border-radius: 50%; background: var(--red-600);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 100% no-repeat, linear-gradient(#000,#000);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 100% no-repeat;
  background: var(--red-600);
}
.checklist.navy li::before { background: var(--navy-600); }

/* Timeline / numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 26px 58px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%; background: var(--navy-800);
  color: #fff; font-family: "Poppins", sans-serif; font-weight: 600;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.steps li::after {
  content: ""; position: absolute; left: 18.5px; top: 40px; bottom: 4px;
  width: 2px; background: var(--border);
}
.steps li:last-child::after { display: none; }
.steps h4 { margin-bottom: .25em; font-size: 1.02rem; }
.steps p { font-size: .94rem; margin-bottom: 0; }

/* Dates table */
.dates { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dates th, .dates td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.dates th { background: var(--navy-800); color: #fff; font-family: "Poppins", sans-serif; font-size: .92rem; }
.dates tr:last-child td { border-bottom: 0; }
.dates td b { color: var(--ink); }
.dates .highlight td { background: #fdf1f2; }
.dates td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }

/* Subscribe / CTA card */
.cta-card {
  background:
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--navy-700);
  border-radius: var(--radius-lg); padding: 46px 48px; color: #fff;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 36px; align-items: center;
}
.cta-card > * { min-width: 0; }
.cta-card h2 { color: #fff; margin-bottom: .3em; }
.cta-card p { color: var(--on-navy-muted); margin-bottom: 0; }
.subscribe-form { display: flex; gap: 0; background: #fff; padding: 5px; border-radius: 10px; }
.subscribe-form input {
  flex: 1; border: 0; outline: none; padding: 11px 14px; font-size: .95rem;
  font-family: inherit; border-radius: 7px; min-width: 0;
}
.subscribe-form .btn { border-radius: 7px; }

/* Forms */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--ink); font-size: .9rem; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 13px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--navy-600); outline-offset: 1px; border-color: var(--navy-600);
}
.consent { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 3px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* Resource links */
.resource-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.resource-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 15px 18px; text-decoration: none; color: var(--ink); font-weight: 600;
  font-size: .94rem; box-shadow: var(--shadow);
}
.resource-list a:hover { border-color: var(--navy-600); }
.resource-list span.tag { color: var(--muted); font-weight: 400; font-size: .82rem; display: block; }

/* Quote */
.pull-quote {
  border-left: 4px solid var(--red-600); background: #fff; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 30px; box-shadow: var(--shadow); margin: 30px 0; font-size: 1.06rem;
  color: var(--ink); font-style: italic;
}
.pull-quote footer { font-style: normal; font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* Donate */
.donate-box { display: flex; gap: 28px; align-items: center; }
.donate-box img { width: 150px; border-radius: 10px; border: 1px solid var(--border); }

/* Brand video */
.logo-video {
  width: 100%; max-width: 580px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); cursor: pointer; display: inline-block;
}

/* Hobbies */
.hobby-grid { display: grid; grid-template-columns: 232px 1fr; gap: 24px; margin-top: 18px; align-items: start; }
.hobby-grid figure {
  margin: 0; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.hobby-grid img { border-radius: 8px; width: 100%; height: auto; }
.hobby-grid figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
@media (max-width: 920px) {
  .hobby-grid { grid-template-columns: 1fr; }
  .hobby-grid figure:first-child img { max-width: 260px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: var(--on-navy-muted); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 {
  color: #93a3c4; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; max-width: 36ch; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 42px; padding-top: 22px;
  font-size: .8rem; color: #8fa0c2; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 60px; }
  .hero-photo img { margin: 0; max-width: 380px; }
  .card-grid { grid-template-columns: 1fr; }
  .split, .cta-card, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-card { padding: 34px 26px; }
  .quick-actions .container { grid-template-columns: 1fr 1fr; }
  .quick-actions a { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .resource-list, .form-grid { grid-template-columns: 1fr; }
  .split-rev { direction: ltr; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 18px 22px 24px; gap: 14px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
}
@media (max-width: 540px) {
  .quick-actions .container { grid-template-columns: 1fr 1fr; }
  .donate-box { flex-direction: column; align-items: flex-start; }
}
