/* ==========================================================================
   Victory Mental Services — Design tokens & base
   ========================================================================== */
:root {
  --indigo-900: #211c4d;
  --indigo-700: #322a6e;
  --indigo-600: #4f46a8;
  --indigo-500: #6c63c9;
  --gold: #c9a875;
  --gold-dark: #a9895a;
  --cream: #f7f4ef;
  --sand: #efe9de;
  --ink: #1c1c22;
  --ink-soft: #4d4c5a;
  --line: #e2ddd0;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(33, 28, 77, 0.06), 0 1px 1px rgba(33, 28, 77, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(33, 28, 77, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Header height drives the sticky offset, the mobile drawer's top edge,
     and scroll-padding — keep them derived from one value. */
  --header-h: 78px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--indigo-900);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--indigo-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Eyebrow ---- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-600);
  margin-bottom: 10px;
}
.eyebrow--light { color: var(--gold); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
}
.brand__mark { flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--indigo-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__tag {
  font-size: 12px;
  color: var(--gold-dark);
  font-style: italic;
}

.nav {
  display: flex;
  gap: 28px;
  font-weight: 500;
  font-size: 15px;
}
.nav a { color: var(--ink); padding: 6px 0; position: relative; }
.nav a:hover { color: var(--indigo-600); }

.header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Mobile: the call button collapses to a 44px icon-only circle. The label
   returns at 860px. Scoped to .header__actions so it outranks `.btn`, which
   is declared later in this file and sets display: inline-flex. */
.header__actions .header__call {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}
.header__call-text { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--indigo-900);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }

.btn--primary {
  background: var(--indigo-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--indigo-900); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--indigo-900);
}
.btn--ghost:hover { background: var(--sand); }

.btn--gold {
  background: var(--gold);
  color: var(--indigo-900);
}
.btn--gold:hover { background: #d8bb8c; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--light-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn--light-ghost:hover { background: rgba(255,255,255,0.1); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--indigo-900);
  overflow: hidden;
  padding: 100px 0 88px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__copy { max-width: 680px; }
.hero__copy h1 { color: var(--cream); }
.hero__copy h1 em { color: var(--gold); font-style: italic; }
.hero__lede { color: rgba(247,244,239,0.82); font-size: 1.1rem; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero__trust {
  font-size: 14px;
  color: rgba(247,244,239,0.65);
  border-top: 1px solid rgba(201,168,117,0.3);
  padding-top: 16px;
  max-width: 420px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 88px 0; }
.section--tint { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head p:last-child { margin-bottom: 0; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Pillars (About) */
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--sand);
  color: var(--indigo-700);
  margin-bottom: 16px;
}
.pillar h3 { font-size: 1.05rem; margin-bottom: 6px; }
.pillar p { font-size: 14.5px; margin-bottom: 0; }

/* Cards (Services) */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--indigo-700);
  margin-bottom: 16px;
}
.card p { font-size: 14.5px; margin-bottom: 0; }

/* Providers (Team) */
.provider {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}

/* Portrait sits beside the name rather than stacked above it, which lets
   the photo be large enough to read a face at a glance. */
.provider__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.provider__id { min-width: 0; }
.provider__id h3 { margin-bottom: 4px; }

.provider__avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--indigo-700);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 6px var(--sand);
}

/* Initials fallback sits underneath the photo; shows through if the image
   is missing or fails to load. */
.provider__avatar::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  color: var(--gold);
}
.provider__avatar img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.provider__avatar.is-fallback img { display: none; }
.provider__role {
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.provider__title {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.provider__bio { font-size: 14.5px; margin-bottom: 18px; }

/* Specialties pulled out of the bio paragraph — these are what patients
   scan for, and they were buried mid-sentence. */
.provider__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--indigo-600);
  margin-bottom: 10px;
}
.provider__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.provider__tags li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}
.provider__note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.provider__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: auto;
}
.provider__ext {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-dark);
}
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* Insurance */
.insurance-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.insurance-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.insurance-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.contact__lede { font-size: 1.05rem; }
.contact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  margin: 28px 0 32px;
  padding: 0;
}
.contact-list dt {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--indigo-600);
  margin-bottom: 4px;
}
.contact-list dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}
.contact-list a:hover { color: var(--indigo-600); }

.hours-card {
  background: var(--indigo-900);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}
.hours-card h3 { color: var(--cream); margin-bottom: 18px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 8px 0;
  font-size: 14.5px;
  font-weight: 400;
  border-bottom: 1px solid rgba(247,244,239,0.12);
}
.hours-table th { color: var(--gold); font-weight: 600; width: 110px; vertical-align: top; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-note { display: block; font-size: 12.5px; color: rgba(247,244,239,0.6); margin-bottom: 6px; }
.hours-table td .hours-note:last-child { margin-bottom: 0; }

.crisis-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(247,244,239,0.15);
  font-size: 13.5px;
  color: rgba(247,244,239,0.75);
}
.crisis-note strong { color: var(--gold); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--indigo-900);
  color: rgba(247,244,239,0.7);
  padding: 36px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-weight: 600;
  font-family: var(--font-display);
}
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer__links a:hover { color: var(--gold); }
/* Explicit colour: the global `p { color: var(--ink-soft) }` rule beats the
   footer's inherited cream, leaving both lines dark-on-dark and unreadable. */
.footer__copy { font-size: 13px; margin: 0; width: 100%; text-align: center; color: var(--cream); opacity: 0.6; }
/* 0.55 is the floor here: at 12px this needs 4.5:1 against --indigo-900,
   and 0.45 measured 3.98:1. Keeps it quieter than the copyright above. */
.footer__credit { font-size: 12px; margin: -6px 0 0; width: 100%; text-align: center; color: var(--cream); opacity: 0.55; }
.footer__credit a { border-bottom: 1px solid rgba(247,244,239,0.25); }
.footer__credit a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--indigo-900);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .back-to-top { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
.nav__cta { display: none; }

@media (min-width: 860px) {
  .header__actions .header__call {
    width: auto;
    height: auto;
    padding: 12px 22px;
    border-radius: 999px;
  }
  .header__call-icon { display: none; }
  .header__call-text { display: inline; }
}

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}

/* Below 860px the horizontal nav can't sit alongside the brand and CTAs
   without crowding, so it collapses into the drawer. Same switch point as
   the call button's label. */
@media (max-width: 859px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }

  /* Booking CTA lives in the drawer on mobile, since the header pill is hidden */
  .nav .nav__cta {
    display: inline-flex;
    margin-top: 16px;
    padding: 14px 22px;
    border-bottom: none;
    color: #fff;
  }

  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  /* One gutter for every phone width, so a 390px and a 430px device get
     the same edge spacing. */
  :root { --gutter: 20px; }
  body { font-size: 16px; }

  .header__actions .btn--primary { display: none; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .contact__grid { gap: 36px; }

  /* Stacked into one column, a left-aligned block of four short labels reads
     as ragged. Centre the intro column only — the hours table beside it keeps
     its alignment, since centring tabular rows would break the day/time pairing. */
  .contact__intro { text-align: center; }
  .contact-list { justify-items: center; }

  /* Phone and Email are links and carry the 44px tap-target minimum; Address
     and Fax are plain text. Stacked and centred, that made every other row sit
     lower than its label. Give all four the same box so the rhythm is even. */
  .contact-list dd { display: grid; place-items: center; min-height: 44px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .hero { padding: 56px 0 52px; }

  /* Full-width stacked CTAs — easier tap targets than side-by-side pills */
  .hero__cta { gap: 12px; }
  .hero__cta .btn { width: 100%; }

  /* Uniform card padding on mobile */
  .card, .pillar, .provider { padding: 24px 20px; }
  .hours-card { padding: 26px 22px; }

  /* Shrink the portrait so the name keeps a usable column beside it */
  .provider__avatar { width: 96px; height: 96px; }
  .provider__avatar::before { font-size: 28px; }
  .provider__head { gap: 16px; }

}

/* Touch targets: tel/mailto, provider extensions, and footer links are the
   most-tapped elements and sat at 18-35px tall. Keyed to pointer type as well
   as width so tablets — which are touch devices at 768px+ — are covered. */
@media (max-width: 859px), (pointer: coarse) {
  .contact-list dd a,
  .footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .contact-list { gap: 8px 24px; }
  .contact-list dd { font-size: 16px; }

  .provider__ext {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer__links { gap: 4px 22px; }
  .footer__inner { gap: 12px; }
}

@media (max-width: 360px) {
  .brand__name { font-size: 0.95rem; }
  h1 { font-size: 1.95rem; }
  .provider__avatar { width: 80px; height: 80px; }
  .provider__avatar::before { font-size: 24px; }
}

/* ==========================================================================
   Material layer — depth, glass, and pointer-tracked 3D
   --------------------------------------------------------------------------
   Appended as one block so the original flat design stays intact underneath:
   delete from here to the end of the file to revert completely.

   Two rules govern everything below, because this is a clinical site:
   1. Text never sits on a surface below ~72% opacity. Blur is decoration;
      legibility of the crisis line and contact details is not negotiable.
   2. Every transform is gated behind prefers-reduced-motion AND pointer:fine.
   ========================================================================== */
:root {
  /* Layered shadows. A single large blur reads as fog; stacking a tight
     contact shadow under a wide ambient one is what makes an edge feel lifted. */
  --shadow-1: 0 1px 1px rgba(33,28,77,0.04), 0 2px 4px rgba(33,28,77,0.04);
  --shadow-2: 0 1px 2px rgba(33,28,77,0.05), 0 4px 10px -2px rgba(33,28,77,0.07),
              0 12px 24px -6px rgba(33,28,77,0.08);
  --shadow-3: 0 1px 2px rgba(33,28,77,0.06), 0 8px 18px -4px rgba(33,28,77,0.10),
              0 24px 48px -12px rgba(33,28,77,0.16);
  --shadow-4: 0 2px 4px rgba(33,28,77,0.06), 0 14px 28px -6px rgba(33,28,77,0.13),
              0 40px 72px -16px rgba(33,28,77,0.22);

  /* The 1px inner highlight along a surface's top edge — the single detail
     that most reads as "physical material" rather than "coloured rectangle". */
  --specular: inset 0 1px 0 rgba(255,255,255,0.85);
  --specular-dark: inset 0 1px 0 rgba(255,255,255,0.14);

  --glass-light: rgba(255,255,255,0.74);
  --glass-tint: rgba(255,255,255,0.58);
  --glass-dark: rgba(33,28,77,0.62);
  --blur: saturate(180%) blur(20px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Ambient depth ------------------------------------------------------
   Glass needs something behind it or it just looks like flat translucency.
   These soft colour fields give the blur something to pick up. Pseudo-elements
   only — no markup changes. */
.section { position: relative; isolation: isolate; }
.section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  top: -180px;
  right: -160px;
  background: radial-gradient(circle, rgba(108,99,201,0.10) 0%, rgba(108,99,201,0.04) 45%, transparent 70%);
  pointer-events: none;
}
.section--tint::before {
  background: radial-gradient(circle, rgba(201,168,117,0.16) 0%, rgba(201,168,117,0.05) 45%, transparent 70%);
  left: -200px;
  right: auto;
  top: auto;
  bottom: -220px;
}
.section--tint { overflow: hidden; }

/* ---- Header: liquid glass ---------------------------------------------- */
.site-header {
  background: rgba(247,244,239,0.72);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(226,221,208,0.7);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 4px 20px -8px rgba(33,28,77,0.10);
}

/* ---- Surfaces ----------------------------------------------------------- */
.pillar,
.card,
.provider {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.80) 100%);
  border: 1px solid rgba(255,255,255,0.9);
  outline: 1px solid rgba(226,221,208,0.55);
  outline-offset: -1px;
  box-shadow: var(--shadow-2), var(--specular);
  transform-style: preserve-3d;
  will-change: auto;
}

/* Blur is the expensive part, so it only runs where there is both something
   behind it and the headroom to composite it: pointer-fine, wider viewports. */
@media (min-width: 860px) and (pointer: fine) {
  .pillar, .card, .provider {
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
  }
}

.card__icon,
.pillar__icon {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(239,233,222,0.9));
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out);
}

/* ---- Pointer-tracked 3D -------------------------------------------------
   --rx/--ry are written by main.js on pointermove; they stay 0 everywhere the
   script does not run, so this degrades to a plain lift. */
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  .pillar, .card, .provider {
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
    transform:
      perspective(1000px)
      rotateX(var(--rx, 0deg))
      rotateY(var(--ry, 0deg))
      translate3d(0, var(--lift, 0px), 0);
  }
  .card:hover, .pillar:hover, .provider:hover {
    --lift: -6px;
    box-shadow: var(--shadow-4), var(--specular);
    transition-duration: 0.18s;
  }
  .card:hover .card__icon,
  .pillar:hover .pillar__icon {
    transform: translate3d(0, -2px, 40px);
    box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,0.9);
  }

  /* Specular sweep that follows the cursor across the surface. */
  .card::after, .pillar::after, .provider::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    background: radial-gradient(
      380px circle at var(--mx, 50%) var(--my, 50%),
      rgba(255,255,255,0.55) 0%,
      rgba(201,168,117,0.10) 35%,
      transparent 65%
    );
  }
  .card:hover::after, .pillar:hover::after, .provider:hover::after { opacity: 1; }
}

/* ---- Buttons: dimensional, not flat ------------------------------------- */
.btn { position: relative; overflow: hidden; }
.btn--primary {
  background: linear-gradient(180deg, var(--indigo-600) 0%, var(--indigo-700) 55%, #2a2360 100%);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn--primary:hover {
  background: linear-gradient(180deg, var(--indigo-700) 0%, var(--indigo-900) 100%);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,0.28);
  transform: translateY(-2px);
}
.btn--gold {
  background: linear-gradient(180deg, #dcc094 0%, var(--gold) 55%, #b8945f 100%);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,0.55);
}
.btn--gold:hover {
  background: linear-gradient(180deg, #e6cda6 0%, #cfae7c 100%);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn--light-ghost {
  background: rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn--light-ghost:hover { background: rgba(255,255,255,0.20); }
.btn:active { transform: translateY(1px) scale(0.985); }

/* ---- Hero: depth behind the type ---------------------------------------- */
.hero {
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(108,99,201,0.42) 0%, transparent 62%),
    radial-gradient(700px 460px at 8% 92%, rgba(201,168,117,0.20) 0%, transparent 60%),
    linear-gradient(165deg, #2a2461 0%, var(--indigo-900) 55%, #1a1640 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(26,22,64,0.5) 100%);
}
.hero__trust {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(201,168,117,0.28);
  border-radius: 14px;
  padding: 14px 20px;
  color: rgba(247,244,239,0.78);
  box-shadow: var(--specular-dark);
}

/* ---- Hours card: glass over indigo, contrast preserved ------------------- */
.hours-card {
  background:
    linear-gradient(180deg, rgba(50,42,110,0.92) 0%, rgba(33,28,77,0.95) 100%);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(201,168,117,0.22);
  box-shadow: var(--shadow-4), var(--specular-dark);
}

/* The crisis note stays deliberately high-contrast — no glass, no blur.
   This is the one block on the site someone may read in an emergency. */
.crisis-note {
  background: rgba(33,28,77,0.55);
  border: 1px solid rgba(201,168,117,0.35);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

/* ---- Back to top: glass pill -------------------------------------------- */
.back-to-top {
  background: rgba(50,42,110,0.78);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-3), var(--specular-dark);
}

/* ---- Insurance chips ----------------------------------------------------- */
.insurance-list li {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border: 1px solid rgba(255,255,255,0.85);
  outline: 1px solid rgba(226,221,208,0.5);
  outline-offset: -1px;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
}

/* ---- Focus: visible on every material ----------------------------------- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--indigo-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Fallbacks ----------------------------------------------------------
   Without backdrop-filter the translucent surfaces would sit on whatever is
   behind them and lose contrast, so they go solid. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--cream); }
  .pillar, .card, .provider { background: var(--white); }
  .hero__trust { background: rgba(255,255,255,0.12); }
  .hours-card { background: var(--indigo-900); }
  .back-to-top { background: var(--indigo-700); }
}

/* ---- Reduced motion: depth stays, movement goes ------------------------- */
@media (prefers-reduced-motion: reduce) {
  .pillar, .card, .provider, .btn, .card__icon, .pillar__icon {
    transform: none !important;
    transition: none !important;
  }
  .card::after, .pillar::after, .provider::after { display: none; }
}
