/* =====================================================================
   CSS TABLE OF CONTENTS
   =====================================================================
   1. ROOT TOKENS, RESET, BASE TYPOGRAPHY
   2. UTILITY BAR
   3. HEADER + NAVIGATION + DROPDOWN
   4. PAGE CONTAINER & TRANSITIONS (page-swap layout)
   5. SHARED SECTION TYPOGRAPHY
   6. BUTTONS
   7. HOMEPAGE
      - Hero / Stats / Valeda Announcement / Intro
      - Services list / Physicians grid / Locations grid / Referring
   8. PAGE TEMPLATES (interior pages)
      - Page hero / Prose / Sidebar layout / Callouts
   9. SERVICE-PAGE COMPONENTS
      - Hub grid, Hub cards
  10. PHYSICIAN BIO PAGES
  11. LOCATIONS DETAIL PAGES
  12. PATIENT-VISIT / HUB PAGES
  13. SCHEDULE-A-VISIT PAGE
  14. FOOTER
  15. RESPONSIVE BREAKPOINTS
   ===================================================================== */

/* =====================================================================
   RVS of CNY — Full Site Prototype, Direction 1 (Editorial)
   Single-file HTML with JS-based page swapping for review
   Will be split into deployable multi-file structure once design is locked
   ===================================================================== */

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #6e6e6e;
  --paper: #f5f2ec;
  --paper-warm: #ebe5d8;
  --paper-warmer: #e0d8c4;
  --rule: #d8d2c3;
  --rule-soft: #e6e0d0;
  --accent: #7a2424;
  --accent-soft: #a64545;
  --accent-tint: #f0e3e0;
  --brand-blue: #006efa;
  --brand-navy: #001e32;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ========== UTILITY BAR ========== */
.utility-bar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 0;
}
.utility-bar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.utility-left { display: flex; gap: 24px; flex-wrap: wrap; }
.utility-left a:hover { color: var(--accent-soft); }
.utility-right { display: flex; gap: 16px; align-items: center; }
.utility-right .phone { font-weight: 600; }

/* ========== HEADER ========== */
header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
/* Anchor scroll offset for sticky header */
.prose h2[id], .prose h3[id], .layout-sidebar [id] { scroll-margin-top: 120px; }
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; gap: 32px;
}
.logo {
  display: inline-block;
  line-height: 0;
  cursor: pointer;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}

nav.primary {
  display: flex; gap: 32px; align-items: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
}
nav.primary > .nav-item { position: relative; }
nav.primary a, nav.primary .nav-trigger {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  background: none; border: none; border-bottom: 2px solid transparent;
  font: inherit; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
nav.primary a:hover, nav.primary .nav-trigger:hover { border-bottom-color: var(--accent); color: var(--accent); }
nav.primary a.active { border-bottom-color: var(--ink); }
/* "You are here" indicator for the top-level nav item matching the current URL.
   Applied to both the "Practice" direct link and the five dropdown triggers
   (which are also anchors now). */
nav.primary .nav-item.current-section > a { border-bottom-color: var(--ink); }

.dropdown {
  position: absolute; top: 100%; left: -16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  padding: 12px 0;
  min-width: 280px;
  display: none;
  z-index: 60;
  margin-top: 4px;
}
/* Generous invisible bridge so the cursor can travel from trigger to
   dropdown without killing hover — extra forgiving for older users. */
.dropdown::before {
  content: "";
  position: absolute;
  top: -24px; left: -16px; right: -16px; height: 24px;
}
.nav-item.open .dropdown { display: block; }
/* Hover open/close is now JS-driven (.hover-open class) instead of
   :hover so we can add a close delay — see closeDropdownDelayed(). */
.nav-item.hover-open .dropdown { display: block; }
/* When cursor is still over the trigger right after a navigation click,
   this class briefly defeats reopening so the dropdown actually closes. */
.nav-item.suppress-hover .dropdown { display: none !important; }
.dropdown a {
  display: block !important;
  padding: 10px 24px !important;
  border-bottom: none !important;
  font-size: 14px;
  color: var(--ink-soft);
  border-left: 2px solid transparent !important;
}
.dropdown a:hover {
  background: var(--paper-warm);
  color: var(--accent);
  border-left-color: var(--accent) !important;
}
.dropdown-section {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 10px 24px 6px;
  font-weight: 600;
}
.dropdown-divider {
  height: 1px; background: var(--rule); margin: 6px 0;
}

.header-cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: var(--paper);
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--ink); }

.menu-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }
/* Hamburger transforms into an X when the menu is open */
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== MOBILE MENU ==========
   Slide-in panel from the right that holds a flattened version of the entire
   navigation. Designed for the practice's elderly patient population: big
   touch targets (minimum 48px tall), generous vertical spacing, clear visual
   distinction between section headers and sub-items, and high-contrast CTAs
   at the bottom that thumb naturally reaches.

   Hidden by default. Activated when JS adds .open to the panel and the
   backdrop. The panel is on top (z-index 200); the backdrop sits below it
   at z-index 199 and dims/blocks the rest of the page.

   Only relevant below ~900px (where .menu-toggle becomes visible). Above
   that, both panel and backdrop stay hidden regardless of state. */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(360px, 90vw);
  height: 100vh;
  height: 100dvh; /* dvh handles mobile browser chrome correctly */
  background: var(--paper);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--paper-warm);
  flex-shrink: 0;
}
.mobile-menu-title {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 0 8px;
  margin: -8px -8px -8px 0; /* expand hit area */
}

.mobile-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 32px 0;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu-nav a {
  display: block;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  min-height: 48px;
  box-sizing: border-box;
}
.mobile-menu-nav .mm-section {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  padding-top: 22px;
  padding-bottom: 8px;
  margin-top: 8px;
  color: var(--ink);
  border-top: 1px solid var(--paper-warm);
}
.mobile-menu-nav .mm-section:first-child { border-top: none; margin-top: 0; }
.mobile-menu-nav .mm-sub {
  font-size: 16px;
  color: var(--ink-mute);
  padding-left: 36px;
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 44px;
}
.mobile-menu-nav .mm-sub:hover,
.mobile-menu-nav .mm-section:hover { background: var(--paper-warm); color: var(--ink); }

.mobile-menu-nav .mm-cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-weight: 500;
  font-size: 17px;
  margin: 24px 24px 8px 24px;
  padding: 16px;
  border-radius: 2px;
  min-height: 52px;
}
.mobile-menu-nav .mm-cta:hover { background: var(--accent); }
.mobile-menu-nav .mm-cta-secondary {
  text-align: center;
  border: 1px solid var(--ink);
  margin: 0 24px;
  padding: 14px;
  border-radius: 2px;
  font-weight: 500;
  min-height: 52px;
}

/* When body has .mobile-menu-open, prevent background scroll behind panel */
body.mobile-menu-open { overflow: hidden; }
/* Above the breakpoint where the hamburger appears, the mobile menu DOM is
   parked out of the way and disabled regardless of state. */
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-backdrop { display: none !important; }
}
/* /MOBILE MENU */

/* ========== PAGE FADE-IN ==========
   In the single-file prototype, .page elements were stacked in one DOM and
   swapped via JS. In the deployed multi-page structure each .page is the
   only page wrapper on its URL, so we drop the display:none/.active toggle
   and keep the entrance animation for a soft fade-in on each real navigation. */
.page { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ========== WHOLE-CARD CLICK TARGETS ==========
   In the prototype, certain cards (service rows, physician cards, location
   cards) were entirely clickable via a JS data-page handler. In the deployed
   multi-page site we replace that with a "stretched link": an invisible
   anchor inside the card whose ::after pseudo-element overlays the whole
   card. This avoids nested anchors (some cards contain a tel: link) while
   still letting the user click anywhere on the card to navigate.

   Cards opt in by adding the class `card-clickable`. The stretched link is
   <a class="card-stretched-link"> placed as the first child of the card.

   Important: the card must be position:relative for the ::after overlay
   to size to it. Nested links (e.g. tel:) get position:relative + z-index:1
   so they remain independently clickable above the overlay. */
.card-clickable { position: relative; cursor: pointer; }
.card-stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Visually invisible but still receives clicks and keyboard focus */
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}
.card-stretched-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  text-indent: 0; /* not strictly visible but harmless */
}
/* Any nested actionable element (phone link, etc.) needs to sit above the
   stretched overlay so it stays separately clickable. */
.card-clickable a:not(.card-stretched-link),
.card-clickable button:not(.card-stretched-link) {
  position: relative;
  z-index: 2;
}

/* ========== SHARED SECTION TYPOGRAPHY ========== */
.section-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 32px;
}

/* ========== BUTTONS ========== */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 28px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: var(--paper); }
.btn-accent:hover { background: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 15px 28px; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-link {
  background: none;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   HOMEPAGE
   ============================================================ */
.hero {
  padding: 80px 0 0;
  border-bottom: 1px solid var(--rule);
}
.hero-content {
  max-width: 880px;
  margin-bottom: 64px;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 32px;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
}
.hero-lede {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.hero-photo-wide {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  background: transparent;
  overflow: visible;
  margin-bottom: 0;
}
.hero-photo-wide-inner {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--paper-warm);
}
.hero-photo-wide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.hero-photo-wide .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  text-align: center; padding: 32px;
  border: 1px dashed var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-photo-wide .placeholder .desc {
  font-family: var(--sans);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.5;
}
.hero-caption-strip {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
  margin-top: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.hero-caption-strip strong { color: var(--ink); font-weight: 600; }

/* Valeda announcement section */
.announcement {
  background: var(--paper-warm);
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}
.announcement-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: center;
}
.announcement-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 20px;
}
.announcement h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
}
.announcement-body p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.announcement-body p:last-of-type { margin-bottom: 28px; }
.announcement-cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  cursor: pointer;
  background: none;
  border-top: none; border-left: none; border-right: none;
}
.announcement-cta:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Stats */
.stat-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 48px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.stat { border-left: 1px solid var(--rule); padding-left: 24px; }
.stat-num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  font-weight: 500;
}

section { padding: 120px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: none; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 96px;
  align-items: start;
}
.intro-aside { position: sticky; top: 120px; }
.intro-body p { font-size: 22px; line-height: 1.55; margin-bottom: 28px; max-width: 640px; }
.intro-body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 88px;
  float: left;
  line-height: 0.85;
  margin: 6px 12px 0 0;
  color: var(--ink);
  font-weight: 500;
}
.signature-line {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}

/* Services list */
.services-header { margin-bottom: 64px; max-width: 720px; }
.services-list { border-top: 1px solid var(--rule); }
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr auto;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background 0.2s;
  cursor: pointer;
}
.service-row:hover { background: var(--paper-warm); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.service-num { font-family: var(--mono); font-size: 13px; color: var(--ink-mute); }
.service-name { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; }
.service-desc { font-family: var(--sans); font-size: 16px; color: var(--ink-soft); line-height: 1.5; }
.service-arrow { font-family: var(--sans); font-size: 14px; color: var(--ink); font-weight: 600; letter-spacing: 0.05em; }
.services-section-header {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  padding: 56px 0 16px 0;
  border-bottom: 1px solid var(--rule);
}
.services-section-header:first-child { padding-top: 0; }

/* Physicians */
.physicians-section {
  background: var(--ink);
  color: var(--paper);
}
.physicians-section .section-eyebrow { color: var(--accent-soft); }
.physicians-section .section-title { color: var(--paper); }
.phys-intro {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: #c8c0b0;
  max-width: 640px;
  margin-bottom: 64px;
}
.phys-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.phys-card { display: block; cursor: pointer; }
.phys-photo-slot {
  aspect-ratio: 3/4;
  background: #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; color: #888;
  text-align: center;
  margin-bottom: 20px;
  overflow: hidden;
  border: 2px solid var(--brand-blue);
}
.phys-photo-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.phys-name { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 4px; }
.phys-title { font-family: var(--sans); font-size: 13px; color: #a89e8a; line-height: 1.4; }

/* Locations grid */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.location-card {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 32px;
  transition: background 0.2s;
  cursor: pointer;
}
.location-card:hover { background: var(--paper-warm); }
.location-num { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); margin-bottom: 16px; letter-spacing: 0.1em; }
.location-name { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 16px; }
.location-addr { font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 16px; }
.location-phone { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 24px; display: block; }
.location-phone:hover { color: var(--accent); }
.location-link { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* Referring */
.referring-section { background: var(--accent); color: var(--paper); }
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.referring-section .section-eyebrow { color: #f4d4a0; }
.ref-title { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; margin-bottom: 32px; color: var(--paper); }
.ref-body { font-family: var(--serif); font-size: 20px; line-height: 1.55; color: #f0e0d8; margin-bottom: 32px; }
.ref-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.btn-ref-primary { background: var(--paper); color: var(--accent); padding: 18px 32px; font-family: var(--sans); font-size: 15px; font-weight: 600; }
.btn-ref-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ref-secondary { color: var(--paper); border-bottom: 1px solid var(--paper); padding: 18px 0; font-family: var(--sans); font-size: 15px; font-weight: 600; }
.ref-checklist { list-style: none; }
.ref-checklist li {
  font-family: var(--serif);
  font-size: 19px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(245, 242, 236, 0.2);
  display: flex; gap: 16px; align-items: baseline;
  color: #f0e0d8;
}
.ref-checklist li::before { content: "→"; color: #f4d4a0; font-family: var(--sans); font-weight: 700; }

/* ============================================================
   INTERIOR PAGE PATTERNS
   ============================================================ */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.page-hero .breadcrumb {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  display: flex; gap: 8px; align-items: center;
}
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero .breadcrumb .sep { color: var(--rule); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 24px;
  max-width: 18ch;
}
.page-hero h1 em { font-style: italic; }
.page-hero .lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 640px;
}
.page-section { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.page-section:last-of-type { border-bottom: none; }

/* article-style prose for service pages and resources */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--serif); font-size: 36px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 48px 0 20px; }
.prose h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; margin: 36px 0 12px; }
.prose p { font-size: 19px; line-height: 1.65; margin-bottom: 20px; color: var(--ink-soft); }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose li { font-size: 19px; line-height: 1.65; margin-bottom: 8px; color: var(--ink-soft); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.prose .closing-note {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-mute);
  line-height: 1.5;
  max-width: 540px;
}

/* sidebar layout for service pages, locations, etc */
.layout-sidebar {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 120px;
  font-family: var(--sans);
  font-size: 14px;
}
.sidebar h4 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.sidebar ul { list-style: none; }
.sidebar li { margin-bottom: 4px; }
.sidebar a {
  display: block;
  padding: 8px 0 8px 12px;
  border-left: 2px solid var(--rule);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}
.sidebar a:hover { border-left-color: var(--accent); color: var(--accent); }
.sidebar a.active { border-left-color: var(--ink); color: var(--ink); font-weight: 600; }

/* call-out cards for service pages */
.callout {
  background: var(--paper-warm);
  border-left: 4px solid var(--accent);
  padding: 28px 32px;
  margin: 40px 0;
}
.callout h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.callout p { font-family: var(--serif); font-size: 19px; color: var(--ink); line-height: 1.5; margin: 0; }

/* ============================================================
   PHYSICIAN BIO PAGE
   ============================================================ */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.bio-portrait {
  aspect-ratio: 3/4;
  background: var(--paper-warm);
  border: 2px solid var(--brand-blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  text-align: center; padding: 24px;
  position: sticky;
  top: 120px;
  overflow: hidden;
}
.bio-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.bio-name {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 8px;
}
.bio-title {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 32px;
}
.bio-credentials {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
  font-family: var(--sans);
  font-size: 14px;
}
.bio-credentials dt {
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 600;
  padding-top: 4px;
}
.bio-credentials dd {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   LOCATIONS LIST + DETAIL
   ============================================================ */
.locations-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.location-page-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 40px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.location-page-card:hover { border-color: var(--accent); }
.location-page-card .office-photo {
  aspect-ratio: 16/9;
  background: var(--paper-warm);
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.location-page-card .office-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.location-page-card .office-photo .placeholder {
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  text-align: center; padding: 24px;
  border: 1px dashed var(--ink-mute);
  width: calc(100% - 24px); height: calc(100% - 24px);
  display: flex; align-items: center; justify-content: center;
}

.location-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.office-photo-large {
  aspect-ratio: 4/3;
  background: var(--paper-warm);
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.office-photo-large img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.office-photo-large .placeholder {
  font-family: var(--mono); font-size: 13px; color: var(--ink-mute);
  text-align: center; padding: 32px;
  border: 1px dashed var(--ink-mute);
  width: calc(100% - 32px); height: calc(100% - 32px);
  display: flex; align-items: center; justify-content: center;
}
.map-large {
  aspect-ratio: 16/10;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--ink-mute);
  text-align: center; padding: 0;
  overflow: hidden;
  position: relative;
}
.map-large iframe {
  width: 100%; height: 100%; border: 0;
  position: absolute; top: 0; left: 0;
}
.info-block {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
}
.info-block:last-child { border-bottom: 1px solid var(--rule); }
.info-block h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 8px;
}
.info-block p, .info-block a { font-family: var(--serif); font-size: 19px; color: var(--ink); line-height: 1.5; }
.info-block a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.info-block a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ============================================================
   PATIENT VISITS HUB & CARDS
   ============================================================ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.hub-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 36px 32px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.hub-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.hub-card .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}
.hub-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.hub-card p {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 20px;
}
.hub-card .arrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   APPOINTMENT FORM
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 720px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--serif);
  font-size: 18px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { min-height: 140px; resize: vertical; font-family: var(--serif); }
.form-field .help { font-family: var(--sans); font-size: 13px; color: var(--ink-mute); margin-top: 4px; }
.form-callout {
  background: var(--paper-warm);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  margin-bottom: 40px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
}

/* ============================================================
   CLINICAL TRIALS TABLE
   ============================================================ */
.trials-table {
  border-top: 1px solid var(--rule);
}
.trial-row {
  display: grid;
  grid-template-columns: 80px 1.5fr 2fr auto;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.trial-row .trial-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.trial-row .trial-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.trial-row .trial-name small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}
.trial-row .trial-desc {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.trial-row .trial-status {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-enrolling { background: #d4e9d4; color: #2d5a2d; }
.status-upcoming { background: var(--paper-warm); color: var(--ink-mute); }

/* ========== FOOTER ========== */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 3fr 2fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { height: 70px; width: auto; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 18px; color: #c0b8a8; line-height: 1.5; max-width: 280px; }
.footer-locations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.footer-loc h4 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a89e8a;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-loc p, .footer-loc a { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: #c0b8a8; }
.footer-loc a:hover { color: var(--paper); }
.footer-nav h4 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a89e8a;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { font-family: var(--sans); font-size: 14px; color: #c0b8a8; cursor: pointer; }
.footer-nav a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 32px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 13px;
  color: #888;
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--paper); }

/* ========== ACCORDION (FAQ) ==========
   Used for Q&A sections where a long list of questions would overwhelm if
   all answers were shown at once. Each question is a button; clicking
   reveals the answer below. Multiple can be open simultaneously (we
   intentionally don't enforce single-open — patients reading the FAQ
   may want to compare two answers).

   Accessible: each button has aria-expanded, each panel has aria-hidden,
   answers are real DOM (visible to search engines and screen readers
   even when collapsed, just hidden visually).

   Markup pattern:
     <div class="accordion">
       <div class="accordion-item">
         <button class="accordion-trigger" aria-expanded="false">
           <span>Question text</span>
           <span class="accordion-icon" aria-hidden="true">+</span>
         </button>
         <div class="accordion-panel">
           <p>Answer body.</p>
         </div>
       </div>
       ...
     </div>
*/
.accordion {
  border-top: 1px solid var(--paper-warm);
}
.accordion-item {
  border-bottom: 1px solid var(--paper-warm);
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-weight: 500;
}
.accordion-trigger:hover { color: var(--accent); }
.accordion-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.accordion-icon {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink-mute);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  margin-top: 2px;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg); /* + becomes x */
  color: var(--ink);
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-panel-inner {
  padding: 0 0 24px 0;
  max-width: 720px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.accordion-panel-inner p { margin: 0 0 12px 0; }
.accordion-panel-inner p:last-child { margin-bottom: 0; }
.accordion-panel-inner ul { margin: 8px 0 12px 0; padding-left: 20px; }
.accordion-panel-inner li { margin-bottom: 6px; }
.accordion-trigger[aria-expanded="true"] + .accordion-panel {
  max-height: 2000px; /* generous cap, enough for the longest answer */
}

/* ========== CALLOUT BOX ==========
   For inline references that point to related content (e.g. "See our FAQ →").
   Used inside .prose article bodies. */
.callout {
  background: var(--paper-warm);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}
.callout p { margin: 0 0 8px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout a {
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
}
.callout a:hover { color: var(--accent); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .announcement-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-aside { position: static; }
  .phys-grid { grid-template-columns: repeat(3, 1fr); }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-grid, .bio-grid, .location-detail-grid, .layout-sidebar { grid-template-columns: 1fr; gap: 48px; }
  .sidebar { position: static; }
  .bio-portrait { position: static; max-width: 380px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .hub-grid { grid-template-columns: 1fr; }
  .locations-page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  nav.primary, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .logo img { height: 44px; }
  section, .page-section { padding: 64px 0; }
  .hero, .page-hero { padding: 56px 0 48px; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .service-row, .trial-row { grid-template-columns: 50px 1fr; gap: 12px; }
  .service-row .service-desc, .service-row .service-arrow,
  .trial-row .trial-desc, .trial-row .trial-status { grid-column: 2; }
  .phys-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: 1fr; }
  .footer-locations { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .bio-credentials { grid-template-columns: 1fr; }
  .bio-credentials dt { padding-top: 12px; }
}
@media (max-width: 480px) {
  .stat-num { font-size: 44px; }
  .intro-body p:first-child::first-letter { font-size: 64px; }
}

