/* P7 Behavioral Health, version 3: the website drawn from Doug's one-page brochure.
   Colours, type, tags, cards and the teal call band all come from P7BH Brochure\P7BH-Brochure-template.html.
   Rules for the look: DESIGN.md. */

@font-face { font-family: Montserrat; src: url(../fonts/Montserrat-var.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
/* The brochure's two typefaces, hosted here (SIL Open Font License, texts in /fonts). Latin letters only. */
@font-face { font-family: Fraunces; src: url(../fonts/Fraunces-var-latin.woff2) format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/SourceSans3-var-latin.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  /* the brochure's palette */
  --ink: #16302f; --muted: #4f6664; --teal: #1f5f5b; --deep: #0e2826;
  --line: #d9d2c4; --paper: #fffdf9; --sand: #f5f0e5; --white: #fff;
  --sud: #ad5e26; --mh: #2f6d9e;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 56px); --max: 1180px; --r: 6px;
  /* the page's left and right edge: the header lines up with the words below it */
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 - 8px));
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #8fb0ab var(--paper); }
body { font: 400 1.125rem/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.nav-open { overflow: hidden; }
::selection { background: var(--teal); color: #fff; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
.hero :focus-visible, .bar :focus-visible, .callband :focus-visible, .foot :focus-visible, .nav-open .bar :focus-visible { outline-color: #fff; }
#view:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--paper); color: var(--ink); padding: .6em 1em; border-radius: 4px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; padding-inline: var(--edge); }

/* ------------------------------------------------------------------ the logo (one drawing, coloured by variables) */
.logo-box { fill: var(--logo, #fff); }
.logo-cut { fill: var(--logo-cut, #0e2826); }

/* ------------------------------------------------------------------ header */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 78px; display: flex; align-items: center; gap: 28px; padding-inline: var(--edge);
  color: #fff; --logo: #fff; --logo-cut: #12302e; transition: background-color .35s, color .35s, box-shadow .35s, height .35s var(--ease); }
/* scrolled: clear at the top of the page, then the brochure's teal with white lettering, never white (Doug, 2026-11-20).
   --bar-tint is how solid the bar is: .86 since 2026-11-21 (Doug: "a little darker gradient, closer to that darker
   green"; .5 was David's first trial and read grey over white), 1 is solid. It is a gradient: the footer's dark green
   at the top edge down to the call band's teal. Below about .8 the white lettering fails contrast over a white page.
   The page behind is blurred so its words do not read through the menu. The tint and blur sit on ::before, NOT on
   .bar: a filter on .bar breaks the phone menu. */
.bar { --bar-tint: .86; }
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: linear-gradient(rgb(22 48 47 / calc(var(--bar-tint) + .08)), rgb(31 95 91 / var(--bar-tint))); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .16), 0 14px 30px -22px rgba(14, 40, 38, .7); }
.bar.is-solid { height: 66px; --logo-cut: var(--teal); text-shadow: 0 1px 3px rgba(14, 40, 38, .55); }
.bar.is-solid::before { opacity: 1; }
.brand { flex: none; position: relative; z-index: 3; }
.brand svg { height: 38px; width: auto; aspect-ratio: 750 / 127; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 30px); margin-left: auto; font-weight: 600; font-size: 1.02rem; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.is-here::after { transform: scaleX(1); }
.call { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: 1.02rem; padding: .5em .9em; border-radius: 5px; background: rgba(255, 255, 255, .15); white-space: nowrap; transition: background-color .3s, color .3s; }
.call svg { width: 17px; height: 17px; }
.call:hover { background: rgba(255, 255, 255, .28); }
.bar.is-solid .call { background: var(--paper); color: var(--teal); text-shadow: none; }
.bar.is-solid .call:hover { background: #fff; color: var(--ink); }
.menu-btn { display: none; }

/* ------------------------------------------------------------------ shared type and pieces */
.display { font: 400 clamp(2.5rem, 5.3vw, 4.5rem)/1.06 var(--serif); letter-spacing: -.018em; max-width: 12.5em; text-wrap: balance; }
.title { font: 400 clamp(1.9rem, 3.3vw, 2.8rem)/1.1 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .16em; margin: -.08em 0 -.16em; }
.wi { display: inline-block; will-change: transform; }

.tag { display: inline-block; font: 700 .74rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; padding: .32em .7em .3em; border-radius: 3px; white-space: nowrap; font-style: normal; }
.tag.sud { background: var(--sud); }
.tag.mh { background: var(--mh); }
.tag.soon { background: none; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--muted); }
.dt { font-weight: 700; color: var(--teal); text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; padding-top: .24em; }
.states { display: flex; gap: 6px; flex-wrap: wrap; }
.st { border: 1.5px solid var(--teal); color: var(--teal); font-weight: 700; font-size: .86rem; line-height: 1.5; padding: 0 .5em; border-radius: 3px; }
.legend { display: grid; gap: 8px; font-size: .98rem; font-weight: 600; white-space: nowrap; }
.legend li { display: flex; align-items: center; gap: .7em; }
.legend .tag { min-width: 3.5em; text-align: center; }

.arr { width: 28px; height: 12px; flex: none; transition: transform .45s var(--ease); }
.arr.flip { transform: scaleX(-1); }
a:hover > .arr, button:hover > .arr { transform: translateX(5px); }
a:hover > .arr.flip { transform: scaleX(-1) translateX(5px); }
.ico { width: 18px; height: 18px; flex: none; }
.out { width: 12px; height: 12px; flex: none; }

.btn { display: inline-flex; align-items: center; gap: .65em; padding: .8em 1.25em; border-radius: 5px; border: 1.5px solid transparent; font-weight: 700; font-size: 1.04rem; line-height: 1.2; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .62); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--ink); }
.btn-line { border-color: var(--teal); color: var(--teal); }
.btn-line:hover { background: var(--teal); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.go { display: inline-flex; align-items: center; gap: .7em; font-weight: 700; color: var(--teal); border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.go:hover { color: var(--ink); }
.fine { font-size: .92rem; color: var(--muted); margin-top: 1rem; }
.crisis { font-size: 1rem; color: var(--muted); margin-top: 1.6rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 5px; background: #fff; max-width: 44rem; }

/* ------------------------------------------------------------------ the photo header (the brochure's header) */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(86vh, 800px); color: #fff; background: var(--deep); overflow: hidden; }
.hero-short { min-height: clamp(420px, 58vh, 540px); }
.hero-center { min-height: min(80vh, 740px); }
.hero-photo { position: absolute; inset: -2% 0 -9% 0; z-index: -2; transform-origin: 50% 40%; will-change: transform; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero-photo img.is-on { opacity: 1; }
.hero-split .hero-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.hero-split .hero-photo img { position: static; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(14, 40, 38, .6) 0, rgba(14, 40, 38, 0) 190px),
  linear-gradient(90deg, rgba(14, 40, 38, .9) 0%, rgba(14, 40, 38, .64) 52%, rgba(14, 40, 38, .16) 100%); }
.hero-in { position: relative; padding-top: 150px; padding-bottom: clamp(56px, 9vh, 96px); text-shadow: 0 1px 26px rgba(14, 40, 38, .35); }
.hero .lede { max-width: 41rem; text-wrap: pretty; font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.45; margin-top: 1.1rem; }
.hero .lede strong { display: block; font-weight: 700; margin-top: .15em; }
.hero .btn { text-shadow: none; }
.hero-place { position: absolute; right: var(--edge); bottom: 26px; z-index: 1; display: inline-flex; align-items: center; gap: .65em; font-size: .98rem; font-weight: 600; padding: .4em .8em .4em .4em; border-radius: 4px; background: rgba(14, 40, 38, .58); transition: background-color .3s; }
.hero-place:hover { background: rgba(14, 40, 38, .8); }
.trail { display: flex; flex-wrap: wrap; align-items: center; gap: .15em .6em; font-weight: 600; font-size: .95rem; margin-bottom: 1.1rem; color: rgba(255, 255, 255, .78); }
.trail a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .45); padding-bottom: 1px; }
.trail a:hover { border-bottom-color: #fff; }
.trail > span[aria-hidden] { opacity: .6; }
.kind { display: flex; flex-wrap: wrap; align-items: center; gap: .7em; font-weight: 600; margin-top: 1rem; }
.phone-xl { display: inline-block; font: 600 clamp(2.3rem, 6vw, 4.2rem)/1.15 var(--serif); margin-top: .7rem; padding: .04em .3em; border-radius: 6px; background: rgba(255, 255, 255, .13); text-shadow: none; transition: background-color .3s; }
.phone-xl:hover { background: rgba(255, 255, 255, .24); }
.hero-find .hero-in { padding-bottom: 136px; }

/* ------------------------------------------------------------------ bands */
.band { padding-block: clamp(64px, 9vw, 112px); }
.band.sand { background: var(--sand); }
.network { padding-top: clamp(40px, 5vw, 60px); }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.lead p { color: var(--muted); margin-top: 1rem; max-width: 34rem; }
.lead.wide { max-width: 44rem; margin-bottom: clamp(32px, 4vw, 52px); }
.lead .legend { margin-top: 1.4rem; color: var(--ink); }

/* the brochure's intro line, legend and seal */
.intro { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 72px); align-items: center; margin-bottom: clamp(30px, 4vw, 48px); }
.intro-text { font-size: 1.2rem; line-height: 1.5; color: var(--muted); max-width: 39rem; }
.intro-text b { color: var(--ink); font-weight: 700; }
.badges { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 26px; row-gap: 10px; }
.seal-img { width: 96px; height: 96px; }
.seal-note { grid-column: 1 / -1; font-size: .86rem; line-height: 1.35; color: var(--muted); max-width: 21rem; }

/* ------------------------------------------------------------------ the two center cards (the brochure's cards)
   Both cards share one row grid (subgrid), so every line sits at the same height in both. */
.cards { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(10, auto); column-gap: clamp(20px, 2.6vw, 32px); }
.card { grid-row: span 10; display: grid; grid-template-rows: subgrid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff;
  transition: box-shadow .6s var(--ease), translate .6s var(--ease); }
.card:hover { box-shadow: 0 28px 54px -34px rgba(22, 48, 47, .55); translate: 0 -3px; }
.card > *:not(.photos) { padding-inline: clamp(1.1rem, 2vw, 1.7rem); }
.photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: clamp(220px, 25vw, 320px); }
.photos span { display: block; overflow: hidden; min-height: 0; }
.photos .big { grid-row: 1 / 3; }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); }
.card:hover .photos img { scale: 1.045; }
.card .t { padding-top: 1.35rem; }
.card h2 { font: 600 clamp(1.5rem, 2.3vw, 1.85rem)/1.12 var(--serif); padding-top: .55rem; }
.card h2 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); }
.card h2 a:hover { background-size: 100% 1.5px; }
.card .loc { font-size: 1rem; color: var(--muted); padding-top: .3rem; }
.card p { font-size: 1.05rem; line-height: 1.5; padding-top: .7rem; padding-bottom: 1.15rem; }
.row { display: grid; grid-template-columns: 8.2rem 1fr; gap: 14px; font-size: 1.02rem; line-height: 1.4; padding-bottom: .7rem; }
.card .row.first { margin-inline: clamp(1.1rem, 2vw, 1.7rem); padding-inline: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.card-go { padding-top: .9rem; padding-bottom: 1.6rem; align-self: end; }

/* ------------------------------------------------------------------ home: not sure, steps, standard, questions */
.unsure-in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.unsure .actions { margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps li { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.step-n { display: block; font: 400 2.9rem/1 var(--serif); color: var(--teal); font-variant-numeric: lining-nums; }
.steps h3 { font: 700 1.18rem/1.3 var(--sans); margin-top: .9rem; }
.steps p { color: var(--muted); font-size: 1.04rem; line-height: 1.5; margin-top: .4rem; }
.after-steps, .join { margin-top: 2.4rem; }
.standard-body p { color: var(--muted); font-size: 1.15rem; max-width: 36rem; }
.faces { display: flex; margin: 1.6rem 0 1.7rem; }
.faces img { width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--sand); margin-left: -12px; background: #fff; }
.faces img:first-child { margin-left: -3px; }

.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 1.15rem 0; background: none; border: 0; font: 600 1.15rem/1.35 var(--sans); color: var(--ink); text-align: left; cursor: pointer; transition: color .3s; }
.qa button:hover { color: var(--teal); }
.plus { width: 16px; height: 16px; flex: none; color: var(--teal); transition: transform .5s var(--ease); }
.is-open .plus { transform: rotate(45deg); }
.qa-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.qa-panel > div { overflow: hidden; }
.is-open .qa-panel { grid-template-rows: 1fr; }
.qa-panel p { padding-bottom: 1.3rem; color: var(--muted); max-width: 38rem; }

/* ------------------------------------------------------------------ find care (the guide) */
.finder { padding-top: 0; }
.guide { position: relative; z-index: 3; margin-top: -84px; max-width: 900px; min-height: 350px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(22px, 4vw, 46px); box-shadow: 0 34px 60px -44px rgba(22, 48, 47, .6); }
.guide-count { display: flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.guide-count i { width: 28px; height: 4px; border-radius: 2px; background: var(--line); }
.guide-count i.done { background: var(--teal); }
.guide-count i.now { background: var(--ink); }
.guide-count span { margin-left: 8px; }
.guide-ask { font: 400 clamp(1.7rem, 3vw, 2.3rem)/1.15 var(--serif); letter-spacing: -.01em; margin: 1rem 0 1.4rem; outline: none; text-wrap: balance; }
.guide-result { margin-top: 0; }
.guide-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.guide-options.four { grid-template-columns: 1fr 1fr; }
.guide-options.long { grid-template-columns: 1fr; }
.guide-options button { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 14px; text-align: left; padding: 1rem 1.15rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: 5px; color: var(--ink); cursor: pointer;
  transition: border-color .3s, background-color .3s, color .3s; }
.guide-options strong { grid-column: 1; font-weight: 700; font-size: 1.12rem; }
.guide-options span { grid-column: 1; color: var(--muted); font-size: .98rem; line-height: 1.35; transition: color .3s; }
.guide-options .arr { grid-column: 2; grid-row: 1 / span 2; color: var(--teal); }
.guide-options button:hover { border-color: var(--teal); background: #f0f5f3; }
.guide-options button.is-picked { background: var(--teal); border-color: var(--teal); color: #fff; }
.guide-options button.is-picked span, .guide-options button.is-picked .arr { color: #fff; }
.btn-text { background: none; border: 0; font: 600 1.02rem var(--sans); color: var(--teal); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; margin-top: 1.3rem; padding: .3em 0; }
.btn-text:hover { color: var(--ink); }
.guide-why { color: var(--muted); max-width: 42rem; }
.guide-center { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 20px; margin: 1.5rem 0; padding-right: 1.3rem; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); transition: border-color .3s, box-shadow .5s var(--ease); }
.guide-center:hover { border-color: var(--teal); box-shadow: 0 20px 40px -30px rgba(22, 48, 47, .6); }
.guide-center img { width: 170px; height: 124px; object-fit: cover; }
.guide-center-text { display: grid; gap: 5px; justify-items: start; padding-block: .8rem; }
.guide-center strong { font: 600 1.4rem/1.15 var(--serif); }
.guide-center em { font-style: normal; color: var(--muted); font-size: .98rem; }
.guide-center .arr { color: var(--teal); }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.guide-actions .btn-text { margin-top: 0; }

/* ------------------------------------------------------------------ centers page */
.soon-row { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px 22px; }
.soon-row h2 { font: 600 1.5rem/1.2 var(--serif); }
.soon-row p { color: var(--muted); }

/* ------------------------------------------------------------------ one center */
.gallery-band { padding-block: clamp(26px, 4vw, 44px) 0; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(120px, 15.5vw, 212px); gap: 3px; border-radius: var(--r); overflow: hidden; }
.mosaic figure { overflow: hidden; min-height: 0; }
.mosaic figure:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic figure:nth-child(8) { grid-column: 3 / 5; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); }
.mosaic figure:hover img { scale: 1.05; }
.facts-about { font-size: 1.12rem; }
.own-site { display: flex; align-items: center; gap: 18px; margin-top: 1.9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 600; font-size: 1rem; line-height: 1.4; color: var(--teal); }
.own-site img { height: 46px; width: auto; flex: none; }
.own-site span { display: inline; }
.own-site .nw { white-space: nowrap; }
.own-site .out { display: inline-block; margin-left: .45em; }
.own-site:hover { color: var(--ink); }
.sheet-rows { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .5rem clamp(1.1rem, 2vw, 1.7rem); }
.sheet-rows .row { padding-block: 1.05rem; border-top: 1px solid var(--line); }
.sheet-rows .row:first-child { border-top: 0; }
.places-row { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: stretch; }
.loc-card { flex: 1 1 260px; display: grid; gap: 4px; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.4rem; }
.loc-card strong { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; font: 600 1.35rem/1.2 var(--serif); }
.loc-card span { color: var(--muted); }
.loc-card a { font-weight: 700; color: var(--teal); justify-self: start; }
.loc-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.seal { flex: 1 1 300px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.seal img { width: 86px; height: 86px; flex: none; }
.part .two { align-items: center; }
.part-line { font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.4 var(--serif); }
.part-line strong { font-weight: 600; }
.next-center { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 20px; padding-right: 1.4rem; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; transition: border-color .3s, box-shadow .5s var(--ease); }
.next-center:hover { border-color: var(--teal); box-shadow: 0 20px 40px -30px rgba(22, 48, 47, .6); }
.next-center img { width: 150px; height: 112px; object-fit: cover; }
.next-center em { display: block; font-style: normal; font-size: .95rem; color: var(--muted); }
.next-center strong { display: flex; flex-wrap: wrap; align-items: center; gap: .55em; font: 600 1.45rem/1.2 var(--serif); margin-top: 2px; }
.next-center .arr { color: var(--teal); }

/* ------------------------------------------------------------------ what we treat */
.treat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.treat-col { border-top: 1px solid var(--line); padding-top: 1.7rem; }
.treat-at { display: flex; flex-wrap: wrap; align-items: center; gap: .7em; color: var(--muted); font-weight: 600; font-size: 1.02rem; margin: .9rem 0 1.3rem; }
.treat-list { columns: 2; column-gap: 28px; margin-bottom: 1.7rem; }
.treat-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: 1.08rem; }
.levels > div { display: grid; grid-template-columns: minmax(0, 13rem) 1fr; gap: 22px; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.levels > div:last-child { border-bottom: 1px solid var(--line); }
.levels dt { font: 600 1.22rem/1.25 var(--serif); }
.levels dd { color: var(--muted); }
.at { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin-top: .65rem; font-size: .95rem; font-weight: 600; color: var(--ink); }
.therapies li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: .85rem 0; border-top: 1px solid var(--line); }
.therapies li:last-child { border-bottom: 1px solid var(--line); }
.tags { display: flex; gap: 6px; flex: none; }

/* ------------------------------------------------------------------ admissions */
.bring { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem clamp(1.1rem, 2vw, 1.7rem); }
.bring h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; font: 600 1.35rem/1.25 var(--serif); margin-bottom: 1rem; }
.bring li { display: flex; gap: .75em; padding: .6rem 0; border-top: 1px solid var(--line); }
.tick { width: 16px; height: 16px; flex: none; color: var(--teal); margin-top: .42em; }

/* ------------------------------------------------------------------ about */
.big { font: 400 clamp(1.35rem, 2.1vw, 1.7rem)/1.4 var(--serif); }
.owns { margin-top: 1.4rem; max-width: 40rem; }
.prose { max-width: 46rem; }
.prose h2 { font: 600 clamp(1.35rem, 2vw, 1.6rem)/1.25 var(--serif); margin: 2.4rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { line-height: 1.6; }
.prose p + p { margin-top: .8rem; }
.prose ul { display: grid; gap: .5rem; padding-left: 1.2rem; list-style: disc; }
.prose li::marker { color: var(--teal); }
.prose a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.keeps { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 2.3rem; }
.keeps h3 { font: 700 .8rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .7rem; }
.keeps li { padding: .65rem 0; border-top: 1px solid var(--line); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 30px 20px; }
.person { display: grid; justify-items: center; align-content: start; gap: 3px; text-align: center; }
.person img { width: 118px; height: 118px; border-radius: 50%; margin-bottom: 8px; background: #fff; }
.person strong { font-weight: 700; }
.person span { color: var(--muted); font-size: .96rem; }
.benefits > div { display: grid; grid-template-columns: 8.2rem 1fr; gap: 14px; padding: .95rem 0; border-top: 1px solid var(--line); }
.benefits > div:last-child { border-bottom: 1px solid var(--line); }
.benefits dt { font-weight: 700; color: var(--teal); text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; padding-top: .3em; }

/* ------------------------------------------------------------------ contact */
.where-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.where-list li { display: grid; gap: 6px; justify-items: start; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.where-name { font: 600 1.4rem/1.2 var(--serif); margin-top: .5rem; }
a.where-name:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.where-addr { color: var(--muted); }
.where-phone { font-weight: 700; font-size: 1.12rem; color: var(--teal); }
.where-phone:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------------ the call band and footer (the brochure's footer) */
.callband { background: var(--teal); color: #fff; padding-block: clamp(40px, 5vw, 62px); }
.callband-in { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.callband h2 { font: 400 clamp(1.9rem, 3.2vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.01em; }
.callband p { color: #e3efec; margin-top: .55rem; max-width: 37rem; }
.num { font: 600 clamp(1.8rem, 3.4vw, 2.7rem)/1.2 var(--serif); padding: .1em .42em .14em; border-radius: 5px; background: rgba(255, 255, 255, .13); white-space: nowrap; transition: background-color .3s; }
.num:hover { background: rgba(255, 255, 255, .25); }
.foot { background: var(--deep); color: #c9dbd7; padding-block: 54px 38px; font-size: 1.02rem; --logo: #fff; --logo-cut: var(--deep); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 30px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.foot-brand svg { height: 34px; width: auto; aspect-ratio: 750 / 127; }
.foot-line { font: 400 1.25rem/1.3 var(--serif); color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 28px 40px; margin-top: 34px; }
.foot-grid h2 { font: 700 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #9fc1bb; margin-bottom: .7rem; }
.foot-grid a { display: block; padding: .28rem 0; width: fit-content; }
.foot-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-grid p { max-width: 24rem; line-height: 1.5; }
.foot-legal { margin-top: 38px; font-size: .9rem; color: #9fc1bb; }
.foot-office { margin-top: .5rem; font-size: .9rem; color: #9fc1bb; }
.office { margin-top: 1.6rem; display: grid; gap: 2px; }
.office span { color: var(--muted); }
.foot-legal a { color: #fff; text-decoration: underline; text-underline-offset: 4px; margin-inline: .5em; }
.callbar { display: none; }

/* ------------------------------------------------------------------ page change: a teal sheet with the page's name */
.passage { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--teal); color: #fff; visibility: hidden; transform: translateY(100%); will-change: transform; }
.passage-word { font: 400 clamp(1.5rem, 7vw, 6rem)/1.1 var(--serif); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; padding: .1em .12em .2em; }
.passage-word span { display: inline-block; }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1020px) {
  .two, .unsure-in, .intro { grid-template-columns: 1fr; }
  .unsure .actions { margin-top: .4rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .where-list { grid-template-columns: 1fr; }
  .part .two { gap: 28px; }
}
@media (max-width: 900px) {
  .bar { gap: 12px; }
  .menu-btn { display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; z-index: 3; }
  .menu-btn span:not(.sr) { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .45s var(--ease); }
  .nav-open .menu-btn span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .nav-open .menu-btn span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; z-index: 2; margin: 0; flex-direction: column; justify-content: center; gap: 4px; padding: 90px var(--gutter) 120px; background: var(--deep); color: #fff;
    font: 400 2.1rem/1.2 var(--serif); visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; }
  .nav a { padding: 10px 0; width: fit-content; }
  .nav-open .nav { visibility: visible; opacity: 1; transition: opacity .35s; }
  .nav-open .bar { color: #fff; --logo: #fff; --logo-cut: var(--deep); background: transparent; box-shadow: none; text-shadow: none; }
  .nav-open .bar::before { opacity: 0; }
  .call { margin-left: auto; position: relative; z-index: 3; }
  .nav-open .bar .call { background: rgba(255, 255, 255, .15); color: #fff; }
}
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 26px; }
  .card { grid-row: auto; display: block; }
  .photos { height: clamp(210px, 56vw, 340px); }
  .treat { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 34vw; }
  .mosaic figure:nth-child(1) { grid-column: 1 / 3; grid-row: span 2; }
  .mosaic figure:nth-child(8) { grid-column: 1 / 3; }
  .callband-in { grid-template-columns: 1fr; gap: 22px; justify-items: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:last-child { grid-column: 1 / -1; }
  .soon-row { grid-template-columns: auto 1fr; }
  .soon-row p { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 1.08rem; padding-bottom: 58px; }
  .bar { height: 66px; }
  .bar.is-solid { height: 60px; }
  .brand svg { height: 32px; }
  .call { display: none; }
  .menu-btn { margin-left: auto; }
  .hero { min-height: min(88vh, 720px); }
  .hero-short { min-height: 440px; }
  .hero::before { background:
    linear-gradient(180deg, rgba(14, 40, 38, .62) 0%, rgba(14, 40, 38, .5) 34%, rgba(14, 40, 38, .9) 100%); }
  .hero-in { padding-top: 110px; padding-bottom: 46px; }
  .hero-home .hero-in { padding-bottom: 86px; }
  .hero-place { left: var(--gutter); right: auto; bottom: 22px; font-size: .92rem; }
  .hero-find .hero-in { padding-bottom: 120px; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .badges { grid-template-columns: 1fr auto; }
  .row, .benefits > div { grid-template-columns: 1fr; gap: 2px; }
  .steps { grid-template-columns: 1fr; }
  .levels > div { grid-template-columns: 1fr; gap: 6px; }
  .treat-list { columns: 1; }
  .keeps { grid-template-columns: 1fr; }
  .guide { margin-top: -96px; }
  .guide-options.four, .guide-options { grid-template-columns: 1fr; }
  .guide-center, .next-center { grid-template-columns: 96px 1fr; gap: 14px; padding-right: 1rem; }
  .guide-center .arr, .next-center .arr { display: none; }
  .guide-center img, .next-center img { width: 96px; height: 100%; min-height: 104px; }
  .own-site { flex-direction: column; align-items: flex-start; gap: 12px; }
  .people { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .person img { width: 96px; height: 96px; }
  .foot { padding-bottom: 30px; }
  .callbar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 40; justify-content: center; align-items: center; gap: .55em; min-height: 58px; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--teal); color: #fff; font-weight: 600; box-shadow: 0 -10px 26px -14px rgba(0, 0, 0, .55); border-top: 1px solid rgba(255, 255, 255, .18); }
  .callbar svg { width: 18px; height: 18px; }
  .callbar strong { font-weight: 700; }
  .nav-open .callbar { z-index: 55; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ before the script starts, and without it */
/* With scripts on, text that makes an entrance waits unseen for the moment app.js takes over (no flash of text
   that then hides and rises). Without scripts nothing waits, and every answer is open. */
html.js:not(.ready) :is([data-split], [data-rise], [data-wipe]) { visibility: hidden; }
html:not(.js) .qa-panel { grid-template-rows: 1fr; }
html:not(.js) .qa .plus { display: none; }
