/* ==========================================================================
   Alamo Physical Therapy — design system
   Built for readability first: large type, high contrast, generous targets.
   ========================================================================== */

:root {
  /* Brand — pulled from the Alamo PT logo */
  --navy-900: #0a1d45;
  --navy-800: #0f2c66;   /* logo navy */
  --navy-700: #183f8a;
  --sky-500: #2b7de6;    /* logo swoosh, decorative only */
  --sky-300: #7fb6ff;    /* swoosh on dark backgrounds */
  --sky-100: #e4effd;
  --link: #1553ab;       /* 7:1 on cream */

  /* Neutrals — warm limestone, a nod to the Alamo itself */
  --cream: #fbf8f2;
  --sand-100: #f4ede1;
  --sand-200: #e9dfcd;
  --sand-300: #d8c9b0;
  --white: #ffffff;

  --ink: #18212e;        /* body text, 15:1 on cream */
  --ink-2: #3b4555;      /* secondary text, 9:1 on cream */
  --rule: #d9d0c1;

  --ok: #1d6b3e;
  --ok-bg: #e4f3e9;
  --closed: #8a3b12;
  --closed-bg: #fbeadf;

  /* Type */
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --step--1: 1rem;                                   /* 16–17px: smallest text on the site */
  --step-0: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem); /* 18–20px body */
  --step-1: clamp(1.3rem, 1.2rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.55rem, 1.35rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.75rem + 2.6vw, 3.75rem);

  --measure: 64ch;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(10 34 64 / 0.06), 0 8px 24px rgb(10 34 64 / 0.08);
  --shadow-lg: 0 2px 4px rgb(10 34 64 / 0.06), 0 24px 48px rgb(10 34 64 / 0.14);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --section: clamp(4rem, 3rem + 4vw, 7rem);
}

/* Reader-chosen text size (set by the A / A+ / A++ control) */
html[data-text="lg"] { font-size: 112.5%; }
html[data-text="xl"] { font-size: 125%; }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 7rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
picture { display: contents; }  /* responsive <picture> wrappers don't change layout */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p, li { max-width: var(--measure); text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--navy-900); }
strong { font-weight: 700; }

/* Strong, always-visible focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--sky-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy-900); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; color: var(--white); }

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

/* ---------- Layout helpers ---------- */
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand-100); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy-900); color: #e8eef6; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a:not(.btn) { color: #a9d3ff; }

.stack > * + * { margin-top: 1.1em; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); }
.section--navy .lead { color: #cfdbe9; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: ""; width: 1.9rem; height: 0.8rem; flex: none;
  background: var(--sky-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 30 100 55' preserveAspectRatio='none'%3E%3Cpath d='M2 80 C 26 50, 62 38, 98 50 C 66 46, 32 56, 2 80 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 30 100 55' preserveAspectRatio='none'%3E%3Cpath d='M2 80 C 26 50, 62 38, 98 50 C 66 46, 32 56, 2 80 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.section--navy .eyebrow { color: #a9d3ff; }
.section--navy .eyebrow::before, .quote-panel .eyebrow::before { background: var(--sky-300); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head p { margin-top: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.5rem; padding: 0.85rem 1.6rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 var(--step-0)/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy-800); color: var(--white); box-shadow: 0 6px 18px rgb(15 47 87 / 0.25); }
.btn--primary:hover { background: var(--navy-900); color: var(--white); }
.btn--secondary { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn--secondary:hover { background: var(--navy-800); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy-900); }
.btn--light:hover { background: var(--sky-100); color: var(--navy-900); }
.btn--ghost-light { color: var(--white); border-color: rgb(255 255 255 / 0.6); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; color: var(--link);
}
.text-link::after { content: "→"; transition: transform .2s; text-decoration: none; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--navy-900); color: #dbe6f3;
  font-size: var(--step--1);
}
.utility .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3rem; flex-wrap: wrap; padding-block: 0.35rem;
}
.utility a { color: var(--white); text-decoration: none; font-weight: 700; }
.utility a:hover { text-decoration: underline; color: var(--white); }
.utility__info { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.utility__info span { display: inline-flex; align-items: center; gap: 0.45rem; }
.utility__info svg { width: 1.1rem; height: 1.1rem; color: #a9d3ff; }

.status-dot {
  width: 0.65rem; height: 0.65rem; border-radius: 50%;
  background: #7fd69f; box-shadow: 0 0 0 4px rgb(127 214 159 / 0.25);
}
[data-open="false"] .status-dot { background: #f2a679; box-shadow: 0 0 0 4px rgb(242 166 121 / 0.25); }

.textsize { display: flex; align-items: center; gap: 0.4rem; }
.textsize__label { margin-right: 0.25rem; }
.textsize button {
  min-width: 2.75rem; min-height: 2.25rem; padding: 0 0.5rem;
  border: 1.5px solid rgb(255 255 255 / 0.35); border-radius: 8px;
  background: transparent; color: var(--white);
  font-family: var(--font-body); font-weight: 700; line-height: 1; cursor: pointer;
}
.textsize button:nth-of-type(1) { font-size: 0.95rem; }
.textsize button:nth-of-type(2) { font-size: 1.15rem; }
.textsize button:nth-of-type(3) { font-size: 1.35rem; }
.textsize button[aria-pressed="true"] { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.textsize button:hover { border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 5.5rem;
}
.brand { display: block; flex: none; }
.brand img { width: clamp(165px, 130px + 6vw, 230px); }

.nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; padding: 0; }
.nav a:not(.btn) {
  white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0.5rem 0.9rem;
  color: var(--ink); font-weight: 700; text-decoration: none; border-radius: 10px;
}
.nav a:not(.btn):hover { background: var(--sand-100); color: var(--navy-900); }
.nav a[aria-current="page"] { color: var(--navy-800); box-shadow: inset 0 -3px 0 var(--sky-500); border-radius: 0; }
.nav .btn { white-space: nowrap; margin-left: 0.75rem; min-height: 3.1rem; padding-inline: 1.3rem; }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.5rem 1rem;
  border: 2px solid var(--navy-800); border-radius: 999px;
  background: var(--white); color: var(--navy-800);
  font: 700 var(--step--1) var(--font-body); cursor: pointer;
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }

/* Compact menu: toggled by JS from screen width AND chosen text size */
html.nav-compact .nav-toggle { display: inline-flex; }
html.nav-compact .nav {
  position: absolute; inset: 100% 0 auto 0;
  background: var(--white); border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-lg);
  display: none;
}
html.nav-compact .nav.is-open { display: block; }
html.nav-compact .nav ul { flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.5rem; gap: 0.25rem; }
html.nav-compact .nav a:not(.btn) { display: flex; font-size: var(--step-1); min-height: 3.5rem; border-bottom: 1px solid var(--sand-100); border-radius: 0; }
html.nav-compact .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sky-500); padding-left: 1.2rem; }
html.nav-compact .nav .btn { margin: 1rem 0 0; width: 100%; }
@media (max-width: 720px) {
  .hours tr.is-today th::after { content: ""; }
  .utility__hide-sm { display: none !important; }
  .textsize__label { display: none; }
  .utility .container { flex-wrap: nowrap; }
  .hero__swoosh { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 5vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 85% 10%, var(--sky-100), transparent 60%),
    linear-gradient(180deg, var(--white), var(--cream));
}
.hero__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--navy-700); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero .lead { margin-bottom: 2rem; }
.hero .btn-row { margin-bottom: 2.25rem; }

.checklist { list-style: none; padding: 0; display: grid; gap: 0.85rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; font-weight: 700; color: var(--ink); }
.checklist li::before {
  content: ""; flex: none; width: 1.6rem; height: 1.6rem; margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--navy-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/62% no-repeat;
}
.section--navy .checklist li { color: var(--white); }
.section--navy .checklist li::before { background-color: var(--sky-500); }

.hero__art { position: relative; padding: 0 0 3rem 2.5rem; }
.hero__photo {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; max-width: 100%;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero__swoosh {
  position: absolute; z-index: 2; left: -1rem; right: 18%; top: -1.5rem; height: 5.5rem;
  color: var(--sky-500); pointer-events: none;
}
.float-card {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.25rem; max-width: 21rem;
  font-size: var(--step--1); line-height: 1.45;
  display: grid; gap: 0.6rem;
}
.float-card strong { color: var(--navy-900); }
.float-card .status { justify-self: start; }
.avatars { display: flex; align-items: center; gap: 0.85rem; }
.avatars__pics { display: flex; flex: none; }
.avatars__text { min-width: 0; }
.avatars img {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--white); box-shadow: 0 2px 6px rgb(10 29 69 / 0.18);
}
.avatars img + img { margin-left: -0.9rem; }

.status { margin-bottom: 0.35rem; }

.status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.2rem 0.7rem; border-radius: 999px;
  font-weight: 700; font-size: var(--step--1);
  background: var(--ok-bg); color: var(--ok);
}
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; }
[data-open="false"] .status, .status[data-open="false"] { background: var(--closed-bg); color: var(--closed); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 34rem; width: 100%; margin-inline: auto; padding: 0; }
  .float-card { position: relative; margin: -2.5rem 1rem 0; max-width: none; }
}

/* ---------- Credibility strip ---------- */
.trust {
  background: var(--white);
  border-block: 1px solid var(--rule);
}
.trust ul {
  list-style: none; padding: 1.75rem 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.trust li { display: flex; gap: 0.9rem; align-items: center; max-width: none; font-size: var(--step--1); line-height: 1.4; color: var(--ink-2); }
.trust li strong { display: block; color: var(--navy-900); font-size: var(--step-0); }
.trust svg { width: 2.6rem; height: 2.6rem; flex: none; color: var(--navy-700); }
@media (max-width: 960px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust ul { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(1rem, 0.75rem + 1vw, 1.75rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-2); }
.card--link { position: relative; }
.card--link:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--sand-300); }
.card--link h3 a { color: inherit; text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .text-link { margin-top: 1rem; }

.icon-badge {
  width: 3.75rem; height: 3.75rem; border-radius: 16px; margin-bottom: 1.25rem;
  display: grid; place-items: center;
  background: var(--sky-100); color: var(--navy-800);
}
.icon-badge svg { width: 2rem; height: 2rem; }

/* Numbered approach cards */
.pillar { border-top: 4px solid var(--navy-800); }
.pillar__num {
  font-family: var(--font-display); font-size: var(--step-3); line-height: 1;
  color: var(--sky-500); font-weight: 600; margin-bottom: 1rem; display: block;
}
.pillar__tag { font-weight: 700; color: var(--navy-700); margin-bottom: 0.75rem; }
.pillar ul { margin-top: 1rem; padding-left: 1.2rem; color: var(--ink-2); }
.pillar li + li { margin-top: 0.35rem; }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

/* Photo with an overlapping card */
.feature-photo { margin: 0; display: grid; }
.feature-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 50%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.feature-photo .quote-panel { margin: -5rem 0 0 clamp(1rem, 4vw, 3rem); padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.feature-photo .quote-panel blockquote { font-size: var(--step-1); line-height: 1.4; }

.quote-panel {
  background: var(--navy-900); color: #e8eef6; border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem); position: relative; overflow: hidden;
}
.quote-panel blockquote {
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3; color: var(--white);
  font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 500;
}
.quote-panel .eyebrow { color: #a9d3ff; }
.quote-panel figcaption { margin-top: 1.25rem; color: #cfdbe9; }
.bg-swoosh { position: absolute; color: var(--sky-300); opacity: 0.16; pointer-events: none; }
.quote-panel .bg-swoosh { right: -10%; bottom: -10%; width: 90%; height: 70%; }

/* ---------- Steps / first visit ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.steps > li {
  counter-increment: step; position: relative;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 4.5rem 1.6rem 1.75rem; max-width: none;
}
.steps > li::before {
  content: counter(step);
  position: absolute; top: 1.5rem; left: 1.6rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--white);
  font: 700 1.15rem/1 var(--font-body);
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--ink-2); }

/* Vertical timeline variant for the New Patients page */
.timeline { list-style: none; padding: 0; counter-reset: step; }
.timeline > li {
  counter-increment: step; position: relative; max-width: none;
  padding: 0 0 2.75rem 4.75rem;
}
.timeline > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--white);
  font: 700 1.35rem/1 var(--font-body);
}
.timeline > li::after {
  content: ""; position: absolute; left: calc(1.625rem - 1.5px); top: 3.75rem; bottom: 0.5rem;
  width: 3px; background: var(--sand-300); border-radius: 3px;
}
.timeline > li:last-child::after { display: none; }
.timeline h3 { font-size: var(--step-2); margin-bottom: 0.6rem; padding-top: 0.3rem; }
.timeline .tip {
  margin-top: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  background: var(--sky-100); border-left: 5px solid var(--sky-500); max-width: var(--measure);
}

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); }
.person {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; display: grid; grid-template-columns: 13rem 1fr;
  align-content: start;  /* equal-height cards: extra height goes below the bio, not into the photo */
}
.person__photo { background: var(--sand-100); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.person__body { padding: 1.75rem; }
.person__role { color: var(--navy-700); font-weight: 700; margin-bottom: 0.75rem; }
.person__body p { color: var(--ink-2); }
.person--feature { grid-template-columns: 1fr; }
.person--feature .person__photo img { aspect-ratio: 4 / 3.4; object-position: 50% 25%; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin-top: 1rem; }
.tags li {
  padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--sand-100);
  font-size: var(--step--1); font-weight: 700; color: var(--navy-800);
}

/* Clinic gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(16rem, 12rem + 10vw, 24rem); }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0.85rem; bottom: 0.85rem; right: 0.85rem; width: fit-content;
  background: var(--white); color: var(--navy-900);
  padding: 0.45rem 0.9rem; border-radius: 999px;
  font-size: var(--step--1); font-weight: 700; line-height: 1.3;
  box-shadow: 0 4px 12px rgb(10 29 69 / 0.15);
}
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 15rem; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery figure.wide { grid-column: auto; } }

/* Inner page hero with a photo */
.page-hero__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.page-hero__grid > * { min-width: 0; }
.page-hero__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; max-width: 100%; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media { aspect-ratio: 16 / 10; }
}

/* Finding us */
.wayfind { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.wayfind figure { margin: 0; display: grid; gap: 1rem; align-content: start; }
.wayfind img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.wayfind figcaption strong { display: block; font-family: var(--font-display); font-size: var(--step-1); color: var(--navy-900); margin-bottom: 0.25rem; }
.wayfind figcaption { color: var(--ink-2); }
@media (max-width: 720px) { .wayfind { grid-template-columns: 1fr; } }

/* Home team preview */
.team-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.team-preview figure { margin: 0; }
.team-preview img { border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.team-preview figcaption { margin-top: 0.75rem; line-height: 1.35; }
.team-preview figcaption strong { display: block; color: var(--navy-900); }
.team-preview figcaption span { font-size: var(--step--1); color: var(--ink-2); }

/* ---------- FAQ (native details/summary) ---------- */
.faq { display: grid; gap: 0.9rem; }
.faq details {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s;
}
.faq details[open] { border-color: var(--sand-300); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; min-height: 4rem;
  font-weight: 700; font-size: var(--step-1); line-height: 1.35; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand-100); color: var(--navy-800);
  font: 400 1.6rem/1 var(--font-body);
  transition: transform .25s;
}
.faq details[open] summary::after { content: "−"; background: var(--navy-800); color: var(--white); }
.faq .faq__body { padding: 0 1.5rem 1.5rem; color: var(--ink-2); }
.faq .faq__body > * + * { margin-top: 0.8rem; }
.faq .faq__body ul { padding-left: 1.25rem; }

/* ---------- Visit / hours ---------- */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: stretch; }
.visit > *, .split > *, .hero__grid > * { min-width: 0; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }
.info-card {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
}
.info-list { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list svg { width: 1.6rem; height: 1.6rem; flex: none; margin-top: 0.25rem; color: var(--navy-700); }
.info-list .label { display: block; font-size: var(--step--1); color: var(--ink-2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.info-list a { font-weight: 700; font-size: var(--step-1); text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

.hours { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.hours th, .hours td { padding: 0.65rem 0.6rem; text-align: left; border-bottom: 1px solid var(--sand-200); }
.hours th { font-weight: 700; color: var(--ink); }
.hours td { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hours tr.is-today th, .hours tr.is-today td { background: var(--sky-100); color: var(--navy-900); font-weight: 700; }
.hours tr.is-today th::after { content: " · Today"; color: var(--navy-700); font-weight: 700; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours-note { margin-top: 0.75rem; font-size: var(--step--1); color: var(--ink-2); font-weight: 700; }

.map {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule);
  min-height: 24rem; background: var(--sand-100); position: relative;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .bg-swoosh { left: -8%; bottom: -25%; width: 75%; height: 110%; }
@media (max-width: 860px) { .cta-band .container { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  background:
    radial-gradient(50rem 22rem at 90% 0%, var(--sky-100), transparent 65%),
    linear-gradient(180deg, var(--white), var(--cream));
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { margin-bottom: 1rem; max-width: 22ch; }
.crumbs { font-size: var(--step--1); margin-bottom: 1.25rem; color: var(--ink-2); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--sand-300); }

/* ---------- Callout ---------- */
.callout {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--rule); border-left: 6px solid var(--navy-800);
  border-radius: var(--radius); padding: 1.5rem 1.75rem;
}
.callout svg { width: 2rem; height: 2rem; flex: none; color: var(--navy-800); margin-top: 0.15rem; }
.callout h3 { margin-bottom: 0.35rem; }
.callout p { color: var(--ink-2); }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.35rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.45rem; color: var(--ink); }
.field .hint { display: block; font-weight: 400; color: var(--ink-2); font-size: var(--step--1); margin-top: 0.15rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.5rem; padding: 0.8rem 1rem;
  font: inherit; color: var(--ink);
  background: var(--white); border: 2px solid #8f8576; border-radius: 12px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-800); outline: 3px solid var(--sky-100); outline-offset: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.75rem; border: 0; padding: 0; }
.radio-row legend { font-weight: 700; margin-bottom: 0.45rem; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.5rem 1.1rem;
  border: 2px solid var(--sand-300); border-radius: 12px; background: var(--white); cursor: pointer; font-weight: 700;
}
.radio-row input { width: 1.35rem; height: 1.35rem; accent-color: var(--navy-800); }
.radio-row label:has(input:checked) { border-color: var(--navy-800); background: var(--sky-100); }
.form-note { font-size: var(--step--1); color: var(--ink-2); }
/* Honeypot: off-screen for people, still in the form for bots */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.25rem; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.form-status[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand-100); border-top: 1px solid var(--rule); padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h2 { font-family: var(--font-body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy-700); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-grid a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-grid a:hover { color: var(--navy-800); text-decoration: underline; }
.footer-brand img { width: 230px; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--ink-2); }
.footer-hours { font-variant-numeric: tabular-nums; }
.footer-hours span { white-space: nowrap; }
.footer-hours .footer-hours__note { display: block; margin-top: 0.35rem; font-size: var(--step--1); color: var(--ink-2); }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; max-width: 16rem; }
.social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social a {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--rule); color: var(--navy-800);
}
.social a:hover { background: var(--navy-800); color: var(--white); }
.social svg { width: 1.3rem; height: 1.3rem; }
.footer-bottom {
  margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--sand-300);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: var(--step--1); color: var(--ink-2);
}
.footer-bottom p { max-width: none; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    position: fixed; inset: auto 0 0 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 0.97); border-top: 1px solid var(--rule);
    box-shadow: 0 -8px 24px rgb(10 34 64 / 0.1);
  }
  .callbar .btn { min-height: 3.4rem; padding-inline: 0.75rem; }
  body { padding-bottom: 5.5rem; }
}

/* ---------- Gentle reveal on scroll ---------- */
.js-reveal .reveal:not(.is-visible) { opacity: 0; transform: translateY(16px); }
.reveal { transition: opacity .6s ease, transform .6s ease; }

/* ---------- Print: patients often print directions & hours ---------- */
@media print {
  .utility, .nav, .nav-toggle, .callbar, .map, .btn, .hero__art, .cta-band .bg-swoosh { display: none !important; }
  .site-header { position: static; }
  body { font-size: 12pt; background: white; }
  a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
