/* ---- Aktiv Grotesk (self-hosted, licensed webfont) ---- */
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-medium.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-italic.woff2") format("woff2"); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-bold-italic.woff2") format("woff2"); font-weight:700; font-style:italic; font-display:swap; }

:root {
  --ink: #141414;
  --bg: #ffffff;
  --accent: #4a9e3d;      /* Westwood Connected green */
  --accent-dark: #3c8231;
  --muted: #6a6a6a;
  --container: 1200px;
  --font: "aktiv-grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 1.1rem;
  line-height: 1.7;
  padding-top: 118px; /* clears the fixed header */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container.narrow { max-width: 820px; }
/* Left-aligned prose column for the priority sections (matches the original). */
.container.prose > * { max-width: 640px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--bg); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---- Header (fixed — logo stays pinned while scrolling) ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: .8rem 1rem; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.logo { width: clamp(150px, 16vw, 190px); height: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 1.1rem;
  padding: 1rem 2.4rem; border-radius: 100px; text-decoration: none;
  border: none; cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); }

/* ---- Sections ---- */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-heading { font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.65rem); line-height: 1.18; margin: 0 0 1.5rem; }
.lead { font-size: 1.35rem; line-height: 1.55; margin: 0 0 1.5rem; }
.lead:last-child { margin-bottom: 0; }
.lead strong { font-weight: 700; }
.lead a, .lead-list a, .footer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.lead a:hover, .lead-list a:hover, .footer a:hover { color: var(--accent-dark); }
.lead-list { font-size: 1.35rem; line-height: 1.55; margin: 0 0 1.5rem; padding-left: 1.5em; }
.lead-list li { margin: 0 0 1.4rem; padding-left: .3em; }
.lead-list li:last-child { margin-bottom: 0; }
.lead-list strong { font-weight: 700; }

/* ---- Hero ---- */
.hero { padding-top: clamp(1rem, 3vw, 2rem); }
.container.prose > .hero-headline { max-width: 940px; }
.hero-headline { font-weight: 700; font-size: clamp(2.2rem, 5.5vw, 3.7rem); line-height: 1.08; margin: 0 0 2rem; letter-spacing: -0.01em; }
.hero-map { margin: 0 0 2.5rem; }
.hero-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.hero-list li { font-size: 1.25rem; margin: 0 0 1rem; display: flex; gap: .6rem; align-items: baseline; }
.hero-list .emoji { font-size: 1.3rem; flex: none; }

/* ---- Section media (renderings) ---- */
.figure { margin: 0 0 1.5rem; }
.figure img { width: 100%; border-radius: 6px; display: block; }

/* ---- Two-column split: text left / image right at wide; image on top when narrow ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.split-media { order: 2; margin: 0; }
.split-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.split-text { order: 1; }
.split-text .section-heading { margin-top: 0; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 2.75rem); align-items: start; }
  .split-media, .split-text { order: 0; }
  .split-media img { height: auto; }
}

/* ---- Partners (coalition logos, in footer) ---- */
.partner-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: clamp(1rem, 2.2vw, 1.75rem); }
.partner-grid a { display: inline-flex; transition: opacity .15s ease; }
.partner-grid a:hover { opacity: .82; }
.partner-grid img { height: clamp(60px, 8vw, 84px); width: auto; object-fit: contain; background: #fff; padding: 8px; border-radius: 6px; }

/* ---- Before / after slider (drag to reveal) ---- */
.ba-section { padding: 1rem 0 2rem; }
.ba-slider { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 3/2; width: 100%; margin-bottom: clamp(2rem, 4.5vw, 3.25rem); touch-action: none; cursor: ew-resize; user-select: none; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 1.1rem; color: var(--ink); background: #fff; border-radius: 50%; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 6px rgba(0,0,0,.4); }
.ba-label { position: absolute; bottom: 14px; z-index: 2; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.6); padding: 5px 11px; border-radius: 3px; pointer-events: none; }
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }

/* ---- Sign up ---- */
.section-signup { background: #f4f7f2; }
.signup-wrap { margin: 1.6rem auto 0; max-width: 640px; }
.signup-status { margin: 1rem 0 0; font-weight: 500; min-height: 1.3em; text-align: center; }
.signup-status.is-success { color: var(--accent-dark); }
.signup-status.is-error { color: #b3402a; }
.signup-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mc-field-group { margin-bottom: 1rem; }
.mc-field-group input { width: 100%; font: inherit; font-size: 1rem; padding: .9rem 1rem; border: 1.5px solid #c7d2c3; border-radius: 6px; background: #fff; color: var(--ink); text-align: center; }
.mc-field-group input::placeholder { color: #8a988a; }
.mc-field-group input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.mc-hidden { position: absolute; left: -5000px; }
.mc-submit { margin-top: 1.3rem; text-align: center; }
.mc-submit .btn { min-width: 160px; }

/* ---- Footer (dark "Our Coalition" block) ---- */
.site-footer { background: #3a2a1c; color: #f2ece4; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }
.coalition-label { margin: 0 0 1.5rem; font-size: 1.1rem; font-weight: 500; }
.site-footer .partner-grid { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.copyright { text-align: center; margin: 0; color: #d8cec2; font-size: .98rem; }
.site-footer a { color: #f2ece4; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  body { padding-top: 88px; }
  .signup-form .field-row { grid-template-columns: 1fr; gap: 0; }
}
