/* =========================================================
   Milestones Medical — Design System
   Editorial-medical: warm neutrals, deep ink, coral accent
   ========================================================= */

:root {
  --bg: #f5f1ea;
  --bg-2: #ebe4d8;
  --paper: #fbf8f2;
  --ink: #14211d;
  --ink-2: #2a3a34;
  --muted: #6b766f;
  --line: #d9d2c4;
  --line-2: #c8bfae;
  --accent: #c4533c;
  --accent-2: #e9b384;
  --green: #3b5a3f;

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --max: 1360px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(56px, 9vw, 148px);
}
.display-sm {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(40px, 5.5vw, 88px);
}
.h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-size: clamp(36px, 4.4vw, 64px);
  margin: 0;
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(28px, 3vw, 44px);
  margin: 0;
}
.h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--muted);
}
.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.4;
  color: var(--ink-2);
  font-style: italic;
}
.body { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.small { font-size: 13px; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section-tight { padding: clamp(48px, 6vw, 88px) 0; }

.grid { display: grid; gap: 24px; }
.row { display: flex; gap: 16px; }
.between { justify-content: space-between; align-items: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg), transparent 4%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 17px;
}
.brand-logo {
  width: 36px; height: 36px;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}
.brand-word {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
}
@media (max-width: 480px) {
  .brand-word { display: none; }
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
}
.nav-cta { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.nav-cta a { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav-cta .small { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn .arrow {
  width: 14px; height: 14px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14M13 6l6 6-6 6' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14M13 6l6 6-6 6' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

/* ---------- Tag pills ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: .04em;
  color: var(--ink-2);
  background: var(--paper);
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tag-dot.green { background: var(--green); }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  background: var(--bg-2);
  background-image:
    repeating-linear-gradient(135deg,
      transparent 0 14px,
      color-mix(in oklab, var(--ink) 6%, transparent) 14px 15px);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--line);
}
/* Real-photo variant: hides the stripe pattern + label, shows the embedded <img> full-bleed */
.ph.has-img { padding: 0; background-image: none; background: var(--ink-2); }
.ph.has-img::after { display: none; }
.ph.has-img > img,
.ph.has-img > picture,
.ph.has-img > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph.dark {
  background: var(--ink);
  background-image:
    repeating-linear-gradient(135deg,
      transparent 0 14px,
      color-mix(in oklab, #fff 8%, transparent) 14px 15px);
  color: var(--bg);
}
.ph.dark::after { color: var(--bg); background: var(--ink-2); border-color: var(--ink-2); }
.ph.coral {
  background: var(--accent);
  background-image:
    repeating-linear-gradient(135deg,
      transparent 0 14px,
      color-mix(in oklab, #fff 12%, transparent) 14px 15px);
}
.ph.coral::after { color: #fff; background: color-mix(in oklab, var(--accent), black 18%); border-color: transparent; }
.ph.peach {
  background: var(--accent-2);
  background-image:
    repeating-linear-gradient(135deg,
      transparent 0 14px,
      color-mix(in oklab, var(--ink) 8%, transparent) 14px 15px);
}
.ph.green {
  background: var(--green);
  background-image:
    repeating-linear-gradient(135deg,
      transparent 0 14px,
      color-mix(in oklab, #fff 10%, transparent) 14px 15px);
  color: #fff;
}
.ph.green::after { color: #fff; background: color-mix(in oklab, var(--green), black 18%); border-color: transparent; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--ink); }

/* ---------- Hairlines ---------- */
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.hr-strong { height: 1px; background: var(--ink); border: 0; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 32px;
  margin-top: 0;
}
.site-footer .display {
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.9;
  margin: 32px 0 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
}
.footer-grid h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
  margin: 0 0 16px;
  font-weight: 400;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: color-mix(in oklab, var(--bg) 85%, transparent); font-size: 14px; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
}

/* ---------- Marquee ---------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 40s linear infinite;
  width: max-content;
  white-space: nowrap;
}
.marquee-item {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-item::after {
  content: "✻";
  color: var(--accent);
  font-size: 14px;
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}
.page-hero .crumbs {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.page-hero .crumbs span:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line-2);
}

/* ---------- Utility ---------- */
.tnum { font-variant-numeric: tabular-nums; }
.text-mute { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-bg { color: var(--bg); }
.italic { font-style: italic; }
.divider-dot::before { content: "·"; margin: 0 8px; color: var(--line-2); }

/* Hover anim list rows */
.row-link {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 28px 8px;
  border-top: 1px solid var(--line);
  transition: padding .25s ease, background .25s;
}
.row-link:last-child { border-bottom: 1px solid var(--line); }
.row-link:hover { padding-left: 24px; background: var(--paper); }
.row-link .row-num { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.row-link .row-title { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 34px); }
.row-link .row-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.row-link .row-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.row-link:hover .row-arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(-45deg); }

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--ink);
}

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top: 5px; }

/* ---------- Service-icon tile ---------- */
.svc-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
}
.svc-icon img { width: 32px; height: 32px; object-fit: contain; display: block; }

/* ---------- Physician slider ---------- */
.phys-slider {
  position: relative;
}
.phys-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.phys-track::-webkit-scrollbar { display: none; }
.phys-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 8px 0;
}
.phys-slide .ph { aspect-ratio: 4/5; }
.phys-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.phys-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, color .2s, border-color .2s;
}
.phys-arrow:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.phys-arrow .arrow {
  width: 16px; height: 16px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14M13 6l6 6-6 6' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14M13 6l6 6-6 6' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.phys-prev .arrow { transform: rotate(180deg); }
.phys-dots {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.phys-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.phys-dot.is-active { background: var(--accent); transform: scale(1.4); }
.phys-counter {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
@media (max-width: 720px) {
  .phys-slide { grid-template-columns: 1fr !important; gap: 32px; }
  .phys-slide .ph { aspect-ratio: 4/3; max-height: 480px; }
}

/* ---------- Clinic gallery (home) ---------- */
.clinic-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.clinic-gallery .ph {
  aspect-ratio: 1/1;
}
.clinic-gallery .ph:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
@media (max-width: 720px) {
  .clinic-gallery { grid-template-columns: 1fr !important; }
  .clinic-gallery .ph:first-child { grid-column: span 1; grid-row: span 1; aspect-ratio: 1/1 !important; }
}

/* ---------- Clinic tour page grid ---------- */
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.clinic-tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.clinic-tile.span-2 {
  grid-column: span 2;
}
.clinic-tile .ph {
  aspect-ratio: 1/1;
}
.clinic-tile.span-2 .ph {
  aspect-ratio: 16/10;
}
.clinic-tile figcaption {
  margin-top: 4px;
}
@media (max-width: 900px) {
  .clinic-grid { grid-template-columns: 1fr 1fr !important; }
  .clinic-tile.span-2 { grid-column: span 2; }
}
@media (max-width: 600px) {
  .clinic-grid { grid-template-columns: 1fr !important; }
  .clinic-tile.span-2 { grid-column: span 1; }
}

/* ---------- Sister-practice cards ---------- */
.sister-card { overflow: hidden; }
.sister-logo-plate {
  background: var(--ink);
  height: 120px;
  display: grid;
  place-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
}
/* Layo and Flawless logos are white/gold on transparent — designed for dark plates. */
/* Milestones logo is dark forest-green on transparent — needs a light plate to be visible. */
.sister-logo-plate.is-light {
  background: var(--bg);
  border-bottom-color: var(--line);
}
.sister-logo-plate img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.sister-logo-plate.is-light img {
  max-height: 80px;  /* Milestones is square — gets a touch more height to read clearly */
}

/* ---------- Reviews-on-Google CTA ---------- */
.reviews-cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 48px clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

/* ---------- Responsive helpers ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items:flex-start; gap:8px; }
  .reviews-cta { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  /* All multi-column inline grids collapse on small screens */
  body section [style*="grid-template-columns"],
  body main > [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Reset explicit row heights — they cause overlap with collapsed columns */
  body [style*="grid-template-rows"] { grid-template-rows: auto !important; }
  body [style*="grid-row: span"],
  body [style*="grid-row:span"] { grid-row: auto !important; }
  body [style*="grid-column: span"],
  body [style*="grid-column:span"] { grid-column: auto !important; }
  /* Vertical borders between collapsed cells become hanging strokes — flip to bottom */
  body section [style*="grid-template-columns"] > [style*="border-right"],
  body main [style*="grid-template-columns"] > [style*="border-right"] {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  body section [style*="grid-template-columns"] > [style*="border-right"]:last-child,
  body main [style*="grid-template-columns"] > [style*="border-right"]:last-child {
    border-bottom: 0 !important;
  }
  /* Sticky sidebars don't make sense at mobile — they'd float over content */
  body [style*="position:sticky"],
  body [style*="position: sticky"] {
    position: static !important;
    top: auto !important;
  }
  /* Tighten oversized inline padding & gaps on phones */
  body section [style*="padding: 28px 24px"] { padding: 20px 16px !important; }
  body section [style*="padding: 32px 24px"] { padding: 24px 0 !important; border-right: 0 !important; }
  body section [style*="padding: 40px 32px"] { padding: 28px 20px !important; }
  body section [style*="padding: 24px"] { padding: 18px !important; }

  /* Booking-page 'CURRENTLY · 4 ahead of you' chip: hours block grid 1fr auto auto -> stack neatly */
  body section [style*="grid-template-columns: 1fr auto auto"] {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }
  body section [style*="grid-template-columns: 1fr auto auto"] > * {
    text-align: left !important;
    margin-left: 0 !important;
  }

  /* Display headings: smaller on tiny phones so they don't crash into images */
  .display { font-size: clamp(40px, 12vw, 64px) !important; line-height: 1; }
  .display-sm { font-size: clamp(34px, 10vw, 56px) !important; line-height: 1.05; }
  .h1 { font-size: clamp(28px, 8vw, 44px) !important; line-height: 1.1; }
  .h2 { font-size: clamp(22px, 6vw, 32px) !important; line-height: 1.15; }
  .lede { font-size: 18px !important; line-height: 1.45; }

  /* The big hero composition on home: explicit pixel rows + spans -> just stack as squares */
  body section [style*="grid-template-rows: 360px 220px"] > .ph {
    aspect-ratio: 4/3 !important;
    height: auto !important;
  }

  /* Section padding: pull vertical rhythm down a touch on phones */
  .section { padding: 56px 0 !important; }
  .section-tight { padding: 40px 0 !important; }
  .page-hero { padding: 48px 0 32px !important; }

  /* Keep the marquee horizontal */
  .marquee, .marquee-track { grid-template-columns: none !important; }
  /* Let the row-link layout still flow */
  .row-link {
    grid-template-columns: 40px 1fr auto !important;
    gap: 12px !important;
    padding: 18px 4px !important;
  }
  .row-link .row-meta { display: none; }
  .row-link .row-title { font-size: 22px !important; }
  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; padding-bottom: 32px; }
}

/* Tablet/intermediate: keep 2-column where it makes sense */
@media (max-width: 900px) and (min-width: 720px) {
  body section [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  body section [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Very small phones (<= 380px) */
@media (max-width: 380px) {
  :root { --pad-x: 16px; }
  .display { font-size: clamp(36px, 11vw, 48px) !important; }
  .nav-cta a.small { display: none !important; }
  .reviews-cta { padding: 32px 20px !important; }
  .clinic-gallery, .clinic-grid { gap: 12px !important; }
}

/* Mobile-open nav (toggled by chrome.js) */
@media (max-width: 900px) {
  .site-header.is-open .nav-links {
    display: grid;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    padding: 24px var(--pad-x);
    gap: 12px;
    border-bottom: 1px solid var(--line);
    z-index: 100;
  }
}

/* Print: keep it crisp on paper for clinic handouts */
@media print {
  .site-header, .site-footer, .marquee, .nav-cta, .nav-toggle,
  .reviews-cta, form, .btn { display: none !important; }
  body { font-size: 12pt; line-height: 1.4; }
  a { color: inherit; text-decoration: underline; }
}
