/* ==========================================================================
   SeaChange Mental Health - styles.css
   Palette extracted from the SeaChange logo + brand SVG ornaments.
   Core brand teals: #3F7076 (sea icon), #3F8088 (wave ornament).
   ========================================================================== */

/* ---------- 1. Custom properties ---------------------------------------- */
:root {
  /* Brand - deep to light */
  --ink:        #123b4c;  /* deep sea navy: headings, body copy            */
  --ink-soft:   #2c5766;  /* secondary text                                */
  --teal-900:   #1e5a63;
  --teal-700:   #3f7076;  /* brand core (from Group-1.svg)                 */
  --teal-600:   #3f8088;  /* brand wave (from Ornament-11.svg)             */
  --teal-400:   #6fa9ab;
  --mint-300:   #a9cfc5;
  --mint-100:   #dceae4;

  /* Sand neutrals */
  --sand-50:    #fbf7f0;  /* page background                               */
  --sand-100:   #f4ead9;  /* logo background / soft section fill           */
  --sand-200:   #e8dac4;
  --sand-300:   #d6c3a5;
  --white:      #ffffff;

  /* Semantic */
  --bg:            var(--sand-50);
  --surface:       var(--white);
  --surface-alt:   var(--sand-100);
  --border:        rgba(18, 59, 76, 0.12);
  --border-strong: rgba(18, 59, 76, 0.24);
  --focus:         #b1541f;   /* warm terracotta - 4.6:1 on sand, visible  */

  /* Placeholder styling (build-time markers) */
  --ph-bg:     #fff4d6;
  --ph-border: #c99a2e;
  --ph-ink:    #6a4a04;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.86rem, 0.83rem + 0.14vw, 0.94rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.19rem, 1.12rem + 0.34vw, 1.4rem);
  --step-2:  clamp(1.41rem, 1.29rem + 0.58vw, 1.8rem);
  --step-3:  clamp(1.67rem, 1.47rem + 0.98vw, 2.35rem);
  --step-4:  clamp(1.98rem, 1.66rem + 1.6vw, 3.05rem);
  --step-5:  clamp(2.36rem, 1.85rem + 2.53vw, 3.95rem);

  /* Space + shape */
  --gutter:     clamp(1.15rem, 0.8rem + 1.7vw, 2.25rem);
  --section-y:  clamp(3.5rem, 2.4rem + 5vw, 7rem);
  --maxw:       1160px;
  --maxw-prose: 68ch;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(18, 59, 76, 0.05),
               0 2px 8px rgba(18, 59, 76, 0.05);
  --shadow:    0 2px 4px rgba(18, 59, 76, 0.05),
               0 10px 30px -8px rgba(18, 59, 76, 0.14);
  --shadow-lg: 0 4px 8px rgba(18, 59, 76, 0.05),
               0 24px 56px -16px rgba(18, 59, 76, 0.2);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset / base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5 { font-family: var(--font-body); font-size: var(--step-0); margin: 0 0 0.5em; }

p, ul, ol { margin: 0 0 1.15em; }
p { text-wrap: pretty; }

a { color: var(--teal-900); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* Visible focus everywhere */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

::selection { background: var(--mint-300); color: var(--ink); }

/* ---------- 3. Layout helpers ------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - (var(--gutter) * 2), 820px); }

.section { padding-block: var(--section-y); position: relative; }
.section--sand  { background: var(--surface-alt); }
.section--mint  { background: linear-gradient(180deg, var(--mint-100), var(--sand-50)); }
.section--deep  { background: var(--teal-900); color: var(--sand-100); }
.section--deep h2, .section--deep h3 { color: var(--white); }
.section--deep a { color: var(--mint-300); }
.section--deep a:hover { color: var(--white); }
.section--tight { padding-block: clamp(2.25rem, 1.6rem + 3vw, 4rem); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 0.9rem;
}
.section--deep .eyebrow { color: var(--mint-300); }

.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.62; }
.section--deep .lede { color: var(--mint-100); }
.prose { max-width: var(--maxw-prose); }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }
.center { text-align: center; }

.grid { display: grid; gap: clamp(1.15rem, 0.8rem + 1.4vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.split {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
}

.stack > * + * { margin-top: 1rem; }
.flow-top { margin-top: clamp(1.75rem, 1.2rem + 2vw, 3rem); }

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  padding: 0.85em 1.65em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--teal-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-900); color: var(--white); box-shadow: var(--shadow); }

.btn--ghost { background: transparent; color: var(--teal-900); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--white); border-color: var(--teal-700); color: var(--teal-900); }

.btn--light { background: var(--white); color: var(--teal-900); }
.btn--light:hover { background: var(--mint-100); color: var(--ink); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }

.btn--sm { font-size: var(--step--1); padding: 0.65em 1.25em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.btn-row--center { justify-content: center; }

/* ---------- 5. Header / nav ---------------------------------------------- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-color 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -12px rgba(18, 59, 76, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-700);
  font-weight: 700;
}
/* Office tag in the brand - signals which of the two sections you're in. */
.brand-office { color: var(--ink); }
.brand-office::before {
  content: "·";
  margin: 0 0.35em;
  color: var(--border-strong);
}
/* On phones "MENTAL HEALTH · CRESTVIEW" is wide enough to push the menu button
   off-screen, so the office tag drops to its own line there. */
@media (max-width: 26rem) {
  .brand-office { display: block; margin-top: 0.15em; }
  .brand-office::before { content: none; }
}

/* "Switch office" - deliberately quiet; it's an escape hatch, not a destination. */
.site-nav .nav-switch {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.site-nav .nav-switch::after { display: none; }
.site-nav .nav-switch:hover { color: var(--teal-900); text-decoration: underline; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars { display: block; width: 18px; height: 12px; position: relative; }
.nav-toggle-bars span,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.1rem + 0.7vw, 1rem);
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.6rem;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.6rem; right: 0.6rem; bottom: 0.28rem;
  height: 2px;
  background: var(--teal-600);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.site-nav a:hover { color: var(--teal-900); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--teal-900); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .btn::after { display: none; }

/* Collapse to the hamburger at 76rem rather than 68rem: the office-scoped navs
   carry ~8 items plus a button, which crowds a 1160px container. Keep this value
   in sync with the matchMedia() check in js/main.js. */
@media (max-width: 75.99rem) {
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.12rem; }
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--sand-50);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.5rem var(--gutter) 1.5rem;
    display: none;
  }
  .site-nav.is-open { display: block; animation: navIn 0.28s var(--ease) both; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .site-nav a { padding: 0.8rem 0.5rem; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { background: var(--mint-100); }
  .site-nav .btn { margin-top: 0.9rem; width: 100%; border-bottom: 0; }
}
@media (min-width: 76rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 6. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, var(--mint-100) 0%, transparent 60%),
    linear-gradient(170deg, var(--sand-100) 0%, var(--sand-50) 55%);
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(4.5rem, 3rem + 7vw, 9rem);
}
.hero::after {
  /* decorative wave band at the base of every hero */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(40px, 6vw, 90px);
  background: var(--bg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 44c180 40 340-26 520-18s280 62 470 44 270-56 450-32V100H0Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 44c180 40 340-26 520-18s280 62 470 44 270-56 450-32V100H0Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__ornament {
  position: absolute;
  right: -12%;
  top: -22%;
  width: min(58vw, 640px);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero h1 { margin-bottom: 0.45em; }
.hero__lede { font-size: var(--step-2); line-height: 1.5; color: var(--ink-soft); max-width: 30ch; }
.hero--center { text-align: center; }
.hero--center .hero__lede { margin-inline: auto; max-width: 46ch; }
.hero--center .btn-row { justify-content: center; }
/* Gateway hero: shallow bottom padding so the two office cards sit as close to
   the fold as possible - choosing is the only action on this page. */
.hero--gateway { padding-block: clamp(2.75rem, 2rem + 4vw, 5rem) clamp(3rem, 2.2rem + 4vw, 5.5rem); }
.hero--gateway h1 { font-size: var(--step-4); }
.section--choice { padding-block: 0 var(--section-y); margin-top: clamp(-3.5rem, -2.5rem - 3vw, -2rem); }
.section--choice .grid { position: relative; z-index: 2; }

.hero--page { padding-block: clamp(2.5rem, 1.8rem + 3.5vw, 5rem) clamp(4rem, 2.8rem + 6vw, 7.5rem); }
.hero--page h1 { font-size: var(--step-4); }
.hero--page .hero__lede { font-size: var(--step-1); max-width: 54ch; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.hero--center .hero__badges { justify-content: center; }

/* Two provider portraits side by side - the telehealth hub hero. Each card links
   to that provider's page; the caption carries the name, so the img alt is empty. */
.provider-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.provider-duo__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.provider-duo__card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.provider-duo__card:nth-child(2) { margin-top: 1.75rem; }
.provider-duo__card:hover img { transform: translateY(-3px); }
.provider-duo__name { font-weight: 700; line-height: 1.3; }
.provider-duo__office { font-size: var(--step--1); color: var(--teal-700); }
@media (prefers-reduced-motion: reduce) {
  .provider-duo__card:hover img { transform: none; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.42em 0.95em;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--teal-900);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
a.pill:hover { border-color: var(--teal-600); color: var(--ink); }
.pill--plain { background: transparent; box-shadow: none; font-weight: 600; color: var(--ink-soft); }

/* ---------- 7. Cards ----------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2.15rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
  height: 100%;
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.5rem; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mint-300); }
.card--sand { background: var(--surface-alt); }
.card--outline { background: transparent; box-shadow: none; }
.section--deep .card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--mint-100);
}
.section--deep .card h3 { color: var(--white); }

.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--mint-100);
  color: var(--teal-900);
  margin-bottom: 1.05rem;
}
.card__icon svg { width: 24px; height: 24px; }

/* Location chooser cards */
.location-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  height: 100%;
}
.location-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.location-card__body { padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); display: flex; flex-direction: column; flex: 1; }
.location-card__body > :last-child { margin-bottom: 0; }
.location-card__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.6rem;
  font-size: var(--step--1);
}
.location-card__meta li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink-soft); }
.location-card__meta svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.28em; color: var(--teal-700); }
.location-card .btn-row { margin-top: auto; }

/* ---------- 8. Placeholders (photo / map / logo) ------------------------- */
.ph {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 2px dashed var(--teal-400);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(-45deg,
      rgba(111, 169, 171, 0.09) 0 12px,
      transparent 12px 24px),
    var(--mint-100);
  color: var(--teal-900);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 180px;
}
.ph span { display: block; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); }
.ph--hero   { aspect-ratio: 16 / 9; min-height: 0; }
.ph--square { aspect-ratio: 1 / 1; min-height: 0; }
.ph--portrait { aspect-ratio: 4 / 5; min-height: 0; }
.ph--wide   { aspect-ratio: 21 / 9; min-height: 0; }
.ph--map    { aspect-ratio: 16 / 10; min-height: 0; }
.ph--logo   { aspect-ratio: 5 / 2; min-height: 0; border-radius: var(--radius); padding: 0.75rem; font-size: 0.78rem; }
.ph--badge  { min-height: 132px; max-width: 220px; border-radius: var(--radius); }

/* Content placeholder - text awaiting real copy */
.tbd {
  background: var(--ph-bg);
  border-bottom: 2px solid var(--ph-border);
  color: var(--ph-ink);
  font-weight: 700;
  padding: 0.05em 0.35em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.tbd-block {
  background: var(--ph-bg);
  border: 2px dashed var(--ph-border);
  border-radius: var(--radius);
  padding: clamp(1rem, 0.85rem + 0.6vw, 1.5rem);
  color: var(--ph-ink);
  margin-bottom: 1.5rem;
}
.tbd-block > :last-child { margin-bottom: 0; }
.tbd-block strong { color: var(--ph-ink); }
.tbd-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ph-ink);
  margin-bottom: 0.5rem;
}

/* ---------- 9. Tables ---------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5rem; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: var(--step-0);
  min-width: 30rem;
}
caption { text-align: left; font-weight: 700; padding-bottom: 0.75rem; color: var(--ink-soft); }
th, td { padding: 0.9rem 1.15rem; text-align: left; border-bottom: 1px solid var(--border); }
thead th { background: var(--teal-900); color: var(--white); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.03em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(220, 234, 228, 0.35); }
td.price { font-weight: 700; color: var(--teal-900); white-space: nowrap; }

/* ---------- 10. Lists ---------------------------------------------------- */
.check-list { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1.1rem;
  height: 0.6rem;
  border-left: 2.5px solid var(--teal-600);
  border-bottom: 2.5px solid var(--teal-600);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.section--deep .check-list li::before { border-color: var(--mint-300); }

.plain-list { list-style: none; padding: 0; }

/* ---------- 11. Insurance logo grid ------------------------------------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
  gap: 1rem;
}
.logo-grid figure { margin: 0; }
.logo-grid figcaption {
  text-align: center;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.5rem;
}
/* Carrier logos arrive at wildly different aspect ratios, so each sits in a
   fixed 5:2 box and is contained rather than cropped or stretched. */
.logo-grid img {
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: contain;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.logo-grid img:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) {
  .logo-grid img:hover { transform: none; }
}
/* A carrier with no logo file (CHAMPVA) gets its name set in the same 5:2 box,
   so the grid stays even. aria-hidden in the markup: the figcaption names it. */
.logo-grid__word {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 2;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display, inherit);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--teal-700);
}
/* Credentialing not finished yet: logo muted, caption says so. */
.logo-grid .is-pending img { opacity: 0.5; filter: grayscale(1); }

/* ---------- 12. Reviews / testimonials ---------------------------------- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.rating-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.stars { display: inline-flex; gap: 2px; color: #d9a441; }
.stars svg { width: 18px; height: 18px; }
.rating-badge .rating-num { font-size: var(--step-1); font-family: var(--font-display); }
.rating-badge .rating-count { font-weight: 600; color: var(--ink-soft); font-size: var(--step--1); }

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal-600);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 0.9vw, 1.9rem);
  margin: 0;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.quote blockquote { margin: 0 0 1rem; font-size: var(--step-1); font-family: var(--font-display); line-height: 1.45; color: var(--ink); }
.quote figcaption { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); letter-spacing: 0.04em; }

/* ---------- 12b. Psychology Today verified badge -------------------------
   SeaChange's own styling - deliberately NOT a copy of Psychology Today's
   official seal artwork. If the official embed is installed later, this
   whole component can be deleted. See navarre/about.html.
   ------------------------------------------------------------------------ */
.pt-verified {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.pt-verified:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--mint-300);
  color: var(--ink);
}
.pt-verified__mark {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-700);
  color: var(--white);
}
.pt-verified__mark svg { width: 22px; height: 22px; }
.pt-verified__text { display: flex; flex-direction: column; line-height: 1.35; }
.pt-verified__text strong { font-size: var(--step-0); }
.pt-verified__text span {
  font-size: var(--step--1);
  color: var(--ink-soft);
}
@media (prefers-reduced-motion: reduce) {
  .pt-verified:hover { transform: none; }
}

/* ---------- 12c. Person row (photo + name + role) ------------------------
   Used for the billing contact; reusable for Jasmine or any named contact.
   ------------------------------------------------------------------------ */
.person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.person img {
  width: 92px;
  height: 115px;
  object-fit: cover;
  object-position: center 25%;   /* bias toward the face on a portrait crop */
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.person__name { font-weight: 700; line-height: 1.35; }
.person__role { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 26rem) {
  .person { flex-direction: column; align-items: flex-start; }
}

/* ---------- 13. Steps / process ------------------------------------------ */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.steps li { position: relative; padding-left: 3.75rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  border: 1px solid var(--mint-300);
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.steps p { margin-bottom: 0; }
.section--deep .steps li::before { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.28); }

/* ---------- 14. FAQ / details -------------------------------------------- */
.faq { display: grid; gap: 0.85rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease);
}
.faq details[open] { border-color: var(--mint-300); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2.25rem 1rem 0;
  font-weight: 700;
  font-size: var(--step-1);
  font-family: var(--font-display);
  position: relative;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--teal-700);
  border-bottom: 2px solid var(--teal-700);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > *:not(summary) { padding-bottom: 0.35rem; }
.faq details p:last-child { margin-bottom: 1rem; }

/* ---------- 15. Info / contact blocks ------------------------------------ */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.info-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 0.35em; color: var(--teal-700); }
.info-list a { font-weight: 700; }
.section--deep .info-list svg { color: var(--mint-300); }

.hours { width: 100%; border-collapse: collapse; min-width: 0; box-shadow: none; background: transparent; }
.hours th, .hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: var(--step--1); }
.hours th { background: none; color: var(--ink); font-weight: 700; letter-spacing: 0; }
.hours td { text-align: right; color: var(--ink-soft); }
.hours tbody tr:nth-child(even) { background: transparent; }

.crisis-banner {
  background: #fff2ee;
  border: 1px solid #e8b7a5;
  border-left: 5px solid #b1541f;
  border-radius: var(--radius);
  padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.75rem);
}
.crisis-banner h2, .crisis-banner h3 { color: #7c3a12; margin-bottom: 0.4rem; }
.crisis-banner > :last-child { margin-bottom: 0; }
.crisis-banner a { color: #8f4318; font-weight: 700; }

/* ---------- 16. CTA band -------------------------------------------------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(100% 120% at 15% 0%, var(--teal-700) 0%, var(--teal-900) 60%);
  color: var(--sand-100);
  overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--mint-100); }
.cta-band__ornament {
  position: absolute;
  left: -4%;
  bottom: -30%;
  width: min(38vw, 420px);
  opacity: 0.09;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }

/* ---------- 17. Breadcrumbs ----------------------------------------------- */
.breadcrumbs { font-size: var(--step--1); color: var(--ink-soft); padding-block: 0.9rem 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--border-strong); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal-900); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- 18. Footer ---------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #c8dbe0;
  padding-block: clamp(3rem, 2.2rem + 3vw, 4.75rem) 2rem;
  font-size: var(--step--1);
  line-height: 1.75;
}
.site-footer h2, .site-footer h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer a { color: #c8dbe0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.footer-brand { max-width: 30ch; }
.footer-brand img { width: 66px; height: 66px; border-radius: 50%; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-bottom {
  margin-top: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: #9fbcc4;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-disclaimer { color: #9fbcc4; margin-top: 1.25rem; max-width: 80ch; }

/* ---------- 19. Motion / reveal ------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }

body { animation: pageFade 0.55s var(--ease) both; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

/* No-JS safety: never hide content if the script fails */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card--link:hover, .location-card:hover, .rating-badge:hover { transform: none; }
  body { animation: none; }
}

/* ---------- 20. Utilities ------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.mb-0 { margin-bottom: 0; }

@media print {
  .site-header, .site-nav, .cta-band, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
