/* ==========================================================================
   Dramov Naturopathic Medical Center — professional medical
   Near-white neutrals, deep teal (sage-deep) as the primary action color,
   botanical green secondary; clay reserved for rare accents only.
   Montserrat (headings) + Instrument Sans (text), self-hosted.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #fbfaf7;
  --paper-2: #f3f1ea;
  --ink: #232823;
  --ink-soft: #4c5148;
  --sage: #94b7bc;
  --sage-deep: #3d5f68;
  --sage-wash: rgba(148, 183, 188, 0.14);
  --leaf: #5f7d4d;
  --leaf-deep: #3d5433;
  --clay: #a4552a;
  --clay-deep: #86441f;
  --clay-light: #d9905e;
  --cream: #f7f5ef;
  --line: #e3dfd3;
  --line-strong: #cfc8b6;

  --font-display: "Montserrat", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-text: "Instrument Sans", "Avenir Next", "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --shadow-soft: 0 18px 40px -18px rgba(39, 43, 38, 0.24);
  --shadow-card: 0 10px 30px -16px rgba(39, 43, 38, 0.2);

  --check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 12.5l5.5 5.5L20.5 6'/%3E%3C/svg%3E");
  --leaf-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22c0-6 1-11 8-18-9 2-13 8-13 13 0 2 .9 3.9 2.4 5H12z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; interpolate-size: allow-keywords; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0325rem;
  line-height: 1.68;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 4.1vw, 3.25rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.25rem); }
h3 { font-size: 1.14rem; line-height: 1.3; }

section { scroll-margin-top: 120px; }

h1 em, h2 em {
  font-style: normal;
  color: var(--sage-deep);
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.skip-link:focus { top: 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.775rem;
  font-weight: 640;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1.1rem;
}
/* The slogan text and the ™ are separate flex items, so the .eyebrow `gap` was
   pushing the mark ~0.65rem clear of "medicine." and leaving it floating in
   space. Cancel the gap for this one item so the mark hugs the text. */
.eyebrow .tm { letter-spacing: 0; font-size: 0.7em; vertical-align: super; margin-left: -0.65rem; }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sage-deep);
  opacity: 0.55;
}

.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.section-head { max-width: 42em; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head h2 { margin-bottom: 0.4rem; }

.section-head-center {
  margin-inline: auto;
  text-align: center;
}
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sage-deep);
  opacity: 0.55;
}
.section-head-center .section-sub { margin-inline: auto; max-width: 38em; }

.section-head-split {
  max-width: none;
  display: grid;
  gap: 1rem 4rem;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head-split { grid-template-columns: 1.2fr 1fr; }
  .section-head-split .section-sub { padding-bottom: 0.5rem; }
}
.section-sub { color: var(--ink-soft); max-width: 30em; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 620;
  font-size: 0.95rem;
  color: var(--sage-deep);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1.5px;
  transition: background-size 0.35s var(--ease);
  padding-bottom: 2px;
}
.text-link .arrow { transition: transform 0.35s var(--ease); }
.text-link:hover { background-size: 100% 1.5px; }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-text);
  font-size: 0.94rem;
  font-weight: 640;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--sage-deep);
  color: var(--cream);
  box-shadow: 0 10px 24px -14px rgba(61, 95, 104, 0.75);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--sage-deep) 82%, var(--ink));
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(61, 95, 104, 0.8);
}
.btn .btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-outline { border-color: var(--sage-deep); color: var(--sage-deep); }
.btn-outline:hover { background: var(--sage-deep); color: var(--cream); transform: translateY(-2px); }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }

.btn-ghost-light { border-color: rgba(245, 239, 227, 0.45); color: var(--cream); }
.btn-ghost-light:hover { border-color: var(--cream); transform: translateY(-2px); }

.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: -38px;
  z-index: 50;
}

.topbar {
  height: 38px;
  background: var(--ink);
  color: rgba(245, 239, 227, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.topbar-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.topbar-item { margin: 0; white-space: nowrap; }
.topbar-item:first-child { justify-self: start; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-hours { justify-self: center; }
.topbar-phone { justify-self: end; color: var(--cream); font-weight: 640; text-decoration: none; }
.topbar-phone:hover { color: var(--sage); }
@media (max-width: 720px) {
  .topbar-hours { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto; }
}
@media (max-width: 560px) {
  .topbar-phone { display: none; }
  .topbar-inner { grid-template-columns: 1fr; justify-items: center; }
}

.navbar {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled .navbar { box-shadow: 0 12px 30px -18px rgba(39, 43, 38, 0.35); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand { flex: none; }
.brand img { height: 40px; width: auto; }

/* Primary nav */
.site-nav { display: flex; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 560;
  white-space: nowrap;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-link:hover { background: var(--sage-wash); color: var(--sage-deep); }
.caret { transition: transform 0.25s var(--ease); }
.has-menu:hover .caret,
.has-menu.open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 258px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  list-style: none;
  margin: 0;
  padding: 0.55rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease) 0.3s, transform 0.2s var(--ease) 0.3s, visibility 0.2s 0.3s;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.has-menu:hover .dropdown,
.has-menu:focus-within .dropdown,
.has-menu.open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s, 0s, 0s;
}
.dropdown a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 520;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.dropdown a:hover { background: var(--sage-wash); color: var(--sage-deep); padding-left: 1.05rem; }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; flex: none; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.94rem;
  font-weight: 640;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--sage-deep); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-item-mobile { display: none; }

@media (max-width: 1120px) {
  .nav-phone { display: none; }
}
@media (max-width: 1000px) {
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-item-mobile { display: block; }

  /* Solid navbar on mobile: backdrop-filter turns .navbar into the containing
     block for the fixed .site-nav overlay, which silently pinned the open menu
     to the navbar's box instead of the viewport (menu items floated over page
     content). A solid background needs no blur, and fixed positioning works. */
  .navbar {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    top: 74px;
    z-index: 40;
    /* display: block, NOT the inherited row-flex: as a flex container .site-nav
       let .nav-list size to max-content (flex-grow 0), so the whole menu — rows,
       dividers, tap targets — sat in a ~265px column with a dead gutter on the
       right instead of filling the panel. */
    display: block;
    background: var(--paper);
    overflow-y: auto;
    padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem) 7rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }

  /* The overlay's top: 74px assumes the 38px topbar has scrolled away (sticky
     header, top: -38px). Opened at page top, the overlay sliced the navbar's
     lower 38px — logo and close button cut mid-glyph. Hiding the topbar while
     the menu is open makes the 74px offset exact at every scroll position. */
  .nav-open .topbar { display: none; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0.25rem;
    font-size: 1.05rem;
    border-radius: 0;
  }
  .nav-link:hover { background: none; }

  /* Section headers are disclosure controls here, not always-open labels: the
     old treatment force-expanded all three dropdowns into one ~25-row list.
     Each row now folds out on tap, so the menu opens as six tappable rows. */
  .nav-trigger { pointer-events: auto; }
  .nav-trigger .caret {
    display: block;
    flex: none;
    width: 13px;
    height: 9px;
    color: var(--sage-deep);
  }
  .has-menu.open > .nav-trigger { color: var(--sage-deep); }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border: 0;
    box-shadow: none;
    background: none;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    /* --dd-h is measured per section in main.js so the fold-out animates to its
       real height; the rem value is only a no-JS/failure fallback. */
    transition: max-height 0.34s var(--ease), visibility 0.34s var(--ease);
  }
  /* These carry .open/:not(.open) so they outrank the desktop hover/open rules
     (same 0-3-0 specificity, declared later). Both matter:
     - transform: the desktop rule re-applies translate(-50%, 0) once a section
       is open, which slid every folded-out item half its width off-screen;
     - visibility: the desktop :focus-within rule would otherwise reveal a
       collapsed section, trapping focus in clipped, invisible links. */
  .has-menu:not(.open) > .dropdown { max-height: 0; visibility: hidden; transform: none; }
  .has-menu.open > .dropdown { max-height: var(--dd-h, 34rem); visibility: visible; transform: none; }
  .dropdown::before { display: none; }
  .dropdown a {
    padding: 0.6rem 0.25rem 0.6rem 1rem;
    font-size: 0.98rem;
    color: var(--ink-soft);
  }
  .dropdown li:last-child a { margin-bottom: 0.75rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  background: var(--paper-2);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 38%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    92deg,
    var(--paper) 0px,
    color-mix(in srgb, var(--paper) 94%, transparent) calc(50vw - 280px),
    color-mix(in srgb, var(--paper) 58%, transparent) calc(50vw + 40px),
    color-mix(in srgb, var(--paper) 12%, transparent) calc(50vw + 240px),
    transparent calc(50vw + 400px)
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.8rem, 9vw, 8.2rem);
}
.hero-copy { max-width: 640px; }
.hero-copy-wide { max-width: 730px; }
.hero h1 { font-size: clamp(2.45rem, 4.6vw, 3.8rem); }
.hero-copy .lede { margin-top: 1.2rem; max-width: 31em; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.cta-note {
  margin: 0.8rem 0 0;
  font-size: 0.8rem;
  font-weight: 560;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.85;
}

/* Mobile light-hero treatment lives in the consolidated "Mobile pass" block at the
   end of this file — the photo stays as a full-bleed backdrop with a vertical wash. */

.hero-tall { display: flex; align-items: center; min-height: min(calc(100svh - 115px), 940px); }
.hero-tall .hero-inner { width: 100%; }

/* ---------- Trust bar (marquee) ---------- */
.trustbar {
  background: var(--sage-deep);
  color: var(--cream);
  overflow: clip;
}
.trustbar-track {
  display: flex;
  width: max-content;
  animation: trust-marquee 36s linear infinite;
}
.trustbar:hover .trustbar-track { animation-play-state: paused; }
@keyframes trust-marquee {
  to { transform: translateX(-50%); }
}
.trustbar-inner {
  list-style: none;
  margin: 0;
  padding: 0.95rem 0;
  display: flex;
  flex-wrap: nowrap;
}
.trustbar-inner li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding-inline: 2.4rem 0;
}
.trustbar-inner li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--sage);
  -webkit-mask: var(--check-mask) no-repeat center / contain;
  mask: var(--check-mask) no-repeat center / contain;
}

/* ---------- Full-bleed banner hero (bottom-centered variant) ---------- */
.hero-banner {
  position: relative;
  overflow: clip;
  display: flex;
  align-items: flex-end;
  min-height: clamp(500px, 58vh, 620px);
}
.hero-banner .hero-bg {
  position: absolute;
  inset: 0;
}
.hero-banner .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.hero-banner .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(18, 21, 18, 0.88) 0%,
    rgba(18, 21, 18, 0.64) 38%,
    rgba(18, 21, 18, 0.26) 72%,
    rgba(18, 21, 18, 0.08) 100%);
}
.hero-banner-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(2.2rem, 4.5vw, 3.2rem);
}
.hero-banner .breadcrumb { color: rgba(255, 255, 255, 0.75); }
.hero-banner .breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.hero-banner .breadcrumb a:hover { color: #fff; }
.hero-banner .breadcrumb li + li::before { color: rgba(255, 255, 255, 0.4); }
.hero-banner .breadcrumb [aria-current] { color: var(--sage); }
.hero-banner .eyebrow { color: var(--sage); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.hero-banner .eyebrow::before { background: var(--sage); }
.hero-banner .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sage);
  opacity: 0.55;
}
.hero-banner h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4); }
.hero-banner h1 em { color: var(--sage); }
.hero-banner .lede {
  color: rgba(255, 255, 255, 0.9);
  max-width: 38em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.hero-banner .hero-ctas { justify-content: center; margin-top: 1.5rem; }
.hero-banner .cta-note { color: rgba(255, 255, 255, 0.65); }
@media (max-width: 720px) {
  .hero-banner { min-height: 480px; }
  .hero-banner .hero-bg img { object-position: 42% 18%; }
}

/* ---------- Media frames ---------- *//* ---------- Media frames ---------- */
.arch-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 24%;
}

/* Load-in animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}
.anim-1, .anim-2, .anim-3, .anim-4, .anim-5, .anim-6, .anim-7 {
  animation: rise 0.95s var(--ease) both;
}
.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.14s; }
.anim-3 { animation-delay: 0.24s; }
.anim-4 { animation-delay: 0.34s; }
.anim-5 { animation-delay: 0.46s; }
.anim-6 { animation-delay: 0.28s; }
.anim-7 { animation-delay: 0.55s; }

/* Scroll reveal */
/* Scroll reveal is OPT-IN on JS. Without the .js gate these elements sit at
   opacity:0 for any client that does not run the IntersectionObserver — which
   includes non-scrolling renderers and screenshot tools (the project's own
   qa-harness.html has to neutralize .reveal for exactly this reason). Content
   was always in the DOM and indexable, but it rendered blank. Default to
   visible; main.js sets .js on <html> before first paint. */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .in-view {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.cond-groups .reveal:nth-child(2).in-view,
.treatment-list .reveal:nth-child(2).in-view,
.post-grid .reveal:nth-child(3n + 2).in-view,
.quote-grid .reveal:nth-child(2).in-view { transition-delay: 0.1s; }
.cond-groups .reveal:nth-child(3).in-view,
.treatment-list .reveal:nth-child(3).in-view,
.post-grid .reveal:nth-child(3n).in-view,
.quote-grid .reveal:nth-child(3).in-view { transition-delay: 0.2s; }

/* ---------- Sections rhythm ---------- */
.different, .conditions, .treatments, .approach, .doctor, .testimonials, .locations {
  padding-block: clamp(4rem, 8.5vw, 7rem);
}

/* ---------- What makes us different ---------- */
.different {
  background-color: var(--paper-2);
  border-block: 1px solid var(--line);
}
.different-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 920px) { .different-grid { grid-template-columns: 1.15fr 0.85fr; gap: 5rem; } }
.different-copy .btn { margin-top: 0.6rem; }

.different-side {
  border-left: 3px solid var(--sage-deep);
  padding-left: clamp(1.3rem, 2.5vw, 2rem);
}
.side-label {
  margin: 0 0 0.9rem;
  font-size: 0.775rem;
  font-weight: 660;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.check-list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}
.check-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.9rem;
  border-bottom: 1px dashed var(--line-strong);
  font-weight: 540;
  font-size: 0.97rem;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.95rem;
  width: 14px;
  height: 14px;
  background: var(--sage-deep);
  -webkit-mask: var(--check-mask) no-repeat center / contain;
  mask: var(--check-mask) no-repeat center / contain;
}
.side-note { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Conditions ---------- */
.cond-groups { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .cond-groups { grid-template-columns: 1fr 1fr 1fr; gap: 1.6rem; } }
.cond-group {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.6rem 1.7rem;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.cond-group:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.group-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sage-wash);
  color: var(--sage-deep);
  margin-bottom: 1rem;
}
.cond-group h3 { font-size: 1.08rem; margin-bottom: 0.55rem; }
.cond-group p { font-size: 0.95rem; color: var(--ink-soft); }
.cond-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.cond-links a {
  font-size: 0.85rem;
  font-weight: 620;
  color: var(--sage-deep);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  background: var(--paper);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cond-links a:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
}
.cond-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0.3rem 0 0;
  border-top: 1px solid var(--line);
}
.cond-group .cond-list { margin-top: auto; padding-top: 0.3rem; }
.cond-group p { margin-bottom: 1.1rem; }
.cond-list li { border-bottom: 1px solid var(--line); }
.cond-list li:last-child { border-bottom: 0; }
.cond-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.62rem 0.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.cond-list a::after { content: "\2192"; color: var(--sage); transition: transform 0.2s var(--ease); }
.cond-list a:hover { color: var(--sage-deep); padding-left: 0.4rem; }
.cond-list a:hover::after { transform: translateX(3px); }

.cond-more a { white-space: nowrap; }

.cond-more {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Treatments ---------- */
.treatments {
  background-color: var(--paper-2);
  border-block: 1px solid var(--line);
}
.feature {
  display: grid;
  gap: 2.4rem;
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.8rem);
}
@media (min-width: 920px) { .feature { grid-template-columns: 1.1fr 0.9fr; gap: 4.5rem; } }
.feature-copy h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); margin-bottom: 0.8rem; }
.feature-copy p { color: var(--ink-soft); }
.feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  margin-top: 1.1rem;
}
.feature-links a {
  font-weight: 620;
  font-size: 0.95rem;
  color: var(--sage-deep);
  text-decoration: none;
}
.feature-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.feature-media img {
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

@media (min-width: 920px) {
  .feature-flip .feature-media { order: -1; }
}

.treatment-list { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .treatment-list { grid-template-columns: 1fr 1fr 1fr; gap: 1.6rem; } }
.treatment-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.6rem 1.7rem;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.treatment-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.treatment-item h3 { font-size: 1.08rem; margin-bottom: 0.55rem; }
.treatment-item .side-kicker { margin-bottom: 0.5rem; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link:hover { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }
.treatment-item p { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 1rem; flex: 1; }
.treatment-item .text-link { font-size: 0.9rem; }
/* blog index post cards (featured image + copy) */
.post-grid { display: grid; gap: 1.4rem; }
@media (min-width: 700px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.6rem; } }
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.post-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.post-card-media { display: block; overflow: hidden; background: var(--sage-wash); }
.post-card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.6rem; }
.post-card-body .side-kicker { margin-bottom: 0.5rem; }
.post-card h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: 0.55rem; }
.post-card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 1rem; flex: 1; }
.post-card .text-link { font-size: 0.9rem; align-self: flex-start; }
@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card-media img { transition: none; }
  .post-card:hover { transform: none; }
  .post-card:hover .post-card-media img { transform: none; }
}

.treatments-more {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Approach ---------- */
.approach {
  background: linear-gradient(rgba(148, 183, 188, 0.12), rgba(148, 183, 188, 0.12));
}
.approach-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .approach-grid { grid-template-columns: 0.95fr 1.05fr; gap: 5rem; } }
.approach-copy p { color: var(--ink-soft); }
.approach-claim {
  border-left: 3px solid var(--sage-deep);
  padding-left: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}
.approach-copy .btn { margin-top: 1rem; }
.approach-media img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  background: #fff;
}
.approach-caption {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Stats ---------- */
.stats {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.6rem 0;
  padding-block: clamp(3.2rem, 6vw, 4.8rem);
}
@media (min-width: 900px) { .stats-inner { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding-inline: clamp(1rem, 2.5vw, 2.4rem); }
.stat + .stat { border-left: 1px solid var(--line-strong); }
@media (max-width: 899px) { .stat:nth-child(odd) { border-left: 0; } }
.stat-num {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--sage-deep);
  font-variant-numeric: tabular-nums;
}
.stat-num .stat-unit { font-size: 0.42em; font-weight: 700; }
.stat-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 560;
  color: var(--ink-soft);
  max-width: 15em;
  margin-inline: auto;
}

/* ---------- Doctor ---------- */
.doctor-inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) {
  .doctor-inner { grid-template-columns: 0.82fr 1.18fr; gap: 5rem; }
}
.doctor-media { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }
.arch-frame-alt img { object-position: 50% 35%; }

.doctor-quote {
  margin: 1.4rem 0 1.6rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--sage);
}
.doctor-quote p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.doctor-quote cite {
  display: block;
  margin-top: 0.55rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 660;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.cred-list {
  list-style: none;
  margin: 1.4rem 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.cred-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 540;
  font-size: 0.97rem;
}
.cred-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--sage-deep);
  -webkit-mask: var(--check-mask) no-repeat center / contain;
  mask: var(--check-mask) no-repeat center / contain;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background-color: var(--paper-2);
  border-block: 1px solid var(--line);
}
.quote-grid { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: 1fr 1fr 1fr; } }

.quote-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.7rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.stars {
  display: flex;
  gap: 3px;
  color: var(--sage-deep);
  margin-bottom: 0.9rem;
}
.stars svg { width: 15px; height: 15px; }
.quote-card blockquote { margin: 0; flex: 1; }
.quote-card blockquote p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink);
}
.quote-card figcaption {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 660;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.quote-card figcaption::before { content: "— "; color: var(--sage); }
.testimonials-more { margin-top: 2.4rem; text-align: center; }

/* ---------- Team band ---------- */
.team-band { position: relative; }
.team-band-img {
  width: 100%;
  height: clamp(380px, 42vw, 540px);
  object-fit: cover;
  object-position: 50% 28%;
}
.team-band-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(18, 21, 18, 0.6), rgba(18, 21, 18, 0.8));
}
.team-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem);
}
.team-band .eyebrow { color: var(--sage); margin-bottom: 0.7rem; }
.team-band .eyebrow::before { background: var(--sage); }
.team-band .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sage);
  opacity: 0.55;
}
.team-band h2 { color: #fff; margin-bottom: 0.4rem; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.team-tagline {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
@media (max-width: 720px) {
  .team-band-img { height: auto; aspect-ratio: 4 / 3; min-height: 400px; }
}

/* ---------- Locations ---------- */
.loc-card {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: clamp(1.9rem, 3.4vw, 2.8rem) clamp(1.5rem, 3vw, 2.6rem) clamp(1.7rem, 3vw, 2.4rem);
}
.loc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.loc-card-az::before { background: linear-gradient(90deg, var(--sage-deep), var(--sage)); }
.loc-card-or::before { background: linear-gradient(90deg, var(--leaf-deep), var(--leaf)); }

.loc-tag {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.loc-card-az .loc-tag { color: var(--sage-deep); }
.loc-card-or .loc-tag { color: var(--leaf-deep); }

.loc-card h3 {
  font-size: clamp(1.6rem, 2.4vw, 1.95rem);
  margin-bottom: 0.9rem;
}
.loc-card address {
  font-style: normal;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.3rem;
}
.loc-note { font-size: 0.95rem; color: var(--ink-soft); max-width: 30em; }

.hours {
  margin: 0 0 1.6rem;
  max-width: 330px;
  font-size: 0.95rem;
}
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line-strong);
}
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 620; }
.hours dd { margin: 0; color: var(--ink-soft); }

.loc-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.loc-serving { margin: 1.5rem 0 0; font-weight: 560; font-size: 0.92rem; }
.loc-serving a { color: var(--sage-deep); }

/* ---------- Interior pages (condition/treatment template) ---------- */
.page-hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.4rem, 5vw, 4rem) clamp(2.2rem, 4.5vw, 3.4rem);
}
.breadcrumb {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.45rem; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--sage-deep); font-weight: 600; }

.page-hero h1 { max-width: 21em; }
.page-hero .lede { max-width: 44em; }

.page-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1000px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr) 350px; gap: 4.5rem; }
}

.reviewer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.6rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  width: 100%;
}
.reviewer-card img {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 46% 20%;
  margin: 0 auto 1rem;
  border: 3px solid var(--sage-wash);
}
.reviewer-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.reviewer-name { margin: 0 0 0.3rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.reviewer-name a { color: var(--ink); text-decoration: none; }
.reviewer-name a:hover { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }
.reviewer-role { margin: 0; font-size: 0.83rem; color: var(--ink-soft); line-height: 1.5; }
/* Compact horizontal reviewer card on small screens — the tall centered portrait
   card pushed page content down by ~260px on phones. */
@media (max-width: 999px) {
  .reviewer-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.15rem 1rem;
    align-items: center;
    text-align: left;
    max-width: 460px;
    padding: 1.1rem 1.25rem;
  }
  .reviewer-card img {
    width: 64px;
    height: 64px;
    margin: 0;
    grid-row: span 3;
  }
}

.byline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.3rem 0 0;
  font-size: 0.85rem;
  font-weight: 560;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}
.byline::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--sage-deep);
  -webkit-mask: var(--check-mask) no-repeat center / contain;
  mask: var(--check-mask) no-repeat center / contain;
}
.byline a { color: var(--sage-deep); font-weight: 620; text-decoration: none; }
.byline a:hover { text-decoration: underline; text-underline-offset: 3px; }

.page-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.6rem; }

/* generic content sections on interior pages */
.section { padding-block: clamp(3.4rem, 7vw, 5.5rem); }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.two-col { display: grid; gap: 2.8rem; align-items: start; }
@media (min-width: 920px) { .two-col { grid-template-columns: 1.15fr 0.85fr; gap: 5rem; } }
.prose h2 { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul { color: var(--ink-soft); padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.35rem; }

/* FAQ accordions (native details/summary) */
.faq-list { display: grid; gap: 0.9rem; max-width: 820px; margin-inline: auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.faq-item::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }
.faq-item .faq-body {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease) 0.08s, transform 0.3s var(--ease) 0.08s;
}
.faq-item[open] .faq-body { opacity: 1; transform: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
/* The question is now a real heading so it lands in the document outline. It must
   inherit every type property from summary, or the flex row and rhythm shift. */
.faq-item summary > h3.faq-q {
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  min-width: 0;
  text-wrap: inherit;
}
/* The global :focus-visible uses outline-offset:3px, which draws the ring OUTSIDE the
   summary — and .faq-item sets overflow:hidden, so the ring was clipped to nothing on all
   198 FAQ toggles. Inset it so keyboard focus is actually visible (WCAG 2.4.7). */
.faq-item summary:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: -3px;
  border-radius: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--sage-wash);
  color: var(--sage-deep);
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq-item summary:hover { color: var(--sage-deep); }
.faq-body { padding: 0 1.3rem 1.2rem; font-size: 0.96rem; color: var(--ink-soft); }
.faq-body p { margin-bottom: 0.7rem; }

/* related links chip row */
.related-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.related-row a {
  font-size: 0.88rem;
  font-weight: 620;
  color: var(--sage-deep);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  background: var(--paper);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.related-row a:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }

/* current page marker in nav dropdowns */
.dropdown a[aria-current="page"] {
  color: var(--sage-deep);
  font-weight: 640;
  background: var(--sage-wash);
}

/* ---------- Condition-page article layout (v2, per reference) ---------- */
.condition-hero {
  background: var(--sage-deep);
  color: #fff;
  padding-block: clamp(2rem, 4vw, 3rem) clamp(2.2rem, 4.5vw, 3.2rem);
  border-bottom: 3px solid var(--sage);
}
.condition-hero .breadcrumb { color: rgba(255, 255, 255, 0.72); }
.condition-hero .breadcrumb a { color: rgba(255, 255, 255, 0.72); }
.condition-hero .breadcrumb a:hover { color: #fff; }
.condition-hero .breadcrumb li + li::before { color: rgba(255, 255, 255, 0.35); }
.condition-hero .breadcrumb [aria-current] { color: var(--sage); }
.condition-hero .eyebrow { color: var(--sage); }
.condition-hero .eyebrow::before { background: var(--sage); }
.condition-hero h1 { color: #fff; margin-bottom: 0.7rem; }
.condition-hero .lede { color: rgba(255, 255, 255, 0.85); max-width: 46em; }

.article-layout {
  display: grid;
  gap: 3rem;
  padding-block: clamp(2.8rem, 5.5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 350px; gap: 4.5rem; }
}

.article {
  max-width: 720px;
  /* grid items default to min-width:auto, which lets a wide child (a comparison
     table) push the column past the viewport instead of scrolling inside its own
     .table-wrap. Desktop already had this via minmax(0,1fr); mobile did not. */
  min-width: 0;
}
.byline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.8rem;
  font-size: 0.86rem;
  font-weight: 560;
  color: var(--ink-soft);
}
.byline-row::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: var(--sage-deep);
  -webkit-mask: var(--check-mask) no-repeat center / contain;
  mask: var(--check-mask) no-repeat center / contain;
}
.byline-row a { color: var(--sage-deep); font-weight: 620; text-decoration: none; }
.byline-row a:hover { text-decoration: underline; text-underline-offset: 3px; }

.article > p { color: var(--ink-soft); }
.article .lead { font-size: 1.06rem; color: var(--ink); }
.article h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  margin: 2.6rem 0 0.9rem;
}
.article h3 { font-size: 1.06rem; margin: 1.9rem 0 0.5rem; }
.article ul {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}
.article ul li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
}
.article ul li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.42em;
  width: 14px;
  height: 14px;
  background: var(--sage-deep);
  -webkit-mask: var(--check-mask) no-repeat center / contain;
  mask: var(--check-mask) no-repeat center / contain;
}
.article ul li strong { color: var(--ink); }
.post-meta { margin: 0 0 1.3rem; font-size: 0.88rem; color: var(--ink-soft); }
.article-photo { margin: 2.2rem 0; }
.article-photo img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.article-photo figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.article .quote-card { margin: 2rem 0; }
.article .faq-list { max-width: none; margin-top: 1.4rem; }

/* sidebar */
.sidebar { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 1000px) { .sidebar { position: sticky; top: 96px; } }
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
}
.side-card-deep {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
}
.side-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.side-card-deep .side-kicker { color: var(--sage); }
.side-card h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
/* The CTA card's title is a <p>, not a heading: the old <h2> was display:none below
   1000px, so the outline advertised a heading the mobile render never shows. Styling
   is unchanged. */
.side-card .side-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.side-card-deep h2,
.side-card-deep .side-cta-title { color: #fff; }
.side-card-deep p { color: rgba(255, 255, 255, 0.85); font-size: 0.93rem; }
.side-card .btn { width: 100%; }
.side-card .btn + .btn { margin-top: 0.7rem; }
.side-checks {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}
.side-checks li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.side-checks li::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  background: var(--sage);
  -webkit-mask: var(--check-mask) no-repeat center / contain;
  mask: var(--check-mask) no-repeat center / contain;
}
.side-links { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.1rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.side-links a::after { content: "\2192"; color: var(--sage); transition: transform 0.2s var(--ease); }
.side-links a:hover { color: var(--sage-deep); padding-left: 0.4rem; }
.side-links a:hover::after { transform: translateX(3px); }

/* patient review cards (solid, per reference) */
.review-grid { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .review-grid { grid-template-columns: 1fr 1fr 1fr; } }
.review-card {
  margin: 0;
  background: var(--sage-deep);
  color: #fff;
  border-radius: 12px;
  padding: 1.7rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.review-card .stars { color: var(--sage); margin-bottom: 1rem; }
.review-card blockquote { margin: 0; flex: 1; }
.review-card blockquote p { color: rgba(255, 255, 255, 0.92); font-size: 0.95rem; line-height: 1.65; }
.review-card figcaption {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 660;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- Clinic cards with map embeds (condition pages) ---------- */
.clinics-grid { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .clinics-grid { grid-template-columns: 1fr 1fr; } }
.loc-map {
  margin: -1px -1px 1.4rem;
  border-radius: 13px 13px 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.loc-map iframe {
  display: block;
  width: 100%;
  height: 230px;
  border: 0;
}
.clinics-grid .loc-card { padding-top: 0; }
.clinics-grid .loc-card .loc-tag { margin-top: 0; }

/* Location-page map: large full-width embed with office info beneath */
.map-full {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.map-full iframe { display: block; width: 100%; height: 320px; border: 0; }
@media (min-width: 900px) { .map-full iframe { height: 480px; } }
.map-info { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 900px) {
  .map-info {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1120px;
    margin-inline: auto;
  }
  .map-info > div { padding-inline: 2.6rem; border-left: 1px solid var(--line-strong); }
  .map-info > div:first-child { border-left: 0; padding-left: 0; }
  .map-info > div:last-child { padding-right: 0; }
}
.map-info address { font-style: normal; line-height: 1.7; color: var(--ink-soft); margin-bottom: 1.2rem; }
.map-info .hours { margin-bottom: 0; }
.map-info .loc-actions { margin-top: 0.2rem; }
.map-info .loc-note { margin-top: 1rem; }

/* Side-by-side photo pair */
.photo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.photo-duo img { border-radius: 14px; }

/* Photo with overlapping review card */
.photo-quote { position: relative; }
.photo-quote > img {
  width: 88%;
  height: 560px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.pq-card {
  position: relative;
  z-index: 1;
  width: min(92%, 27rem);
  margin: -5.2rem 0 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 1.9rem 1.8rem 1.5rem;
}
.pq-card::before {
  content: "\201C";
  position: absolute;
  top: 0.1rem;
  left: 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.6rem;
  line-height: 1;
  color: var(--sage);
  opacity: 0.32;
}
.pq-card blockquote { margin: 0 0 1rem; color: var(--ink-soft); position: relative; }
.pq-card blockquote p { margin: 0; }
.pq-name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--sage-deep); }
.pq-sub { margin: 0.15rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 899px) {
  .photo-quote > img { width: 100%; height: 430px; }
  .pq-card { margin: -3.4rem 0.8rem 0 auto; }
}

/* Icon feature rows (location-page "why choose us") */
.why-rows { display: grid; gap: 1.8rem; margin-top: 2rem; }
.why-row { display: grid; grid-template-columns: 44px 1fr; gap: 1.15rem; align-items: start; }
.why-row .group-icon { margin-bottom: 0; }
.why-row h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.why-row p { font-size: 0.97rem; color: var(--ink-soft); margin: 0; }
.footer-brand address a:hover .footer-loc-label { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: grid; gap: 0.35rem; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 620;
  color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px var(--sage-wash);
}
.form-note { font-size: 0.83rem; color: var(--ink-soft); }
.contact-form .btn { justify-self: start; }

.contact-card address { font-style: normal; color: var(--ink-soft); line-height: 1.7; margin: 0 0 0.6rem; }
.contact-card .hours { margin-bottom: 0; font-size: 0.9rem; }
.contact-card a.tel {
  font-weight: 640;
  color: var(--sage-deep);
  text-decoration: none;
  font-size: 1.05rem;
}
.contact-card a.tel:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band (floating card) ---------- */
.cta-band {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.cta-card {
  position: relative;
  overflow: clip;
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3.5vw, 3.2rem);
  background-color: var(--sage-deep);
  background-image: radial-gradient(70% 120% at 18% 0%, rgba(148, 183, 188, 0.25), transparent 60%);
  color: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: clamp(1.8rem, 3.5vw, 3rem) clamp(1.5rem, 3.5vw, 3.2rem);
}
.cta-logo {
  flex: none;
  background: var(--paper);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  display: grid;
  place-items: center;
}
.cta-logo img { width: clamp(150px, 14vw, 200px); height: auto; }
.cta-copy h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-copy h2 em { color: var(--sage); }
.cta-copy p {
  color: rgba(247, 245, 239, 0.85);
  max-width: 38em;
  margin-bottom: 1.4rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
@media (max-width: 760px) {
  .cta-card { flex-direction: column; text-align: center; }
  .cta-copy p { margin-inline: auto; }
  .cta-actions { justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.8rem; }
@media (min-width: 680px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; } }

.footer-brand img { height: 44px; width: auto; margin-bottom: 1.2rem; }
.footer-locs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.4rem;
  max-width: 420px;
}
/* Explicit stack on narrow phones: auto-fit resolves its repeat count against
   the DEFINITE max-width (420px), not the actual container, so the two 170px
   address columns (362px min-content) horizontally overflowed every page on
   <=400px viewports (iPhone SE/mini class). A min(170px,100%) floor is no fix:
   percentages go `auto` in the indefinite container and collapse desktop to
   one column. Below 460px the container is genuinely under 420px — stack. */
@media (max-width: 460px) {
  .footer-locs { grid-template-columns: 1fr; }
}
.footer-brand address {
  font-style: normal;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.footer-brand address a { color: var(--ink); font-weight: 560; text-decoration: none; }
.footer-brand address a:hover { color: var(--sage-deep); }
.footer-loc-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.25rem;
}
.footer-email { margin: 1rem 0 0; font-size: 0.94rem; }
.footer-email a { color: var(--ink); font-weight: 560; text-decoration: none; }
.footer-email a:hover { color: var(--sage-deep); }
.footer-hours { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.7rem; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-social a:hover { color: var(--sage-deep); border-color: var(--sage-deep); transform: translateY(-2px); }

.footer-label {
  font-size: 0.76rem;
  font-weight: 660;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a {
  font-size: 0.94rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }


/* Areas-served list on a clinic hub: plain linked rows with the distance on the right.
   Replaced a 3-card grid whose invented category headers ("Minutes away", "Further out")
   read as filler — the distances already carry that information. */
.areas-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 760px) { .areas-grid { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.areas-grid li {
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.2rem;
}
/* the distance sits OUTSIDE the <a> on purpose — anchor text should be the city name
   alone, since that is the internal-link signal for the page being linked to */
.areas-grid a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}
.areas-grid a:hover { color: var(--sage-deep); }
.areas-dist { font-weight: 400; font-size: 0.9rem; color: var(--ink-soft); white-space: nowrap; }

/* Single-column legal pages — long prose, no sidebar, constrained measure */
.legal-layout {
  padding-block: clamp(2.6rem, 6vw, 4rem);
  max-width: 820px;
}
.legal-layout .article h2 { margin-top: 2.4rem; }
.legal-layout .article ul { margin-bottom: 1.4rem; }

/* Areas-served block inside a clinic card on /locations/ — each list sits with the
   office that actually serves it, which is the honest structure for a service area. */
.loc-areas { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.loc-areas .side-kicker { margin-bottom: 0.5rem; }
.loc-areas .side-links { margin: 0; }

/* Areas-served strip: one slim full-width row under the footer columns, grouped by the
   clinic that serves each list. Deliberately NOT two extra footer columns — those crowd
   desktop and turn mobile into a wall of links. */
.footer-areas {
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.9rem 2.5rem;
}
@media (min-width: 820px) { .footer-areas { grid-template-columns: 1fr 1fr; } }
.footer-areas .footer-label { margin-bottom: 0.45rem; }
.footer-areas ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0;
}
/* Separator trails the preceding city so a wrapped line never starts with "·" */
.footer-areas li:not(:last-child)::after {
  content: "·";
  margin-inline: 0.55rem;
  color: var(--line-strong);
}
.footer-areas a { color: var(--ink-soft); }
.footer-areas a:hover { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-block: 1.3rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--ink-soft); }
.footer-legal a:hover { color: var(--sage-deep); }

/* developer credit sits opposite the copyright; policy links drop to their own line */
.footer-credit a { color: var(--sage-deep); font-weight: 640; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links { flex-basis: 100%; }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  border-top: 1px solid rgba(39, 43, 38, 0.15);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--paper);
}
.mobile-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 660;
  text-decoration: none;
}
.mobile-bar-call { background: var(--ink); color: var(--cream); }
.mobile-bar-book { background: var(--sage-deep); color: var(--cream); }

@media (max-width: 899px) {
  .mobile-bar { display: flex; }
  /* Clear the fixed bar with real slack: the bar is ~57px plus the device
     safe-area inset — a flat 58px left the footer legal links pinned under
     the bar at max scroll on notched phones. */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- Back-to-top button ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--sage-deep);
  color: var(--cream);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.2s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { background: var(--leaf-deep); }
@media (max-width: 899px) {
  .to-top {
    right: 14px;
    bottom: calc(58px + env(safe-area-inset-bottom) + 14px);
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   MOBILE PASS (2026-08) — consolidated small-screen treatment.
   Placed last so it cascades over every component block above.
   ========================================================================== */
@media (max-width: 899px) {

  /* ----- Light hero: the COPY leads, the photo follows (user call, 2026-08-17).
     Desktop puts the headline over the photo because the wash runs horizontally
     — there is room beside the subject. A phone has no beside: a photo above the
     copy pushed the h1 to ~64% of the first screen, so the headline was the last
     thing read. A true desktop-style overlay is not available either — covering a
     phone-height hero means cropping these 16:9 assets to 27-42% of their width
     (a 2.4-3.7x zoom = the "giant face" crop already rejected on the Carefree
     hero); it would need tall 4:5 mobile crops the photo archive does not have.
     So the photo becomes a full-bleed band directly UNDER the copy, its top edge
     washing out of paper so the two still read as one composition. Revisit after
     the client photo shoot, when portrait-orientation heroes could exist. */
  .hero, .hero-tall {
    display: flex;
    flex-direction: column;
    /* .hero-tall centers its children at desktop; left in place here that shrink-
       wraps the photo to ~424px and breaks the full-bleed. */
    align-items: stretch;
    min-height: 0;
    background: var(--paper);
  }
  .hero .hero-bg {
    position: relative;
    inset: auto;
    order: 2;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .hero .hero-bg img { height: 100%; }
  .hero .hero-bg::after {
    background: linear-gradient(
      180deg,
      var(--paper) 0,
      color-mix(in srgb, var(--paper) 52%, transparent) 1.5rem,
      transparent 4rem
    );
  }
  .hero-inner {
    order: 1;
    padding-block: clamp(1.9rem, 6vw, 2.6rem) clamp(1.7rem, 5vw, 2.3rem);
  }

  /* ----- Dark banner hero (meet-the-team): stronger scrim, saner crop */
  .hero-banner { min-height: 460px; }
  .hero-banner .hero-bg img { object-position: 80% 30%; }
  .hero-banner .hero-bg::after {
    background: linear-gradient(to top,
      rgba(18, 21, 18, 0.92) 0%,
      rgba(18, 21, 18, 0.72) 45%,
      rgba(18, 21, 18, 0.5) 100%);
  }
  .hero-banner .eyebrow { color: var(--cream); }
  .hero-banner .eyebrow::before,
  .hero-banner .eyebrow::after { background: var(--sage); }

  /* ----- Mobile hero type scale — the old 39px clamp floor gave 4-6 line
     headlines that filled the whole first viewport with text */
  .hero h1,
  .hero-banner h1 { font-size: clamp(1.8rem, 4.5vw + 0.85rem, 2.6rem); }
  .page-hero h1 { font-size: clamp(1.6rem, 4.2vw + 0.72rem, 2.4rem); }
  .hero-copy .lede, .page-hero .lede { font-size: 1.02rem; }
  .hero-copy .lede { margin-top: 0.9rem; }
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.13em; }

  /* Left-aligned hero eyebrows: block layout with an outdented dash so a
     wrapping label keeps its left edge and the ™ stays attached to the text
     instead of floating to the far right (flex-item artifact). Centered
     eyebrows (section heads, banner, team band) keep their flex layout. */
  .hero-copy .eyebrow,
  .page-hero-copy .eyebrow {
    display: block;
    position: relative;
    padding-left: 32px;
  }
  /* Tracking/size trimmed just enough to keep the longest eyebrow on the site
     ("Modern therapies in natural medicine.™", 38 chars) on ONE line down to a
     360px viewport — at the old 0.72rem/0.13em it measured 311px against 288px
     of usable width and broke to a ragged second line on 360-380px phones. */
  .hero-copy .eyebrow,
  .page-hero-copy .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    padding-left: 26px;
  }
  .hero-copy .eyebrow::before,
  .page-hero-copy .eyebrow::before { position: absolute; left: 0; top: 0.5em; width: 18px; }
  /* block layout here, so there is no flex gap to cancel */
  .hero-copy .eyebrow .tm,
  .page-hero-copy .eyebrow .tm { vertical-align: super; margin-left: 0; }

  /* ----- Full-width, thumb-friendly stacked CTAs (heroes + CTA band) —
     the ragged left-aligned two-width stack read as accidental */
  .hero-ctas, .page-hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.6rem;
    width: min(100%, 420px);
  }
  .hero-banner .hero-ctas { margin-inline: auto; }
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: min(100%, 420px);
    margin-inline: auto;
  }
  .hero-ctas .btn, .page-hero-ctas .btn, .cta-actions .btn {
    width: 100%;
    padding-block: 0.95rem;
  }
  .cta-logo { padding: 1rem 1.1rem; }
  .cta-logo img { width: 130px; }

  /* Clinic-card / map-info button stacks get the same full-width treatment */
  .loc-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: min(100%, 420px);
  }
  .loc-actions .btn { width: 100%; }
}

/* When the article sidebar stacks below the article (no longer sticky), its
   deep-teal CTA card duplicates the CTA band that follows — keep one CTA
   module; the fixed mobile bar already carries Call/Book at all times. */
@media (max-width: 999px) {
  .sidebar .side-card-deep { display: none; }
}

/* Zoomable figure (roadmap graphic) — the 1120px infographic is illegible at
   phone scale, so it links out to the full-size file. Hint shown only where
   tapping is the way to read it. */
.zoom-link { display: block; }
.zoom-hint { display: none; }
@media (max-width: 899px) {
  .zoom-hint { display: inline; font-weight: 620; color: var(--sage-deep); }
  /* Choppy centered link-paragraphs read better left-aligned at phone widths */
  .cond-more { text-align: left; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-1, .anim-2, .anim-3, .anim-4, .anim-5, .anim-6, .anim-7 { animation: none; }
  .faq-item::details-content { transition: none; }
  .faq-item .faq-body { transition: none; opacity: 1; transform: none; }
  .trustbar-track { animation: none; width: auto; justify-content: center; }
  .trustbar-inner { flex-wrap: wrap; justify-content: center; gap: 0.55rem 2.2rem; }
  .trustbar-inner[aria-hidden] { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Contact-form submission feedback (see js/main.js) */
.form-status {
  margin: 0 0 1.1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.45;
}
.form-status.is-ok  { background: var(--sage-wash); border: 1px solid var(--sage-deep); color: var(--ink); }
.form-status.is-err { background: #fdf3f0; border: 1px solid #c0553a; color: #7a2f1c; }

/* Comparison tables. Answer engines extract these disproportionately for "X vs Y"
   health queries, and they scroll independently so the page body never moves sideways. */
.table-wrap { overflow-x: auto; min-width: 0; max-width: 100%; margin: 1.6rem 0 1.9rem; -webkit-overflow-scrolling: touch; }
.data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.94rem;
  line-height: 1.5;
}
.data-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  padding-bottom: 0.6rem;
}
.data-table th,
.data-table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
  vertical-align: top;
  text-align: left;
}
.data-table thead th { background: var(--sage-wash); color: var(--ink); font-weight: 700; }
.data-table tbody th { background: var(--paper-2); font-weight: 600; width: 27%; }
.data-table td { color: var(--ink-soft); }
