/* ====================================================================
   Lee Meyer for State Representative — stylesheet
   --------------------------------------------------------------------
   Structure:
     1. Fonts (@font-face, loaded locally from assets/fonts/)
     2. Design tokens (CSS custom properties)
     3. Base / reset
     4. Reusable components (buttons, container, utilities)
     5. Splash screen
     6. Header / nav
     7. Sections (hero, facts, about, stakes, priorities, join,
        donate, contact, footer)
     8. Responsive (mobile-first; breakpoints scale up)
   ==================================================================== */

/* ===================================================================
   1. ** Fonts ** (all self-hosted, free, open-source — SIL OFL)
   -------------------------------------------------------------------
   Headings:  "League Gothic"
   Body:      "Libre Franklin
   Both key off the --font-head / --font-body tokens below, so either
   can be swapped in one place.
   =================================================================== */
@font-face {
  font-family: "League Gothic";
  src: url("assets/fonts/LeagueGothic-Regular.woff2") format("woff2");
  font-weight: 400 700;   /* condensed display; used heavy for headings */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("assets/fonts/LibreFranklin.woff2") format("woff2");
  font-weight: 100 900;   /* variable font: full weight range */
  font-style: normal;
  font-display: swap;
}

/* ===================================================================
   2. ** Design Tokens **
   =================================================================== */
:root {
  /* Brand palette */
  --red:    #DC493A;  /* splash + accents / CTAs */
  --cyan:   #ADFCF9;  /* light, inviting backgrounds */
  --teal:   #40798C;  /* primary deep accent / headings on light */
  --white:  #FFFFFF;

  /* Derived / supporting */
  --ink:        #16282E;  /* near-black text, tinted toward teal */
  --ink-soft:   #4a5b61;  /* secondary text */
  --teal-dark:  #2f5c6b;
  --red-dark:   #b73a2d;
  --cyan-soft:  #e6fefd;
  --line:       rgba(22, 40, 46, 0.12);

  /* Typography */
  --font-head: "League Gothic", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing / layout */
  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 0;      /* sharp, rectangular — no rounded corners */
  --radius-sm: 0;

  /* Effects */
  --shadow:    0 10px 30px rgba(22, 40, 46, 0.10);
  --shadow-lg: 0 24px 60px rgba(22, 40, 46, 0.18);
  --transition: 200ms ease;
}

/* ===================================================================
   3. ** Base / reset **
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 74px; }

@media (max-width: 900px) {
  html { scroll-padding-top: 130px; }
}

/* Skip-to-main link (visible only on focus) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.75rem 1.25rem;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; color: var(--white); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Lock scroll while splash is open */
body.is-splash-open { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;            /* League Gothic ships a single (heavy) master */
  line-height: 1.0;
  letter-spacing: 0.01em;      /* condensed display reads better without negative tracking */
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===================================================================
   4. ** Reuseable components/utilioties
   =================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--red);
  margin: 0 0 0.75rem;
}
.eyebrow--light { color: var(--teal-dark); }

/* Buttons ----------------------------------------------------------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--solid  { --btn-bg: var(--red);  --btn-fg: var(--white); }
.btn--solid:hover { background: var(--red-dark); }

.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--teal);
  border-color: var(--teal);
}
.btn--outline:hover { background: var(--teal); --btn-fg: var(--white); }

.btn--text {
  --btn-bg: transparent; --btn-fg: var(--teal);
  padding-inline: 0.4rem;
}
.btn--text:hover { box-shadow: none; color: var(--red); }

.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--dark:hover { background: #0c181c; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn--ghost:hover { background: var(--white); --btn-fg: var(--red); }

.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

/* Section scaffolding ---------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--alt { background: var(--white); }

.section__title {
  font-size: clamp(1.9rem, 1.4rem + 2.6vw, 3.2rem);
  color: var(--ink);
}
.section__head { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__intro { color: var(--ink-soft); font-size: 1.1rem; }

/* --- Saturated section themes ----------------------------------------
   Each major section gets a flat, saturated background plus a subtle SVG
   dot texture and contrasting text. No gradients. ID selectors override
   the generic .section--alt background by specificity. */

/* Dark "The Race" section */
#stakes {
  background-color: var(--ink);
  color: rgba(255, 255, 255, 0.9);
}
#stakes .section__title { color: var(--white); }
#stakes .section__intro { color: rgba(255, 255, 255, 0.82); }
#stakes .eyebrow { color: #ff7a6b; }

/* "Priorities" section */
#priorities {
  background-color: var(--white);
}

/* "District" section — dark ash */
#district {
  background-color: #343a3d;
  color: rgba(255, 255, 255, 0.9);
}
#district .section__title { color: var(--white); }
#district .eyebrow { color: var(--cyan); }
#district .district__intro { color: rgba(255, 255, 255, 0.82); }

/* Teal "Donate" section */
#donate {
  background-color: var(--teal);
  color: rgba(255, 255, 255, 0.92);
}
#donate .section__title { color: var(--white); }
#donate .eyebrow { color: var(--cyan); }
#donate .donate__intro,
#donate .donate__fine { color: rgba(255, 255, 255, 0.85); }
#donate .donate__fine a { color: var(--cyan); text-decoration: underline; }

/* ===================================================================
   5. ** Splash Screen **
   =================================================================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0e7ea8;
  color: var(--white);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  overflow-y: auto;
}
.splash[hidden] { display: none; }
.splash.is-leaving { animation: splashOut 450ms ease forwards; }

/* Language toggle, pinned to the top-right of the overlay. Reuses .lang-toggle
   for its look — that style is already white-on-colour, which suits the splash. */
.splash__lang {
  position: absolute;
  top: var(--gutter);
  right: var(--gutter);
  z-index: 1;
}

@keyframes splashOut {
  to { opacity: 0; visibility: hidden; transform: scale(1.02); }
}

.splash__inner {
  width: 100%;
  max-width: 640px;
  text-align: center;
  animation: splashIn 600ms ease both;
}
@keyframes splashIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.splash__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}
.splash__title {
  font-size: clamp(2.1rem, 1.4rem + 4vw, 3.6rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.splash__sub {
  font-size: 1.1rem;
  max-width: 30em;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.splash__form {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  margin: 0 auto 0.75rem;
}
.splash__form input {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
.splash__form input:focus-visible { outline-color: var(--ink); }

.splash__formnote { min-height: 1.4em; font-size: 0.92rem; font-weight: 600; }

.splash__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.splash__continue {
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity var(--transition);
}
.splash__continue:hover { opacity: 0.8; }

/* ===================================================================
   6. ** Nav **  (sits below the hero, in normal page flow — not sticky)
   =================================================================== */
.site-nav {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 800;
}
.site-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--white);
}
.brand__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}
.brand__name--footer { color: var(--white); font-size: 1.6rem; }

.site-nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.85rem, 2vw, 1.85rem);
}
.site-nav__links a:not(.btn) {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-size: 0 2px;
  background-position: bottom left;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: color var(--transition), background-size var(--transition);
}
.site-nav__links a:not(.btn):hover,
.site-nav__links a:not(.btn).is-active {
  color: var(--cyan);
  background-size: 100% 2px;
}
.site-nav__links a.btn { color: var(--white); }
.site-nav__links a.btn:hover { color: var(--white); }
.site-nav__links a.btn.is-active { color: var(--white); }

.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.lang-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

/* ===================================================================
   7. ** Sections **
   =================================================================== */

/* Hero -------------------------------------------------------------- */
.hero {
  background-color: var(--white);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
/* District-number watermark — barely-visible, locks identity to place */
.hero::before {
  content: "19";
  font-family: var(--font-head);
  font-size: 38vw;
  line-height: 0.8;
  color: var(--teal);
  opacity: 0.045;
  position: absolute;
  right: -5vw;
  bottom: -3vw;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__title {
  font-size: clamp(3.5rem, 9vw, 8rem);
  color: var(--ink);
}
.hero__title .hl { color: var(--red); }
.hero__rule {
  border: none;
  width: 2.5rem;
  height: 3px;
  background: var(--red);
  margin: 0.85rem 0 1rem;
}
.hero__lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.hero__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background-color: var(--teal);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fast facts -------------------------------------------------------- */
.facts {
  background-color: var(--teal);
  color: var(--white);
  position: relative;
  z-index: 0;
  margin-top: -4vw;
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: calc(clamp(2rem, 4vw, 3rem) + 4vw);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.fact { display: flex; flex-direction: column; gap: 0.35rem; }
.fact__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  color: var(--white);
}
.fact__label { font-size: 0.92rem; opacity: 0.82; letter-spacing: 0.02em; }

/* About ------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about__photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background-color: var(--teal);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stakes / contrast ------------------------------------------------- */
.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contrast__card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.contrast__card--them {
  border-top: 5px solid #9aa6aa;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(154, 166, 170, 0.07) 10px,
    rgba(154, 166, 170, 0.07) 11px
  );
}
.contrast__card--us   { border-top: 5px solid var(--red); background: var(--white); }
.contrast__card h3 { font-size: 1.4rem; }
.contrast__name { font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.contrast__name span { display: block; font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); }
.contrast__list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.contrast__list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
}
.contrast__card--them .contrast__list li::before { content: "\2717"; color: #9aa6aa; }
.contrast__card--us   .contrast__list li::before { content: "\2713"; color: var(--red); }
.contrast__list li::before {
  position: absolute; left: 0; top: 0;
  font-weight: 800;
}
.contrast__foot { font-size: 0.78rem; color: var(--ink-soft); font-style: italic; margin: 0; }

/* Priorities cards -------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__num {
  font-family: var(--font-head);
  font-size: 7.5rem;
  line-height: 1;
  color: var(--teal);
  opacity: 0.07;
  position: absolute;
  top: -0.5rem;
  right: 0.5rem;
  pointer-events: none;
  user-select: none;
  transition: opacity var(--transition);
}
.card:hover .card__num { opacity: 0.13; }
.card h3 { font-size: 1.35rem; margin-top: 0.25rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.card__list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.card__list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 4px;
  height: 4px;
  background: var(--teal);
}

/* Join -------------------------------------------------------------- */
.join {
  background-color: var(--red);
  color: rgba(255, 255, 255, 0.95);
}
.join .section__title { color: var(--white); }
.join .eyebrow,
.join .eyebrow--light { color: rgba(255, 255, 255, 0.85); }
.join__inner { max-width: 720px; }
.join__intro { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; }
.join__form { margin-top: 1.5rem; }
.join__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.7fr;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.join__form input,
.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition);
}
.join__form input:focus-visible,
.contact__form input:focus-visible,
.contact__form textarea:focus-visible { border-color: var(--teal); outline: none; }
.join__note { min-height: 1.4em; font-weight: 600; color: var(--white); }
.join__fine { font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); margin-top: 0.75rem; }

/* Donate ------------------------------------------------------------ */
.donate__inner { max-width: 720px; text-align: center; margin-inline: auto; }
.donate__intro { color: var(--ink-soft); font-size: 1.1rem; }
.donate__amounts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem 0;
}
.donate__amt {
  min-width: 90px;
  padding: 0.9rem 1.2rem;
  border-radius: 0;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--white);
  font-weight: 800;
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
}
.donate__amt:hover,
.donate__amt.is-active {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
  transform: translateY(-2px);
}
.donate__amt--custom { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; }
.donate__fine { font-size: 0.8rem; color: var(--ink-soft); margin-top: 1.25rem; }

/* Contact ----------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.contact__list li { margin-bottom: 0.6rem; color: var(--ink-soft); }
.contact__form { display: flex; flex-direction: column; gap: 0.4rem; }
.contact__form label { font-weight: 600; font-size: 0.9rem; margin-top: 0.5rem; }
.contact__form button { margin-top: 1rem; align-self: flex-start; }
.contact__note { min-height: 1.4em; font-weight: 600; color: var(--teal-dark); }

/* Scroll-entry reveal ----------------------------------------------- */
.reveal-target {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-target.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-target { opacity: 1; transform: none; transition: none; }
}

/* Wave section dividers -------------------------------------------- */
.wave-divider {
  overflow: hidden;
  line-height: 0;
  display: block;
}
.wave-divider--teal  { background: var(--teal); }
.wave-divider--white { background: var(--white); }
.wave-divider svg {
  display: block;
  width: 200%;  /* doubled so -50% translateX = exactly one pattern width */
  height: 64px;
  animation: wave-scroll 18s linear infinite;
}
@keyframes wave-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .wave-divider svg { animation: none; }
}

/* Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.85); padding-top: 3rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.site-footer__tag { font-size: 0.9rem; opacity: 0.8; margin-top: 0.4rem; }
.site-footer__nav { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__nav a,
.site-footer__social a { color: rgba(255,255,255,0.85); font-weight: 500; }
.site-footer__nav a:hover,
.site-footer__social a:hover { color: var(--cyan); }
.site-footer__social { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-block: 1.5rem;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ===================================================================
   8. ** Responsive **
   =================================================================== */
@media (max-width: 900px) {
  .hero__grid,
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 360px; }
  .about__media { max-width: 420px; }
  .cards { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .contrast { grid-template-columns: 1fr; }

  /* Nav stacks and centers below the hero */
  .site-nav__bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding-block: 0.6rem;
    min-height: unset;
  }
  .site-nav__links { justify-content: center; gap: 0.65rem; }
  .site-nav__links a { font-size: 0.82rem; }
  .site-nav__links a.btn { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
  .brand__name { font-size: 1.15rem; }
  .brand__tag { font-size: 0.62rem; }
}

@media (max-width: 560px) {
  .cards,
  .facts__grid { grid-template-columns: 1fr; }
  .join__row { grid-template-columns: 1fr; }
  .splash__form { flex-direction: column; }
  .splash__form .btn { width: 100%; }
  .hero__cta .btn { width: 100%; }
  .district-map { height: 340px; }
}

/* District map / ward finder --------------------------------------- */
.district__grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.5rem;
  align-items: start;
}

@media (min-width: 750px) {
  .district__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(2rem, 4vw, 3.5rem);
    row-gap: 1.25rem;
  }
  .district__header {
    grid-column: 2;
    grid-row: 1;
  }
  .district-map {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .district__body {
    grid-column: 2;
    grid-row: 2;
  }
}

.district-map {
  height: 460px;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Prevent site-wide img reset from breaking Leaflet tile images */
.leaflet-container img {
  max-width: none;
  display: inline;
}

.ward-finder { margin-bottom: 0; }

.ward-finder__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ward-finder__form input {
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.ward-finder__form input::placeholder { color: rgba(255, 255, 255, 0.45); }

.ward-finder__form input:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

.ward-finder__form .btn { align-self: flex-start; }

.ward-finder__result {
  margin-top: 0.75rem;
  min-height: 1.4em;
  font-weight: 600;
  color: var(--cyan);
}
