/* ==========================================================
   CAMPAIGN SITE STYLES
   Change your brand colours and fonts here — everything
   else on the site uses these variables.
   ========================================================== */
:root {
  --brand: #10305a;        /* main colour (deep navy) */
  --brand-dark: #0a1f3c;
  --accent: #ffc72c;       /* highlight colour (gold) */
  --accent-2: #e4453a;     /* secondary highlight (red) */
  --ink: #16181d;          /* body text */
  --muted: #5b6270;
  --bg: #ffffff;
  --bg-soft: #f3f5f9;
  --line: #dde2ea;
  --radius: 14px;
  --max: 1160px;
  --font-head: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.75rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--brand { background: var(--brand); color: #fff; }
.section--brand a:not(.btn) { color: var(--accent); }
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .75rem;
}
.section--brand .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.section--brand .lead { color: #d7deea; }
.highlight { color: var(--accent); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--brand-dark); }
.btn--accent:hover { background: #ffd65e; color: var(--brand-dark); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { border-color: #fff; color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand);
  color: #fff;
  border-bottom: 4px solid var(--accent);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { color: #fff; text-decoration: none; font-family: var(--font-head); text-transform: uppercase; line-height: 1; }
.logo:hover { color: #fff; }
.logo span { display: block; font-size: 1.3rem; }
.logo small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .16em; color: var(--accent); margin-top: 4px; }
.nav-toggle {
  display: none;
  background: none; border: 2px solid rgba(255,255,255,.5); color: #fff;
  border-radius: 8px; padding: 8px 12px; font-weight: 800; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 10px 14px; border-radius: 8px; display: block;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: var(--accent); }
.site-nav .btn { padding: 10px 20px; margin-left: 6px; color: var(--brand-dark); }
.site-nav .btn:hover, .site-nav .btn[aria-current="page"] { background: #ffd65e; color: var(--brand-dark); }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--brand); border-bottom: 4px solid var(--accent); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 2px; }
  .site-nav .btn { margin: 10px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(10,31,60,.96) 0%, rgba(16,48,90,.88) 45%, rgba(16,48,90,.35) 100%),
    url("../images/hero.svg") center / cover no-repeat,
    var(--brand);
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: center; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero h1 { margin-bottom: .35em; }
.hero p { font-size: 1.25rem; color: #e1e7f1; max-width: 34rem; margin-bottom: 1.8em; }
.hero-photo {
  border-radius: var(--radius);
  border: 6px solid var(--accent);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  max-width: 420px;
  justify-self: end;
}
.vote-banner {
  background: var(--accent);
  color: var(--brand-dark);
  font-weight: 800;
  text-align: center;
  padding: 14px 20px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 300px; }
}

/* Smaller banner used on inner pages */
.page-hero { background: var(--brand); color: #fff; padding: clamp(48px, 7vw, 84px) 0; border-bottom: 6px solid var(--accent); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: .2em; }
.page-hero p { color: #d7deea; font-size: 1.2rem; max-width: 44rem; margin: 0; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.card--top { border-top: 6px solid var(--accent-2); }
.card .icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--brand); color: var(--accent);
  display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 16px;
}
.card p:last-child { margin-bottom: 0; }
.card-link { font-weight: 800; text-decoration: none; text-transform: uppercase; font-size: .9rem; letter-spacing: .06em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { margin: 0; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--accent); line-height: 1; }
.stat span { display: block; margin-bottom: 10px; font-weight: 700; font-size: clamp(1.15rem, 2.5vw, 1.5rem); color: #d7deea; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Platform ---------- */
.issue-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.issue-nav a { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; font-weight: 700; padding: 8px 16px; border-radius: 999px; }
.issue-nav a:hover { background: var(--accent); color: var(--brand-dark); }
.issue { padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.issue:last-child { border-bottom: 0; }
.issue-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.issue-head .icon { flex: none; width: 64px; height: 64px; border-radius: 14px; background: var(--brand); color: var(--accent); display: grid; place-items: center; font-size: 1.8rem; }
.issue-head h2 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 38px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--brand-dark); font-weight: 900; display: grid; place-items: center; font-size: .9rem; }

/* ---------- News ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card .date { font-size: .85rem; font-weight: 700; color: var(--accent-2); text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { margin: .35em 0 .5em; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent-2); }
.post-card .card-link { margin-top: auto; }
.article { max-width: 760px; margin: 0 auto; }
.article .meta { color: var(--muted); font-weight: 600; margin-bottom: 2em; }
.article img { border-radius: var(--radius); margin: 1.5em 0; }
.article blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 6px solid var(--accent); background: var(--bg-soft); font-size: 1.15rem; font-weight: 600; }

/* ---------- Events ---------- */
.event { display: flex; gap: 20px; align-items: flex-start; }
.event-date { flex: none; width: 76px; text-align: center; background: var(--brand); color: #fff; border-radius: 12px; padding: 10px 6px; }
.event-date strong { display: block; font-family: var(--font-head); font-size: 1.8rem; line-height: 1; color: var(--accent); }
.event-date span { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.event h3 { margin-bottom: .25em; }
.event p { margin: 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field .req { color: var(--accent-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%;
  font: inherit;
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgba(255,199,44,.45); }
.field.invalid input, .field.invalid textarea { border-color: var(--accent-2); }
.field .error-msg { display: none; color: var(--accent-2); font-size: .9rem; font-weight: 600; margin-top: 4px; }
.field.invalid .error-msg { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }
.checks label { font-weight: 500; display: flex; gap: 10px; align-items: center; margin: 0; cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: var(--brand); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.alert { padding: 14px 18px; border-radius: 10px; font-weight: 600; margin-bottom: 20px; }
.alert--error { background: #fde8e6; color: #9b1c13; border: 2px solid var(--accent-2); }
.alert[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #b9c4d6; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.socials a:hover { background: var(--accent); color: var(--brand-dark); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.authorized { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .btn-row { justify-content: center; }
.mt-lg { margin-top: 40px; }

/* Bullet list inside a card (About page "Experience that Counts") */
.card-list { list-style: none; margin: 0; padding: 0; }
.card-list li { padding: 12px 0; border-top: 1px dashed var(--line); font-size: .98rem; }
.card-list li:first-child { border-top: 0; padding-top: 0; }
.card-list strong { display: block; color: var(--brand); margin-bottom: 2px; }
@media (max-width: 1000px) { .grid--roomy { grid-template-columns: 1fr; max-width: 720px; margin-left: auto; margin-right: auto; } }
.article img { width: 100%; max-height: 520px; object-fit: cover; object-position: center 20%; }

/* Endorsement badge in the home page hero */
.endorse-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 1.4em; padding: 8px 16px 8px 8px;
  border: 2px solid var(--accent); border-radius: 999px;
  background: rgba(255,199,44,.12); color: #fff;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: background .15s ease;
}
.endorse-badge:hover { background: rgba(255,199,44,.25); color: #fff; }
.endorse-check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 900; font-size: .9rem;
}
.article blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: .95rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }

/* Line icons inside the navy icon squares */
.icon svg { width: 30px; height: 30px; display: block; }
.issue-head .icon svg { width: 34px; height: 34px; }
/* Numbered priority markers (replace icons) */
.icon--num { font-family: var(--font-head); font-size: 1.35rem !important; letter-spacing: .02em; line-height: 1; }

/* ---------- Ward 1 map & street guide ---------- */
.ward-map { margin: 0 auto; max-width: 960px; }
.ward-map img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.ward-map figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
.vote-callout {
  margin: 32px auto 0; max-width: 960px; padding: 28px; border-radius: var(--radius);
  background: var(--brand); color: #fff; border-left: 8px solid var(--accent);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.vote-callout h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: .3em; }
.vote-callout p { margin: 0; color: #d7deea; }
.street-search { max-width: 480px; margin: 28px 0 8px; }
.street-empty { font-weight: 600; color: var(--accent-2); }
.street-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
@media (max-width: 900px) { .street-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .street-groups { grid-template-columns: 1fr; } }
.street-group { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--brand); border-radius: var(--radius); padding: 22px 24px; }
.street-group h3 { color: var(--brand); font-size: 1.05rem; margin-bottom: .7em; }
.street-group ul { list-style: none; margin: 0; padding: 0; }
.street-group li { padding: 6px 0; border-top: 1px dashed var(--line); font-weight: 500; }
.street-group li:first-child { border-top: 0; }
.street-note { display: block; font-size: .82rem; font-weight: 600; color: var(--accent-2); }
.street-group li.match { background: rgba(255,199,44,.25); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 6px; }

/* ---------- Pledge section ---------- */
.section--brand .card { color: var(--ink); }
.pledge-points { margin-top: 18px; }
.pledge-points li { border-bottom-color: rgba(255,255,255,.18); color: #fff; }

/* ---------- Voting reminder popup ---------- */
.vote-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,31,60,.72);
  display: grid; place-items: center; padding: 20px;
}
.vote-modal[hidden] { display: none; }
.vote-modal__box {
  position: relative; width: 100%; max-width: 520px;
  background: #fff; border-radius: var(--radius); border-top: 8px solid var(--accent);
  padding: 36px 32px 30px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
  animation: modal-in .25s ease-out;
}
.vote-modal__box h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); color: var(--brand); margin-bottom: .4em; }
.vote-modal__box p { color: var(--muted); margin-bottom: 1.4em; }
.vote-modal__close {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px;
  border: 0; background: none; font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px;
}
.vote-modal__close:hover { background: var(--bg-soft); color: var(--ink); }
body.modal-open { overflow: hidden; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vote-modal__box { animation: none; } }
