/* ═══════════════════════════════════════════════════
   MMC Design Preview — complete styles
   Self-hosted fonts, mobile-first, WCAG 2.1 AA
   ═══════════════════════════════════════════════════ */

/* ── Font faces (self-hosted, variable) ────────────── */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-variable.woff2') format('woff2');
}

/* ── Reset & base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--ink-600);
  background-color: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--brand-900);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}
a:hover { color: var(--brand-500); }
a:focus-visible {
  outline: 2.5px solid var(--brand-700);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--ink-900);
  line-height: var(--lh-heading);
  /* A hair of negative tracking to tighten the display serif at heading sizes. */
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-bold); }

p + p { margin-top: var(--sp-4); }

ul, ol { padding-left: var(--sp-6); }
li + li { margin-top: var(--sp-2); }

/* Focus ring utility */
:focus-visible { outline: 2.5px solid var(--brand-700); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ── Layout containers ────────────────────────────── */
.container   { max-width: var(--content-width); margin-inline: auto; padding-inline: var(--page-padding); }
.container-wide { max-width: var(--wide-width); margin-inline: auto; padding-inline: var(--page-padding); }
.full-bleed  { width: 100%; }

.section {
  padding-block: clamp(var(--sp-12), 6vw, var(--sp-24));
}
.section-sm { padding-block: var(--sp-8); }
.section-lg { padding-block: clamp(var(--sp-16), 8vw, var(--sp-32)); }

/* ── Eyebrow ──────────────────────────────────────── */
.eyebrow {
  font-family: var(--ff-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0d5c57;
  margin-bottom: var(--sp-3);
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-semibold);
  padding: var(--sp-3) var(--sp-6); border-radius: var(--r-pill); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: all var(--duration) var(--ease-out);
  line-height: 1.2; white-space: nowrap;
}
.btn:focus-visible { outline: 2.5px solid var(--brand-700); outline-offset: 3px; }

.btn-primary {
  background: #0d5c57 !important; color: #ffffff !important; border-color: #0d5c57 !important;
}
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: white; }

.btn-secondary {
  background: transparent; color: #0d5c57; border-color: #0d5c57;
}
.btn-secondary:hover { background: var(--brand-50); border-color: var(--brand-500); }

.btn-ghost {
  background: transparent; color: var(--ink-600); border-color: transparent;
}
.btn-ghost:hover { background: var(--brand-50); color: var(--brand-900); }

.btn-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-weight: var(--fw-semibold); color: var(--brand-900); background: none; border: none;
  padding: 0; cursor: pointer; font-size: var(--fs-body);
}
.btn-arrow::after { content: '→'; transition: transform var(--duration) var(--ease-out); }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-arrow:hover { color: var(--brand-500); }

.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: var(--fs-h4); }

/* ── Header ───────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background var(--duration) var(--ease-out);
}
.site-header.scrolled { background: rgba(255, 255, 255, 0.96); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--wide-width); margin-inline: auto;
  padding: var(--sp-2) var(--page-padding);
  height: 64px;
}
@media (min-width: 768px) { .header-inner { height: 72px; } }

.logo {
  display: flex; align-items: center;
  font-family: var(--ff-display); font-size: var(--fs-h4); font-weight: var(--fw-bold);
  color: var(--ink-900); text-decoration: none;
}
.logo img { height: 44px; width: auto; }
@media (min-width: 768px) { .logo img { height: 52px; } }

/* Desktop nav */
.nav-desktop {
  display: none; align-items: center; gap: var(--sp-1);
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-desktop a {
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--ink-600);
  transition: all var(--duration) var(--ease-out);
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--brand-900); background: var(--brand-50);
}

.nav-desktop .header-cta {
  margin-left: var(--sp-4);
}

/* Dropdown (Services) */
.dropdown { position: relative; }
.dropdown-toggle {
  display: flex; align-items: center; gap: var(--sp-1);
}
.dropdown-toggle::after {
  content: ''; display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-left: 2px; margin-top: -2px;
  transition: transform var(--duration) var(--ease-out);
}
.dropdown.open .dropdown-toggle::after { transform: rotate(-135deg); margin-top: 2px; }

.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-card); padding: var(--sp-2); z-index: 101;
}
.dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  font-size: var(--fs-small); color: var(--ink-600);
}
.dropdown-menu a:hover { background: var(--brand-50); color: var(--brand-900); }

/* Phone number (desktop header) */
.header-phone {
  display: none; align-items: center; gap: var(--sp-1);
  font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--ink-600);
}
.header-phone svg { width: 16px; height: 16px; }
@media (min-width: 768px) { .header-phone { display: flex; } }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; border: none; background: none; cursor: pointer;
  padding: var(--sp-1); border-radius: var(--r-sm);
}
@media (min-width: 1024px) { .hamburger { display: none; } }

.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--ink-900);
  transition: all var(--duration) var(--ease-out);
}
.hamburger span + span { margin-top: 5px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--surface); z-index: 99; overflow-y: auto;
  padding: var(--sp-6) var(--page-padding); border-top: 1px solid var(--line);
}
.mobile-menu.open { display: block; }
@media (min-width: 768px) { .mobile-menu { top: 72px; } }
@media (min-width: 1024px) { .mobile-menu.open { display: none; } }

.mobile-menu a {
  display: block; padding: var(--sp-3) var(--sp-2);
  font-size: 1.1rem; font-weight: var(--fw-medium); color: var(--ink-900);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--brand-900); }
.mobile-menu .mobile-cta { margin-top: var(--sp-6); }

.mobile-submenu {
  padding-left: var(--sp-6);
}
.mobile-submenu a {
  font-size: var(--fs-body); font-weight: var(--fw-regular); color: var(--ink-600);
  border-bottom: none; padding: var(--sp-2) var(--sp-2);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  background: #f3f0ea;
  padding-block: clamp(var(--sp-12), 8vw, var(--sp-24));
  position: relative; overflow: hidden;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: var(--wide-width); margin-inline: auto;
  padding-inline: var(--page-padding);
  display: grid; gap: var(--sp-12); align-items: center;
}
@media (min-width: 768px) {
  .hero-content { grid-template-columns: 1fr 1fr; }
}

.hero-text { display: flex; flex-direction: column; gap: var(--sp-6); }

.hero-text h1 {
  font-size: var(--fs-hero); line-height: var(--lh-tight); color: #15302e;
}
.hero-text h1 .highlight {
  color: #0d5c57; display: inline;
}

.hero-text .hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: #5d6c6a; line-height: var(--lh-body);
  max-width: 32rem;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
}

.hero-image {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
  background: var(--brand-100);
  display: flex; align-items: center; justify-content: center;
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-image .hero-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
  color: #0d5c57;
}
.hero-image .hero-placeholder svg { width: 64px; height: 64px; }

/* ── Sections ─────────────────────────────────────── */
.section-header {
  text-align: center; max-width: var(--content-width);
  margin-inline: auto; margin-bottom: var(--sp-12);
}
.section-header h2 { margin-bottom: var(--sp-3); }
.section-header p { color: var(--ink-600); font-size: var(--fs-body); max-width: 36rem; margin-inline: auto; }

/* ── Service cards ─────────────────────────────────── */
.services-grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Affiliates / partners grid ────────────────────── */
.affiliates-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.affiliate-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-8) var(--sp-6);
  box-shadow: var(--shadow-soft); transition: all var(--duration-slow) var(--ease-out);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-4);
}
.affiliate-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--brand-100); }
.affiliate-logo { width: 100%; min-height: 88px; display: flex; align-items: center; justify-content: center; }
.affiliate-logo img { display: block; height: 56px; width: auto; max-width: 100%; object-fit: contain; }
/* Portrait / square logos read as tiny when capped to the same height as wide ones — give them more height */
.affiliate-logo img.is-tall { height: 84px; }
.affiliate-card p { color: var(--ink-500); font-size: var(--fs-small); flex: 1; margin: 0; }
.affiliate-card .btn-arrow { margin-top: auto; }

.service-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-8) var(--sp-6);
  box-shadow: var(--shadow-soft); transition: all var(--duration-slow) var(--ease-out);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.service-card:hover {
  box-shadow: var(--shadow-hover); transform: translateY(-2px);
  border-color: var(--brand-100);
}

.service-card .card-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); border-radius: var(--r-sm); color: var(--brand-700);
  flex-shrink: 0;
}
.service-card h3 { font-size: var(--fs-h4); color: var(--ink-900); }
.service-card p { color: var(--ink-500); font-size: var(--fs-small); flex: 1; }

/* ── Why-choose strip ──────────────────────────────── */
.why-choose {
  background: var(--brand-900); color: white;
  padding-block: clamp(var(--sp-12), 6vw, var(--sp-16));
}
.why-choose .container-wide { text-align: center; }

.why-choose h2 { color: white; margin-bottom: var(--sp-8); }

.why-grid {
  display: grid; gap: var(--sp-8);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-item {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
  padding: var(--sp-6);
}
.why-item .why-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); border-radius: 50%;
}
.why-item h3 {
  font-family: var(--ff-display); font-size: var(--fs-h4); color: white; font-weight: var(--fw-semibold);
}
.why-item p {
  color: rgba(255,255,255,0.8); font-size: var(--fs-small); line-height: var(--lh-body);
  max-width: 18rem;
}

/* ── Doctor grid ───────────────────────────────────── */
.doctors-grid {
  display: grid; gap: var(--sp-8);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .doctors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .doctors-grid { grid-template-columns: repeat(4, 1fr); } }

.doctor-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-soft); transition: all var(--duration-slow) var(--ease-out);
}
.doctor-card:hover { box-shadow: var(--shadow-hover); }

.doctor-card .doc-photo {
  aspect-ratio: 3/4; overflow: hidden; background: var(--brand-50);
  display: flex; align-items: center; justify-content: center;
}
.doctor-card .doc-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.doc-monogram {
  font-family: var(--ff-display); font-size: 3rem; font-weight: var(--fw-bold);
  color: #0a5a55; opacity: 0.85;
}

.doctor-card .doc-info {
  padding: var(--sp-6);
}
.doctor-card .doc-name {
  font-family: var(--ff-display); font-size: var(--fs-h4); color: var(--ink-900);
  margin-bottom: var(--sp-1);
}
.doctor-card .doc-creds {
  font-size: var(--fs-small); color: var(--ink-500); margin-bottom: var(--sp-3);
}
.doctor-card .doc-chips {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
}
.chip {
  display: inline-block; padding: 2px var(--sp-2);
  background: var(--brand-50); color: var(--brand-900);
  border-radius: var(--r-pill); font-size: 0.75rem; font-weight: var(--fw-medium);
}

/* ── Doctor teaser row (homepage) ──────────────────── */
.doctors-teaser {
  display: grid; gap: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .doctors-teaser { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .doctors-teaser { grid-template-columns: repeat(3, 1fr); } }

.doctors-teaser + .section-footer { text-align: center; margin-top: var(--sp-8); }

/* ── Fees table (Patient Information) ──────────────── */
.fees-wrap { overflow-x: auto; margin: var(--sp-4) 0 var(--sp-8); -webkit-overflow-scrolling: touch; }
.fees-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; line-height: 1.4; }
.fees-table th, .fees-table td { padding: 0.4rem 0.55rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.fees-table thead th { background: var(--brand-900); color: #fff; font-weight: var(--fw-semibold); }
.fees-table tbody th { font-weight: var(--fw-medium); color: var(--ink-700); }
.fees-table td { color: var(--ink-600); white-space: nowrap; }
.fees-table tr.fee-group th { background: var(--brand-50); color: var(--brand-900); font-family: var(--ff-display); font-weight: var(--fw-bold); }
.fees-note { font-size: var(--fs-small); color: var(--ink-500); }

/* ── CTA band ─────────────────────────────────────── */
.cta-band {
  background: var(--brand-900); color: white;
  padding-block: clamp(var(--sp-12), 6vw, var(--sp-16));
  text-align: center;
}
.cta-band h2 { color: white; margin-bottom: var(--sp-3); }
.cta-band p { color: rgba(255,255,255,0.85); font-size: var(--fs-body); margin-bottom: var(--sp-8); max-width: 32rem; margin-inline: auto; }
.cta-band .btn {
  background: white; color: var(--brand-900); border-color: white;
}
.cta-band .btn:hover { background: var(--brand-50); }

/* ── Locate-us / Hours ────────────────────────────── */
.locate-grid {
  display: grid; gap: var(--sp-8);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .locate-grid { grid-template-columns: 1fr 1fr; } }

.contact-block { display: flex; flex-direction: column; gap: var(--sp-4); }
.contact-block address { font-style: normal; line-height: var(--lh-body); }
.contact-row {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-body); color: var(--ink-600);
}
.contact-row svg { flex-shrink: 0; color: var(--brand-700); }

.map-placeholder {
  background: var(--brand-50); border-radius: var(--r-md); overflow: hidden;
  min-height: 280px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.map-placeholder iframe { width: 100%; height: 100%; min-height: 280px; border: none; }

.hours-table {
  width: 100%; border-collapse: collapse;
  font-size: var(--fs-small); margin-top: var(--sp-4);
}
.hours-table th, .hours-table td {
  padding: var(--sp-2) var(--sp-3); text-align: left;
  border-bottom: 1px solid var(--line);
}
.hours-table th { color: var(--ink-900); font-weight: var(--fw-semibold); width: 35%; }
.hours-table tr:last-child td { border-bottom: none; }

/* ── Vision / Mission (home) ──────────────────────── */
.vm-grid {
  display: grid; gap: var(--sp-8);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .vm-grid { grid-template-columns: 1fr 1fr; } }

.vm-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-8);
  box-shadow: var(--shadow-soft);
}
.vm-card h3 {
  margin-bottom: var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-2);
}
.vm-card h3::before {
  content: ''; display: inline-block; width: 4px; height: 20px;
  background: var(--brand-700); border-radius: 2px;
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--ink-900); color: rgba(255,255,255,0.75);
  padding-block: var(--sp-12) var(--sp-6);
  font-size: var(--fs-small);
}
.site-footer .footer-grid {
  display: grid; gap: var(--sp-8);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: white; }

.footer-logo { margin-bottom: var(--sp-4); }
.footer-logo img { height: 48px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; }

.footer-col h4 {
  font-family: var(--ff-body); font-size: var(--fs-eyebrow);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: white; margin-bottom: var(--sp-4); font-weight: var(--fw-semibold);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li + li { margin-top: var(--sp-2); }

.site-footer .footer-bottom {
  margin-top: var(--sp-8); padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.5);
}

.agpal-mark { display: flex; align-items: center; gap: var(--sp-2); }
.agpal-mark img { height: 24px; opacity: 0.7; }

/* ── Page hero (inner pages) ──────────────────────── */
.page-hero {
  background: #f3f0ea;
  padding-block: clamp(var(--sp-8), 5vw, var(--sp-16));
  text-align: center;
}
.page-hero h1 { margin-bottom: var(--sp-3); color: #15302e; }
.page-hero .page-lead {
  font-size: var(--fs-body); color: #5d6c6a; max-width: 32rem; margin-inline: auto;
}

/* ── Content prose ───────────────────────────────── */
.prose { max-width: var(--content-width); }
.prose-wide { max-width: 920px; margin-inline: auto; }
.prose h2 { margin-top: var(--sp-12); margin-bottom: var(--sp-4); }
.prose h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-3); }

/* ── About page list ──────────────────────────────── */
.services-list {
  display: grid; gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .services-list { grid-template-columns: repeat(2, 1fr); } }

.services-list li {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) 0; font-size: var(--fs-body); color: var(--ink-600);
}
.services-list li::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: var(--brand-700); border-radius: 50%; flex-shrink: 0;
}

/* ── Patient info accordion-style ──────────────────── */
.info-block {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-6);
  box-shadow: var(--shadow-soft); margin-bottom: var(--sp-6);
}
.info-block h3 {
  margin-bottom: var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-2);
  font-family: var(--ff-display); font-size: var(--fs-h4);
}
.info-block h3::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  background: var(--brand-700); border-radius: 50%; flex-shrink: 0;
}

.emergency-list {
  list-style: none; padding: 0;
  display: grid; gap: var(--sp-2);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .emergency-list { grid-template-columns: repeat(2, 1fr); } }

.emergency-list li {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  margin: 0; /* grid spaces itself with gap; cancel the global `li + li` top margin that stretches the first cell taller */
  padding: var(--sp-2) var(--sp-3); background: var(--brand-50);
  border-radius: var(--r-sm); font-size: var(--fs-small);
}
.emergency-list li strong { color: var(--ink-900); font-weight: var(--fw-medium); }
.emergency-list li span { color: var(--brand-900); font-weight: var(--fw-semibold); font-size: var(--fs-body); white-space: nowrap; }

/* ── Contact form ─────────────────────────────────── */
.contact-form {
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.form-group { display: flex; flex-direction: column; gap: var(--sp-1); }
.form-group label {
  font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--ink-700);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: var(--sp-3) var(--sp-4); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); font-family: var(--ff-body); font-size: var(--fs-body);
  color: var(--ink-900); background: var(--surface); transition: border-color var(--duration);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand-700); box-shadow: 0 0 0 3px var(--brand-100);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.checkbox-group {
  display: flex; align-items: flex-start; gap: var(--sp-2); flex-direction: row;
}
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.checkbox-group label { font-size: var(--fs-small); }

/* ── General Practice detail sections ─────────────── */
.gp-section {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-6);
  box-shadow: var(--shadow-soft); margin-bottom: var(--sp-6);
}
.gp-section h3 {
  margin-bottom: var(--sp-4); font-family: var(--ff-display);
}
/* Vertical stack of full-width tags: every item spans the column width
   (align-items:stretch is the flex-column default) so short and multi-line
   items are the same length, and a single `gap` gives uniform spacing. */
.gp-services-list {
  list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2);
}
.gp-services-list li {
  margin: 0; /* spacing comes from the flex gap only — cancel the global `li + li` top margin */
  padding: var(--sp-2) var(--sp-3); background: var(--brand-50);
  /* fixed radius (not --r-pill): items wrap to 2-4 lines and a pill radius
     scales with height, so taller items would look far more rounded. */
  color: var(--brand-900); border-radius: var(--r-sm);
  font-size: var(--fs-small); font-weight: var(--fw-medium);
}

/* ── Breadcrumbs ──────────────────────────────────── */
.breadcrumbs {
  font-size: var(--fs-small); color: var(--ink-400);
  padding-block: var(--sp-4);
}
.breadcrumbs a { color: var(--ink-400); }
.breadcrumbs a:hover { color: var(--brand-900); }
.breadcrumbs span { color: var(--ink-600); }

/* ── Scroll-reveal animation ──────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Skip link ────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: var(--sp-4);
  background: var(--brand-900); color: white; padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm); z-index: 200; font-size: var(--fs-small); font-weight: var(--fw-semibold);
}
.skip-link:focus { top: var(--sp-2); }

/* ── Back-to-top button ───────────────────────────── */
/* Lives in footer.html; starts with the `hidden` attr so it's invisible and
   inert with no JS. main.js removes `hidden` and toggles `.is-visible` on
   scroll. z-index sits below the header (100) and skip-link (200). */
.back-to-top {
  position: fixed; bottom: var(--sp-6); right: var(--sp-6); z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: var(--brand-900); color: #fff;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  box-shadow: var(--shadow-hover);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out),
              background var(--duration) var(--ease-out);
}
.back-to-top svg { width: 24px; height: 24px; }
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--brand-700); }
.back-to-top:focus-visible { outline: 2.5px solid var(--brand-700); outline-offset: 3px; }
@media print { .back-to-top { display: none; } }

/* ── Utility ──────────────────────────────────────── */
.bg-surface { background: var(--surface); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.bg-surface { background: var(--surface); }
.mobile-phone-link { color: var(--brand-700); }
.btn-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-8); }
.contact-phone-lg { font-size: 1.15rem; font-weight: var(--fw-semibold); }
.hours-note { font-size: 0.8rem; color: #5d6c6a; padding-top: var(--sp-2); }
@media (min-width: 768px) {
  .md-flex { display: flex; }
  .md-order-1 { order: 1; }
  .md-order-2 { order: 2; }
}

/* ── HealthEngine booking plugin ───────────────────── */
/* Hide the plugin's injected "Book Now" button (it lives inside this host).
   Off-screen clip — NOT display:none — so it remains clickable; our own
   .js-he-book CTAs trigger it (main.js). The popup overlay the plugin
   appends to <body> is outside this host and is unaffected. */
.he-plugin-host {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}

/* ── Doctor profile popups ─────────────────────────── */
/* Make the doctor cards real buttons without losing the card look.
   flex-column (not block) so content stays top-aligned: a <button> centers
   its content vertically, so when the grid stretches a card to match a taller
   sibling (2-line names), block layout would push the photo down and break
   photo alignment across the row. flex-column + default justify-content:
   flex-start keeps the photo pinned to the top. */
button.doctor-card--clickable {
  display: flex; flex-direction: column; width: 100%; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
  padding: 0; appearance: none;
}
button.doctor-card--clickable:focus-visible {
  outline: 2.5px solid var(--brand-700); outline-offset: 3px;
}
.doctor-card--clickable .doc-view {
  display: inline-block; margin-top: var(--sp-2);
  font-size: var(--fs-small); font-weight: var(--fw-semibold);
  color: var(--brand-700); opacity: 0; transition: opacity var(--duration) var(--ease-out);
}
.doctor-card--clickable:hover .doc-view,
.doctor-card--clickable:focus-visible .doc-view { opacity: 1; }
.doctor-card--clickable .doc-view::after { content: ' →'; }

/* The popup dialog. */
.doctor-modal {
  width: min(560px, 92vw); max-height: 85vh; overflow: auto;
  /* margin:auto centers the modal in the viewport (with the UA inset:0).
     Needed because the global `* { margin:0 }` reset cancels the native
     <dialog> centering, which would otherwise pin it top-left. */
  margin: auto;
  padding: var(--sp-8); border: 0; border-radius: var(--r-md);
  box-shadow: var(--shadow-hover); color: var(--ink-700);
}
.doctor-modal::backdrop { background: rgba(0,0,0,.5); }
.doctor-modal__close {
  position: absolute; top: var(--sp-3); right: var(--sp-4);
  background: none; border: 0; font-size: 1.75rem; line-height: 1;
  color: var(--ink-500); cursor: pointer;
}
.doctor-modal__close:focus-visible { outline: 2.5px solid var(--brand-700); outline-offset: 2px; }
.doctor-modal__head { display: flex; gap: var(--sp-6); align-items: center; margin-bottom: var(--sp-6); }
.doctor-modal__photo { width: 96px; height: 120px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.doctor-modal__name { font-family: var(--ff-display); font-size: var(--fs-h3); color: var(--ink-900); margin: 0; }
.doctor-modal__creds { font-size: var(--fs-small); color: var(--ink-500); margin: 2px 0 0; }
.doctor-modal__bio { margin: 0 0 var(--sp-4); }
.doctor-modal__interests { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.doctor-modal__interests li {
  margin: 0; /* this row spaces itself with flex gap; cancel the global `li + li` top margin that misaligns the first chip */
  white-space: nowrap; /* keep each chip on one line so chips in a row stay equal height */
  padding: 2px var(--sp-2); background: var(--brand-50); color: var(--brand-900);
  border-radius: var(--r-pill); font-size: 0.75rem; font-weight: var(--fw-medium);
}
.doctor-modal__langs, .doctor-modal__extra { font-size: var(--fs-small); margin: 0 0 var(--sp-3); }
.doctor-modal .btn { margin-top: var(--sp-4); }
@media (prefers-reduced-motion: no-preference) {
  .doctor-modal[open] { animation: mmc-modal-in var(--duration) var(--ease-out); }
  @keyframes mmc-modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---- Site-wide notice banner (Practice Info → mmc-practice-content) ---- */
.mmc-notice {
  background: var(--brand-900, #0d5c57);
  color: #fff;
  text-align: center;
  padding: 0.625rem 1rem;
  font-size: 0.95rem;
}
