/* =========================================================
   ThrivePoint Behavioral Health — Design System
   -----------------------------------------------------------
   Colour system is derived directly from the logo artwork.
   Measured from assets/img/logo.png (pixel-sampled):
     Navy   #061C4B  hsl(221, 85%, 16%)  — 34.2% of logo ink  → PRIMARY
     Gold   #BC8730  hsl( 37, 59%, 46%)  — 28.6% of logo ink  → SECONDARY
     Green  #376336  hsl(120, 29%, 30%)  — 10.2% of logo ink  → ACCENT
   Direction: "Calm & Compassionate" — navy authority, gold warmth,
   green growth, on warm ivory. Every pairing below is WCAG-checked.
   ========================================================= */

:root {
  /* ---- Core brand (straight from the logo) ---- */
  --color-primary: #061c4b;          /* logo navy */
  --color-primary-hover: #0d2e70;    /* lifted navy — 12.79:1 with white */
  --color-primary-active: #04122f;   /* pressed navy — 18.54:1 with white */
  --color-secondary: #bc8730;        /* logo gold */
  --color-secondary-hover: #c9963f;  /* lifted gold — keeps navy label legible */
  --color-secondary-active: #d2a250; /* pressed gold, paired with inset shadow */
  --color-accent: #376336;           /* logo green */
  --color-accent-hover: #2a4e29;

  /* ---- Surfaces ---- */
  --color-background: #ffffff;
  --color-background-soft: #f7f5f1;  /* warm ivory — warmth without a colour clash */
  --color-background-dark: #04142f;  /* deep navy, footer */
  --color-surface: #ffffff;
  --tint-navy: #eef1f7;
  --tint-gold: #fbf3e4;
  --tint-green: #edf3ec;

  /* ---- Text ---- */
  --color-text: #1a2233;             /* 15.9:1 on white */
  --color-text-muted: #5a6478;       /* 5.95:1 on white */
  --color-text-on-dark: #ffffff;
  --color-text-muted-dark: #b7c0d2;  /* 10.02:1 on footer navy */

  /* ---- Lines ---- */
  --color-border: #dde3ec;           /* decorative dividers / card edges */
  --color-border-strong: #78849c;    /* form controls — 3.76:1, meets 1.4.11 */

  /* ---- Status ---- */
  --color-success: #2e6b4f;
  --color-warning: #8a5a12;
  --color-error: #a32e2e;
  --color-link: #12448c;             /* 9.41:1 on white */
  --color-link-hover: #0d2e70;

  /* ---- Shape & depth ---- */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(6, 28, 75, 0.06);
  --shadow: 0 10px 30px rgba(6, 28, 75, 0.09);
  --shadow-lg: 0 22px 55px rgba(6, 28, 75, 0.16);

  /* ---- Type ----
     Plus Jakarta Sans carries the display and main headings for a warm, 
     modern, clinical-yet-empathetic tone of voice. Body text remains Inter. */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-head: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Global ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Display headings — Plus Jakarta Sans with refined letter-spacing and weight */
h1, h2, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
/* Small headings stay in Inter */
h3, h4, h5, .font-head {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; }

.text-primary-navy { color: var(--color-primary) !important; }
.text-gold { color: #7a5518 !important; }        /* accessible gold for small text (6.69:1) */
.text-accent { color: var(--color-accent) !important; }
.text-ink { color: var(--color-text) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-gold { background-color: var(--color-secondary) !important; }
.bg-accent { background-color: var(--color-accent) !important; }
.bg-soft { background-color: var(--color-background-soft) !important; }
.bg-tint-navy { background-color: var(--tint-navy) !important; }

.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
@media (max-width: 767.98px) {
  .section { padding: 3.5rem 0; }
  .section-sm { padding: 2.25rem 0; }
}

/* Green kicker — 7:1 on white */
.eyebrow {
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  margin-bottom: 0;
  color: var(--color-primary);
}
.section-title .accent { color: var(--color-accent); }

.section-intro {
  color: var(--color-text-muted);
  max-width: 62ch;
  margin: 1rem auto 0;
}
.text-start .section-intro { margin-left: 0; }

/* Gold rules flanking the logo's leaf */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.25rem 0 2.75rem;
}
.divider span {
  display: inline-block;
  width: 64px;
  max-width: 16vw;
  height: 2px;
  background: var(--color-secondary);
}
.divider i { color: var(--color-accent); font-size: 1rem; }
.text-start .divider { justify-content: flex-start; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.7rem;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  border-width: 2px;
  transition: background-color 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

/* Primary CTA — navy, white label (16.46:1) */
.btn-primary-navy {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.btn-primary-navy:hover, .btn-primary-navy:focus {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-primary-navy:active {
  background-color: var(--color-primary-active);
  border-color: var(--color-primary-active);
  transform: translateY(0);
}

/* Secondary CTA — gold with a NAVY label (5.21:1; white would fail at 3.16) */
.btn-gold {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-primary);
}
.btn-gold:hover, .btn-gold:focus {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-gold:active {
  background-color: var(--color-secondary-active);
  border-color: var(--color-secondary-active);
  box-shadow: inset 0 3px 8px rgba(6, 28, 75, 0.28);
  transform: translateY(0);
}

.btn-outline-primary-navy {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-primary-navy:hover, .btn-outline-primary-navy:focus {
  background: var(--color-primary);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}
.btn-outline-white:hover, .btn-outline-white:focus {
  background: #fff;
  color: var(--color-primary);
}

/* Focus: navy ring on light ground, gold ring on dark ground */
.btn:focus-visible, a:focus-visible, .form-check-input:focus-visible,
.form-control:focus-visible, .navbar-toggler:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
.bg-primary a:focus-visible, .bg-primary .btn:focus-visible,
.site-footer a:focus-visible, .hero-panel a:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ---------- Top Emergency & Contact Bar ---------- */
.top-bar {
  background-color: var(--color-primary-active);
  color: #fff;
  font-size: 0.84rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1031;
}
.top-bar a {
  color: #dfe5f0;
  text-decoration: none;
  transition: color 0.15s ease;
}
.top-bar a:hover {
  color: var(--color-secondary-active);
  text-decoration: underline;
}
.top-bar .crisis-badge {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 700;
  padding: 0.18rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.02em;
}

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 22px rgba(6, 28, 75, 0.10);
  background: rgba(255, 255, 255, 0.98);
}
.navbar-brand img { height: 46px; width: auto; display: block; }
@media (max-width: 991.98px) { .navbar-brand img { height: 36px; } }

.navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-primary);
  padding: 0.5rem 1rem !important;
  position: relative;
}
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--color-accent); }
.navbar .nav-link.active { color: var(--color-primary); font-weight: 600; }
.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.15rem;
  height: 2px;
  background: var(--color-secondary);
}
.navbar-toggler { border: none; padding: 0.35rem 0.5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(6, 28, 75, 0.35); }

/* ---------- Home hero slider ----------
   Gentle crossfade (never a hard slide), a soft navy scrim that keeps
   every headline legible whatever the photo does, and quiet controls
   that stay out of the way until wanted. */
.hero-slider { position: relative; background: var(--color-primary); }

/* Split hero: text on a solid navy panel, photograph untinted beside it.
   No scrim over the image, so the photography keeps its full colour while
   the copy sits on a guaranteed-contrast ground. */
.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  min-height: 560px;
}
.hero-panel {
  background: var(--color-primary);
  display: flex;
  align-items: center;
  padding: 3.5rem clamp(1.5rem, 4vw, 4rem);
  position: relative;
}
/* a thin gold seam where the panel meets the photo */
.hero-panel::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 4px;
  background: var(--color-secondary);
}
.hero-content { max-width: 33rem; }
.hero-figure { position: relative; overflow: hidden; }
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-kicker {
  color: var(--color-secondary-active);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.9rem;
}
.hero-slide h1, .hero-slide h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.1vw, 2.9rem);
  margin-bottom: 0.9rem;
  text-wrap: balance;
}
.hero-slide h1 .em, .hero-slide h2 .em { color: var(--color-secondary-active); }
.hero-sub {
  max-width: 46ch;
  color: #dfe5f0;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Copy settles in gently as each slide arrives */
.carousel-item.active .hero-kicker,
.carousel-item.active .hero-slide h1,
.carousel-item.active .hero-slide h2,
.carousel-item.active .hero-sub,
.carousel-item.active .hero-actions {
  animation: heroRise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.carousel-item.active .hero-slide h1,
.carousel-item.active .hero-slide h2 { animation-delay: 0.08s; }
.carousel-item.active .hero-sub { animation-delay: 0.16s; }
.carousel-item.active .hero-actions { animation-delay: 0.24s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Slow, soft crossfade */
.hero-slider.carousel-fade .carousel-item { transition: opacity 1.1s ease-in-out; }

/* Indicators + arrows live together at the foot of the navy panel,
   so neither ever sits on top of the photograph. */
.hero-slider .carousel-indicators {
  margin: 0;
  gap: 0.5rem;
  z-index: 3;
  left: clamp(1.5rem, 4vw, 4rem);
  right: auto;
  bottom: 1.6rem;
  justify-content: flex-start;
  width: auto;
  pointer-events: none;
}
.hero-slider .carousel-indicators [data-bs-target] {
  width: 30px;
  height: 24px;              /* real 24px hit area... */
  border-radius: 0;
  border: 0;
  background-color: transparent;
  opacity: 1;
  pointer-events: auto;
  position: relative;
  padding: 0;
  transition: width 0.25s ease;
}
/* ...while the visible pill stays a thin 4px rule */
.hero-slider .carousel-indicators [data-bs-target]::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.42);
  transition: background-color 0.25s ease;
}
.hero-slider .carousel-indicators .active { width: 48px; background-color: transparent; }
.hero-slider .carousel-indicators .active::after { background-color: var(--color-secondary); }
.hero-slider .carousel-indicators [data-bs-target]:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 4px;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  top: auto;
  bottom: 1.05rem;
  /* Bootstrap pins these to both edges; release the far edge or the
     button stretches across the photograph and swallows clicks. */
  right: auto;
  width: auto;
  opacity: 1;
  z-index: 4;
}
.hero-slider .carousel-control-prev { left: calc(clamp(1.5rem, 4vw, 4rem) + 160px); }
.hero-slider .carousel-control-next { left: calc(clamp(1.5rem, 4vw, 4rem) + 208px); }
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  width: 2.3rem; height: 2.3rem;
  background-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.hero-slider .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-slider .carousel-control-next:hover .carousel-control-next-icon,
.hero-slider .carousel-control-prev:focus-visible .carousel-control-prev-icon,
.hero-slider .carousel-control-next:focus-visible .carousel-control-next-icon {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.hero-slider .carousel-control-prev:focus-visible,
.hero-slider .carousel-control-next:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Stacked below the split breakpoint: photo on top, panel beneath */
@media (max-width: 991.98px) {
  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-figure { order: -1; }
  .hero-figure img { height: 260px; }
  .hero-panel { padding: 2.25rem 1.35rem 4.25rem; }
  .hero-panel::after { top: auto; bottom: auto; right: 0; left: 0; width: auto; height: 4px; top: 0; }
  .hero-content { max-width: none; }
  .hero-slider .carousel-indicators { left: 1.35rem; bottom: 1.5rem; }
  .hero-slider .carousel-control-prev { left: calc(1.35rem + 150px); }
  .hero-slider .carousel-control-next { left: calc(1.35rem + 196px); }
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next { bottom: 0.95rem; }
}
@media (max-width: 575.98px) {
  .hero-figure img { height: 210px; }
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next { display: none; }
}

/* Someone who asked for less motion gets a still, single image */
@media (prefers-reduced-motion: reduce) {
  .hero-slider.carousel-fade .carousel-item { transition: none; }
  .carousel-item.active .hero-kicker,
  .carousel-item.active .hero-slide h1,
  .carousel-item.active .hero-slide h2,
  .carousel-item.active .hero-sub,
  .carousel-item.active .hero-actions { animation: none; }
}

/* Interior page hero — text left, photo right */
.hero { background: var(--color-background-soft); }
.hero-copy { max-width: 560px; margin-left: auto; padding: 3.5rem 1.75rem 3.5rem 1rem; }
@media (max-width: 991.98px) { .hero-copy { max-width: none; margin: 0; padding: 2.5rem 1.25rem; } }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 0.9rem; }
.hero h1 .em { color: var(--color-accent); }
/* Interior hero headline: navy lead line, muted-ink follow line */
.hero h1 .line-primary { display: block; color: var(--color-primary); }
.hero h1 .line-ink { display: block; color: var(--color-accent); }
.hero .lead { color: var(--color-text-muted); font-size: 1.05rem; max-width: 44ch; margin-bottom: 1.6rem; }
.hero-eyebrow {
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}
.hero-media { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
@media (min-width: 992px) { .hero-media { height: 460px; } }
@media (max-width: 991.98px) { .hero-media { height: 270px; min-height: 0; } }

/* ---------- Cards ---------- */
/* Audience cards — icon beside the copy, each on its own tinted ground */
.audience-card {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.audience-icon {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.audience-icon svg { width: 40px; height: 40px; display: block; }
.audience-card:hover .audience-icon { transform: scale(1.05); }

.audience-body { min-width: 0; }
.audience-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  font-size: 1.2rem;
  line-height: 1.14;
  margin-bottom: 0.6rem;
}
.audience-card p { font-size: 0.94rem; color: var(--color-text-muted); margin-bottom: 0.75rem; }

.audience-navy { background: var(--tint-navy); border-color: #d6dceb; }
.audience-navy .audience-icon { background: #dbe3f3; color: var(--color-primary); }
.audience-green { background: var(--tint-green); border-color: #d3e3d1; }
.audience-green .audience-icon { background: #dcebd9; color: var(--color-accent); }
.audience-gold { background: var(--tint-gold); border-color: #eddcbd; }
.audience-gold .audience-icon { background: #f5e7ca; color: #7a5518; }

@media (max-width: 575.98px) {
  .audience-card { gap: 0.9rem; padding: 1.4rem 1.15rem; }
  .audience-icon { width: 58px; height: 58px; }
  .audience-icon svg { width: 32px; height: 32px; }
  .audience-card h3 { font-size: 1.08rem; }
}

/* Between tablet and small desktop the cards sit three-across and get narrow,
   which would squeeze the copy into a sliver beside the icon — stack instead
   so the text keeps the full width of its column. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .audience-card { flex-direction: column; gap: 0.95rem; }
  .audience-icon { width: 64px; height: 64px; }
  .audience-icon svg { width: 35px; height: 35px; }
  .audience-body { width: 100%; }
}

/* Careers "why work here" — same tinted family, stacked and centred */
.value-card {
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  height: 100%;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card h3 { font-size: 1.15rem; margin-bottom: 0.55rem; }
.value-card p { font-size: 0.95rem; color: var(--color-text-muted); }
.value-card .icon-badge { margin-left: auto; margin-right: auto; }
.value-navy { background: var(--tint-navy); border-color: #d6dceb; }
.value-green { background: var(--tint-green); border-color: #d3e3d1; }
.value-gold { background: var(--tint-gold); border-color: #eddcbd; }

.icon-badge {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: #fff;
  background: var(--color-primary);
}
.icon-badge.badge-gold { background: var(--color-secondary); color: var(--color-primary); }
.icon-badge.badge-accent { background: var(--color-accent); }
.icon-badge.badge-soft-navy { background: var(--tint-navy); color: var(--color-primary); }
.icon-badge.badge-soft-gold { background: var(--tint-gold); color: #7a5518; }
.icon-badge.badge-soft-green { background: var(--tint-green); color: var(--color-accent); }

.card-link {
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--color-link);
}
.card-link i { transition: transform 0.15s ease; }
.card-link:hover i { transform: translateX(4px); }

/* Care cards — a drawn icon over a stacked uppercase label,
   in a light bordered box (home "every step of the journey" row) */
.care-card {
  background: var(--color-surface);
  border: 1px solid #cfd8ea;
  border-radius: 10px;
  padding: 1.75rem 0.9rem 1.5rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.care-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--color-secondary);
}
.care-icon {
  color: var(--color-primary);
  margin-bottom: 1.05rem;
  transition: color 0.2s ease;
}
.care-icon svg { width: 54px; height: 54px; display: block; }
.care-card:hover .care-icon { color: #7a5518; }
.care-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  font-size: 1rem;
  line-height: 1.16;
  margin-bottom: 0.55rem;
}
.care-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}
@media (max-width: 575.98px) {
  .care-card { padding: 1.4rem 0.7rem 1.25rem; }
  .care-icon svg { width: 44px; height: 44px; }
  .care-card h3 { font-size: 0.92rem; }
  .care-card p { font-size: 0.8rem; }
}

.mini-icon-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
  background: var(--color-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mini-icon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--color-secondary); }
.mini-icon-card > i { font-size: 1.7rem; color: var(--color-accent); margin-bottom: 0.7rem; display: block; }
.mini-icon-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.mini-icon-card p { font-size: 0.86rem; color: var(--color-text-muted); margin-bottom: 0; line-height: 1.55; }

/* Service tiles */
.service-tile {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  background: var(--color-surface);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-tile-media { position: relative; }
.service-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* Each service carries its own icon, straddling the photo edge */
.service-tile .tile-icon {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.service-tile:hover .tile-icon {
  background: var(--color-secondary-hover);
  transform: translate(-50%, 50%) scale(1.06);
}
.service-tile-body { padding: 2.1rem 1rem 1.35rem; text-align: center; }
.service-tile h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.service-tile p { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0; line-height: 1.55; }
@media (max-width: 575.98px) { .service-tile img { aspect-ratio: 3 / 2; } }

/* Levels of care */
.level-card {
  border-radius: var(--radius);
  padding: 2.5rem 1.6rem;
  text-align: center;
  height: 100%;
  display: flex; flex-direction: column;
  border: 1px solid var(--color-border);
}
.level-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}
.level-1 .level-icon { background: var(--color-accent); color: #fff; }
.level-2 .level-icon { background: var(--color-secondary); color: var(--color-primary); }
.level-3 .level-icon { background: #7a5518; color: #fff; }
.level-card h3 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.level-card p { flex-grow: 1; margin-bottom: 1.6rem; font-size: 0.95rem; }
.level-1 { background: var(--tint-green); border-color: #cfe0cd; }
.level-1 h3 { color: var(--color-accent); }
.level-2 { background: var(--color-primary); }
.level-2 h3, .level-2 p { color: #fff; }
.level-2 p { color: #dfe5f0; }
.level-3 { background: var(--tint-gold); border-color: #ecdcbd; }
.level-3 h3 { color: #7a5518; }
.level-1 p, .level-3 p { color: var(--color-text-muted); }

/* How it works */
.step { text-align: center; position: relative; }
.step-circle {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-secondary);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 0.9rem;
  position: relative; z-index: 2;
}
.step-num {
  position: absolute; top: -8px; left: 50%;
  transform: translateX(-30px);
  width: 25px; height: 25px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.76rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 3; border: 2px solid #fff;
}
.step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.55; }
.step-track { position: relative; }
.step-track::before {
  content: "";
  position: absolute; top: 31px; left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-secondary) 0 6px, transparent 6px 14px);
  z-index: 1;
}
@media (max-width: 767.98px) { .step-track::before { display: none; } }

.section-media { width: 100%; border-radius: var(--radius); object-fit: cover; display: block; }

/* ---------- CTA banners ---------- */
.cta-banner { padding: 2.75rem 0; }
.cta-banner .cta-icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.cta-banner.bg-primary .cta-icon { border: 2px solid var(--color-secondary); color: var(--color-secondary); }
.cta-banner.bg-soft .cta-icon { border: 2px solid var(--color-secondary); color: #7a5518; }
.cta-banner h2 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.cta-banner.bg-primary h2 { color: #fff; }
.cta-banner.bg-primary p { color: #c9d2e3; margin-bottom: 0; }
.cta-banner.bg-soft h2 { color: var(--color-primary); }
.cta-banner.bg-soft p { color: var(--color-text-muted); margin-bottom: 0; }

/* ---------- Testimonial ---------- */
.testimonial-card {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.9rem;
  background: var(--color-surface);
}
.testimonial-card p { font-size: 1.05rem; color: var(--color-text); }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.star-rating i { color: var(--color-secondary); font-size: 0.85rem; }

/* ---------- Careers ---------- */
.check-list li { display: flex; gap: 0.85rem; margin-bottom: 1.15rem; }
.check-list i {
  color: #fff; background: var(--color-accent);
  border-radius: 50%;
  width: 26px; height: 26px; min-width: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; margin-top: 0.25rem;
}
.check-list strong { display: block; color: var(--color-primary); font-family: var(--font-head); font-size: 1.02rem; }
.check-list span { font-size: 0.92rem; color: var(--color-text-muted); }

.job-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  background: var(--color-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--color-secondary); }
.job-card .job-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--tint-navy); color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.8rem;
}
.job-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.job-card .job-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.8rem; }

.spotlight-quote {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  color: var(--color-primary);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
}

/* ---------- Resources ---------- */
.resource-card {
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.8rem;
  height: 100%;
  background: var(--color-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.resource-card h3 { font-size: 1.1rem; }
.resource-card p { font-size: 0.92rem; color: var(--color-text-muted); }

.faq-card {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
  height: 100%;
  background: var(--color-surface);
}
.faq-card h3 { font-size: 1rem; display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.55rem; }
.faq-card h3 i { color: var(--color-accent); margin-top: 0.2rem; }
.faq-card p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 0; }

.article-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.article-card .article-body { padding: 1.25rem; }
.article-card .article-tag {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-accent); font-weight: 700;
}
.article-card h3 { font-size: 1.08rem; margin: 0.4rem 0 0; }
.article-card h3 a { color: var(--color-primary); }
.article-card h3 a:hover { color: var(--color-link-hover); }

/* ---------- Contact ---------- */
.contact-band {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem 5.5rem;
}
.contact-band h2 { color: #fff; }
.contact-phone { font-size: 1.75rem; font-weight: 700; color: #fff; }
.contact-email { font-size: 1.05rem; font-weight: 600; color: #fff; word-break: break-word; }
.contact-phone a, .contact-email a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0.1rem;
  min-height: 24px;
}
.contact-phone a:hover, .contact-email a:hover { color: var(--color-secondary); text-decoration: underline; }
.contact-info-item h4 { font-size: 1rem; color: var(--color-secondary); margin-bottom: 0.4rem; }
.contact-info-item p { color: #dfe5f0; margin-bottom: 0; font-size: 0.95rem; }
.contact-divider { width: 1px; background: rgba(255, 255, 255, 0.3); }

.contact-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  margin-top: -4rem;
  position: relative;
  z-index: 5;
}
@media (max-width: 767.98px) {
  .contact-band { padding: 2.25rem 1.25rem 4.5rem; }
  .contact-form-card { padding: 1.5rem 1.2rem; margin-top: -3rem; }
}

.form-label { font-weight: 600; color: var(--color-primary); font-size: 0.92rem; }
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background-color: #fff;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  color: var(--color-text);
}
.form-control::placeholder { color: #7d879a; }
.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(6, 28, 75, 0.16);
}
.form-check-input {
  border-color: var(--color-border-strong);
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
}
.form-check { padding-left: 2rem; min-height: 1.9rem; }
.form-check .form-check-input { margin-left: -2rem; }
.form-check-label { padding-left: 0.15rem; }
.form-check-input:checked { background-color: var(--color-primary); border-color: var(--color-primary); }
.form-check-label { font-size: 0.92rem; }
.invalid-feedback { color: var(--color-error); }
.was-validated .form-control:invalid, .form-control.is-invalid { border-color: var(--color-error); }

.alert-success {
  background: var(--tint-green);
  border: 1px solid #cfe0cd;
  color: #22452b;
  border-radius: var(--radius-sm);
}
#formSuccess { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-background-dark);
  color: var(--color-text-muted-dark);
  padding: 4rem 0 1.75rem;
}
.footer-logo { height: 52px; width: auto; display: block; }
.site-footer .footer-heading {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  margin-bottom: 0.9rem;
}
.site-footer a { color: var(--color-text-muted-dark); }
.site-footer a:hover { color: var(--color-secondary); }
.site-footer .footer-links li { margin-bottom: 0.15rem; font-size: 0.92rem; }
.site-footer .footer-links a,
.site-footer p a {
  display: inline-block;
  padding: 0.3rem 0;
  min-height: 24px;
}
/* the crisis line sets its own tighter rhythm */
.site-footer .crisis-note p a { padding: 0.15rem 0.1rem; min-height: 0; }
.site-footer .small-print { font-size: 0.76rem; color: #8791a5; line-height: 1.7; max-width: 52rem; }
.footer-divider { border-color: rgba(255, 255, 255, 0.14); margin: 1.5rem 0 1.5rem; }

/* Crisis line — always reachable, on every page */
.crisis-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 2.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(210, 162, 80, 0.45);
  border-left: 3px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  background: rgba(210, 162, 80, 0.08);
}
.crisis-note i { color: var(--color-secondary-active); font-size: 1.15rem; line-height: 1.5; }
.crisis-note p { margin: 0; font-size: 0.88rem; color: #dfe5f0; max-width: 46rem; }
.crisis-note strong { color: #fff; }
.crisis-note a {
  color: var(--color-secondary-active);
  font-weight: 700;
  text-decoration: underline;
  display: inline-block;
  padding: 0.15rem 0.1rem;
}
.crisis-note a:hover { color: #fff; }

/* 5-across grid for the services tiles (Bootstrap has no /5 utility) */
@media (min-width: 992px) {
  .col-lg-2-4 { flex: 0 0 20%; max-width: 20%; }
}

/* ---------- Floating Hero Trust Badges & Micro-UI ---------- */
.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
}
.hero-trust-pill i {
  color: var(--color-secondary-active);
}

/* ---------- Custom FAQ Accordion ---------- */
.faq-accordion .accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
}
.faq-accordion .accordion-button {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-primary);
  background: var(--color-surface);
  padding: 1.1rem 1.25rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--color-primary);
  background: var(--tint-navy);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus {
  box-shadow: inset 0 0 0 2px var(--color-primary);
}
.faq-accordion .accordion-body {
  padding: 1rem 1.25rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 575.98px) {
  .service-tile-body {
    padding: 1.6rem 0.75rem 1rem;
  }
}

/* ---------- Phase 2 UI Components ---------- */

/* Filter Pills */
.filter-pills-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}
.filter-pill {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  color: var(--color-primary);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.35rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-pill:hover {
  border-color: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px);
}
.filter-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* Care Path Quiz Widget */
.care-quiz-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.care-quiz-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}
.quiz-step-badge {
  display: inline-block;
  background: var(--tint-gold);
  color: #7a5518;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.quiz-option-btn {
  background: var(--color-background-soft);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  text-align: left;
  width: 100%;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.quiz-option-btn:hover {
  border-color: var(--color-secondary);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.quiz-option-btn.selected {
  border-color: var(--color-primary);
  background: var(--tint-navy);
}
.quiz-option-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.quiz-option-btn:hover .quiz-option-icon {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}

/* Outcome Stat Cards */
.stat-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Level Comparison Matrix Table */
.comparison-matrix-wrapper {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
}
.comparison-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin: 0;
}
.comparison-matrix-table th, .comparison-matrix-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.comparison-matrix-table th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
}
.comparison-matrix-table th:first-child { width: 28%; }
.comparison-matrix-table tbody tr:nth-child(even) {
  background-color: var(--color-background-soft);
}
.comparison-matrix-table tbody tr:hover {
  background-color: var(--tint-navy);
}

/* Job Department Tag */
.job-dept-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: var(--tint-green);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

/* ---------- Phase 3 UI Components ---------- */

/* Floating Back-to-Top Button */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-primary-hover);
  color: var(--color-secondary-active);
  transform: translateY(-3px);
}

/* Coordinator Toast Badge */
.coordinator-toast {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  background: rgba(4, 20, 47, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 3.5px solid var(--color-secondary);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 1039;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 320px;
}
@media (max-width: 767.98px) {
  .coordinator-toast { display: none; }
}

/* Resource Live Search */
.resource-search-box {
  position: relative;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
.resource-search-input {
  width: 100%;
  padding: 0.85rem 1.2rem 0.85rem 3rem;
  border-radius: 30px;
  border: 2px solid var(--color-border-strong);
  font-size: 0.96rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.resource-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(6, 28, 75, 0.16);
  outline: none;
}
.resource-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* Time Slot & Channel Toggles (contact.html) */
.toggle-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.channel-btn, .time-slot-btn {
  background: var(--color-background-soft);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.channel-btn:hover, .time-slot-btn:hover {
  border-color: var(--color-primary);
  background: #fff;
}
.channel-btn.active, .time-slot-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ---------- Intersection Observer Scroll-Reveal Animations ---------- */
/* Only hide reveal content once JS has confirmed it can reveal it again.
   Without the .js-reveal flag on <html>, everything stays visible. */
.js-reveal .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.js-reveal .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Drop the compositor layer once the animation has played */
.reveal-on-scroll.is-visible { will-change: auto; }

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Floating Keyframe for Hero Pills */
@keyframes floatGently {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.hero-trust-pill {
  animation: floatGently 4s ease-in-out infinite;
}
.hero-trust-pill:nth-child(2) { animation-delay: 0.8s; }
.hero-trust-pill:nth-child(3) { animation-delay: 1.6s; }

/* Pulse Glow Animation on Main CTAs */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(188, 135, 48, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(188, 135, 48, 0); }
}
.btn-gold:hover {
  animation: pulseGlow 1.8s infinite;
}

/* Dropdown Menu Styling */
.navbar-nav .dropdown-menu {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  background: var(--color-surface);
}
.navbar-nav .dropdown-item {
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.navbar-nav .dropdown-item:hover, .navbar-nav .dropdown-item:focus {
  background-color: var(--color-background-soft);
  color: var(--color-secondary);
}

/* ---------- Leadership Team Page Styles ---------- */
.hero-team-section {
  background: linear-gradient(180deg, #F7F5F1 0%, #FFFFFF 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.hero-blob-wrapper {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}
.hero-blob-shape {
  position: absolute;
  top: -15px; right: -15px; left: -15px; bottom: -15px;
  background: #2E8DA0;
  border-radius: 65% 35% 68% 32% / 38% 62% 38% 62%;
  z-index: 1;
  opacity: 0.85;
}
.hero-blob-img-container {
  position: relative;
  z-index: 2;
  border-radius: 60% 40% 65% 35% / 40% 50% 50% 60%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-secondary);
}
.hero-blob-img-container img {
  width: 100%;
  height: auto;
  display: block;
}

.team-grid-container {
  background: #FFF9EE;
  border-radius: 48px;
  padding: 4rem 2.5rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(188, 135, 48, 0.18);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.leader-card {
  text-align: center;
  padding: 1.5rem 1rem;
  transition: transform 0.3s ease;
}
.leader-card:hover {
  transform: translateY(-8px);
}
.leader-blob-mask {
  width: 210px;
  height: 210px;
  margin: 0 auto 1.4rem;
  border-radius: 58% 42% 64% 36% / 45% 52% 48% 55%;
  overflow: hidden;
  border: 4px solid var(--color-secondary);
  box-shadow: 0 10px 25px rgba(6, 28, 75, 0.12);
  background: var(--color-primary);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.leader-card:hover .leader-blob-mask {
  border-color: var(--color-primary);
  box-shadow: 0 14px 30px rgba(6, 28, 75, 0.2);
  transform: scale(1.03);
}
.leader-blob-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.leader-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.leader-card .leader-role {
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 600;
  color: #7a5518;
  margin-bottom: 0.65rem;
}
.btn-read-bio {
  min-height: 26px;
  padding: 0.15rem 0.1rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}
.btn-read-bio:hover {
  color: var(--color-secondary-active);
}

/* Modal Bio Styling */
.bio-modal-header {
  background: var(--color-primary);
  color: #fff;
  border-bottom: 3px solid var(--color-secondary);
  padding: 1.25rem 1.5rem;
}
.bio-modal-header .btn-close {
  filter: invert(1);
}
.bio-modal-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--color-secondary);
  object-fit: cover;
  flex-shrink: 0;
}

/* Search empty state */
.resource-no-results {
  margin: 0 auto 1.5rem;
  max-width: 46rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.92rem;
  text-align: center;
}
.resource-no-results strong { color: var(--color-primary); }

/* ---------- Dynamic Service Request Intake Form Styles ---------- */
.intake-canvas {
  background-color: #2D7A89;
  min-height: 100vh;
  padding: 3rem 1rem 5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.intake-card {
  width: 100%;
  max-width: 780px;
  background: #ffffff;
  border-radius: 12px;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  font-family: var(--font-body);
  color: #2C3345;
}
.intake-title {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 700;
  color: #2C3345;
  text-align: center;
  margin-bottom: 0.4rem;
}
.intake-subtitle {
  font-size: 0.95rem;
  color: #6F757E;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.intake-divider {
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 2.25rem;
}
.form-label-custom {
  font-weight: 600;
  font-size: 0.96rem;
  color: #2C3345;
  margin-bottom: 0.5rem;
  display: block;
}
.form-label-custom .required-star {
  color: #E24C4B;
  margin-left: 2px;
}
.sub-label-text {
  font-size: 0.78rem;
  color: #6F757E;
  margin-top: 0.35rem;
}
.intake-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #C3CAD8;
  border-radius: 4px;
  font-size: 0.95rem;
  background-color: #ffffff;
  color: #2C3345;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.intake-input:focus {
  border-color: #2D7A89;
  box-shadow: 0 0 0 3px rgba(45, 122, 137, 0.15);
  outline: none;
}
.choice-item-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.94rem;
  color: #2C3345;
  cursor: pointer;
  margin-bottom: 0.6rem;
}
.choice-item-label input[type="radio"],
.choice-item-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2D7A89;
  cursor: pointer;
}
.wizard-step-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}
.wizard-step-bar::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: #E5E7EB;
  z-index: 1;
}
.wizard-step-node {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 2px solid #E5E7EB;
  color: #6F757E;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.25s ease;
}
.wizard-step-node.active {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}
.wizard-step-node.completed {
  border-color: #2D7A89;
  background: #2D7A89;
  color: #ffffff;
}
.intake-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E5E7EB;
}
.btn-intake-next {
  background-color: #000000;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 2.25rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.btn-intake-next:hover {
  background-color: #222222;
  transform: translateY(-1px);
}
.btn-intake-prev {
  background-color: #F3F4F6;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: 1px solid #D1D5DB;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-intake-prev:hover {
  background-color: #E5E7EB;
}

/* Top-bar CTA: force the navy label back on (the .top-bar link colour
   was overriding .btn-gold and dropping contrast to 2.50:1) */
.top-bar .btn-gold,
.top-bar .btn-gold:hover,
.top-bar .btn-gold:focus {
  color: var(--color-primary);
}
.top-bar-contact {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  min-height: 24px;
  line-height: 1.35;
}
/* Top-bar links need a 24px target */
.top-bar a { display: inline-block; padding: 0.18rem 0; min-height: 24px; }

/* Crisis badge is now a real link — keep it looking the same, make it tappable */
a.crisis-badge { text-decoration: none; }
a.crisis-badge:hover,
a.crisis-badge:focus { background: var(--color-secondary-hover); color: var(--color-primary); text-decoration: none; }

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--color-primary); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  /* show reveal content outright rather than animating it in */
  .js-reveal .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Book an Appointment (request-service.html)
   ========================================================= */
.request-hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, #0d2e70 100%);
  padding: 3.25rem 0 3.5rem;
  color: #fff;
}
.request-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 0.85rem; }
.request-hero .hero-kicker { color: var(--color-secondary-active); }
.request-hero .hero-sub { color: #dfe5f0; max-width: 52ch; margin-bottom: 1.6rem; }

.request-hero-facts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.request-hero-facts span {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.84rem;
  color: #eef2f9;
}
.request-hero-facts i { color: var(--color-secondary-active); }

.request-call-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.request-call-card h2 { color: var(--color-primary); margin-bottom: 0.35rem; }
.request-call-card p { color: var(--color-text-muted); font-size: 0.92rem; }
.request-hours { margin: 1rem 0 0; font-size: 0.88rem; }
.request-hours strong { color: var(--color-primary); }
.request-crisis {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.request-crisis i { color: var(--color-error); margin-right: 0.35rem; }
.request-crisis a { font-weight: 700; }

/* ---- form shell ---- */
.request-form fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  margin-bottom: 1.35rem;
  background: var(--color-surface);
}
.request-form legend {
  float: none;
  width: auto;
  padding: 0 0.55rem;
  margin-left: -0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.step-badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}

/* ---- radio tiles ---- */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.7rem; }
.choice-grid-2 { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.choice-grid-3 { grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); }

.choice-tile { position: relative; margin: 0; cursor: pointer; }
.choice-tile input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice-tile span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.choice-tile-sm span { justify-content: center; min-height: 44px; font-size: 0.88rem; }
.choice-tile i { color: var(--color-primary); font-size: 1.05rem; }
.choice-tile:hover span { border-color: var(--color-secondary); }
.choice-tile input:checked + span {
  border-color: var(--color-primary);
  background: var(--tint-navy);
  color: var(--color-primary);
  font-weight: 600;
}
.choice-tile input:focus-visible + span {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.req { color: #7a5518; font-weight: 700; }
.optional { color: var(--color-text-muted); font-weight: 400; font-size: 0.86rem; }
.field-hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.field-hint i { color: var(--color-accent); }
.field-error { margin: 0.6rem 0 0; font-size: 0.86rem; color: var(--color-error); font-weight: 600; }

.form-footnote {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
}

.request-success {
  display: none;
  gap: 1rem;
  align-items: flex-start;
  background: var(--tint-green);
  border: 1px solid #cfe0cd;
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}
.request-success.is-shown { display: flex; }
.request-success i { color: var(--color-accent); font-size: 1.5rem; line-height: 1.3; }
.request-success h2 { color: #22452b; }
.request-success p { color: #2f4a36; font-size: 0.92rem; }

@media (max-width: 575.98px) {
  .request-form fieldset { padding: 1.15rem 1rem 1.25rem; }
  .request-hero { padding: 2.25rem 0 2.5rem; }
}

/* Utility classes replacing former inline styles */
.fs-hint { font-size: 0.85rem; }
.fs-fineprint { font-size: 0.8rem; }   /* was 0.76rem — under the 12px floor */
.measure-center { max-width: 38rem; margin: 0 auto; }
.ls-wide { letter-spacing: 0.08em; }
.ls-tight { letter-spacing: -0.02em; }
.lede-measure { line-height: 1.7; max-width: 34rem; }

/* Careers department tags were 11.8px */
.job-dept-tag { font-size: 0.78rem; }

/* Inline emergency numbers need a 24px target wherever they appear */
.request-crisis a,
.form-footnote a,
.crisis-note p a {
  display: inline-block;
  padding: 0.25rem 0.2rem;
  min-height: 24px;
  line-height: 1.5;
}
