/* ==========================================================================
   Mark Nagales for Supervisor — District 5
   Design tokens: Bay Fog / Harbor Ink / Transit Blue / Sunrise Gold / Line Coral
   ========================================================================== */

:root {
  --bay-fog: #eef0ec;
  --bay-fog-dim: #e4e7e0;
  --harbor-ink: #16283d;
  --transit-blue: #2e5c8a;
  --transit-blue-deep: #234a70;
  --sunrise-gold: #e3a73c;
  --sunrise-gold-soft: #f0c986;
  --slate: #4b5560;
  --slate-light: #7c8792;
  --line-coral: #d65f45;
  --paper: #fbfaf6;
  --white: #ffffff;
  --border-hairline: rgba(22, 40, 61, 0.12);

  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-signature: "Fraunces", "Iowan Old Style", serif;
  --font-heading: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max-width: 1180px;
  --radius-sm: 4px;
  --radius-md: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--harbor-ink);
  background: var(--bay-fog);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--transit-blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sunrise-gold);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--harbor-ink);
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.1rem; color: var(--slate); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--sunrise-gold); outline-offset: 2px; }
.btn-primary { background: var(--line-coral); color: var(--white); box-shadow: 0 6px 18px rgba(214,95,69,0.28); }
.btn-primary:hover { background: #c14f37; }
.btn-ghost { background: transparent; border-color: rgba(22,40,61,0.25); color: var(--harbor-ink); }
.btn-ghost:hover { border-color: var(--harbor-ink); }
.btn-gold { background: var(--sunrise-gold); color: var(--harbor-ink); }
.btn-gold:hover { background: #d69827; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--harbor-ink); color: var(--white);
  padding: 12px 18px; z-index: 999;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgb(238,240,236);
  border-bottom: 1px solid var(--border-hairline);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 12px; padding-bottom: 12px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; border-radius: 4px; }

.nav-primary { display: flex; align-items: center; gap: 32px; }
.nav-primary ul { display: flex; gap: 26px; }
.nav-primary a { font-size: 0.92rem; font-weight: 600; color: var(--harbor-ink); position: relative; padding: 4px 0; }
.nav-primary a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--line-coral); transition: width 0.2s ease; }
.nav-primary a:hover::after, .nav-primary a.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-primary .header-donate { display: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--harbor-ink); margin: 5px 0; }

/* ---------- Hero: full-width photo with layered copy ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-start;
  background-color: var(--harbor-ink);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  /* Scrim is weighted to the top-left, where the copy sits, and fades out
     toward the lower right so the photo itself stays clear. */
  background:
    linear-gradient(180deg, rgba(22,40,61,0.80) 0%, rgba(22,40,61,0.40) 50%, rgba(22,40,61,0.10) 100%),
    linear-gradient(90deg, rgba(22,40,61,0.55) 0%, rgba(22,40,61,0.12) 45%, rgba(22,40,61,0) 70%);
  z-index: 0;
}
.hero .container {
  position: relative; z-index: 1; width: 100%;
  padding-top: 155px; padding-bottom: 120px;
  display: flex;
  justify-content: flex-start;
}
.hero-copy { max-width: 640px; text-align: left; }
.hero-copy .eyebrow { color: var(--sunrise-gold-soft); }
.hero-copy .eyebrow::before { background: var(--sunrise-gold); }
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  margin-bottom: 0.3em;
}
.hero-tagline {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  line-height: 1.3;
  margin-bottom: 1.1em;
}
.hero-badge {
  display: block;
  margin: 0 0 28px;   /* left edge stays flush with the text and buttons */
  width: 100%;
  max-width: 260px;
  height: auto;
}
.hero-copy .lead { max-width: 42ch; margin-bottom: 1.6em; color: rgba(255,255,255,0.86); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; }

/* ---------- Section shell ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-header { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-header.align-left { margin-left: 0; text-align: left; }
.bg-paper { background: var(--paper); }
.bg-fog { background: var(--bay-fog); }
.bg-ink { background: var(--harbor-ink); color: var(--bay-fog); }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.bg-ink .eyebrow { color: var(--sunrise-gold-soft); }
.bg-ink .eyebrow::before { background: var(--sunrise-gold); }

/* ---------- Photo carousel ---------- */
.photo-carousel {
  padding: 40px 0;
  background: var(--paper);
}
.carousel-wrap { position: relative; }

.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius-md);
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-viewport:focus-visible {
  outline: 3px solid var(--sunrise-gold);
  outline-offset: 3px;
}

.carousel-track {
  display: flex;
  gap: 10px;
}
.carousel-track .photo-tile {
  flex: 0 0 calc((100% - 20px) / 3);
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bay-fog-dim);
}
.carousel-track .photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Endorsements page only: bias the crop toward the top so faces aren't cut off */
.photo-carousel--endorsements .carousel-track .photo-tile img {
  object-position: center top;
}

/* ...except these specific photos, whose subjects sit lower in the frame */
.photo-carousel--endorsements .carousel-track .photo-tile.focus-center img {
  object-position: center 10%;
}

/* Endorsements page only: single-photo override */
.photo-carousel--endorsements .carousel-track .photo-tile.zoom-out img {
  object-fit: inherit;
}

/* Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-hairline);
  background: var(--white);
  color: var(--harbor-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(22, 40, 61, 0.16);
  transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}
.carousel-btn:hover:not(:disabled) {
  background: var(--harbor-ink);
  color: var(--white);
}
.carousel-btn:focus-visible {
  outline: 3px solid var(--sunrise-gold);
  outline-offset: 2px;
}
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carousel-prev { left: -14px; }
.carousel-next { right: -14px; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(22, 40, 61, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot:hover { background: rgba(22, 40, 61, 0.45); }
.carousel-dot.is-active {
  background: var(--line-coral);
  transform: scale(1.25);
}
.carousel-dot:focus-visible {
  outline: 2px solid var(--sunrise-gold);
  outline-offset: 3px;
}

/* If everything already fits, hide the controls */
.photo-carousel.is-static .carousel-btn,
.photo-carousel.is-static .carousel-dots { display: none; }

/* ---------- Why I'm Running: photo + quote ---------- */
.stacked-heading { font-weight: 400; }
.stacked-heading span { display: block; font-weight: 600; }
.stacked-heading span + span { margin-top: 0.35em; font-weight: 600; }

.running-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: center;
}
.running-photo { border-radius: var(--radius-md); overflow: hidden; }
.running-photo img { width: 100%; height: 100%; object-fit: cover; }
.quote-block {
  background: var(--white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 30px 32px;
  margin: 20px 0;
}
.quote-block p {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--harbor-ink);
  margin-bottom: 0.6em;
}
.quote-sig { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.quote-sig span {
  font-family: var(--font-signature);
  font-style: italic;
  font-weight: 400;              /* matches the quote text above */
  font-size: 2rem;
  line-height: 1.2;
  color: var(--harbor-ink);
}

/* ---------- Issue tiles (home preview) ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  background: var(--white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.tile h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tile p { font-size: 0.92rem; color: var(--slate); margin: 0; }
.tile .tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--transit-blue);
  background: rgba(46,92,138,0.1);
  padding: 4px 9px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

/* ---------- Full issues page ---------- */
.issue-block {
  border-bottom: 1px solid var(--border-hairline);
}
.issue-block:last-child { border-bottom: none; }

.issue-toggle {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
  background: none;
  border: none;
  padding: 28px 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.issue-toggle:focus-visible { outline: 3px solid var(--sunrise-gold); outline-offset: 4px; border-radius: 4px; }
.issue-toggle:hover .issue-toggle-text h3 { color: var(--transit-blue-deep); }

.issue-toggle .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bay-fog-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.issue-toggle .icon-wrap svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--transit-blue-deep);
  stroke-width: 1.6;
  stroke-linecap: round;   /* required: some Lucide details are dot-strokes */
  stroke-linejoin: round;
}

.issue-toggle-text { flex: 1; padding-top: 4px; }
.issue-toggle-text h3 { font-size: 1.4rem; margin-bottom: 6px; transition: color 0.15s ease; }
.issue-toggle-text .vision { color: var(--slate); font-style: italic; margin: 0; }

.chevron {
  flex-shrink: 0;
  width: 24px; height: 24px;
  margin-top: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--transit-blue-deep);
  transition: transform 0.28s ease;
}
.chevron svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.issue-block.is-open .chevron { transform: rotate(90deg); }

.issue-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.issue-panel-inner { padding: 0 0 32px 78px; }
.issue-panel ul li {
  display: flex; gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--slate);
}
.issue-panel ul li .marker { color: var(--sunrise-gold); font-weight: 700; flex-shrink: 0; }

/* Static issue rows (simplified issues page — no accordion) */
.issue-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-hairline);
}
.issue-row:last-child { border-bottom: none; }
.issue-row .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bay-fog-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.issue-row .icon-wrap svg { width: 26px; height: 26px; fill: none; stroke: var(--transit-blue-deep); stroke-width: 1.6; }
.issue-row-text { padding-top: 4px; }
.issue-row-text h3 { font-size: 1.3rem; margin-bottom: 6px; }
.issue-row-text p { color: var(--slate); margin: 0; font-size: 0.98rem; }

/* ---------- Endorsements ---------- */
.endorser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.endorser-card {
  background: var(--white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
}
.endorser-card .avatar-ph {
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--transit-blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
  margin: 0 auto 16px;
}
.endorser-card .endorser-photo {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;   /* keeps faces framed across mixed crops */
  display: block;
  margin: 0 auto 16px;
  background: var(--bay-fog-dim);
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(22, 40, 61, 0.16);
}
.endorser-card blockquote {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--harbor-ink);
}
.endorser-card .name { font-weight: 700; font-size: 0.92rem; }
.endorser-card .title { font-size: 0.8rem; color: var(--slate-light); }

.endorsement-group { margin-bottom: 32px; }
.endorsement-group:last-child { margin-bottom: 0; }
.endorsement-group h3 { font-size: 1.05rem; color: var(--transit-blue-deep); margin-bottom: 12px; }

.secondary-endorsers {
  columns: 3;
  gap: 24px;
  margin-top: 0;
}
.secondary-endorsers li {
  font-size: 0.92rem;
  color: var(--slate);
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-hairline);
  break-inside: avoid;
}
.secondary-endorsers li strong {
  display: block;
  color: var(--harbor-ink);
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 1px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.logo-grid .logo-slot {
  aspect-ratio: 3/2;
  border: 1px dashed var(--border-hairline);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 8px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--harbor-ink);
  color: var(--white);
  padding: 68px 0 52px;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.9rem); max-width: 24ch; }
.page-hero .eyebrow { color: var(--sunrise-gold-soft); }
.page-hero .eyebrow::before { background: var(--sunrise-gold); }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 58ch; }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 52px;
  align-items: start;
}
.about-photo { border-radius: var(--radius-md); overflow: hidden; position: sticky; top: 100px; }
.about-photo img { width: 100%; display: block; }
.about-copy h3 { font-size: 1.25rem; margin-top: 1.4em; }
.about-copy p { color: var(--slate); }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-detail .icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bay-fog-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail .icon svg { width: 17px; height: 17px; fill: var(--transit-blue-deep); }
.contact-detail h4 { font-family: var(--font-body); font-size: 0.95rem; margin: 0 0 2px; }
.contact-detail p { margin: 0; color: var(--slate); font-size: 0.92rem; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 30px;
}
.form-card .field { margin-bottom: 16px; }
.form-card label {
  display: block; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px;
}
.form-card input, .form-card textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem;
  background: var(--bay-fog-dim); resize: vertical;
}
.form-card input:focus-visible, .form-card textarea:focus-visible { outline: 2px solid var(--transit-blue); outline-offset: 1px; }
.form-success {
  display: none; background: #eef7ee; border: 1px solid #b9dcb9; color: #2c5c2c;
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-top: 8px;
}
.form-success.is-visible { display: block; }

/* Join Our Campaign (footer) success message: darker text for readability */
#footer-signup-success {
  color: var(--harbor-ink);
}
.form-error {
  display: none; background: #fbeceb; border: 1px solid #e3b3ae; color: #9b3428;
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-top: 8px;
}
.form-error.is-visible { display: block; }
.required-star { color: var(--line-coral); }

/* ---------- Contribute band ---------- */
.contribute-band {
  background: var(--harbor-ink); color: var(--white);
  text-align: center; padding: 72px 0; position: relative; overflow: hidden;
}
.contribute-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(46,92,138,0.5), transparent 55%),
              radial-gradient(circle at 80% 75%, rgba(227,167,60,0.18), transparent 50%);
}
.contribute-band .container { position: relative; }
.contribute-band h2 { color: var(--white); max-width: 22ch; margin-left: auto; margin-right: auto; }
.contribute-band p { color: rgba(255,255,255,0.78); max-width: 54ch; margin-left: auto; margin-right: auto; }

/* ---------- Prose pages (privacy) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--slate); font-size: 0.96rem; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }

/* ---------- Footer / engagement zone ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--border-hairline); }

.footer-signup {
  background: var(--transit-blue);
  color: var(--white);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.footer-signup::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(227,167,60,0.22), transparent 55%);
  pointer-events: none;
}
.footer-signup .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.footer-signup h2 { color: var(--white); }
.footer-signup p { color: rgba(255,255,255,0.82); max-width: 42ch; }
.footer-signup-form {
  background: var(--white); color: var(--harbor-ink);
  border-radius: var(--radius-md); padding: 28px;
  box-shadow: 0 24px 60px rgba(10,20,32,0.28);
}
.footer-signup-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.footer-signup-form label {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 6px;
}
.footer-signup-form .field { margin-bottom: 14px; }
.footer-signup-form input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.94rem;
  background: var(--bay-fog-dim);
}
.footer-signup-form .btn { width: 100%; justify-content: center; margin-top: 4px; }

.footer-cta-row {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 32px 0; border-bottom: 1px solid var(--border-hairline);
}

/* Volunteer page only: dark CTA row with a light Contact Us button */
.footer-cta-row--volunteer {
  background-color: #17273B;
  border-bottom: none;
}
.footer-cta-row--volunteer .cta-contact {
  background-color: #FBFAF6;
  border-color: #FBFAF6;
  color: var(--harbor-ink);
}
.footer-cta-row--volunteer .cta-contact:hover {
  background-color: #ffffff;
  border-color: #ffffff;
}

.footer-main { padding: 40px 0 24px; }
.footer-top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid var(--border-hairline);
}
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { color: var(--slate); max-width: 34ch; font-size: 0.88rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { font-size: 0.9rem; color: var(--harbor-ink); }
.footer-col a:hover { color: var(--transit-blue); }
.social-inline { display: flex; gap: 12px; margin-top: 14px; }
.social-inline a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-hairline);
  display: flex; align-items: center; justify-content: center;
}
.social-inline a:hover { background: var(--harbor-ink); }
.social-inline a:hover svg { fill: var(--white); }
.social-inline svg { width: 16px; height: 16px; fill: var(--harbor-ink); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 22px; }
.footer-legal { font-size: 0.74rem; color: var(--slate-light); max-width: 62ch; }
.footer-legal a { color: var(--slate); text-decoration: underline; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { min-height: 72vh; }
  .hero .container {
    padding-top: 100px;
    padding-bottom: 80px;
  }
  .running-grid, .about-grid, .contact-grid, .footer-signup .container { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 420px; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-track .photo-tile { flex: 0 0 calc((100% - 10px) / 2); }
  .endorser-grid { grid-template-columns: 1fr; }
  .secondary-endorsers { columns: 2; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hero .container {
    padding-top: 72px;
    padding-bottom: 56px;
  }
  .hero-copy { max-width: 100%; }
  .hero-badge { max-width: 200px; margin-bottom: 22px; }
  .nav-primary {
    position: fixed; inset: 68px 0 0 0;
    background: var(--bay-fog);
    flex-direction: column; align-items: flex-start;
    padding: 32px 28px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    z-index: 490;
  }
  .nav-primary.is-open { transform: translateX(0); }
  .nav-primary ul { flex-direction: column; gap: 4px; width: 100%; }
  .nav-primary ul li a { display: block; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--border-hairline); }
  .nav-toggle { display: block; }
  .nav-primary .header-donate { display: inline-flex; margin-top: 20px; width: 100%; justify-content: center; }
  .header-actions .btn-primary.header-donate-desktop { display: none; }
  .footer-signup-form .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .secondary-endorsers { columns: 1; }
  /* Mobile: show exactly one image at a time, centered */
  .carousel-track { gap: 0; }
  .carousel-track .photo-tile { flex: 0 0 100%; scroll-snap-align: center; }
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
  .issue-toggle { gap: 14px; }
  .issue-toggle .icon-wrap { width: 44px; height: 44px; }
  .issue-toggle .icon-wrap svg { width: 20px; height: 20px; }
  .issue-panel-inner { padding-left: 58px; }
  .issue-row .icon-wrap { width: 44px; height: 44px; }
  .issue-row .icon-wrap svg { width: 20px; height: 20px; }
  .issue-row { gap: 14px; }
}
