/* index.html styles — externalized July 15/16, 2026 from an inline <style>
   block, as part of a pre-launch CSP hardening pass (see _headers). No rules
   changed in this move, this is the same CSS that was previously inline. */
:root {
  /* Theme locked July 9, 2026 — "Super, Natural North Van" (see theme-preview.html) */
  --evergreen: #17362b;
  --pine: #2f5d4a;
  --glacier: #2c7f94;
  --glacier-dark: #1f6376;
  --lake: #24586e;
  --pale-pine: #9fc7bd;
  --ice: #eceee6;
  --snow: #f8f6f1;
  --white: #ffffff;
  --ink: #2b3a36;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-ui: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--snow);
  line-height: 1.65;
  text-wrap: pretty;
}
header {
  background: var(--evergreen);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem;
}
.wordmark { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .5px; color: inherit; text-decoration: none; }
.wordmark span { color: var(--pale-pine); }
nav a {
  color: var(--ice); text-decoration: none; margin-left: 1.25rem;
  font-family: var(--font-ui); font-size: .95rem;
}
nav a.active { color: var(--white); border-bottom: 2px solid var(--glacier); padding-bottom: 2px; }

/* Mobile hamburger menu (added July 13, 2026) */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 34px; height: 30px; padding: 0;
  flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ice); border-radius: 2px; }
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  nav { display: none; width: 100%; flex-direction: column; gap: .15rem; margin-top: .25rem; }
  nav.open { display: flex; }
  nav a { margin-left: 0; padding: .65rem 0; }
}

/* ===== Hero ===== */
.hero {
  background: var(--evergreen);
  color: var(--ice);
  padding: 3.5rem 2rem 4rem;
}
.hero-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; gap: 3rem; align-items: center; flex-wrap: wrap;
}
.hero-text { flex: 1 1 380px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 3.2rem; line-height: 1.12; color: var(--white);
  margin-bottom: 1rem;
}
.hero .subline {
  font-family: var(--font-ui); font-size: 1.05rem; color: var(--pale-pine);
  letter-spacing: .5px; margin-bottom: 2rem;
}
.hero .buttons { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero a.btn {
  font-family: var(--font-ui); font-size: 1.05rem; text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 4px;
}
.hero a.solid { background: var(--glacier); color: var(--white); }
.hero a.solid:hover { background: var(--glacier-dark); }
/* .outline kept in case it's wanted again later, but not currently used: as of
   July 17, 2026 all three hero buttons use .solid. A visitor reported that the
   one solid (Donate) + two outline (Volunteer/Ask Mike) styling read as a
   "you are here" nav indicator rather than three equal actions, since glacier
   blue is the same color used for the nav's active-page underline. That also
   ran against the brief's own "parallel, not one dominant" instruction for
   these three CTAs (§7) — Mike chose all-solid over all-outline to keep
   Donate's visual pull for fundraising rather than softening it. */
.hero a.outline { border: 1.5px solid var(--pale-pine); color: var(--ice); }
.hero a.outline:hover { background: rgba(255,255,255,.08); }

.hero-photo { flex: 0 1 480px; margin: 0; }
.hero-photo .photo-frame {
  position: relative; border-radius: 6px; overflow: hidden;
  aspect-ratio: 4 / 3;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.82) contrast(1.04);
}
.hero-photo .photo-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(44,127,148,.16), rgba(23,54,43,.10));
  pointer-events: none;
}

main { max-width: 1060px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
section { margin-bottom: 3.5rem; }

h2 { font-family: var(--font-display); color: var(--pine); font-size: 1.6rem; font-weight: 500; margin-bottom: 1.25rem; }

.intro-band { max-width: 46rem; font-size: 1.14rem; }
.more-link {
  display: inline-block; margin-top: .75rem;
  font-family: var(--font-ui); color: var(--glacier); text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

/* Pillar teasers */
.teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.teaser {
  background: var(--white); border: 1px solid var(--ice); border-radius: 6px;
  padding: 1.4rem 1.5rem;
}
.teaser h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem;
  margin-bottom: .5rem; line-height: 1.3;
}
.teaser h3 a {
  color: var(--evergreen); text-decoration: none;
  display: inline-block; padding: .15rem 0;
}
.teaser h3 a:hover, .teaser h3 a:focus-visible { color: var(--glacier); text-decoration: underline; }
.teaser p { font-size: .98rem; }

/* Key dates strip */
.dates-strip {
  background: var(--ice); border-radius: 6px;
  padding: 1.25rem 1.75rem;
  display: flex; gap: 2rem; align-items: center; flex-wrap: wrap;
  font-family: var(--font-ui); font-size: 1rem;
}
.dates-strip strong { color: var(--evergreen); }
.dates-strip a { color: var(--glacier); }

/* CTA trio */
.cta-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.cta-card {
  background: var(--evergreen); color: var(--ice);
  border-radius: 6px; padding: 1.75rem 1.6rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.cta-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--white); }
.cta-card p { font-size: 1rem; flex: 1; }
.cta-card a {
  align-self: flex-start;
  font-family: var(--font-ui); font-size: 1rem; text-decoration: none;
  background: var(--glacier); color: var(--white);
  padding: .65rem 1.3rem; border-radius: 4px;
}
.cta-card a:hover { background: var(--glacier-dark); }

/* Video welcome slot: ships hidden until Mike's short welcome video is ready.
   To activate: (1) upload the video to the McGraw4Mayor YouTube channel,
   (2) replace YOUTUBE_VIDEO_ID in the loadWelcomeVideo() script below with
   the real video ID, (3) replace video-poster-placeholder.jpg with a real
   still frame from the video, (4) delete this display:none rule. Click-to-play
   by design: no YouTube request fires until the visitor clicks, so this stays
   off Netlify's bandwidth entirely and never autoplays with sound. */
.video-welcome { display: none; }
.video-welcome .video-card { max-width: 640px; margin: 0 auto; text-align: center; }
.video-welcome .caption {
  font-family: var(--font-ui); color: var(--pine); font-size: .95rem; margin-bottom: .75rem;
}
.video-welcome .player-frame {
  position: relative; border-radius: 6px; overflow: hidden;
  aspect-ratio: 16 / 9; cursor: pointer; background: var(--evergreen); border: none; padding: 0; width: 100%;
}
.video-welcome .player-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.82) contrast(1.04);
}
.video-welcome .play-button {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(23,54,43,.85); display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.video-welcome .player-frame:hover .play-button,
.video-welcome .player-frame:focus-visible .play-button { background: var(--glacier); }
.video-welcome .play-button svg { fill: var(--white); margin-left: 4px; }
.video-welcome iframe { width: 100%; height: 100%; border: none; display: block; }

/* Endorsements slot: ships hidden; enable when quotes arrive (same as About) */
.endorsements { display: none; }
.endorsements .quote-card {
  background: var(--white); border: 1px solid var(--ice); border-radius: 6px;
  padding: 1.25rem 1.5rem; margin-bottom: 1rem;
}
.endorsements .who {
  font-family: var(--font-ui); font-size: .85rem; color: var(--pine); margin-top: .5rem;
}

footer {
  background: var(--evergreen); color: var(--ice);
  text-align: center; padding: 2rem 1.5rem; font-size: .9rem;
  font-family: var(--font-ui);
}

/* Footer social links (added July 13, 2026) */
.social-links { margin-top: 1rem; display: flex; justify-content: center; gap: 1rem; }
.social-links a { color: var(--pale-pine); display: inline-flex; transition: color .15s; }
.social-links a:hover { color: var(--white); }
/* YouTube slot: hidden until the channel exists. Once live, remove this rule
   and set the real href on the .yt-slot link below. */
.social-links .yt-slot { display: none; }
