/* ==========================================================================
   FA Connect California — site styles (home + inner pages)
   ========================================================================== */

:root {
  --red: #e5232b;
  --red-dark: #c41a21;
  --red-soft: rgba(229, 35, 43, 0.14);
  --red-glow: rgba(229, 35, 43, 0.45);

  --ink: #0f1013;
  --ink-2: #1a1b1f;
  --text: #17181b;
  --muted: #5b5f68;
  --muted-2: #8a8e97;

  --white: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-gray: #eceef1;
  --line: #e3e5e9;

  --dark: #0b0c0e;
  --dark-2: #131417;
  --glass: rgba(20, 21, 25, 0.58);
  --glass-border: rgba(255, 255, 255, 0.13);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 10px;

  --nav-h: 116px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Standard, generous section rhythm (deliberately roomier than the mockup) */
  --section-y: clamp(72px, 8.5vw, 112px);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-snap: cubic-bezier(0.22, 1.15, 0.36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body { overflow-x: clip; }

img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }

svg { fill: currentColor; }
svg.stroke, svg .stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg .cut { fill: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 8px;
  background: var(--red); color: #fff; font-weight: 700;
  transform: translateY(-200%); transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.accent { color: var(--red); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px; background: var(--red); border-radius: 2px; flex: none;
}
.eyebrow--plain::before { display: none; }
.eyebrow--plain { color: rgba(255, 255, 255, 0.8); }

.section-title {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--text);
}
.section-sub {
  margin-top: 14px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
}
.section-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 400px;
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-bottom: clamp(36px, 4vw, 52px);
}
.section-head--dark .section-title { color: #fff; }
.section-head--dark .section-sub { color: rgba(255, 255, 255, 0.72); }
.section-head--dark .eyebrow { color: rgba(255, 255, 255, 0.85); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 28px;
  border-radius: var(--radius-xs);
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out),
              background-color 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.22s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary {
  color: #fff;
  background-color: var(--red);
  /* glossy finish: light band across the top, slight shade at the bottom */
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 48%, rgba(0, 0, 0, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 18px rgba(229, 35, 43, 0.35), 0 10px 26px -10px var(--red-glow);
}
.btn--primary:hover {
  background-color: var(--red-dark);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 26px rgba(229, 35, 43, 0.5), 0 16px 30px -10px var(--red-glow);
}

.btn--ghost {
  color: #fff; background: rgba(8, 8, 10, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-transform: none; letter-spacing: 0.02em; font-size: 15px; font-weight: 500;
}
.btn--ghost .icon { fill: currentColor; stroke: none; width: 17px; height: 17px; }
.btn--ghost:hover { border-color: #fff; background: rgba(8, 8, 10, 0.55); transform: translateY(-2px); }
.btn--ghost:hover .icon { transform: none; }

.btn--outline {
  color: #fff;
  /* frosted glass over the artwork with a glossy highlight and a soft white halo */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.14) 100%),
    rgba(70, 6, 10, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 24px rgba(255, 210, 210, 0.3), 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}
.btn--outline:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.1) 100%),
    rgba(90, 8, 12, 0.5);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 34px rgba(255, 210, 210, 0.45), 0 16px 34px -14px rgba(0, 0, 0, 0.65);
}

.btn--dark { color: #fff; background: var(--ink); border: 1px solid var(--ink); box-shadow: 0 10px 24px -14px rgba(15, 16, 19, 0.6); }
.btn--dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(15, 16, 19, 0.7); }
.btn--light { color: var(--text); background: #fff; border: 1px solid var(--line); }
.btn--light:hover { color: var(--red); border-color: var(--red); transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(229, 35, 43, 0.4); }
.btn--light .icon { stroke: currentColor; }

.btn--sm { padding: 13px 24px; font-size: 12px; }
.btn--lg { padding: 20px 36px; font-size: 14px; }
.btn--plain { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 700; }

.btn--glow { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 44px 2px rgba(229, 35, 43, 0.5), 0 12px 32px -8px rgba(229, 35, 43, 0.7); }
.btn--glow:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 56px 4px rgba(229, 35, 43, 0.6), 0 16px 36px -8px rgba(229, 35, 43, 0.8); }

/* --------------------------------------------------------------------------
   02 · NAV
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  color: #fff;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              backdrop-filter 0.35s var(--ease-out);
  animation: nav-in 0.7s var(--ease-out) both;
}
.nav.is-frosted,
.nav.is-open {
  background: rgba(10, 10, 12, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav__inner {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav__brand { justify-self: start; }
.nav__brand img { width: 88px; height: auto; transition: transform 0.3s var(--ease-out); }
.nav__brand:hover img { transform: rotate(-6deg); }

.nav__links { position: relative; display: flex; gap: 48px; }
.nav__link {
  position: relative; padding: 8px 0;
  font-size: 17px; font-weight: 500; color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__underline {
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--red); border-radius: 2px;
  transform: translateX(var(--x, 0));
  transition: transform 220ms var(--ease-out), width 220ms var(--ease-out);
  will-change: transform, width;
}
.nav__underline.no-transition { transition: none; }

.nav__actions { justify-self: end; display: flex; align-items: center; gap: 16px; }
.nav__actions .btn { padding: 16px 30px; font-size: 13.5px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: center; gap: 5px; border-radius: 8px;
}
.nav__toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform 0.25s var(--ease-out), opacity 0.2s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer — slides in from the right (shown only ≤ 960px, see Responsive) */
.nav__backdrop, .nav__mobile { display: none; }

@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   01 · HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100vh, 980px);
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 160px;
  color: #fff;
  background: var(--dark);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__poster,
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__video { opacity: 0; transition: opacity 400ms ease; }   /* cross-fades in over 400ms */
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.55) 0%, rgba(8, 8, 10, 0.18) 35%, rgba(8, 8, 10, 0.25) 70%, rgba(11, 12, 14, 0.92) 100%),
    radial-gradient(60% 60% at 25% 55%, rgba(0, 0, 0, 0.35), transparent 70%);
}

.hero__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero__panel {
  max-width: 790px;
  padding: clamp(28px, 4vw, 46px) clamp(26px, 4vw, 48px) clamp(30px, 4vw, 44px);
  border-radius: 24px;
  animation: panel-rise 650ms var(--ease-soft) 150ms both;   /* rises 28px / 650ms */
}
@keyframes panel-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__panel .eyebrow { margin-bottom: 14px; font-size: 12px; letter-spacing: 0.3em; }
.hero__title {
  font-size: clamp(42px, 5.3vw, 72px);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.03em;
}
.hero__lead { margin-top: 20px; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, 0.9); }
.hero__desc { margin-top: 12px; max-width: 620px; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.hero__tagline { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__side {
  align-self: flex-end;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  margin-bottom: -40px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; line-height: 2.1;
  color: rgba(255, 255, 255, 0.9);
  animation: fade-in 0.8s var(--ease-out) 700ms both;
}
.hero__side-line { display: block; width: 1px; height: 96px; margin-left: 4px; background: rgba(255, 255, 255, 0.55); }

/* Scroll cue — lives in the Start Here layer so it straddles the panel edge */
.scroll-cue {
  position: absolute; left: 50%; top: -46px; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  animation: fade-in 0.8s var(--ease-out) 900ms both;
}
.mouse {
  position: relative; width: 22px; height: 36px; border: 1.5px solid rgba(255, 255, 255, 0.85); border-radius: 12px;
  background: rgba(10, 10, 12, 0.35);
}
.mouse__wheel {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--red);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(9px); opacity: 0.2; } }
.scroll-cue__line { width: 2px; height: 34px; margin-top: -4px; background: var(--red); box-shadow: 0 0 12px var(--red); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   03 · START HERE — dark glass panel overlapping the hero
   -------------------------------------------------------------------------- */
.start {
  position: relative;
  margin-top: -56px;
  padding: calc(var(--section-y) - 8px) 0 var(--section-y);
  color: #fff;
  background: var(--dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px 28px 0 0;
  isolation: isolate;
  z-index: 2;
}
.start__bg {
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(229, 35, 43, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(19, 20, 23, 0.55), rgba(19, 20, 23, 0.94) 75%),
    url("../assets/city-blur.jpg") center / cover no-repeat;
}
.start .section-head { align-items: flex-start; }
.start__aside {
  flex: none;
  padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; line-height: 2.2;
  color: rgba(255, 255, 255, 0.55);
}

.start__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.path-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 236px;
  padding: 32px 30px 30px;
  border-radius: 20px;
  background:
    radial-gradient(70% 60% at 6% 0%, rgba(229, 35, 43, 0.42), rgba(229, 35, 43, 0.12) 42%, transparent 72%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025) 60%, rgba(20, 20, 24, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow:
    -8px -8px 34px -14px rgba(229, 35, 43, 0.55),
    0 30px 50px -30px rgba(229, 35, 43, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
/* red border light at the top-left corner, fading to the neutral border */
.path-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--red) 0%, rgba(229, 35, 43, 0.55) 18%, rgba(255, 255, 255, 0.18) 42%, transparent 62%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.path-card::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 26px 6px rgba(229, 35, 43, 0.45);
  opacity: 0.9; transition: opacity 0.35s;
}
.path-card__icon { width: 52px; height: 52px; color: var(--red); transition: transform 0.35s var(--ease-out); }
.path-card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.path-card__title { margin-top: 22px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.path-card__text { margin-top: 8px; max-width: 250px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }
.path-card__go {
  position: absolute; right: 26px; bottom: 26px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--red); color: var(--red);
  transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease-out);
}
.path-card__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* hover: 8px lift, brighter border, icon shift */
.path-card:hover,
.path-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    -8px -8px 40px -12px rgba(229, 35, 43, 0.75),
    0 34px 60px -28px rgba(229, 35, 43, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.path-card:hover .path-card__icon { transform: translate(4px, -4px) scale(1.06); }
.path-card:hover .path-card__go { background: var(--red); color: #fff; transform: translateX(4px); }
.path-card:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   SERVICES
   -------------------------------------------------------------------------- */
.services { padding: var(--section-y) 0; background: var(--bg-soft); }

.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 34px 32px 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #eceef2;
  box-shadow: 0 14px 34px -24px rgba(15, 16, 19, 0.25);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -24px rgba(15, 16, 19, 0.3); border-color: #e3e5ea; }
.service-card__icon { width: 46px; height: 46px; color: var(--red); }
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__icon--stroke svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card__title { margin-top: 20px; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; color: var(--text); }
.service-card__text { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
.service-card__text .chev { display: inline-block; vertical-align: -3px; margin-left: 4px; width: 16px; height: 16px; fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease-out); }
.service-card:hover .chev { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s;
}
.chip svg { width: 20px; height: 20px; color: var(--red); }
.chip .stroke { stroke-width: 2; }
.chip--more svg:first-child { color: var(--text); width: 18px; }
.chip--more svg:last-child { width: 16px; color: var(--text); }
.chip:hover { transform: translateY(-2px); border-color: #cfd3d9; box-shadow: 0 10px 20px -14px rgba(15, 16, 19, 0.35); }

/* --------------------------------------------------------------------------
   04 · PATHWAY
   -------------------------------------------------------------------------- */
.pathway { padding: var(--section-y) 0; background: var(--bg-gray); }

.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-left: 44px;
  margin-top: 10px;
}
.steps__track {
  position: absolute; left: 0; right: 0; top: 25px; height: 2px;
  background-image: linear-gradient(90deg, #b9bdc5 0 6px, transparent 6px 12px);
  background-size: 12px 2px;
  pointer-events: none;
}
.steps__progress {
  position: absolute; inset: 0;
  background: var(--red);
  transform: scaleX(var(--p, 0)); transform-origin: left center;
  box-shadow: 0 0 10px rgba(229, 35, 43, 0.5);
}

.step {
  position: relative;
  opacity: 0; transform: translateY(18px) scale(0.96);
  transition: opacity 0.5s var(--ease-out), transform 0.55s var(--ease-snap);
}
.step.is-active { opacity: 1; transform: none; }
.step + .step::before {
  /* chevron arrow at the end of each dashed segment */
  content: ""; position: absolute; left: -36px; top: 20px;
  width: 9px; height: 9px;
  border-right: 2px solid #6b6f78; border-bottom: 2px solid #6b6f78;
  transform: rotate(-45deg);
}
.step__marks { position: relative; display: flex; align-items: center; gap: 10px; }
.step__num {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 20px; font-weight: 700;
  box-shadow: 0 0 0 6px var(--bg-gray);
  transition: transform 0.4s var(--ease-snap);
}
.step__num--red { background: var(--red); box-shadow: 0 0 0 6px var(--bg-gray), 0 8px 20px -6px var(--red-glow); }
.step__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--ink);
  box-shadow: 0 0 0 6px var(--bg-gray), 0 10px 24px -10px rgba(15, 16, 19, 0.35);
}
.step__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step__icon svg .fill { fill: currentColor; stroke: none; }
.step__title { margin: 22px 0 0 62px; font-size: 18px; font-weight: 700; color: var(--text); }
.step__text { margin: 6px 0 0 62px; max-width: 250px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* --------------------------------------------------------------------------
   NALOXONE
   -------------------------------------------------------------------------- */
.naloxone {
  position: relative; padding: calc(var(--section-y) * 0.7) 0;
  color: #fff; background: #5a0a0f; overflow: hidden; isolation: isolate;
}
.naloxone__bg { position: absolute; inset: 0; z-index: -1; }
.naloxone__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.naloxone__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(50, 4, 7, 0.62) 0%, rgba(50, 4, 7, 0.25) 48%, rgba(30, 2, 4, 0.45) 100%),
    linear-gradient(180deg, rgba(30, 2, 4, 0.05), rgba(30, 2, 4, 0.35));
}
.naloxone__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.naloxone .eyebrow { color: rgba(255, 255, 255, 0.85); }
.naloxone .eyebrow::before { background: #fff; }
.naloxone .section-title { color: #fff; font-size: clamp(32px, 3.8vw, 48px); }
.naloxone .section-sub { color: rgba(255, 255, 255, 0.85); margin-top: 10px; }

/* --------------------------------------------------------------------------
   LOCATION
   -------------------------------------------------------------------------- */
.location { padding: var(--section-y) 0; background: var(--bg-soft); }
.location__inner { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.location .section-desc { max-width: 440px; margin-top: 18px; font-size: 17px; }
.location__facts { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 34px; }
.location__facts li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--text); }
.location__facts svg { flex: none; width: 24px; height: 24px; color: var(--red); }
.location__facts .stroke { stroke-width: 2.2; }
.location__facts a:hover { color: var(--red); }

.map {
  position: relative; width: 100%; height: clamp(280px, 30vw, 420px);
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgba(15, 16, 19, 0.45);
  background: #e9ebee;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.45) contrast(1.02); }
.map__card {
  position: absolute; top: 24%; left: 56%; max-width: 40%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 14px;
  background: #fff; box-shadow: 0 16px 34px -16px rgba(15, 16, 19, 0.45);
  font-size: 13px; line-height: 1.45; color: var(--text);
  pointer-events: none;
}
.map__card svg { width: 30px; height: 30px; color: var(--red); }
.map__card strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   06 · CTA — red light follows cursor
   -------------------------------------------------------------------------- */
.cta {
  position: relative; padding: calc(var(--section-y) * 0.8) 0;
  color: #fff; background: var(--dark); overflow: hidden; isolation: isolate;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.cta__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0.45) 0%, rgba(11, 12, 14, 0.15) 45%, #0a0a0b 100%);
}
.cta__light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(560px circle at var(--x, 78%) var(--y, 50%),
              rgba(229, 35, 43, 0.32), rgba(229, 35, 43, 0.1) 38%, transparent 68%);
  opacity: 0.9;
  transition: opacity 0.5s var(--ease-out);
}
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta .eyebrow { color: rgba(255, 255, 255, 0.85); }
.cta .section-title { color: #fff; }
.cta .section-sub { color: rgba(255, 255, 255, 0.85); margin-top: 10px; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer { background: #0a0a0b; color: #fff; padding: 56px 0 30px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__brand img { width: 86px; height: auto; }
.footer__brand span { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: rgba(255, 255, 255, 0.72); }
.footer__brand strong { font-size: 15px; font-weight: 700; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.footer__nav a:hover { color: var(--red); }
.footer__social { display: flex; align-items: center; gap: 22px; }
.footer__social a { color: #fff; opacity: 0.9; transition: opacity 0.2s, transform 0.25s var(--ease-out); }
.footer__social a:hover { opacity: 1; transform: translateY(-2px); }
.footer__social svg { width: 22px; height: 22px; }
.footer__social svg .cut { fill: #0a0a0b; }
.footer__social .stroke { stroke-width: 1.9; }
.footer__divider { width: 1px; height: 54px; margin-left: 10px; background: rgba(255, 255, 255, 0.25); }
.footer__tagline { font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.9; color: rgba(255, 255, 255, 0.85); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px; color: rgba(255, 255, 255, 0.7);
}
.footer__bottom nav { display: flex; }
.footer__bottom nav a { padding: 0 16px; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.footer__bottom nav a:first-child { border-left: 0; }
.footer__bottom nav a:last-child { padding-right: 0; }
.footer__bottom nav a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* cards stagger 100ms each */
.stagger > * { opacity: 0; transform: translateY(24px); }
.stagger.in > * {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 100ms);
}
/* after entrance, hand transforms back to the hover styles */
.stagger.done > * { transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); transition-delay: 0s; }

/* ==========================================================================
   Inner pages & shared components
   ========================================================================== */

/* Page hero (Community Services, Resources, About, Get Support) ----------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 96px)) 0 clamp(56px, 7vw, 88px);
  color: #fff; background: var(--dark);
  overflow: hidden; isolation: isolate;
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 70% at 0% 100%, rgba(229, 35, 43, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.72) 0%, rgba(8, 8, 10, 0.5) 50%, rgba(11, 12, 14, 0.9) 100%);
}
.page-hero--compact { padding-bottom: clamp(44px, 5vw, 64px); }
.page-hero__inner { animation: panel-rise 650ms var(--ease-soft) 120ms both; }   /* full container — text aligns with the sections below */
.page-hero .eyebrow { margin-bottom: 16px; letter-spacing: 0.3em; }
.page-hero__title { max-width: 820px; font-size: clamp(38px, 5vw, 66px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.page-hero__lead { margin-top: 20px; max-width: 660px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, 0.86); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.page-hero__actions .btn--ghost { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 700; }

/* Generic light sections --------------------------------------------------- */
.section { padding: var(--section-y) 0; }
.section--soft { background: var(--bg-soft); }
.section--gray { background: var(--bg-gray); }
.section--white { background: #fff; }
.section-head--stack { flex-direction: column; align-items: flex-start; gap: 18px; }
.section-head--stack .section-desc { max-width: 720px; }

/* WHO WE HELP (home) ------------------------------------------------------- */
.who__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.who__text .section-desc { max-width: 560px; margin-top: 18px; font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--text);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.dark-card {
  position: relative; overflow: hidden;
  padding: clamp(30px, 3.5vw, 46px);
  border-radius: 24px; color: #fff;
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(229, 35, 43, 0.5), rgba(229, 35, 43, 0.12) 40%, transparent 70%),
    linear-gradient(160deg, #1b1c21, #0e0f12 70%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -8px -8px 40px -16px rgba(229, 35, 43, 0.6), 0 30px 60px -36px rgba(0, 0, 0, 0.7);
}
.dark-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--red) 0%, rgba(229, 35, 43, 0.5) 18%, rgba(255, 255, 255, 0.16) 42%, transparent 62%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  pointer-events: none;
}
.dark-card__title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.dark-card__text { margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }
.dark-card .btn { margin-top: 26px; }

/* RECOVERY CONNECTION ------------------------------------------------------ */
.recovery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.recovery__text .section-desc { max-width: 520px; margin-top: 18px; font-size: 17px; }
.recovery__text .section-desc + .section-desc { margin-top: 14px; }
.program-list { display: grid; gap: 16px; }
.program-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  padding: 26px 28px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 34px -26px rgba(15, 16, 19, 0.35);
}
.program-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.program-card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.program-card__icon img { width: 46px; height: auto; }
.program-card__icon--logo { background: var(--ink); }
.program-card__kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }
.program-card__title { margin-top: 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.program-card__text { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.program-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--red); }
.program-card__link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.program-card__link:hover svg { transform: translateX(4px); }

.program-card__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
.program-card__links .program-card__link { margin-top: 0; }
.program-card__link--muted { color: var(--muted); }
.program-card__link--muted:hover { color: var(--red); }

/* LOCATION action buttons -------------------------------------------------- */
.location__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.location__actions .btn--sm { padding-inline: 20px; }

/* SERVICE BLOCKS (Community Services page) --------------------------------- */
.eyebrow__badge {
  display: inline-flex; align-items: center; margin-left: 4px; padding: 5px 10px; border-radius: 999px;
  background: var(--red-soft); color: var(--red); font-size: 11px; letter-spacing: 0.14em;
}
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc-block {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 32px 32px 30px;
  border-radius: 24px;
  background: #fff; border: 1px solid #e9ebef;
  box-shadow: 0 1px 2px rgba(15, 16, 19, 0.04), 0 22px 44px -34px rgba(15, 16, 19, 0.3);
  overflow: hidden; isolation: isolate;
  scroll-margin-top: calc(var(--nav-h) + 24px);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
/* red gradient border + soft glow, revealed on hover */
.svc-block::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 1;
  background: linear-gradient(135deg, var(--red) 0%, rgba(229, 35, 43, 0.45) 30%, rgba(229, 35, 43, 0.08) 70%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s var(--ease-out); pointer-events: none;
}
.svc-block::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(60% 50% at 0% 0%, rgba(229, 35, 43, 0.1), transparent 70%);
  opacity: 0; transition: opacity 0.35s var(--ease-out);
}
.svc-block:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 1px 2px rgba(15, 16, 19, 0.04), 0 34px 60px -32px rgba(229, 35, 43, 0.35); }
.svc-block:hover::before, .svc-block:hover::after { opacity: 1; }

.svc-block__num {
  position: absolute; top: 20px; right: 26px;
  font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.05em;
  color: rgba(15, 16, 19, 0.06);
  transition: color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.svc-block:hover .svc-block__num { color: rgba(229, 35, 43, 0.18); transform: translateY(-2px); }

.svc-block__icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff6067 0%, var(--red) 55%, #c41a21 100%);
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(229, 35, 43, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.35s var(--ease-snap);
}
.svc-block:hover .svc-block__icon { transform: scale(1.06) rotate(-3deg); }
.svc-block__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-block__icon svg .fill { fill: currentColor; stroke: none; }

.svc-block__title { margin-top: 24px; font-size: 23px; font-weight: 700; letter-spacing: -0.015em; }
.svc-block__text { margin-top: 10px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.svc-block__text + .svc-block__text { margin-top: 10px; font-weight: 600; color: var(--text); font-size: 14.5px; }

.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 18px; width: 100%; margin-top: 14px; }
.svc-list li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5232b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.svc-block__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding: 11px 18px;
  position: relative; top: 24px;             /* keeps a steady gap above the pill, even in short cards */
  margin-bottom: 24px;
  border-radius: 999px; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--text);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.svc-block__cta svg { width: 16px; height: 16px; color: var(--red); transition: transform 0.25s var(--ease-out), color 0.25s; }
.svc-block__cta:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.svc-block__cta:hover svg { color: #fff; transform: translateX(4px); }

/* Naloxone — page variant with list + CTA ---------------------------------- */
.naloxone--page { padding: var(--section-y) 0; }
.naloxone--page .naloxone__inner { align-items: flex-start; }
.naloxone--page .section-sub { max-width: 560px; }
.naloxone__list { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 28px; margin-top: 24px; }
.naloxone__list li { position: relative; padding-left: 24px; font-size: 15px; font-weight: 500; color: #fff; }
.naloxone__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; }
.naloxone__side { flex: none; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.naloxone__side .btn--ghost { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 700; }

/* ABOUT ---------------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__copy .section-desc { max-width: 560px; margin-top: 18px; font-size: 17px; }
.about__copy .section-desc + .section-desc { margin-top: 14px; }
.about__media { position: relative; margin: 0; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(15, 16, 19, 0.5); aspect-ratio: 5 / 4; background: var(--dark); }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.about__media figcaption {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  padding: 18px 22px; border-radius: 16px; color: #fff;
  background: rgba(20, 21, 25, 0.62); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 15px; line-height: 1.55;
}
.about__media figcaption strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }

.quote {
  position: relative; margin-top: 30px; padding: 26px 30px 26px 34px;
  border-left: 3px solid var(--red); border-radius: 0 18px 18px 0;
  background: var(--bg-soft);
  font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; color: var(--text);
}
.quote span { color: var(--red); }

.mission-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.mission-card {
  padding: clamp(30px, 3.5vw, 46px);
  border-radius: 24px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 34px -24px rgba(15, 16, 19, 0.25);
}
.mission-card .eyebrow { margin-bottom: 14px; }
.mission-card__text { font-size: clamp(19px, 1.9vw, 25px); font-weight: 600; line-height: 1.4; letter-spacing: -0.015em; color: var(--text); }
.philosophy { display: grid; gap: 14px; margin-top: 8px; }
.philosophy li { display: flex; align-items: center; gap: 18px; font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.philosophy li::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--red); flex: none; }
.philosophy li b { color: var(--red); font-weight: inherit; }

/* GET SUPPORT form ----------------------------------------------------------- */
.support__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-card {
  padding: clamp(26px, 3.5vw, 44px);
  border-radius: 24px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(15, 16, 19, 0.35);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.form-card__title { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.form-card__intro { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.form { display: grid; gap: 22px; margin-top: 30px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { font-size: 14px; font-weight: 600; color: var(--text); padding: 0; }
.field > legend { margin-bottom: 8px; }
.field .req { color: var(--red); }
.field small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); font-size: 15.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: #9aa0aa; box-shadow: 0 0 0 4px rgba(15, 16, 19, 0.06); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 35, 43, 0.12); }
.field__error { display: none; font-size: 13px; color: var(--red); }
.field.is-invalid .field__error { display: block; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c9cdd4; background: #fff; flex: none; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.pill--check::before { border-radius: 5px; }
.pill:hover { border-color: #b9bec7; }
.pill:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill:has(input:checked)::before { background: var(--red); border-color: var(--red); box-shadow: inset 0 0 0 3px var(--ink); }
.pill:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.5; color: var(--text); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.field.is-invalid .consent { color: var(--red); }

.form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__error { padding: 14px 18px; border-radius: 12px; background: rgba(229, 35, 43, 0.08); border: 1px solid rgba(229, 35, 43, 0.35); font-size: 14.5px; color: #9f151b; }
.form__error a { font-weight: 700; text-decoration: underline; }
.form__note { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.form__note a { font-weight: 600; color: var(--text); }
.btn.is-loading { opacity: 0.7; pointer-events: none; }

.form-success { text-align: center; padding: clamp(16px, 2vw, 24px) 0; }
.form-success__icon { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.form-success__icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form-success h2 { margin-top: 22px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.form-success p { margin: 12px auto 0; max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.form-success .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.aside-stack { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 24px); }
.aside-card { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 34px -26px rgba(15, 16, 19, 0.3); }
.aside-card--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.aside-card__title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.aside-card__text { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.aside-card--dark .aside-card__text { color: rgba(255, 255, 255, 0.75); }
.aside-card .btn { margin-top: 18px; width: 100%; }
.aside-card__facts { display: grid; gap: 14px; margin-top: 18px; font-size: 14px; line-height: 1.5; }
.aside-card__facts li { display: flex; gap: 12px; align-items: flex-start; }
.aside-card__facts svg { flex: none; width: 20px; height: 20px; color: var(--red); }
.aside-card__facts .stroke { stroke-width: 2.2; }
.aside-card__facts a:hover { color: var(--red); }
.aside-card__phone { display: block; margin-top: 10px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.aside-card__phone:hover { color: var(--red); }

.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.next-step { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.next-step__num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; }
.next-step:first-child .next-step__num { background: var(--red); }
.next-step h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.next-step p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.hidden-field { position: absolute !important; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* THANK YOU ------------------------------------------------------------------ */
.thanks { min-height: 72vh; display: flex; align-items: center; }
.thanks .page-hero__title { max-width: 720px; }
.thanks__icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 26px; background: rgba(229, 35, 43, 0.18); border: 1px solid rgba(229, 35, 43, 0.5); color: #fff; }
.thanks__icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* MOBILE BOTTOM BAR — CALL | GET SUPPORT ------------------------------------ */
.mobile-bar { display: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__links { gap: 32px; }
}

@media (max-width: 960px) {
  :root { --nav-h: 92px; }
  .nav__brand img { width: 68px; }
  .nav__inner { grid-template-columns: auto 1fr auto; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions .btn { display: none; }

  /* drawer */
  .nav__backdrop {
    display: block; position: fixed; inset: 0; z-index: 97;
    background: rgba(5, 5, 7, 0.55);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0s 0.35s;
  }
  body.menu-open .nav__backdrop { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease-out); }
  .nav__mobile {
    display: flex; flex-direction: column; gap: 2px;
    position: fixed; top: var(--nav-h); right: 0; bottom: 0; z-index: 98;
    width: min(84vw, 360px);
    padding: 18px 26px calc(28px + env(safe-area-inset-bottom, 0px));
    background: rgba(12, 12, 15, 0.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.85);
    overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.42s var(--ease-soft), visibility 0s 0.42s;
  }
  body.menu-open .nav__mobile { transform: none; visibility: visible; transition: transform 0.42s var(--ease-soft); }
  .nav__mobile-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 17px 2px; font-size: 19px; font-weight: 600; color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0; transform: translateX(18px);
    transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out), color 0.2s;
  }
  .nav__mobile-link::after {
    content: ""; width: 8px; height: 8px; flex: none;
    border-right: 1.5px solid rgba(255, 255, 255, 0.45); border-top: 1.5px solid rgba(255, 255, 255, 0.45);
    transform: rotate(45deg);
  }
  .nav__mobile-link[aria-current="page"] { color: var(--red); }
  .nav__mobile-link--call { color: rgba(255, 255, 255, 0.85); font-weight: 500; }
  .nav__mobile-link--call::after { display: none; }
  .nav__mobile .btn {
    margin-top: auto; width: 100%; padding-block: 18px;
    opacity: 0; transform: translateX(18px);
    transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out), background-color 0.22s, box-shadow 0.22s;
  }
  body.menu-open .nav__mobile-link,
  body.menu-open .nav__mobile .btn { opacity: 1; transform: none; transition-delay: calc(90ms + var(--i, 0) * 45ms); }
  body.menu-open { overflow: hidden; }

  .hero { padding-bottom: 150px; }
  .hero__side { display: none; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-desc { max-width: 560px; }

  .start__aside { display: none; }
  .start__cards, .services__grid { grid-template-columns: 1fr; }
  .path-card { min-height: 0; padding-right: 96px; }

  .location__inner { grid-template-columns: 1fr; }
  .naloxone__inner, .cta__inner { flex-direction: column; align-items: flex-start; }

  .footer__top { flex-direction: column; align-items: flex-start; gap: 28px; }

  .who__grid, .recovery__grid, .about__grid, .mission-grid, .support__grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .next-steps { grid-template-columns: 1fr; }
  .aside-stack { position: static; }
  .naloxone__list { grid-template-columns: 1fr; }

  /* persistent CALL | GET SUPPORT — floating frosted dock */
  body { padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar {
    position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 90;
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(14, 15, 18, 0.78);
    backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: dock-in 0.6s var(--ease-soft) 0.45s both;
    transition: transform 0.35s var(--ease-out), opacity 0.3s;
  }
  .mobile-bar .btn { height: 52px; padding: 0 16px; border-radius: 999px; font-size: 12.5px; letter-spacing: 0.12em; gap: 10px; }
  .mobile-bar .btn:hover { transform: none; }
  .mobile-bar .btn--ghost {
    background: transparent; border: 0; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    text-transform: uppercase; font-weight: 700; color: #fff;
  }
  .mobile-bar .btn--ghost .icon {
    width: 32px; height: 32px; padding: 8px; border-radius: 50%;
    background: rgba(229, 35, 43, 0.2); color: var(--red);
    box-shadow: inset 0 0 0 1px rgba(229, 35, 43, 0.35);
  }
  .mobile-bar .btn--primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 22px rgba(229, 35, 43, 0.45), 0 10px 22px -10px var(--red-glow); }
  .mobile-bar .btn--primary .icon { width: 16px; height: 16px; }
  body.menu-open .mobile-bar { animation: none; transform: translateY(140%); opacity: 0; }
  @keyframes dock-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

  /* recovery cards: icon above the text, links stacked */
  .program-card { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px; }
  .program-card__links { flex-direction: column; gap: 8px; }
}

@media (max-width: 767px) {
  .hero__actions .btn { width: 100%; }
  .page-hero__actions .btn, .location__actions .btn, .dark-card .btn { width: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .quote { font-size: 18px; }
  .svc-list { grid-template-columns: 1fr; }
  .svc-block { padding: 26px 24px 24px; }
  .svc-block__num { font-size: 40px; top: 18px; right: 22px; }

  /* vertical pathway */
  .steps { grid-template-columns: 1fr; gap: 40px; padding-left: 0; padding-top: 4px; }
  .steps__track {
    left: 25px; right: auto; top: 0; bottom: 0; width: 2px; height: auto;
    background-image: linear-gradient(180deg, #b9bdc5 0 6px, transparent 6px 12px);
    background-size: 2px 12px;
  }
  .steps__progress { transform: scaleY(var(--p, 0)); transform-origin: center top; }
  .step + .step::before { left: 21px; top: -26px; transform: rotate(45deg); }

  .map__card { top: auto; bottom: 16px; left: 16px; right: 16px; max-width: none; }
  .footer__social { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .btn { padding: 15px 22px; }
  .chips { gap: 8px; }
  .chip { padding: 10px 13px; font-size: 13px; gap: 8px; }
  .chip svg { width: 18px; height: 18px; }
  .path-card { padding: 26px 22px 26px; padding-right: 22px; }
  .path-card__go { position: static; margin-top: 18px; }
}

/* --------------------------------------------------------------------------
   Reduced motion — respect the user's preference everywhere
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .stagger > *, .step { opacity: 1 !important; transform: none !important; }
  .hero__video { display: none; }
  .steps__progress { transform: none !important; }
  .cta__light { background: radial-gradient(560px circle at 78% 50%, rgba(229, 35, 43, 0.3), rgba(229, 35, 43, 0.1) 38%, transparent 68%); }
}

/* Touch / no-hover devices: keep the CTA glow static (JS also opts out) */
@media (hover: none), (pointer: coarse) {
  .cta__light { background: radial-gradient(560px circle at 78% 50%, rgba(229, 35, 43, 0.3), rgba(229, 35, 43, 0.1) 38%, transparent 68%); }
}
