/* ==========================================================================
   Michael Parker for Berkeley County Council, District 7
   Brand: Spirits Sharp / Archivo Expanded / Alternate Gothic ATF
   Palette: red #d94545 · navy #1953ab · cream #f9f5e8 · pale #fef9e0
   ========================================================================== */

:root {
  --red:        #d94545;   /* headings + accents on light backgrounds */
  --red-bar:    #c93a3a;   /* red fills that carry small reversed text */
  --red-deep:   #b93333;
  --navy:       #1953ab;
  --navy-deep:  #123f83;
  --cream:      #f9f5e8;
  --pale:       #fef9e0;
  --ink:        #241f1a;
  --ink-soft:   #5b544c;

  --display: "spirits-sharp", "Playfair Display", Georgia, serif;
  --body:    "archivo-expanded", "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --label:   "alternate-gothic-atf", "Oswald", "Archivo Narrow", sans-serif;

  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 56px);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(36, 31, 26, .10);
  --shadow-md: 0 14px 34px rgba(36, 31, 26, .16);
  --shadow-lg: 0 28px 70px rgba(18, 63, 131, .28);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 104px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

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

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 999; background: var(--navy); color: var(--cream);
  padding: 12px 22px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-family: var(--label); letter-spacing: .06em; text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(1.95rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(.82rem, 1.1vw, .98rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 0 0 .9rem;
  display: block;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(64px, 8vw, 116px) 0; position: relative; }
section[id], main [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.section--cream { background: var(--cream); }
.section--pale  { background: var(--pale); }
.section--navy  { background: var(--navy); color: var(--cream); }

/* thin brand rule used between bands */
.rule-strip { height: 10px; background: var(--red); }
.rule-strip--navy { background: var(--navy); }

/* ---------- logo ---------- */
.logo { display: block; }
.logo svg { width: 100%; height: auto; }
.logo .wordmark, .logo .logo-sub { fill: var(--cream); }
.logo .logo-bar { fill: var(--navy); }
.logo--on-navy .logo-bar { fill: var(--red); }
.logo--ink .wordmark { fill: var(--navy); }
.logo--ink .logo-sub { fill: var(--cream); }
.logo--ink .logo-bar { fill: var(--red); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .95em 1.9em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(.95rem, 1.15vw, 1.08rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--btn-bg);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn--red   { --btn-bg: var(--red-bar); }
.btn--red:hover { --btn-bg: var(--red-deep); border-color: var(--red-deep); }
.btn--navy:hover { --btn-bg: var(--navy-deep); border-color: var(--navy-deep); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: var(--cream);
  box-shadow: none;
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--cream);
  color: var(--navy);
}
.btn--outline-red {
  --btn-bg: transparent;
  --btn-fg: var(--red);
  border-color: var(--red);
  box-shadow: none;
}
.btn--outline-red:hover, .btn--outline-red:focus-visible {
  background: var(--red);
  color: var(--cream);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--red-bar);
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--navy) 0 33%, var(--cream) 33% 66%, var(--navy) 66% 100%);
  opacity: .9;
}
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(36, 31, 26, .22); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 44px);
  padding-block: 16px;
  transition: padding .3s var(--ease);
}
.site-header.is-stuck .header-inner { padding-block: 10px; }

.header-logo {
  width: clamp(170px, 20vw, 252px);
  flex: 0 0 auto;
  transition: width .3s var(--ease);
}
.site-header.is-stuck .header-logo { width: clamp(150px, 16vw, 204px); }

.header-right { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  position: relative;
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(.9rem, 1.05vw, 1rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  padding: .62em 1.05em;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
  white-space: nowrap;
}
.nav a:hover, .nav a:focus-visible { background: var(--navy); transform: translateY(-2px); }
.nav a[aria-current="page"] {
  border-color: var(--cream);
  background: transparent;
}
.nav a.nav-donate {
  background: var(--navy);
  border-color: var(--navy);
}
.nav a.nav-donate:hover { background: var(--cream); color: var(--red); border-color: var(--cream); }

.socials { display: flex; align-items: center; gap: 12px; }
.socials a {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--cream);
  transition: background-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.socials a:hover, .socials a:focus-visible {
  background: var(--cream); color: var(--red); transform: translateY(-2px);
}
.socials svg { width: 19px; height: 19px; fill: currentColor; }

/* mobile menu toggle */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 2px solid var(--cream);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; width: 22px; height: 2.5px;
  background: var(--cream);
  transform: translateX(-50%);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1.25px; }
.nav-toggle span::before { top: -7px; left: 0; transform: none; }
.nav-toggle span::after  { top:  7px; left: 0; transform: none; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-right { gap: 12px; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--red-bar);
    padding: 18px var(--gutter) 26px;
    border-bottom: 4px solid var(--navy);
    box-shadow: 0 22px 40px rgba(36, 31, 26, .28);
    transform: translateY(-130%);
    transition: transform .38s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .site-header { overflow: visible; }
  .nav a { text-align: center; padding: .85em 1em; font-size: 1.05rem; }
  /* header socials would overflow the bar on phones, they live in the footer */
  .header-right > .socials { display: none; }
  .header-logo { width: clamp(150px, 42vw, 210px); }
  .site-header.is-stuck .header-logo { width: clamp(132px, 36vw, 180px); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(560px, 84vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% 28%;
  transform: scale(1.06);
  animation: heroDrift 20s var(--ease) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }

.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(28,23,18,.90) 0%, rgba(28,23,18,.78) 34%, rgba(28,23,18,.34) 58%, rgba(28,23,18,.05) 76%, transparent 88%),
    linear-gradient(to top, rgba(18,63,131,.48), transparent 46%);
}

.hero__inner { position: relative; width: 100%; padding-block: clamp(56px, 9vw, 110px); }
.hero__card { max-width: 660px; }

.hero .eyebrow { color: var(--pale); }
.hero__title {
  color: var(--cream);
  text-shadow: 0 3px 24px rgba(0, 0, 0, .45);
  margin-bottom: .35em;
}
.hero__title .accent {
  color: var(--pale);
  display: block;
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  line-height: 1.2;
  margin-top: .5em;
  letter-spacing: .01em;
}
.hero__title .accent::before {
  content: "";
  display: block;
  width: 74px; height: 4px;
  background: var(--red);
  margin-bottom: .58em;
  border-radius: 2px;
}
.hero__lede {
  color: rgba(249, 245, 232, .96);
  font-weight: 400;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  max-width: 46ch;
  margin-bottom: 2rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__badge {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(24px, 4vw, 46px);
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--cream);
  border: 2px solid rgba(249, 245, 232, .75);
  padding: 10px 18px;
  backdrop-filter: blur(3px);
  background: rgba(25, 83, 171, .28);
}
@media (max-width: 820px) { .hero__badge { display: none; } }

/* ==========================================================================
   SIGN-UP
   ========================================================================== */
.signup {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.signup::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(249,245,232,.045) 0 2px, transparent 2px 12px);
  pointer-events: none;
}
.signup__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.signup__intro h2 { color: var(--pale); }
.signup__intro p { color: rgba(249, 245, 232, .88); max-width: 44ch; }
.signup__intro .eyebrow { color: var(--pale); }

.form-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-lg);
  border-top: 8px solid var(--red);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid rgba(25, 83, 171, .28);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder { color: #a49c90; }
.field input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(25, 83, 171, .16);
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 4px 0 18px;
}
.consent input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--navy); }
.consent a { color: var(--red-deep); }
.form-card .btn { width: 100%; }
.form-note {
  margin-top: 12px;
  font-size: .82rem;
  text-align: center;
  min-height: 1.4em;
  color: var(--navy);
  font-weight: 400;
}
.form-note.is-error { color: var(--red); }

@media (max-width: 880px) {
  .signup__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   VALUES / STORY BAND
   ========================================================================== */
.story {
  position: relative;
  color: var(--cream);
  overflow: hidden;
}
.story__media { position: absolute; inset: 0; }
.story__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.story__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,31,26,.55), rgba(18,63,131,.72));
}
.story__inner { position: relative; text-align: center; }
.story__panel {
  max-width: 880px;
  margin-inline: auto;
  background: rgba(249, 245, 232, .94);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(30px, 4.6vw, 60px);
  box-shadow: var(--shadow-lg);
}
.story__panel h2 { color: var(--red); }
.story__panel p {
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  color: #3f3931;
  max-width: 66ch;
  margin-inline: auto;
}
.story__panel .btn { margin-top: 1.6rem; }

/* ==========================================================================
   PILLARS / BIO CARDS
   ========================================================================== */
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(38px, 5vw, 62px); }
.section-head .eyebrow { color: var(--navy); }
.section-head h2 { color: var(--red); }
.section-head p { color: var(--ink-soft); }
/* Reversed treatment for any dark band (navy sections and the signup band).
   Without this the default red heading / dark-grey body sit on navy. */
.section--navy .section-head .eyebrow,
.signup .section-head .eyebrow { color: var(--pale); }
.section--navy .section-head h2,
.signup .section-head h2 { color: var(--cream); }
.section--navy .section-head p,
.signup .section-head p { color: rgba(249, 245, 232, .88); }
.section--navy .section-head a,
.signup .section-head a { color: var(--pale); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.card {
  background: #fff;
  border-radius: var(--r-md);
  padding: clamp(26px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--navy);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:nth-child(even) { border-top-color: var(--red); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: rgba(217, 69, 69, .12);
  color: var(--red);
  margin-bottom: 18px;
}
.card:nth-child(even) .card__icon { background: rgba(25, 83, 171, .12); color: var(--navy); }
.card__icon svg { width: 28px; height: 28px; fill: currentColor; }
.card h3 { color: var(--navy); }
.card:nth-child(even) h3 { color: var(--red-deep); }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ==========================================================================
   BIO (Meet Michael)
   ========================================================================== */
.photo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 26px);
}
.photo-duo figure { margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); }
.photo-duo img {
  width: 100%; height: clamp(260px, 34vw, 430px);
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.photo-duo figure:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .photo-duo { grid-template-columns: 1fr; } }

.bio-list { display: grid; gap: clamp(20px, 2.6vw, 32px); max-width: 940px; margin-inline: auto; }
.bio-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.bio-item__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--red);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.bio-item:nth-child(even) .bio-item__icon { background: var(--navy); }
.bio-item__icon svg { width: 32px; height: 32px; fill: currentColor; }
.bio-item h3 {
  background: var(--navy);
  color: var(--pale);
  display: inline-block;
  padding: .38em .7em;
  border-radius: var(--r-sm);
  margin-bottom: .6em;
}
.bio-item:nth-child(even) h3 { background: var(--red-bar); color: var(--cream); }
.bio-item p { color: #453e36; font-size: clamp(1rem, 1.2vw, 1.08rem); }
@media (max-width: 620px) {
  .bio-item { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* ==========================================================================
   DONATE
   ========================================================================== */
.donate__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
  max-width: 1060px;
  margin-inline: auto;
}
.amount {
  display: grid;
  place-items: center;
  min-height: 104px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  color: var(--navy);
  background: transparent;
  border: 2px solid var(--red);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: transform .28s var(--ease), background-color .28s var(--ease),
              color .28s var(--ease), box-shadow .28s var(--ease);
}
.amount:hover, .amount:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--pale);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 34px rgba(25, 83, 171, .34);
}
.donate-other { text-align: center; margin-top: clamp(20px, 2.4vw, 30px); }
.donate-other a {
  font-family: var(--label);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid rgba(25, 83, 171, .35);
  padding-bottom: 3px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.donate-other a:hover, .donate-other a:focus-visible { color: var(--red); border-color: var(--red); }
.donate-fine {
  text-align: center;
  margin-top: clamp(24px, 3vw, 38px);
  font-size: .84rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-inline: auto;
}

/* ==========================================================================
   PROSE (privacy)
   ========================================================================== */
.prose { max-width: 78ch; margin-inline: auto; }
.prose h2 { color: var(--red); font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2.2em; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { color: #45403a; }
.prose a { color: var(--navy); }

.page-head {
  background: var(--red-bar);
  color: var(--cream);
  padding: clamp(52px, 7vw, 92px) 0 clamp(46px, 6vw, 78px);
  text-align: center;
  position: relative;
}
.page-head h1 { color: var(--cream); margin-bottom: .25em; }
.page-head p { color: var(--cream); max-width: 60ch; margin-inline: auto; }
.page-head .eyebrow { color: #fff; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy); color: var(--cream); padding-top: clamp(48px, 6vw, 76px); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  padding-bottom: clamp(34px, 4vw, 52px);
}
.footer-logo { width: min(340px, 100%); }
.footer-tag {
  margin-top: 18px;
  font-family: var(--label);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .84rem;
  color: rgba(249, 245, 232, .8);
}
.footer-right { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
@media (min-width: 901px) { .footer-right { align-items: flex-end; text-align: right; } }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-nav a {
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .92rem;
  text-decoration: none;
  color: var(--cream);
  padding: .55em 1em;
  border: 2px solid rgba(249, 245, 232, .45);
  border-radius: var(--r-sm);
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.footer-nav a:hover, .footer-nav a:focus-visible { background: var(--red-bar); border-color: var(--red-bar); }
.footer-nav a[aria-current="page"] { background: var(--red-bar); border-color: var(--red-bar); }

.footer-mail {
  font-family: var(--body);
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(249, 245, 232, .45);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
  word-break: break-word;
}
.footer-mail:hover { color: var(--pale); border-color: var(--pale); }

.footer-bar {
  border-top: 1px solid rgba(249, 245, 232, .22);
  padding: 26px 0 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.paid-box {
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--cream);
  border: 2px solid var(--cream);
  padding: 11px 20px;
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: rgba(249, 245, 232, .88); }
.footer-legal a { color: rgba(249, 245, 232, .88); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { justify-content: center; text-align: center; }
}

/* ==========================================================================
   MOTION
   ========================================================================== */
/* Reveal only hides content when JS is confirmed running (see the inline
   <script> in each page head). Without JS, everything renders immediately. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .09s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .27s; }
.reveal-d4 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   ELECTION / VOTE PAGE
   ========================================================================== */
.countdown {
  display: flex;
  gap: clamp(10px, 1.6vw, 20px);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(22px, 3vw, 34px);
}
.countdown__unit {
  min-width: clamp(74px, 9vw, 108px);
  padding: 14px 10px 12px;
  border: 2px solid rgba(249, 245, 232, .55);
  border-radius: var(--r-md);
  background: transparent;
  text-align: center;
}
.countdown__num {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1;
  color: var(--cream);
}
.countdown__label {
  display: block;
  margin-top: 6px;
  font-family: var(--label);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(208px, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
@media (max-width: 900px) { .dates-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.datecard {
  background: #fff;
  border-radius: var(--r-md);
  padding: clamp(24px, 2.8vw, 32px);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--navy);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.datecard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.datecard--now { border-left-color: var(--red); background: var(--pale); }
.datecard__date {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  line-height: 1.15;
  color: var(--red);
  margin-bottom: .35em;
}
.datecard--now .datecard__date { color: var(--navy); }
.datecard__label {
  font-family: var(--label);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: .7em;
}
.datecard p { font-size: .95rem; color: var(--ink-soft); }

.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--pale);
  border: 2px solid rgba(217, 69, 69, .35);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.2vw, 26px);
  margin-top: clamp(26px, 3vw, 38px);
}
.callout svg { width: 26px; height: 26px; fill: var(--red); flex: 0 0 auto; margin-top: 2px; }
.callout p { font-size: .93rem; color: #453e36; }
.callout a { color: var(--navy); }

/* polling place finder */
.poll-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(20px, 2.4vw, 28px);
}
.poll-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 460px;
}
.poll-search input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid rgba(25, 83, 171, .3);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.poll-search input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(25, 83, 171, .15);
}
.poll-search svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; fill: var(--navy); opacity: .65; pointer-events: none;
}
.poll-count {
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--navy);
}

.poll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}
.poll {
  background: #fff;
  border-radius: var(--r-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--red);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.poll:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.poll__precinct {
  font-family: var(--label);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy);
}
.poll__place {
  font-family: var(--display);
  font-size: 1.24rem;
  line-height: 1.2;
  color: var(--ink);
}
.poll__addr { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.poll__link {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--label);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.poll__link:hover { color: var(--navy); text-decoration: underline; }
.poll__link svg { width: 14px; height: 14px; fill: currentColor; }
.poll-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: var(--ink-soft);
}

/* ==========================================================================
   DISTRICT 7 MAP + POLLING FINDER
   ========================================================================== */
.mapwrap {
  display: grid;
  gap: clamp(26px, 3.6vw, 48px);
  grid-template-columns: minmax(280px, .95fr) 1.05fr;
  align-items: start;
}
@media (max-width: 900px) { .mapwrap { grid-template-columns: 1fr; } }

.mapfigure {
  margin: 0;
  background: #fff;
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--navy);
  position: sticky;
  top: calc(var(--header-h) + 18px);
}
@media (max-width: 900px) { .mapfigure { position: static; } }
.mapfigure figcaption {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(36, 31, 26, .12);
}

.dmap { width: 100%; height: auto; display: block; }
.dmap__county { fill: #ece7d6; stroke: #ddd6c2; stroke-width: 2; }
.dmap__p {
  fill: var(--navy); fill-opacity: .17;
  stroke: #fff; stroke-width: 2.4;
  transition: fill-opacity .15s var(--ease);
}
/* split precincts read as lighter *and* dashed, so the legend stays decodable
   without depending on a small opacity difference alone */
.dmap__p[data-partial] {
  fill-opacity: .05;
  stroke: var(--navy); stroke-width: 1.6; stroke-dasharray: 7 5; stroke-opacity: .65;
}
.dmap__p:hover, .dmap__p.is-active { fill-opacity: .34; }
.dmap__outline { fill: none; stroke: var(--red-bar); stroke-width: 5; stroke-linejoin: round; }
.dmap__leaders line { stroke: var(--red-bar); stroke-width: 2; stroke-opacity: .7; }
.dmap__pin circle { fill: var(--red-bar); stroke: #fff; stroke-width: 2.5; }
.dmap__pin text {
  fill: #fff; font-family: var(--label); font-weight: 600; font-size: 19px;
  text-anchor: middle; pointer-events: none;
}
.dmap__pin.is-active circle { fill: var(--navy); }

.maplegend {
  list-style: none; padding: 0; margin: 16px 0 0;
  font-size: .85rem; color: var(--ink-soft);
}
.maplegend li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.maplegend li:last-child { margin-bottom: 0; }
.maplegend i {
  width: 22px; height: 14px; border-radius: 3px; flex: 0 0 auto; display: block;
  border: 1px solid rgba(36, 31, 26, .14);
}
.maplegend .k-in   { background: rgba(25, 83, 171, .3); border-color: rgba(25, 83, 171, .4); }
.maplegend .k-part { background: rgba(25, 83, 171, .05); border: 1.5px dashed rgba(25, 83, 171, .65); }
.maplegend .k-out  { background: #ece7d6; border-color: #ddd6c2; }
.maplegend .k-line { background: var(--red-bar); border: 0; height: 4px; border-radius: 2px; }

/* card ↔ map linkage */
.poll { border-color: var(--red-bar); }
/* beside the map the column is narrower, so let two cards share a row */
.mapwrap .poll-grid { grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }
.poll.is-active { border-top-color: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.poll.is-hidden { display: none; }
.poll__precinct { display: flex; align-items: center; gap: 9px; }
.poll__num {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--red-bar); color: #fff;
  font-family: var(--label); font-weight: 600; font-size: .8rem;
  letter-spacing: 0; flex: 0 0 auto;
}
.poll.is-active .poll__num { background: var(--navy); }
.poll__note {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 11px;
  border-left: 3px solid rgba(25, 83, 171, .35);
}
.poll__note--temp {
  color: var(--red-deep);
  border-left-color: var(--red-bar);
  font-weight: 400;
}

.footer-credit {
  color: rgba(249, 245, 232, .88);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-credit:hover, .footer-credit:focus-visible { color: #fff; }

/* ==========================================================================
   PLATFORM PLANKS (issues page)
   ========================================================================== */
.plank-lead {
  background: #fff;
  border-radius: var(--r-md);
  border-top: 6px solid var(--red-bar);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 46px);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
@media (max-width: 660px) {
  .plank-lead { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
.plank-lead__icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--red-bar); color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.plank-lead__icon svg { width: 38px; height: 38px; fill: currentColor; }
.plank-lead h3 {
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  color: var(--navy);
  margin-bottom: .45em;
}
.plank-lead p { font-size: clamp(1rem, 1.25vw, 1.1rem); color: #453e36; max-width: 62ch; }

/* four planks read as a 2x2 block; auto-fit would strand the fourth on its own row */
.plank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
@media (max-width: 760px) { .plank-grid { grid-template-columns: 1fr; } }
.plank {
  background: #fff;
  border-radius: var(--r-md);
  border-top: 5px solid var(--navy);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3vw, 34px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plank:nth-child(even) { border-top-color: var(--red-bar); }
.plank:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plank__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: rgba(25, 83, 171, .12); color: var(--navy);
  margin-bottom: 18px;
}
.plank:nth-child(even) .plank__icon { background: rgba(201, 58, 58, .12); color: var(--red-deep); }
.plank__icon svg { width: 27px; height: 27px; fill: currentColor; }
.plank h3 { color: var(--navy); font-size: clamp(1.2rem, 1.7vw, 1.4rem); }
.plank:nth-child(even) h3 { color: var(--red-deep); }
.plank p { color: var(--ink-soft); font-size: .98rem; }

/* ==========================================================================
   NETWORK BAND
   ========================================================================== */
.network {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.network::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(249,245,232,.05) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.network__inner { position: relative; }
.network__head { max-width: 780px; margin: 0 auto clamp(30px, 4vw, 46px); text-align: center; }
.network__head .eyebrow { color: var(--pale); }
.network__head h2 { color: var(--cream); }
.network__head p {
  color: rgba(249, 245, 232, .9);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  max-width: 64ch;
  margin-inline: auto;
}

.places {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  max-width: 900px;
  margin: 0 auto;
}
.places span {
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(.86rem, 1.05vw, .98rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream);
  border: 2px solid rgba(249, 245, 232, .45);
  border-radius: var(--r-sm);
  padding: .6em 1.1em;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.places span:hover { background: var(--cream); border-color: var(--cream); color: var(--navy); }

.network__kicker {
  margin: clamp(34px, 4.4vw, 52px) auto 0;
  max-width: 720px;
  text-align: center;
  border-top: 1px solid rgba(249, 245, 232, .28);
  padding-top: clamp(26px, 3.2vw, 38px);
}
.network__kicker p.line {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
  color: var(--pale);
  margin-bottom: .55em;
}
.network__kicker p.sub { color: rgba(249, 245, 232, .88); font-size: 1rem; max-width: 56ch; margin-inline: auto; }
