/* =====================================================================
   Shannon Burgdorf for Sumner County — stylesheet
   Rhythm N Grit reusable "civic landing page" framework v1
   Aesthetic: refined American civic editorial.
   Edit tokens in :root to re-skin the whole site for a future candidate.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. DESIGN TOKENS                                                    */
/* ------------------------------------------------------------------ */
:root {
  /* --- color: the only block you usually touch to re-brand --- */
  --red:        #a6192e;   /* campaign crimson — matched to the yard sign */
  --red-deep:   #851321;   /* hover / pressed */
  --red-tint:   #f6e7ea;   /* faint wash backgrounds */
  --navy:       #262c7a;   /* royal indigo — matched to the BURGDORF wordmark */
  --navy-soft:  #3a3f93;   /* secondary ink on dark */
  --paper:      #fbfaf7;   /* warm white page background */
  --paper-2:    #f2efe9;   /* alternating section background */
  --blue-mist:  #eceffa;   /* cool tint section */
  --gold:       #c2a35a;   /* hairline accent */
  --gold-deep:  #8a6d2b;   /* fill-grade gold — dark enough for white text (AA) */
  --line:       #e3ded4;   /* hairlines / borders on paper */
  --line-dark:  rgba(255,255,255,0.18);  /* hairlines on indigo sections */

  --ink:        var(--navy);
  --ink-soft:   #4a5a6e;   /* muted body text */
  --ink-faint:  #66717f;   /* captions, meta — darkened for AA on paper */

  /* --- type: Roboto family throughout --- */
  --font-display: "Roboto Serif", Georgia, "Times New Roman", serif;
  --font-body:    "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-wordmark:"Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* the BURGDORF name lockup */
  --font-sans:    "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* standard Roboto, accent numbers */

  /* fluid type scale (clamp: min, preferred, max) */
  --fs-eyebrow: 0.78rem;
  --fs-body:    clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lead:    clamp(1.18rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-h3:      clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  --fs-h2:      clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --fs-h1:      clamp(2.6rem, 1.9rem + 3.6vw, 5rem);

  /* --- spacing scale --- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  /* --- structure --- */
  --maxw: 1160px;
  --maxw-text: 680px;
  --radius: 4px;          /* restrained — civic, not bubbly */
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(10,37,64,0.06), 0 2px 8px rgba(10,37,64,0.06);
  --shadow-md: 0 8px 30px rgba(10,37,64,0.10);
  --ring: 0 0 0 3px rgba(166,25,46,0.35);

  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------------ */
/* 2. RESET / BASE                                                     */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  letter-spacing: 0.01em;  /* Roboto Condensed needs a touch of air at text sizes */
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 500;          /* Roboto Serif needs 500 for headline presence */
  letter-spacing: -0.025em;  /* Roboto Serif sets wide — pull it together */
}
/* all other Roboto Serif moments: cancel the body's +0.01em, set slightly tight */
.priority__num, .update__date time, .about__signature, .about__quote p,
.contact-strip a.email, .hero__meta b {
  letter-spacing: -0.015em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 400; }

/* uniform gap between any h2 and the content directly beneath it */
h2 + p, h2 + .lead, h2 + ul, h2 + div { margin-top: var(--space-2); }

p { max-width: var(--maxw-text); text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--ink); font-weight: 700; }

::selection { background: var(--red); color: #fff; }

/* ------------------------------------------------------------------ */
/* 3. LAYOUT HELPERS                                                   */
/* ------------------------------------------------------------------ */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }
.section--paper2 { background: var(--paper-2); }
.section--mist  { background: var(--blue-mist); }
.section--navy  { background: var(--navy); color: rgba(255,255,255,0.82); }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 2px;
  background: var(--red);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--gold); }
.section--navy .eyebrow::before { background: var(--gold); }

.section-head { max-width: 720px; margin-bottom: var(--space-4); }
.section-head p { color: var(--ink-soft); font-size: var(--fs-lead); margin-top: var(--space-2); }
.section--navy .section-head p { color: rgba(255,255,255,0.72); }

.lead { font-size: var(--fs-lead); color: var(--ink-soft); }

/* fill-in marker — replace these in writing sessions, then delete the class */
.todo {
  background: rgba(194,163,90,0.18);
  border-bottom: 1px dashed var(--gold);
  padding: 0 0.15em;
}

/* ------------------------------------------------------------------ */
/* 4. BUTTONS                                                          */
/* ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.85rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.section--navy .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,0.6); }
.section--navy .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ------------------------------------------------------------------ */
/* 5. HEADER / NAV                                                     */
/* ------------------------------------------------------------------ */
.sr-only { /* visually hidden, still read by screen readers + search engines */
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header::before { /* single gold hairline — quiet, no flag stripe */
  content: ""; display: block; height: 2px;
  background: var(--gold);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border-radius: var(--radius); position: relative;
}
.brand__mark svg { display: block; width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.brand__name { display: block; font-family: var(--font-wordmark); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.53rem; color: var(--navy); line-height: 1; }
.brand__sub  { display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); line-height: 1; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); list-style: none; }
.nav__links a {
  color: var(--navy); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  position: relative; padding: 0.35rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); transition: width 0.25s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { width: 100%; }
.nav__cta { margin-left: 1rem; }
/* the Contact button is a solid red .btn — keep its text white, no nav-link underline */
.nav__links .nav__cta .btn { color: #fff; padding: 0.85rem 1.85rem; }
.nav__links .nav__cta .btn:hover { color: #fff; }
.nav__links .nav__cta .btn::after { display: none; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.25s var(--ease); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  /* compact brand: tiny check inline with a one-line name */
  .brand { gap: 0.5rem; }
  .brand__mark { width: 24px; height: 24px; border-radius: 3px; }
  .brand__mark svg { width: 14px; height: 14px; }
  .brand__text { flex-direction: row; align-items: baseline; gap: 0.45rem; }
  .brand__name { font-size: 0.98rem; white-space: nowrap; }
  .brand__sub { display: none; }
  .nav__toggle span { width: 17px; height: 2px; margin: 3.5px 0; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: calc(var(--nav-h) + 2px); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--space-2) 1.25rem var(--space-3);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.25s var(--ease); box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links li:last-child { border-bottom: 0; }
  .nav__links a { display: block; padding: 0.9rem 0; width: 100%; }
  .nav__cta { margin: var(--space-2) 0 0; }
}

/* ------------------------------------------------------------------ */
/* 6. HERO                                                             */
/* ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(194,163,90,0.16), transparent 60%),
    var(--navy);
}
.hero::before { /* faint star field texture */
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 95%);
          mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 95%);
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: var(--space-4);
  align-items: center;
  padding-block: clamp(var(--space-5), 8vw, var(--space-7));
}
@media (min-width: 861px) {
  .hero__copy { width: min(58%, 640px); }
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--navy); background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.9rem; margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero h1 { margin-bottom: var(--space-3); }
.hero h1 .accent { color: var(--red); }
/* Name lockup: elegant Caslon first name + bold sans surname (echoes the yard sign) */
.hero__first { display: block; font-family: var(--font-display); font-weight: 500; font-style: italic; color: var(--navy);
  letter-spacing: -0.02em;
  font-size: clamp(2.16rem, 1.32rem + 3.12vw, 3.84rem); line-height: 1; }
.hero__last { display: block; font-family: var(--font-wordmark); font-weight: 900; text-transform: uppercase;
  color: var(--navy); letter-spacing: -0.015em; line-height: 0.9; margin-top: 0.08em;
  font-size: clamp(3.6rem, 2.28rem + 7.68vw, 7.44rem); }
.hero h1::after { content: ""; display: block; width: 76px; height: 4px; background: var(--red); margin-top: var(--space-2); }
.hero__tag { color: #fff; font-size: clamp(2rem, 1.6rem + 1.9vw, 2.95rem); font-weight: 500; line-height: 1.22; letter-spacing: -0.025em; margin-bottom: var(--space-4); max-width: 22ch; font-family: var(--font-display); }
.hero__candidate { margin-bottom: var(--space-5); }
.hero__candidate-label { font-size: 1.15rem; font-weight: 500; color: var(--gold); font-style: italic; margin-bottom: 0.8rem; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy); background: var(--gold); /* light gold + navy = 5.2:1 AA; white on light gold fails (2.4:1) */
  border-radius: 999px; padding: 0.4rem 0.95rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* hero sits on navy: white primary button (navy text), white ghost — never red fill on blue */
.hero .btn { background: #fff; border-color: #fff; color: var(--navy); }
.hero .btn:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--navy); }
.hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.65); }
.hero .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero__meta { margin-top: var(--space-4); display: flex; gap: var(--space-4); flex-wrap: wrap; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.78); }
.hero__meta > div { position: relative; overflow: hidden; padding-top: 0.2rem; }
.hero__meta b {
  display: block; font-family: var(--font-sans); font-weight: 700;
  font-size: 1.5rem;
  line-height: 1; letter-spacing: 0;
  color: #fff;
  margin-bottom: 0.3rem;
}

.hero__photo { position: relative; display: grid; place-items: center; }
.hero__photo img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-lg);  /* flat-white portrait panel */
}
@media (min-width: 861px) {
  /* full-height white half-pill: bleeds to the viewport's right edge,
     semicircular cut on the left */
  .hero__photo {
    position: absolute; top: 0; bottom: 0;
    right: calc((100% - 100vw) / 2);
    width: clamp(320px, 36vw, 620px);
  }
  .hero__photo img {
    width: 100%; height: 100%; aspect-ratio: auto;
    object-fit: cover; object-position: center top;
    border-radius: 0;
  }
}
.photo-placeholder {
  width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,0.7); font-size: 0.85rem; padding: 2rem;
  box-shadow: var(--shadow-md);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-4); text-align: left; }
  .hero__photo { order: -1; max-width: 420px; }
}

/* ------------------------------------------------------------------ */
/* 7. RACE / AT-A-GLANCE CARDS                                         */
/* ------------------------------------------------------------------ */
.races { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: var(--space-3); }
.race-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-3); position: relative; overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.race-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.race-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.race-card h3 { margin-bottom: 0.4rem; }
.race-card .status {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); background: var(--blue-mist); border-radius: 999px; padding: 0.25rem 0.7rem; margin-bottom: var(--space-2);
}

/* ------------------------------------------------------------------ */
/* 8. ABOUT                                                            */
/* ------------------------------------------------------------------ */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-5); align-items: start; }
.about__photo img, .about__photo .photo-placeholder { aspect-ratio: 4/5; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
/* pull-quote card (replaces the second portrait — headshot appears top + bottom only) */
.about__quote {
  background: var(--paper-2); border-left: 4px solid var(--red);
  border-radius: var(--radius-lg); padding: var(--space-4);
  position: sticky; top: calc(var(--nav-h) + var(--space-3));
}
.about__quote p {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.8rem);
  line-height: 1.35; color: var(--navy); max-width: none;
}
.about__quote cite {
  display: block; margin-top: var(--space-2);
  font-family: var(--font-body); font-style: normal;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint);
}
.about__body > * + * { margin-top: var(--space-2); }
.about__signature { display: block; height: 3rem; width: auto; margin-top: var(--space-3); }
.values { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.values li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.values li::before { content: "★"; color: var(--red); flex: none; line-height: 1.6; }
@media (max-width: 800px){ .about__grid { grid-template-columns: 1fr; } .about__photo { max-width: 380px; } .about__quote { position: static; } }

/* ------------------------------------------------------------------ */
/* 9. PRIORITIES                                                       */
/* ------------------------------------------------------------------ */
.priorities { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: var(--space-3); counter-reset: pr; }
.priority {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-3); position: relative;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.priority:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--red); }
.priority__num { counter-increment: pr; font-family: var(--font-display); font-size: 2.4rem; color: var(--red); line-height: 1; opacity: 0.9; }
.priority__num::before { content: "0" counter(pr); }
.priority h3 { margin: 0.6rem 0; }
/* On navy: solid paper cards — dark ink on light, never red on blue */
.section--navy .priority { background: var(--paper); border-color: transparent; box-shadow: var(--shadow-sm); }
.section--navy .priority:hover { border-color: var(--gold); }
.section--navy .priority h3 { color: var(--ink); }
.section--navy .priority p { color: var(--ink-soft); }

/* ------------------------------------------------------------------ */
/* 10. UPDATES / BOARD                                                 */
/* ------------------------------------------------------------------ */
.updates { display: grid; gap: var(--space-3); }
.update {
  display: grid; grid-template-columns: 150px 1fr; gap: var(--space-3);
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--line);
}
.update:last-child { border-bottom: 0; }
.update__date { font-size: 0.85rem; color: var(--ink-faint); font-weight: 600; }
.update__date time { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); }
.update__tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); background: var(--red-tint); border-radius: 999px; padding: 0.2rem 0.6rem; margin-bottom: 0.5rem; }
.update h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.update__body p + p { margin-top: 0.6rem; }
.updates__empty { color: var(--ink-faint); font-style: italic; }
@media (max-width: 640px){ .update { grid-template-columns: 1fr; gap: 0.5rem; } .update__date time { font-size: 1.3rem; display: inline; } }

/* ------------------------------------------------------------------ */
/* 10b. VOTE TWICE / CTA STRIP                                         */
/* ------------------------------------------------------------------ */
.vote-twice { background: var(--red); border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); padding-block: calc(var(--space-6) + 2rem); }
.vote-twice h2, .vote-twice .eyebrow { color: #fff; }
.vote-twice .eyebrow::before { background: #fff; }
.vote-twice p, .vote-twice .lead { color: rgba(255,255,255,0.92); }
.vote-twice__dates { font-weight: 600; margin-top: var(--space-3); margin-bottom: var(--space-4); }
.vote-twice__dates b { color: #fff; text-transform: uppercase; letter-spacing: 0.05em; }
.vote-twice .btn { background: #fff; border-color: #fff; color: var(--red); }
.vote-twice .btn:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--red-deep); }
.vote-twice .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.vote-twice .btn--ghost:hover { background: #fff; color: var(--red); border-color: #fff; }
.vote-twice__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: center; }
.vote-twice__card img { max-width: 440px; width: 100%; margin-inline: auto; border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(24,29,87,0.35); }
@media (max-width: 860px) { .vote-twice__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ */
/* 11. GET INVOLVED / CONTACT                                          */
/* ------------------------------------------------------------------ */
.involve__grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: var(--space-3); }
.involve-card {
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: var(--space-3); transition: transform 0.2s var(--ease), background 0.2s;
  position: relative; overflow: hidden;
}
.involve-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.09); }
.involve-card .ic { /* giant ghosted star behind the card content */
  position: absolute; top: -2.2rem; right: -1.6rem;
  font-size: 9rem; line-height: 1; color: rgba(194,163,90,0.14);
  pointer-events: none; z-index: 0;
}
.involve-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.4rem; position: relative; z-index: 1; }
.involve-card p { color: rgba(255,255,255,0.72); font-size: 0.95rem; position: relative; z-index: 1; }
.involve-card a { color: #fff; font-weight: 600; border-bottom: 1px solid var(--gold); }

.contact-strip { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-5); align-items: start; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line-dark); }
.contact-strip__who { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.contact-strip__photo { width: 152px; height: 152px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex: none; }
.contact-strip__note { color: rgba(255,255,255,0.78); font-size: 0.95rem; margin: 0.4rem 0 var(--space-2); }
@media (max-width: 800px) { .contact-strip { grid-template-columns: 1fr; } }

/* email-updates signup (on navy) */
.signup {
  margin-top: var(--space-4); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
}
.signup__head { max-width: 56ch; margin-bottom: var(--space-3); }
.signup h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.3rem; }
.signup p { color: rgba(255,255,255,0.72); font-size: 0.95rem; }

.signup__form { display: flex; flex-direction: column; gap: 0.85rem; }
.signup__fields { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: stretch; }
.signup__form input[type="text"],
.signup__form input[type="email"] {
  height: 50px; box-sizing: border-box;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0 0.9rem;
}
.signup__form input[name="firstName"] { flex: 1 1 170px; }
.signup__form input[type="email"]     { flex: 2 1 240px; }
.signup__form input[name="zip"]        { flex: 0 1 110px; min-width: 90px; }
.signup__fields .btn { flex: 0 0 auto; height: 50px; }
.signup__form input::placeholder { color: var(--ink-faint); }
.signup__form input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.signup__checks { display: flex; flex-direction: column; gap: 0.5rem; }
.signup__check {
  display: flex; align-items: flex-start; gap: 0.5rem;
  color: rgba(255,255,255,0.82); font-size: 0.9rem; cursor: pointer;
}
.signup__check input {
  width: 1rem; height: 1rem; margin-top: 0.15rem;
  flex: 0 0 auto; accent-color: var(--red);
}
.signup__check--consent { line-height: 1.4; }
@media (max-width: 640px) {
  .signup__fields { flex-direction: column; align-items: stretch; }
  /* stacked = vertical main axis, so the row flex-basis values above would
     become heights — reset so the inputs stay at their fixed 50px */
  .signup__form .signup__fields input { flex: 0 0 auto; }
  .signup__fields .btn { width: 100%; justify-content: center; }
}

/* form status messages (signup + contact) */
.form-status { font-size: 0.9rem; margin-top: 0.4rem; color: rgba(255,255,255,0.85); }
.form-status.is-ok { color: #cdebd0; }
.form-status.is-error { color: #ffd2d2; }

/* Netlify contact form (on navy) */
.contact-form__hp { position: absolute; left: -9999px; }
.contact-form label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.78); margin: 0 0 0.35rem;
}
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; box-sizing: border-box;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.7rem 0.85rem;
  margin-bottom: var(--space-2);
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 560px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form .btn { margin-top: 0.25rem; }
.contact-strip a.email { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); color: #fff; border: 0; }
.socials { display: flex; gap: var(--space-2); flex-basis: 100%; }
.socials a { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.4em 1.1em 0.4em 0.4em; border: 1px solid var(--line-dark); border-radius: 999px; color: #fff; font-size: 0.9rem; font-weight: 700; white-space: nowrap; }
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials__mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; }
.socials a:hover .socials__mark { border-color: #fff; }

/* ------------------------------------------------------------------ */
/* 11b. SHARE / INVITE A NEIGHBOR MODAL                                */
/* ------------------------------------------------------------------ */
.share-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.25rem; }
.share-modal[hidden] { display: none; }
.share-modal__backdrop { position: absolute; inset: 0; background: rgba(24,29,87,0.65); }
.share-modal__panel {
  position: relative; background: var(--paper); border-radius: var(--radius-lg);
  padding: var(--space-4); max-width: 460px; width: 100%;
  box-shadow: 0 20px 60px rgba(24,29,87,0.4);
}
.share-modal__panel h3 { margin-bottom: 0.4rem; }
.share-modal__panel > p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: var(--space-2); }
.share-modal__panel img { border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: var(--space-3); }
.share-modal__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.share-modal__close {
  position: absolute; top: 0.6rem; right: 0.75rem;
  background: none; border: 0; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: var(--ink-faint); padding: 0.25rem;
}
.share-modal__close:hover { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* 12. FOOTER                                                          */
/* ------------------------------------------------------------------ */
.site-footer { background: #181d57; color: rgba(255,255,255,0.74); font-size: 0.85rem; padding-block: var(--space-4); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; }
.site-footer a { color: rgba(255,255,255,0.8); }
.disclaimer { max-width: 60ch; line-height: 1.5; }
.site-footer .brand__name { color: #fff; font-size: 1rem; }

/* ------------------------------------------------------------------ */
/* 13. SCROLL REVEAL                                                   */
/* ------------------------------------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }

/* hero staggered load (independent of scroll) */
.hero [data-load] { opacity: 0; transform: translateY(16px); animation: rise 0.8s var(--ease) forwards; }
.hero [data-load="1"] { animation-delay: 0.05s; }
.hero [data-load="2"] { animation-delay: 0.15s; }
.hero [data-load="3"] { animation-delay: 0.25s; }
.hero [data-load="4"] { animation-delay: 0.35s; }
.hero [data-load="5"] { animation-delay: 0.45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
