/* ==========================================================================
   Modern layer — loaded after pages.css. Pure visual refresh: softer depth, larger radii,
   glass header, gradient accents, gentle motion. Remove the <link> in partials/head.php to revert.
   ========================================================================== */
:root {
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(10, 59, 61, 0.05), 0 2px 8px -2px rgba(10, 59, 61, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(10, 59, 61, 0.22), 0 2px 8px rgba(10, 59, 61, 0.05);
  --shadow-lg: 0 30px 60px -24px rgba(10, 59, 61, 0.35), 0 8px 20px -8px rgba(10, 59, 61, 0.12);
  --grad-primary: linear-gradient(135deg, #0d4d4f 0%, #137476 55%, #1a8c8c 100%);
  --grad-ink: linear-gradient(135deg, #062a2b 0%, #0d4d4f 100%);
  --glow: 0 0 0 1px rgba(63, 193, 188, 0.25), 0 12px 32px -10px rgba(38, 169, 166, 0.45);
  --ease: cubic-bezier(0.22, 0.8, 0.22, 1);
  --duration: 260ms;
}

body { background:
  radial-gradient(900px 500px at 100% -5%, rgba(63, 193, 188, 0.10), transparent 60%),
  radial-gradient(700px 420px at -5% 35%, rgba(168, 134, 90, 0.07), transparent 60%),
  var(--cream-50);
}
h1, h2, h3 { letter-spacing: -0.02em; }
h2 { font-size: clamp(2.1rem, 1.7rem + 1.8vw, 3.2rem); }

/* ---------- Header: glass bar ---------- */
.site-header {
  background: rgba(252, 250, 246, 0.72);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgba(10, 59, 61, 0.07);
  box-shadow: 0 8px 30px -22px rgba(10, 59, 61, 0.4);
}
.nav__link { border-radius: var(--radius-pill); padding: 0.5rem 0.8rem; }
.nav__link:hover { background: rgba(63, 193, 188, 0.12); color: var(--teal-800); }
.nav__link[aria-current="page"] { background: var(--turquoise-100); color: var(--teal-900); box-shadow: none; }
.nav__item--has-sub .nav__link { padding-right: 0.4rem; }
.subnav { border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--shadow-lg); border-color: rgba(10, 59, 61, 0.08); backdrop-filter: blur(14px); background: rgba(255, 255, 255, 0.94); }
.subnav__link { border-radius: 10px; padding: 0.6rem 0.85rem; }
.subnav__link[aria-current="page"] { box-shadow: none; background: var(--turquoise-50); }
.nav__cta { box-shadow: var(--glow); }

/* ---------- Buttons ---------- */
.btn { transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease); }
.btn--primary { background: var(--grad-primary); border-color: transparent; box-shadow: 0 8px 22px -10px rgba(13, 77, 79, 0.7); }
.btn--primary:hover { background: var(--grad-primary); filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(13, 77, 79, 0.75); }
.btn--secondary { background: rgba(255, 255, 255, 0.85); border-color: rgba(10, 59, 61, 0.14); backdrop-filter: blur(6px); }
.btn--secondary:hover { transform: translateY(-2px); border-color: var(--turquoise-400); box-shadow: var(--shadow-md); }
.btn--lg { min-height: 56px; padding: 0.9rem 1.9rem; }

/* ---------- Eyebrow as a pill ---------- */
.eyebrow {
  padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
  background: rgba(63, 193, 188, 0.13); color: var(--teal-700); letter-spacing: 0.14em;
}
.eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--turquoise-400); box-shadow: 0 0 0 4px rgba(63, 193, 188, 0.22); }
.section--teal .eyebrow, .site-footer .eyebrow { background: rgba(255, 255, 255, 0.1); color: var(--turquoise-100); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(640px 420px at 12% 8%, rgba(63, 193, 188, 0.20), transparent 62%),
    radial-gradient(520px 380px at 55% 105%, rgba(168, 134, 90, 0.14), transparent 62%),
    linear-gradient(180deg, var(--cream-50), var(--cream-100));
  border-bottom: 0;
  padding-block: clamp(3.5rem, 2.5rem + 6vw, 7.5rem);
}
.hero::after {
  inset: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) auto;
  width: min(40%, 520px); clip-path: none; border-radius: var(--radius-xl);
  background:
    radial-gradient(260px 260px at 70% 18%, rgba(63, 193, 188, 0.45), transparent 70%),
    radial-gradient(320px 320px at 20% 90%, rgba(168, 134, 90, 0.25), transparent 70%),
    var(--grad-ink);
  box-shadow: var(--shadow-lg);
}
.hero__title {
  font-size: clamp(3rem, 2.1rem + 4vw, 5.6rem); line-height: 0.98; letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--teal-950) 10%, var(--teal-600) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__intro { font-size: 1.2rem; line-height: 1.7; color: var(--ink-700); }
.hero__direct {
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.portrait-medallion__ring { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08), var(--shadow-lg); }
.portrait-frame::before { border-radius: var(--radius-xl); border-color: rgba(63, 193, 188, 0.6); }
.portrait-frame__img, .portrait-frame img { border-radius: var(--radius-xl); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .hero::after { inset: auto clamp(0.75rem, 3vw, 1.5rem) clamp(0.75rem, 3vw, 1.5rem) clamp(0.75rem, 3vw, 1.5rem); width: auto; height: 320px; clip-path: none; }
}

/* ---------- Sections ---------- */
.section--alt { background: linear-gradient(180deg, var(--cream-100), rgba(247, 243, 236, 0.4)); }
.section--teal {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(63, 193, 188, 0.28), transparent 65%),
    radial-gradient(500px 300px at 0% 100%, rgba(168, 134, 90, 0.18), transparent 65%),
    var(--grad-ink);
}
.section-head h2 { letter-spacing: -0.025em; }

/* ---------- Cards ---------- */
.card, .service-panel, .post-card, .doctor-card, .update-card, .webinar-card, .project-card, .paper-item {
  border-radius: var(--radius-lg); border: 1px solid rgba(10, 59, 61, 0.07);
  background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.card:hover, .service-panel:hover, .post-card:hover, .doctor-card:hover, .update-card:hover, .webinar-card:hover, .project-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(63, 193, 188, 0.45);
}
.service-panel::before { border-radius: var(--radius-lg) var(--radius-lg) 0 0; height: 5px; background: var(--grad-primary); }
.service-panel__icon, .card__icon { border-radius: 16px; background: linear-gradient(135deg, var(--turquoise-100), var(--turquoise-50)); }
.doctor-card { overflow: hidden; }
.doctor-card--primary { border-top: 0; box-shadow: var(--shadow-md), 0 0 0 2px rgba(63, 193, 188, 0.35); }
.doctor-card__media img, .doctor-card__img { transition: transform 700ms var(--ease); }
.doctor-card:hover .doctor-card__img { transform: scale(1.04); }
.doctor-card__areas li { background: var(--turquoise-100); }
.post-card__media { border-radius: 0; }
.book-card__cover, .book-card__media img { border-radius: 6px; transition: transform var(--duration) var(--ease); }
.book-card:hover .book-card__cover, .book-card:hover .book-card__media img { transform: translateY(-6px) rotate(-1deg); }

/* ---------- Forms ---------- */
.input, .select, .textarea { border-radius: var(--radius-md); border-color: rgba(10, 59, 61, 0.16); background: rgba(255, 255, 255, 0.95); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--turquoise-500); box-shadow: 0 0 0 5px rgba(63, 193, 188, 0.2); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(520px 260px at 90% 0%, rgba(63, 193, 188, 0.18), transparent 65%),
    linear-gradient(180deg, var(--cream-100), var(--cream-50));
  border-bottom: 0;
}
.page-hero h1 { letter-spacing: -0.03em; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(63, 193, 188, 0.16), transparent 65%),
    var(--grad-ink);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; margin-top: var(--space-8);
}

/* ---------- Scroll reveal (class added by app.js; content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > .reveal:nth-child(2) { transition-delay: 90ms; }
.js .reveal-stagger > .reveal:nth-child(3) { transition-delay: 180ms; }
.js .reveal-stagger > .reveal:nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  .hero__direct { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Booking confirmation pill ---------- */
.status-pill--confirmed { background: var(--success-50); color: var(--success-600); border: 1px solid #bfe3cf; }
.booking__pay { border: 1px solid rgba(63, 193, 188, 0.45); background: linear-gradient(135deg, rgba(220, 243, 241, 0.6), rgba(255, 255, 255, 0.9)); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); margin-bottom: var(--space-6); }
.booking__pay .steps { margin-bottom: var(--space-4); }

/* ---------- Booking: Calendly-style calendar + times ---------- */
.booking { background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(10, 59, 61, 0.08); border-radius: var(--radius-xl); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-md); }
.booking__details[hidden] { display: none; }
.booking--calendar { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 0 clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.booking--calendar > h2, .booking--calendar > .booking__intro, .booking--calendar > .alert { grid-column: 1 / -1; }
.booking--calendar .booking__finder { grid-column: 1; border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.booking--calendar .booking__form { grid-column: 2; padding-left: clamp(1.5rem, 3vw, 2.5rem); border-left: 1px solid var(--color-border); }
.booking--calendar .booking__finder .booking__row { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .booking--calendar { grid-template-columns: 1fr; }
  .booking--calendar .booking__finder, .booking--calendar .booking__form { grid-column: 1; }
  .booking--calendar .booking__form { padding-left: 0; border-left: 0; margin-top: var(--space-6); }
}
.cal { background: linear-gradient(160deg, #fff, var(--turquoise-50)); border: 1px solid rgba(10, 59, 61, 0.08); border-radius: var(--radius-lg); padding: var(--space-5); margin-top: var(--space-2); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.cal__title { margin: 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--teal-950); }
.cal__nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(10, 59, 61, 0.14); background: #fff; color: var(--teal-800); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background var(--duration) var(--ease), transform var(--duration) var(--ease); }
.cal__nav:hover:not(:disabled) { background: var(--turquoise-100); transform: scale(1.06); }
.cal__nav:disabled { opacity: 0.35; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal__wd { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); padding: 0.35rem 0; }
.cal__day { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 50%; background: transparent; font: inherit; font-size: var(--text-sm); font-weight: 500; color: var(--ink-400); cursor: default; }
.cal__day.is-available { background: var(--turquoise-100); color: var(--teal-900); font-weight: 700; cursor: pointer; transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.cal__day.is-available:hover { background: var(--turquoise-200); transform: scale(1.1); }
.cal__day.is-selected { background: var(--grad-primary); color: #fff; box-shadow: var(--glow); }
.cal__foot { margin-top: var(--space-4); }
.cal__foot .help { margin: 0 0 var(--space-2); }
.booking--calendar .booking__times legend, .booking--calendar .booking__times .label { font-family: var(--font-display); font-size: 1.45rem; color: var(--teal-950); }
.booking--calendar .slot-grid { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
.slot span { border-radius: var(--radius-pill); border-color: rgba(38, 169, 166, 0.55); color: var(--teal-800); background: #fff; }
.slot:hover span { background: var(--turquoise-50); border-color: var(--turquoise-500); transform: translateY(-1px); }
.slot input:checked + span { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.booking__details { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--color-border); animation: rise 420ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .booking__details { animation: none; } }

/* Desktop header: logo left, menu centred, booking button right */
@media (min-width: 1280px) {
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header__inner .brand { justify-self: start; }
  .site-header__inner .nav { display: contents; }
  .site-header__inner .nav__list { justify-self: center; }
  .site-header__inner .nav__cta { justify-self: end; }
}

/* Footer: room between the divider line and the phone number */
.site-footer ul.site-footer__contact { margin-top: var(--space-5) !important; padding-top: var(--space-5) !important; }

/* Header "Consultation" button with a choice of Book a Visit / Online Consultation */
.cta-menu { position: relative; }
.cta-menu > summary { list-style: none; cursor: pointer; gap: 8px; }
.cta-menu > summary::-webkit-details-marker { display: none; }
.cta-menu__chev { transition: transform .2s ease; }
.cta-menu[open] .cta-menu__chev { transform: rotate(180deg); }
.cta-menu__panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 300px; padding: 8px; background: #fff; border: 1px solid rgba(15, 60, 55, .08); border-radius: 18px; box-shadow: 0 24px 60px rgba(8, 40, 37, .18); animation: rise .18s ease both; }
.cta-menu__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; color: var(--ink-900, #12302c); text-decoration: none; }
.cta-menu__item:hover, .cta-menu__item:focus-visible { background: var(--turquoise-50, #eef9f7); }
.cta-menu__item strong { display: block; font-size: .95rem; }
.cta-menu__item small { display: block; color: var(--ink-500, #5b6b69); font-size: .8rem; margin-top: 2px; }
.cta-menu__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--turquoise-100, #d9f2ee); color: var(--teal-800, #0b4f4a); }
@media (max-width: 1279px) {
  .cta-menu { width: 100%; }
  .cta-menu > summary { width: 100%; justify-content: center; }
  .cta-menu__panel { position: static; width: auto; margin-top: 8px; box-shadow: none; }
}

/* ── Premium polish (Oct 2026) ─────────────────────────────── */
/* One doctor: show a wide feature card instead of a lone narrow card */
@media (min-width: 761px) {
  .doctor-grid--home > .doctor-card:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(280px, 38%) 1fr; align-items: stretch; }
  .doctor-grid--home > .doctor-card:only-child .doctor-card__media { width: auto; min-height: 100%; }
  .doctor-grid--home > .doctor-card:only-child .doctor-card__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
  .doctor-grid--home > .doctor-card:only-child .doctor-card__name { font-size: clamp(1.8rem, 3vw, 2.6rem); }
}
/* Calmer, more editorial rhythm */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-head h2, .section h2.section-title { letter-spacing: -0.01em; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(31, 122, 111, .18); }
/* Cards: soft depth and a refined hover */
.service-panel, .doctor-card, .post-card, .area-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.service-panel:hover, .post-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(8, 40, 37, .10); }
/* Buttons: subtle sheen */
.btn--primary { background-image: linear-gradient(135deg, #0b4f4a 0%, #13756c 100%); border: 0; }
.btn--primary:hover { filter: brightness(1.06); }
/* Hero portrait: gentle float */
@media (prefers-reduced-motion: no-preference) {
  .hero__portrait img, .hero-portrait img { animation: float 9s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}
/* Blog cards: image zoom on hover */
.post-card__img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .post-card__img { transform: scale(1.04); }
.post-card__media, .post-card > a:first-child { overflow: hidden; }

/* Footer: Google Maps directions button under the address */
.footer-directions { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(169, 227, 223, .35); color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.footer-directions:hover, .footer-directions:focus-visible { background: rgba(255, 255, 255, .1); border-color: rgba(169, 227, 223, .7); }

/* Inner pages: no big empty gap between the page title and the content */
.page-hero { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
.page-hero + .section, .page-hero + main > .section:first-child, .page-hero ~ .section:first-of-type { padding-top: clamp(1.5rem, 1rem + 2vw, 2.75rem); }

/* Consultation button: no square box around the rounded button */
.cta-menu.nav__cta { box-shadow: none; background: none; border: 0; outline: none; border-radius: 999px; }
.cta-menu > summary { border-radius: 999px; box-shadow: var(--glow); outline: none; }
.cta-menu > summary:focus { outline: none; }
.cta-menu > summary:focus-visible { outline: 2px solid var(--turquoise-400, #3fc1bc); outline-offset: 3px; }
/* Directions button on its own line under the full address */
.footer-directions { display: flex; width: fit-content; }

/* ── Blog post sidebar ─────────────────────────────── */
.article-layout--post { grid-template-columns: minmax(0, 1fr) 320px; }
.article-layout--post .prose { max-width: none; }
.page-hero--article h1 { max-width: 28ch; }
.post-aside { gap: var(--space-5); align-self: start; } /* scrolls with the page; app.js sets 'top' so it sticks once its end is in view */
.post-aside__box { background: #fff; border: 1px solid rgba(15, 60, 55, .08); border-radius: 18px; padding: 20px 22px; box-shadow: 0 10px 30px rgba(8, 40, 37, .05); }
.post-aside__title { font-family: var(--font-sans, inherit); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700, #13756c); margin: 0 0 12px; }
.post-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.post-toc li { counter-increment: toc; }
.post-toc a { display: grid; grid-template-columns: 26px 1fr; padding: 7px 8px; border-radius: 10px; color: var(--ink-700, #3d4d4b); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.post-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--brass-500, #b08a52); font-size: .75rem; padding-top: 2px; }
.post-toc a:hover, .post-toc a:focus-visible { background: var(--turquoise-50, #eef9f7); color: var(--teal-900, #0a3b3d); }
.post-aside__cta { background: linear-gradient(150deg, #0b4f4a, #0a3b3d); color: #e6f6f3; border: 0; }
.post-aside__cta .post-aside__title { color: #9fe0d8; }
.post-aside__cta p { margin: 0 0 14px; font-size: .92rem; color: #d3ece8; }
.post-aside__cta .btn { width: 100%; justify-content: center; margin-top: 8px; }
.post-aside__cta .btn--primary { background: #fff; background-image: none; color: #0b4f4a; }
.post-aside__cta .btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.post-aside__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post-aside__list a { color: var(--ink-900, #12302c); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.35; }
.post-aside__list a:hover { color: var(--teal-700, #13756c); }
.post-aside__list small { display: block; color: var(--ink-500, #6b7a78); font-size: .78rem; margin-top: 2px; }
.post-aside__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-aside__tags a { display: inline-flex; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--turquoise-50, #eef9f7); color: var(--teal-800, #0b4f4a); text-decoration: none; font-size: .85rem; }
.post-aside__tags span { opacity: .6; }
.prose h2[id] { scroll-margin-top: 100px; }
@media (max-width: 900px) {
  .article-layout--post { grid-template-columns: 1fr; }
  .post-aside { max-height: none; overflow: visible; }
  .post-toc { display: none; } /* the list is long on a phone and sits below the article anyway */
}

/* ── Mobile responsiveness audit fixes (Oct 2026) ───────────── */
/* Grid columns must be allowed to shrink (booking calendar was pushing the page sideways) */
.article-layout > *, .booking > *, .booking--calendar > *, .hero__grid > *, .areas > *, .service-panels > * { min-width: 0; }
/* Hero: the teal card is drawn by the photo block itself, so it always sits exactly behind the photo
   (it used to be pinned to the page edge: shifted right on big screens, over the text on phones) */
.hero::after { display: none !important; }
.hero__visual {
  align-self: stretch; align-content: center; justify-items: center;
  padding: clamp(36px, 4vw, 64px) clamp(24px, 3vw, 48px);
  border-radius: 28px;
  background:
    radial-gradient(420px 300px at 75% 15%, rgba(63, 193, 188, .30), transparent 70%),
    linear-gradient(160deg, var(--teal-800, #0b4f4a), var(--teal-950, #062a2b));
  box-shadow: 0 30px 70px rgba(8, 40, 37, .22);
}
@media (max-width: 900px) {
  .hero__visual { padding: 28px 20px; margin: 0 0 var(--space-5); border-radius: 24px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  html { -webkit-text-size-adjust: 100%; }
  .section { padding-block: clamp(44px, 11vw, 64px); }
  .section-head { margin-bottom: 20px; }
  h1, .hero h1 { overflow-wrap: anywhere; }
  .container { padding-inline: 16px; }
  /* Logo: the tiny qualifications line is unreadable in the narrow header, so show the name only */
  .brand__logo { height: 46px; width: auto; }
  /* Booking */
  .booking--calendar { padding: 16px; }
  .cal__grid { gap: 2px; }
  .cal__day { min-width: 0; height: 40px; font-size: .9rem; }
  .slot-grid, .booking__slots { grid-template-columns: 1fr 1fr; }
  .steps--large li { grid-template-columns: 36px minmax(0, 1fr); }
  /* Tables and long words never widen the page */
  .table-wrap, .prose table { overflow-x: auto; display: block; }
  .prose { font-size: 1rem; overflow-wrap: break-word; }
  .prose blockquote { font-size: 1.2rem; }
  /* Footer */
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* Comfortable tap targets */
  .nav__link, .subnav__link { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 1279px) {
  .cta-menu > summary { min-height: 48px; font-size: 1rem; }
}
#our-doctors { scroll-margin-top: 90px; }

/* Tighter join between the page title area and the article (desktop too) */
.page-hero { padding-bottom: clamp(.75rem, .5rem + 1vw, 1.25rem); }
.page-hero + .section { padding-top: clamp(1rem, .75rem + 1vw, 1.75rem); }
.page-hero .lead { margin-bottom: 0; }
/* Cover photo at the top of a page article */
.prose > figure:first-child { margin: 0 0 var(--space-6); }
.prose > figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; display: block; }
.prose figcaption { margin-top: 8px; font-size: .78rem; color: var(--ink-500, #6b7a78); }
/* Pioneers portraits */
.prose .pioneer-strip img, .pioneer-strip img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; border-radius: 18px; filter: grayscale(.15) contrast(1.02); }

/* Desktop hero: photo overlaps the left edge of the teal card (card is still attached to the photo block) */
@media (min-width: 901px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .hero__visual { background: none; box-shadow: none; justify-items: start; padding: clamp(40px, 5vw, 72px) 0; position: relative; isolation: isolate; }
  .hero__visual::before {
    content: ""; position: absolute; z-index: -1; inset: 0 0 0 clamp(60px, 5vw, 80px); border-radius: 28px;
    background:
      radial-gradient(420px 300px at 75% 15%, rgba(63, 193, 188, .30), transparent 70%),
      linear-gradient(160deg, var(--teal-800, #0b4f4a), var(--teal-950, #062a2b));
    box-shadow: 0 30px 70px rgba(8, 40, 37, .22);
  }
  .hero__visual > * { margin-left: 0; }
  .hero__visual .portrait-medallion { justify-self: start; }
  .hero__visual > :not(.portrait-medallion) { justify-self: start; margin-left: 110px; }
}
.site-footer__blurb { margin: 12px 0 18px; max-width: 42ch; font-size: .92rem; line-height: 1.65; color: rgba(214, 238, 234, .78); }

/* "Get in touch" band flows straight into the footer: no cream gap between them */
.contact-cta + .site-footer, main:has(> .contact-cta:last-child) + .site-footer { margin-top: 0; border-radius: 0; }
.contact-cta { border-bottom: 1px solid rgba(169, 227, 223, .12); }

/* Text selection: readable on both light and dark sections */
::selection { background: #13756c; color: #fff; }
.site-footer ::selection, .section--teal ::selection, .contact-cta ::selection, .post-aside__cta ::selection { background: #9fe0d8; color: #062a2b; }
.site-footer ul.site-footer__contact--solo { margin-top: 0 !important; padding-top: 0 !important; border-top: 0; }
.footer-phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-phone svg { flex: none; color: #9fe0d8; }
.booking__with { margin: 0 0 14px; font-size: 1rem; color: var(--ink-700, #3d4d4b); }
.booking__with strong { color: var(--teal-900, #0a3b3d); }
.about__main > .media-row--top { margin: 0 0 var(--space-6); }
.about__main > .media-row--top img { width: 100%; height: auto; border-radius: 20px; }
