/* ==========================================================================
   Hope & Healing Therapy - site styles (website update, 2026 design)

   Colours are never hardcoded for UI chrome - they come from CSS custom properties emitted by
   the ThemeCss view component (see Content/theme.json and Content/Themes/*.json). Swapping the
   active theme re-skins the site with no CSS edits. Tokens a theme doesn't define fall back to
   values derived from the core eight below.

   The hero confetti colours (decorations.css) are illustration colours and are intentionally
   not themeable.

   The Content-Security-Policy forbids inline style attributes, so everything here is class based.
   ========================================================================== */

/* ---- Fonts (self-hosted; the CSP only allows font-src 'self') ----------- */

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/lora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Token fallbacks ------------------------------------------------------ */

:root {
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Lora", Georgia, serif;
  --font-signature: "Cormorant Garamond", Georgia, serif;

  --color-primary-hover: color-mix(in srgb, var(--color-primary-dark) 55%, var(--color-primary));
  --color-nav-text: color-mix(in srgb, var(--color-primary-dark) 60%, var(--color-primary));
  --color-text-soft: color-mix(in srgb, var(--color-primary-dark) 45%, var(--color-text-muted));
  --color-border-strong: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
  --color-border-panel: color-mix(in srgb, var(--color-primary) 30%, var(--color-surface));
  --color-border-input: color-mix(in srgb, var(--color-text-muted) 40%, var(--color-surface));
  --color-tint: color-mix(in srgb, var(--color-background) 60%, var(--color-surface));
  --color-panel: color-mix(in srgb, var(--color-primary) 9%, var(--color-surface));
  --color-icon-tile: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
  --color-aqua: var(--color-accent);
  --color-nav-bg: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface));
  --color-nav-border: color-mix(in srgb, var(--color-primary) 22%, var(--color-surface));
  --color-footer-border: color-mix(in srgb, var(--color-primary) 22%, var(--color-surface));
  --color-pill-border: color-mix(in srgb, var(--color-primary) 28%, var(--color-surface));
  --color-success-bg: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
  --color-success-text: var(--color-primary-dark);
  --color-warm-bg: color-mix(in srgb, var(--color-accent) 18%, var(--color-surface));
  --color-warm-border: color-mix(in srgb, var(--color-accent) 45%, var(--color-surface));
  --color-warm-text: color-mix(in srgb, var(--color-accent) 30%, #3a1d12);
}

/* ---- Base ------------------------------------------------------------------ */

html {
  scroll-behavior: smooth;
  color-scheme: only light;
  /* Stop iOS Safari enlarging text when a phone is turned sideways. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keep in-page jumps and keyboard focus clear of the sticky header. */
  scroll-padding-top: 200px;
}

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

a { color: var(--color-primary); }

[hidden] { display: none !important; }

button, input, select, textarea { font: inherit; }

img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.visually-hidden-focusable:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: var(--color-surface);
  padding: 10px 16px;
  border-radius: 6px;
}

/* ---- Layout helpers --------------------------------------------------------- */

.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.w-narrow { max-width: 760px; }
.w-faq    { max-width: 780px; }
.w-prose  { max-width: 800px; }
.w-form   { max-width: 860px; }
.w-medium { max-width: 960px; }
.w-wide   { max-width: 1000px; }

.section { padding: 64px 0; }

.tone-white { background-color: var(--color-surface); }
.tone-soft  { background-color: var(--color-background); }
.tone-tint  { background-color: var(--color-tint); }
.tone-panel { background-color: var(--color-panel); }
.edge-top    { border-top: 1px solid var(--color-border); }
.edge-bottom { border-bottom: 1px solid var(--color-border); }

/* Per-section vertical rhythm (the design tunes each section's padding so adjacent blocks
   keep an even gap). Values come from the page JSON: padTop / padBottom. */
.pt-0 { padding-top: 0; }   .pt-44 { padding-top: 44px; } .pt-48 { padding-top: 48px; }
.pt-56 { padding-top: 56px; } .pt-64 { padding-top: 64px; } .pt-72 { padding-top: 72px; }
.pb-0 { padding-bottom: 0; } .pb-8 { padding-bottom: 8px; } .pb-48 { padding-bottom: 48px; }
.pb-56 { padding-bottom: 56px; } .pb-64 { padding-bottom: 64px; } .pb-72 { padding-bottom: 72px; }

/* ---- Type --------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

.h2 {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.005em;
  margin: 0 0 8px;
}

.h2--center { text-align: center; }
.h2--deep { color: var(--color-primary-dark); }
.h2--spaced { margin-bottom: 32px; }

.section-head {
  max-width: 60ch;
  margin: 0 auto 32px;
  text-align: center;
}

.section-head .h2 { margin-bottom: 6px; }

.section-head__sub {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-head--wide { max-width: 70ch; }

/* ---- Buttons -------------------------------------------------------------------- */

/* Buttons, nav links and Book Now are used on both <a> and <button>. Browsers default <button> to
   border-box but <a> to content-box, so without this the same class renders at different heights. */
.btn,
.nav-link,
.nav-book { box-sizing: border-box; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.6;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.btn--primary:hover, a.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: #fff; }

.btn--secondary { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--secondary:hover, a.btn--secondary:hover { background: var(--color-panel); color: var(--color-primary-dark); }

.btn--outline { background: var(--color-surface); border-color: var(--color-primary); color: var(--color-primary); font-weight: 600; }
.btn--outline:hover, a.btn--outline:hover { background: var(--color-panel); color: var(--color-primary-dark); }

.btn--sm { padding: 12px 22px; font-size: 16px; }
.btn--form { padding: 13px 26px; font-weight: 600; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---- Header ----------------------------------------------------------------------- */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topstrip { background: var(--color-primary); }

.topstrip__inner {
  /* Same width as .header-main so the strip lines up with the logo and nav on wide screens. */
  max-width: 1140px;
  margin: 0 auto;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.topstrip__services {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.topstrip__status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-aqua); display: block; flex: 0 0 auto; }
.dot--sm { width: 7px; height: 7px; }

.header-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.brand { display: flex; align-items: center; }
.brand img { height: clamp(96px, 11vw, 152px); width: auto; display: block; }

.main-nav {
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--color-nav-bg);
  border: 1px solid var(--color-nav-border);
  border-radius: 22px;
  padding: 5px 6px;
  box-shadow: inset 0 1px 0 #fff;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-nav-text);
  white-space: nowrap;
  padding: 9px 13px;
  min-height: 38px;
  text-decoration: none;
}

/* Hover / open menu: light tint. Current page (or the parent of the current page): white pill. */
.nav-link:hover,
.nav-link[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-primary-dark);
}

.nav-link[aria-current] {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: 0 1px 3px rgba(31, 42, 43, 0.12);
}

.nav-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: 40px;
  left: -12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(35, 40, 35, 0.14);
  padding: 8px;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  z-index: 40;
}

.dropdown__item {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
}

.dropdown__item:hover,
.dropdown__item[aria-current="page"] { background: var(--color-background); color: var(--color-text); }

.nav-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 18px;
  min-height: 38px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(46, 125, 128, 0.28);
}

.nav-book:hover { background: var(--color-primary-hover); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 11px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-primary); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--color-border);
  padding: 8px 16px 16px;
  background: var(--color-surface);
}

.mobile-menu__link {
  padding: 13px 4px;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
  min-height: 44px;
  box-sizing: border-box;
}

.mobile-menu__group { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__label {
  margin: 0;
  padding: 13px 4px 5px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.mobile-menu__link--child { padding-left: 20px; }
.mobile-menu__link[aria-current="page"] { color: var(--color-primary); font-weight: 600; }
.mobile-menu__book { margin-top: 8px; padding: 13px 20px; font-size: 16px; font-weight: 600; }

@media (max-width: 860px) {
  .main-nav,
  .nav-book { display: none; }
  .nav-toggle { display: flex; }

  /* With the menu open the sticky header can be taller than a phone screen; let it scroll
     inside itself so every link (and Book Now) stays reachable. The desktop dropdown that
     would be clipped by this is not shown at this width. */
  .site-header {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
  }

  html { scroll-padding-top: 140px; }
}

/* Short screens (phones held sideways, or a laptop zoomed to 150-200%): a pinned header would cover
   half the screen, so let it scroll away with the page. */
@media (max-height: 560px) {
  .site-header {
    position: relative;
    max-height: none;
    overflow-y: visible;
  }

  html { scroll-padding-top: 0; }
}

@media (min-width: 861px) {
  .mobile-menu { display: none; }
}

/* "Book Now" pinned to the bottom of phone and tablet screens, where the header button is inside the menu. */
.book-bar { display: none; }

@media (max-width: 860px) {
  .book-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--color-surface);
    border-top: 1px solid var(--color-nav-border);
    box-shadow: 0 -2px 10px rgba(31, 42, 43, 0.08);
  }
  .book-bar__btn { width: 100%; justify-content: center; gap: 8px; }
  /* Room at the end of the page so the bar never covers the footer's last lines. */
  body:has(.book-bar) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* When the browser scrolls to the focused link or field (Tab, or a jump link), stop short of the bar so the
     focused item is never hidden behind it (WCAG 2.2 "focus not obscured"). */
  html:has(.book-bar) { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* The open menu has its own Book Now. */
  body:has(#mobile-menu:not([hidden])) .book-bar { display: none; }
}

/* Small laptops and tablets held sideways: the logo, menu, Book Now and Quick exit share one row, so everything
   is a little more compact here than on a full desktop. */
@media (min-width: 861px) and (max-width: 1200px) {
  .header-main { column-gap: 10px; }
  .main-nav { flex: 1 1 auto; }
  .brand img { height: 84px; }
  .nav-link { padding: 9px 8px; font-size: 13px; }
  .nav-book { padding: 9px 12px; }
}

@media (min-width: 861px) and (max-width: 960px) {
  .header-main { column-gap: 8px; }
  .brand img { height: 72px; }
  .nav-link { padding: 9px 4px; }
  .nav-book { padding: 9px 10px; }
}

/* ---- Hero ------------------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--color-border); }
.hero--white { background: var(--color-surface); }
.hero--tint { background: var(--color-tint); }
.hero--soft { background: var(--color-background); }

.hero__backdrop { position: absolute; inset: 0; pointer-events: none; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 50px);
  font-weight: 600;
  line-height: 1.2;
}

.hero__tagline {
  margin: 12px 0 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--color-nav-text);
}

.hero__desc {
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 54ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Signature (home) */
.hero--signature .hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 16px;
  text-align: center;
}

.hero__signature {
  font-family: var(--font-signature);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(42px, 6.2vw, 64px);
  line-height: 1.12;
  color: var(--color-primary-dark);
  text-wrap: balance;
}

.hero--signature .hero__desc { margin: 16px auto 0; max-width: 52ch; }
.hero--signature .hero__actions { justify-content: center; }

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-nav-text);
}

.hero__location svg { width: 18px; height: 18px; }

/* Split & illustrated */
.hero--split .hero__inner,
.hero--illustrated .hero__inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 40px;
  align-items: center;
}

.hero--split .hero__desc,
.hero--split .hero__tagline { max-width: 45ch; }

.hero__media { border-radius: 14px; overflow: hidden; background: var(--color-panel); }
.hero__media img { width: 100%; height: auto; display: block; }

.hero__art {
  position: relative;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__art img { position: relative; z-index: 1; width: 100%; max-width: 330px; height: auto; display: block; }

/* Article */
.hero--article { background: var(--color-tint); }
.hero--article .hero__inner { max-width: 800px; margin: 0 auto; padding: 64px 16px 56px; }

.hero__back {
  display: inline-block;
  margin: 0 0 18px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 15px;
  text-decoration: none;
}

.hero__back:hover { text-decoration: underline; }

.hero--article .hero__title { font-size: clamp(34px, 5vw, 46px); }

.hero--article .hero__desc {
  margin: 16px 0 0;
  font-size: 19px;
  color: var(--color-text-soft);
  line-height: 1.6;
  max-width: 56ch;
}

/* ---- Prose (rich text) ------------------------------------------------------------- */

.prose p { margin: 0 0 16px; line-height: 1.7; }
.prose > p:last-child { margin-bottom: 0; }

.prose--lead > p:first-child, .prose p.lead { font-size: 19px; line-height: 1.75; }
.prose .muted-note--sm { margin-top: 18px; }
.prose--lead-deep > p:first-child { color: var(--color-primary-dark); }

.prose h2 {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.005em;
  margin: 40px 0 12px;
}

.prose > h2:first-child { margin-top: 0; }

.prose h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.prose h4 { font-size: 16px; font-weight: 700; color: var(--color-nav-text); margin: 26px 0 6px; }

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.7;
}

.prose a { font-weight: 600; }

.prose .lede-muted { color: var(--color-text-muted); font-size: 17px; margin: 0 0 16px; }
.prose h2 + .lede-muted { margin-top: -6px; }
.prose .muted-note { color: var(--color-text-muted); margin-top: 26px; }

/* Long reference pages (fees, legal) run a little tighter. */
.prose--tight p { margin-bottom: 14px; }
.prose--tight h2 { margin: 36px 0 10px; }
.prose--tight ul, .prose--tight ol { gap: 8px; }

/* Utility blocks that long-form pages build inside bodyHtml (class names are the contract
   between the page JSON and this file). */
.callout {
  background: var(--color-panel);
  border: 1px solid var(--color-border-panel);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 20px;
}

.callout p { margin: 0; color: var(--color-text-soft); line-height: 1.7; }
.callout p + p { margin-top: 10px; }
.callout .callout__title { margin: 0 0 6px; font-weight: 700; color: var(--color-primary-dark); font-size: 18px; }

.callout--warm { background: var(--color-warm-bg); border-color: var(--color-warm-border); }
.callout--warm p { color: var(--color-warm-text); }

.callout--panel { margin: 44px 0 0; border-radius: 14px; padding: 32px 28px; }
.callout--panel h2 { margin: 0 0 12px; color: var(--color-primary-dark); }
.callout--panel p { color: var(--color-primary-dark); margin: 0 0 14px; }
.callout--panel p:last-child { margin-bottom: 0; }

.callout--center { text-align: center; }
.callout--center p { max-width: 56ch; margin-left: auto; margin-right: auto; color: var(--color-text-soft); }

.panel-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  padding: 24px 26px;
  margin: 24px 0 0;
}

.panel-box h3 { margin: 0 0 6px; }
.panel-box h4 { margin-top: 26px; }
.panel-box h4:first-of-type { margin-top: 20px; }
.panel-box > p { color: var(--color-text-muted); margin: 0 0 14px; }

.note-quote {
  margin: 0 0 12px;
  padding: 14px 20px;
  background: var(--color-tint);
  border-radius: 10px;
  line-height: 1.7;
  color: var(--color-primary-dark);
  font-style: italic;
}

.bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.bullets li { display: flex; gap: 10px; align-items: flex-start; color: var(--color-text-muted); font-size: 15px; line-height: 1.5; }
.bullets li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); margin-top: 7px; }
.bullets strong { color: var(--color-text); }

.prose .bullets { padding-left: 0; gap: 12px; }
.prose .bullets li { font-size: inherit; line-height: 1.6; }
.prose .bullets li::before { margin-top: 8px; }

.check-grid {
  list-style: none;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 8px 18px !important;
  margin: 0 0 16px;
}

.check-grid li { display: flex; align-items: center; gap: 9px; line-height: 1.6; color: var(--color-text-soft); }
.check-grid li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); flex: 0 0 auto; }

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.provider-grid > div { background: var(--color-background); border: 1px solid var(--color-border); border-radius: 10px; padding: 14px 18px; }
.provider-grid strong { display: block; color: var(--color-primary-dark); }
.provider-grid span { color: var(--color-text-muted); font-size: 15px; }

.fee-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
}

.fee-table th {
  padding: 13px 20px;
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
}

.fee-table th:last-child, .fee-table td:last-child { text-align: right; }
.fee-table td { padding: 15px 20px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 15px; white-space: nowrap; }
.fee-table td:first-child { font-weight: 600; color: var(--color-text); font-size: inherit; white-space: normal; }
.fee-table td:last-child { font-weight: 700; color: var(--color-primary-dark); font-size: inherit; }
/* Fee cells with words ("Ask for current group fees") must be allowed to wrap on narrow screens. */
.fee-table td:last-child { white-space: normal; min-width: 5.5em; }

/* ---- Cards ------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.card-grid--gap20 { gap: 20px; }
.card-grid--gap24 { gap: 24px; }
.card-grid--full { max-width: none; }
.card-grid--stack { grid-template-columns: 1fr; gap: 16px; }
.h2--mb20 { margin-bottom: 20px; }
.grid-note { margin: 26px auto 0; max-width: 70ch; text-align: center; color: var(--color-text-muted); line-height: 1.7; }
.grid-note a { font-weight: 600; }
.card-grid--wide-cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card { display: flex; flex-direction: column; }

.card__title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.card__text { margin: 0; color: var(--color-text-muted); line-height: 1.6; }

.card__link {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 15px;
  text-decoration: none;
}

.card__link:hover { text-decoration: underline; }

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-icon-tile);
  color: var(--color-primary);
  margin: 0 auto 14px;
}

.card__icon svg { width: 26px; height: 26px; }

.card--icon {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.card--icon .card__text { font-size: 15px; line-height: 1.6; }

.card--soft {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px 24px;
}

.card--soft .card__title { color: var(--color-primary-dark); }
.card--soft .card__text { color: var(--color-text-soft); }

.card__head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.card__head .card__title { margin: 0; color: var(--color-text); }

.card__tile {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-panel);
  color: var(--color-nav-text);
}

.card__tile svg { width: 21px; height: 21px; }

.card--outline,
.card--plain {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 22px 24px;
}

.card--outline { border: 1px solid var(--color-border-strong); }
.card--plain { border: 1px solid var(--color-border); }
.card--outline .card__title, .card--plain .card__title { color: var(--color-primary-dark); }
.card--plain .card__text { color: var(--color-text-soft); line-height: 1.7; }

.card--tiles,
.card--tiles-plain {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 22px;
}

.card--tiles { border: 1px solid var(--color-border-strong); }
.card--tiles-plain { border: 1px solid var(--color-border); }
.card__plain { margin: 0; line-height: 1.6; }

.card--note {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px 22px;
}

.card--note .card__title { font-size: 18px; color: var(--color-primary-dark); margin-bottom: 6px; }
.card--note .card__text { color: var(--color-text-soft); line-height: 1.7; }

.card--resource {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
}

.card--resource .card__title { color: var(--color-primary-dark); }
.card--resource .card__text { color: var(--color-text-soft); line-height: 1.65; margin-bottom: 14px; }
.card--resource .card__link { padding-top: 0; }

/* ---- Feature icons ("What you can expect here") --------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-background);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--color-text-muted); font-size: 15px; }

/* ---- Check list, steps, facts, quote --------------------------------------------------- */

.checks {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px 32px;
}

.checks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.checks li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); margin-top: 9px; }

.block-intro { margin: 0 0 22px; color: var(--color-text-muted); line-height: 1.7; }

.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; gap: 16px; align-items: flex-start; }

.step__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-panel);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 15px;
}

.step__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.step__text { margin: 0; color: var(--color-text-muted); line-height: 1.7; }

.steps--solid .step { gap: 18px; }
.steps--solid .step__num { width: 38px; height: 38px; background: var(--color-primary); color: #fff; font-size: inherit; }
.steps--solid .step__text { color: var(--color-text-soft); }

.steps--compact { gap: 16px; }
.steps--compact .step__num { width: 36px; height: 36px; background: var(--color-primary); color: #fff; font-size: inherit; }
.steps--compact .step__title { color: var(--color-primary-dark); }
.steps--compact .step__text { color: var(--color-text); }

.facts { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.facts p { margin: 0; color: var(--color-text-soft); }
.facts strong { color: var(--color-primary-dark); }

.facts--strip {
  padding: 20px 24px;
  background: var(--color-tint);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-top: 30px;
}

.facts--panel {
  margin-top: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  padding: 22px 26px;
  gap: 10px 32px;
  justify-content: center;
}

.quote {
  margin: 0 0 56px;
  padding: 26px 30px;
  border-left: 3px solid var(--color-primary);
  background: var(--color-tint);
  border-radius: 0 12px 12px 0;
}

.quote__text { font-size: 20px; line-height: 1.6; color: var(--color-primary-dark); font-style: italic; }
.quote__by { margin: 10px 0 0; font-size: 15px; color: var(--color-text-muted); }

/* ---- Calls to action ---------------------------------------------------------------------- */

.cta-band { background: var(--color-panel); color: var(--color-primary-dark); }
.cta-band .container { padding-top: 56px; padding-bottom: 56px; text-align: center; }

.cta-band__title,
.cta-panel__title {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.005em;
  color: var(--color-primary-dark);
  margin: 0 0 12px;
}

.cta-band__text,
.cta-panel__text {
  margin: 0 auto 24px;
  max-width: 58ch;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.cta-band .btn-row { justify-content: center; }

.cta-panel {
  background: var(--color-panel);
  border: 1px solid var(--color-border-panel);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
}

.cta-panel__text { max-width: 56ch; }
.cta-panel .btn-row { justify-content: center; }

.cta-plain { text-align: center; }
.cta-plain .btn-row { justify-content: center; }
.cta-plain .cta-panel__text a { font-weight: 600; }
.cta-panel__text a, .cta-band__text a { font-weight: 600; }

/* ---- Split media (image beside text) ---------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px;
  align-items: center;
}

.split__media { border-radius: 14px; overflow: hidden; background: var(--color-panel); }
.split__media img { width: 100%; height: auto; display: block; }
/* Drawn illustration (no photo frame): centred, never wider than 460px, with its decorative shapes
   (decorations.css) sitting in the empty margin around the drawing. */
.split__media--illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
  overflow: visible;
  background: none;
  border-radius: 0;
}
.split__media--illustration img { position: relative; z-index: 1; max-width: 460px; }
.split__caption { margin: 0; padding: 8px 12px; font-size: 13px; line-height: 1.4; font-style: italic; color: var(--color-text-soft); text-align: center; }
.split__body { max-width: 52ch; }

.split--inset { padding-left: 128px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.split--portrait { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
.split--text-first .split__media { order: 2; }

.split__title {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.005em;
  margin: 0 0 14px;
}

.split--inset .split__title { color: var(--color-primary-dark); margin: 0; }
.split--inset .split__copy p { font-size: 19px; color: var(--color-text-muted); margin: 14px 0 0; line-height: 1.6; }
.split--portrait .split__copy p { font-size: 18px; line-height: 1.7; color: var(--color-text-soft); margin: 0 0 14px; }
.split--portrait .split__copy p:last-child { margin-bottom: 22px; }
.split--default .split__body,
.split--portrait .split__body { max-width: none; }
.split__body .btn { margin-top: 24px; }
.split--portrait .btn { margin-top: 0; }

@media (max-width: 760px) {
  .split--inset { padding-left: 16px; }
  .split--portrait { grid-template-columns: minmax(0, 1fr); }
  .split--portrait .split__media { max-width: 260px; }
}

/* ---- Logos --------------------------------------------------------------------------------- */

.badge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 16px;
  align-items: center;
  justify-items: center;
  margin-top: 24px;
}

.badge-row img { max-width: 100%; max-height: 104px; width: auto; height: auto; display: block; }
.badge-row img.is-small { max-height: 64px; }

.fund-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.fund {
  box-sizing: border-box;
  width: 112px;
  height: 84px;
  flex: 0 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

.fund img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }

.logo-note { margin: 20px auto 0; max-width: 72ch; text-align: center; color: var(--color-text-muted); font-size: 15px; line-height: 1.7; }
.logo-note a { font-weight: 600; }
.logo-intro { margin: 0 auto 28px; text-align: center; color: var(--color-text-muted); font-size: 15px; }
.logo-intro a { font-weight: 600; }

/* ---- Contact links & details ------------------------------------------------------------------ */

.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 6px; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.contact-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-icon-tile);
  color: var(--color-primary);
}

.contact-link__icon svg { width: 18px; height: 18px; }

.contact-details {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 28px;
  display: grid;
  /* Columns are at least 330px so the email address and its copy icon stay on one line. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 22px 32px;
}

.contact-details__item { display: flex; gap: 12px; align-items: flex-start; }

.contact-details__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-icon-tile);
  color: var(--color-primary);
}

.contact-details__icon svg { width: 17px; height: 17px; }

.contact-details__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.contact-details__value { display: block; line-height: 1.6; }
/* Padding lifts the phone/email links to a comfortable tap size (24px+) without moving the text. */
.contact-details__value a { font-weight: 600; word-break: break-word; display: inline-block; padding: 4px 0; margin: -4px 0; }
.contact-details__note { color: var(--color-text-muted); font-size: 15px; }

/* Icon-only copy button beside the email address; swaps to a tick for a moment after copying. */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--color-primary);
  cursor: pointer;
  vertical-align: middle;
}

.copy-btn svg { width: 18px; height: 18px; }
.copy-btn:hover { background: var(--color-panel); color: var(--color-primary-dark); }
.copy-btn__done { display: none; }
.copy-btn.is-copied { color: var(--color-success-text); }
.copy-btn.is-copied .copy-btn__copy { display: none; }
.copy-btn.is-copied .copy-btn__done { display: block; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* ---- Testimonials -------------------------------------------------------------------------------- */

.testimonial-list { display: flex; flex-direction: column; gap: 24px; }

.testimonial {
  position: relative;
  margin: 0 auto;
  max-width: 760px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 44px 36px 84px;
}

/* A large, pale opening quote mark that hangs beside the first line rather than sitting on a row of its own.
   It is decorative (aria-hidden), so it doesn't need text contrast. */
.testimonial__mark {
  position: absolute;
  top: 30px;
  left: 30px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: var(--color-accent);
  pointer-events: none;
}

/* The matching closing mark sits at the end of the last line; line-height 0 keeps it from opening up that line. */
.testimonial__mark-end {
  margin-left: 4px;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 0;
  vertical-align: -0.35em;
  color: var(--color-accent);
}
.testimonial__quote p { margin: 0 0 14px; font-size: 18px; line-height: 1.75; }
.testimonial__quote p:last-child { margin-bottom: 0; }

/* "Read the full review": a plain text link. Once opened it disappears, so the review reads straight through. */
.testimonial__more summary {
  display: inline-block;
  color: var(--color-primary-dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}
.testimonial__more summary::-webkit-details-marker { display: none; }
.testimonial__more summary::after { content: " \2192"; }
.testimonial__more summary:hover { color: var(--color-text); }
.testimonial__more summary:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }
.testimonial__more[open] summary { display: none; }

.testimonial__by {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-nav-text);
  font-style: normal;
}

.testimonial__detail { font-weight: 400; color: var(--color-text-muted); }

/* ---- FAQ ---------------------------------------------------------------------------------------------- */

.faq__group-title { margin: 40px 0 16px; }
.faq__group-title:first-child { margin-top: 0; }
.faq__list { display: flex; flex-direction: column; gap: 8px; }

.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  box-sizing: border-box;
}

.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--color-background); }

.faq__chev {
  color: var(--color-primary);
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -5px;
  transition: transform 0.15s ease;
}

.faq__item[open] .faq__chev { transform: rotate(-135deg); margin-top: 4px; }

.faq__a { padding: 0 20px 20px; color: var(--color-text-soft); line-height: 1.75; }
.faq__a p { margin: 0 0 16px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a a { font-weight: 600; }

/* ---- About: credentials ------------------------------------------------------------------------------------ */

.cred {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 28px 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-border);
}

.cred:last-child { border-bottom: 0; }

.cred__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1.5;
}

.cred__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px 32px;
}

.cred__list li { line-height: 1.5; }
.cred__list strong { display: block; }
.cred__list span { color: var(--color-text-muted); font-size: 15px; }

@media (max-width: 640px) {
  .cred { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ---- Forms ------------------------------------------------------------------------------------------------------ */

.form-intro { margin: 0 0 28px; color: var(--color-text-muted); font-size: 17px; max-width: 60ch; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; margin-bottom: 18px; }
.form-row { margin-bottom: 18px; }

.field__label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--color-primary-dark); }
.field__req { color: var(--color-primary); }

.input,
.select,
.textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border-input);
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

.input, .select { height: 44px; padding: 0 12px; }
.textarea { padding: 12px; resize: vertical; }

.input:focus, .select:focus, .textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
  outline-offset: 0;
  border-color: var(--color-primary);
}

.field-validation-error { display: block; margin-top: 4px; color: #b3261e; font-size: 14px; }
.input-validation-error { border-color: #b3261e; }

/* Groups of questions in the appointment request form. */
.form-fieldset { margin: 0 0 22px; padding: 18px 18px 4px; border: 1px solid var(--color-border); border-radius: 10px; min-width: 0; }
.form-fieldset__legend { padding: 0 6px; font-weight: 700; font-size: 16px; color: var(--color-primary-dark); }
.form-row--narrow { max-width: 160px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; color: var(--color-text); cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-primary); }
.booking-hours { margin: 0 0 20px; font-size: 15px; color: var(--color-text-soft); line-height: 1.6; }
.booking-choice { margin-bottom: 4px; padding-bottom: 14px; border-bottom: 1px dashed var(--color-border); }
.booking-choice:last-of-type { border-bottom: 0; }

.form-note { margin: 16px 0 0; font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }
.form-note--fieldset { margin: 0 0 14px; }
.form-note--required { margin: 0 0 16px; }
.form-note--contact { margin-top: 24px; font-size: 15px; }
.form-note--notice { margin: 4px 0 20px; }

.alert { border-radius: 8px; padding: 16px 18px; margin-bottom: 24px; line-height: 1.6; }
.alert--success { background: var(--color-success-bg); border: 1px solid var(--color-border-panel); color: var(--color-success-text); }
.alert--error { background: var(--color-warm-bg); border: 1px solid var(--color-warm-border); color: var(--color-warm-text); }

.contact-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Directory (resources) -------------------------------------------------------------------------------------------- */

.directory-intro { margin: 0 auto 28px; max-width: 66ch; text-align: center; color: var(--color-text-muted); line-height: 1.7; }
.directory-intro strong { color: var(--color-nav-text); }

.directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  align-items: start;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.dir-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; padding: 22px 24px; }
.dir-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--color-primary-dark); }
.dir-list { margin: 8px 0 0; padding: 0; list-style: none; }
.dir-item { display: flex; flex-direction: column; gap: 3px; padding: 13px 0; border-top: 1px solid var(--color-border); }
.dir-item a { font-weight: 700; }
.dir-item span { color: var(--color-text-muted); font-size: 15px; line-height: 1.55; }
.dir-item strong { color: var(--color-nav-text); }
.directory-foot { margin: 24px auto 0; max-width: 72ch; text-align: center; color: var(--color-text-muted); font-size: 15px; line-height: 1.7; }

/* ---- Quick exit ------------------------------------------------------------------------------------------------ */

/* In the header (which stays on screen while scrolling), white with a deep teal outline and text: easy to find at a
   glance without looking like a warning, and quieter than Book Now. Deep teal on white is about 8:1. The small
   link underneath explains it. */
/* The wrapper is only as tall as the button, so the button lines up with Book Now; the "What's this?" link
   hangs just below it without affecting the row. */
.quick-exit-wrap {
  position: relative;
  display: flex;
  flex: 0 0 auto;
}

.quick-exit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 38px;
  padding: 8px 14px;
  border: 2px solid var(--color-primary-dark);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}

.quick-exit svg { width: 16px; height: 16px; flex: 0 0 auto; }
.quick-exit:hover { background: var(--color-primary-dark); color: #fff; }
.quick-exit:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }

.quick-exit-explain {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  line-height: 1.3;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.quick-exit-explain:hover { color: var(--color-text); }

/* The keyboard copy straight after the skip link, shown in the same place as the skip link when focused. */
.quick-exit-skip:focus { background: var(--color-text); color: #fff; font-weight: 700; }

@media (max-width: 860px) {
  /* Phones: sits beside the menu button, at the right of the header. */
  .quick-exit-wrap { margin-left: auto; }
  .quick-exit { min-height: 40px; }
  .quick-exit-wrap + .nav-toggle { margin-left: 0; }
}

@media (max-width: 400px) {
  /* The smallest phones: keep the logo, Quick exit and menu button on one row. */
  .header-main { column-gap: 10px; }
  .quick-exit { padding: 8px 12px; }
}

@media (min-width: 861px) and (max-width: 1200px) {
  .quick-exit { padding: 8px 10px; font-size: 13px; }
}

/* Set the moment Quick exit is pressed, so nothing stays visible while the next site loads. */
body.is-exiting { visibility: hidden; }

/* ---- Footer ------------------------------------------------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-panel);
  color: var(--color-text-soft);
  padding: 48px 0 24px;
  margin-top: 48px;
  border-top: 1px solid var(--color-footer-border);
}

.footer-block {
  margin: 0 0 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-footer-border);
  text-align: center;
}

.footer-block--crisis { padding-bottom: 24px; }

.footer-block__title { margin: 0 0 12px; color: var(--color-text); font-size: 28px; font-weight: 700; line-height: 1.3; }
.footer-block__title--tight { margin-bottom: 6px; }

.footer-block__text { margin: 8px auto 0; font-size: 15px; max-width: 80ch; }
.footer-block__text--0 { margin-top: 0; }
.footer-block__text--1 { max-width: none; }

.crisis-list { margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.crisis-list strong, .crisis-list a, .crisis-emergency, .crisis-emergency a { color: var(--color-primary-dark); }
.crisis-list a, .crisis-emergency a { font-weight: 700; }
.crisis-emergency { margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.crisis-safety { margin: 14px auto 0; max-width: 80ch; font-size: 14px; line-height: 1.6; }
.crisis-safety a { color: var(--color-primary-dark); font-weight: 600; }

.footer-ack__sub { margin: 0 0 14px; font-size: 17px; color: var(--color-text-soft); }

.flags { display: flex; justify-content: center; gap: 10px; margin: 0 0 14px; }
.flags img { width: 52px; height: 35px; object-fit: cover; border-radius: 3px; display: block; border: 1px solid var(--color-footer-border); }

.footer-ack__text { margin: 0 auto; max-width: 660px; font-size: 14px; line-height: 1.7; text-wrap: balance; }
.footer-ack__text + .footer-ack__text { margin-top: 10px; }

.footer-trademark { margin: 0 auto; max-width: 680px; font-size: 13px; line-height: 1.7; color: var(--color-text-soft); text-wrap: balance; }

.footer-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 26px; }

.pill {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-pill-border);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--color-primary-dark);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 38px;
  box-sizing: border-box;
  text-decoration: none;
}

.pill:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 0 0 20px; }
.footer-social a { color: var(--color-primary-dark); font-size: 15px; font-weight: 600; }

.footer-legal { padding-top: 20px; border-top: 1px solid var(--color-footer-border); text-align: center; font-size: 13px; color: var(--color-text-soft); }

/* ---- Simple centred state pages (404, error) --------------------------------------------------------------------------------------- */

.state-page { text-align: center; }
.state-page .eyebrow { text-align: center; }
.state-page .section-head__sub { margin: 0 auto 24px; max-width: 46ch; }
.state-page .btn-row { justify-content: center; }
.state-page .form-note { margin-top: 24px; }
.state-page__dev-note { text-align: left; margin-top: 32px; }

/* ---- Small screens --------------------------------------------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .testimonial { padding: 28px 22px 28px 54px; }
  .testimonial__mark { top: 20px; left: 16px; font-size: 56px; }
  .hero--split .hero__inner,
  .hero--illustrated .hero__inner { padding: 48px 16px 56px; }
  .hero--signature .hero__inner { padding: 56px 16px; }
  .footer-block__title { font-size: 24px; }
  .pill { min-height: 44px; }
  .fee-table th, .fee-table td { padding: 12px 14px; }
  .btn { white-space: normal; text-align: center; }
  /* Stacked buttons on phones read as a tidy column rather than two different widths. */
  .btn-row > .btn,
  .hero__actions > .btn { flex: 1 1 100%; }
}

/* The smallest phones (320px wide): let the fee table's length column wrap too, so the table fits the
   screen instead of pushing the whole page sideways. */
@media (max-width: 400px) {
  .fee-table th, .fee-table td { padding: 10px; }
  .fee-table td { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq__chev { transition: none; }
}

/* ---- Print (e.g. a parent printing the Fees or Privacy page) ------------------------------------ */

@media print {
  .topstrip,
  .main-nav,
  .nav-book,
  .book-bar,
  .nav-toggle,
  .mobile-menu,
  .hero__backdrop,
  .btn-row,
  .quick-exit-wrap,
  .visually-hidden-focusable { display: none !important; }

  .site-header { position: static; border-bottom: 1px solid #999; }
  .brand img { height: 72px; }

  body,
  .tone-white, .tone-soft, .tone-tint, .tone-panel,
  .hero, .hero--white, .hero--tint, .hero--soft { background: #fff !important; }

  * { box-shadow: none !important; }

  .section { padding: 20px 0; }
  .card, .fee-table, .faq__item, figure, blockquote { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
}
