/* MediSight Healthcare site styles (v4). Brand: green #6BA36C, sand #AFA283, Helvetica. No dependencies. */

/* ===== Tokens ===== */
:root {
  --green: #6ba36c;        /* brand green: logo, decoration */
  --green-deep: #497a49;   /* buttons and links */
  --green-ink: #2e562e;    /* headings, dark band */
  --green-tint: #eef5ee;
  --sand: #afa283;
  --sand-deep: #6b5e42;    /* sand for small text (5.5:1 on cream) */
  --sand-tint: #f5f1e8;
  --cream: #fbf9f3;
  --white: #ffffff;
  --ink: #1f2a20;
  --muted: #4f5a4e;
  --line: #e6e1d5;
  --band: #2e562e;
  --link: #497a49;
  --link-hover: #2e562e;
  --header-bg: rgba(251, 249, 243, .9);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(31, 42, 32, .05), 0 12px 32px rgba(31, 42, 32, .07);
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --wrap: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media not all /* light by default (11 Nov); dark only via the toggle */ {
  :root:not([data-theme="light"]) {
    --cream: #101710; --white: #172119; --ink: #e8efe6; --muted: #aab6a8; --line: #26332a;
    --green-ink: #b9ddb9; --green-tint: #1c2b1d; --sand-tint: #24211a; --sand-deep: #d2c6a6;
    --band: #0c160d; --header-bg: rgba(16, 23, 16, .88); color-scheme: dark; --link: #9fd3a0; --link-hover: #c4e6c4;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --cream: #101710; --white: #172119; --ink: #e8efe6; --muted: #aab6a8; --line: #26332a;
  --green-ink: #b9ddb9; --green-tint: #1c2b1d; --sand-tint: #24211a; --sand-deep: #d2c6a6;
  --band: #0c160d; --header-bg: rgba(16, 23, 16, .88); color-scheme: dark; --link: #9fd3a0; --link-hover: #c4e6c4;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .35);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink);
  background: var(--cream); -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--green-ink); font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-white { background: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: .9rem; font-weight: 700; letter-spacing: .01em; color: var(--sand-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--sand); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--muted); max-width: 34em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--green-ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 6px; }

/* Draft markers: anything in .confirm must be filled before go-live */
.draft-banner { background: #fff3c4; color: #5b4a00; font-size: .85rem; text-align: center; padding: 6px 16px; }
mark.confirm { background: #fff3c4; color: #5b4a00; border: 1px dashed #c9a600; border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* ===== Buttons and links ===== */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 54px; padding: 0 1.6em; font-size: 1.05rem; }
.btn-primary, a.btn-primary { background: var(--green-deep); color: #fff; }
.btn-primary:hover { background: #2e562e; color: #fff; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); transition: transform .7s;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-outline, a.btn-outline { background: transparent; color: var(--green-ink); border-color: var(--green-deep); }
.btn-outline:hover { background: var(--green-tint); color: var(--green-ink); }
.btn-light, a.btn-light { background: #fff; color: #2e562e; }
.btn-light:hover { background: #eef5ee; color: #2e562e; }
.btn-outline-light, a.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.text-link svg { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s, background-color .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20, 40, 20, .08); }
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 76px; transition: min-height .25s; }
.site-header.scrolled .header-inner { min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 44px; height: 44px; }
.brand-word { width: 136px; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 13px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { background: var(--green-tint); color: var(--green-ink); }
.header-cta { min-height: 44px; padding: 0 1.1em; font-size: .95rem; }
.header-cta span { display: none; }
@media (min-width: 560px) { .header-cta span { display: inline; } }
@media (min-width: 1000px) { .main-nav { display: block; } }
.main-nav a { white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1099px) { .main-nav ul { gap: 0; } .main-nav a { padding: 10px 9px; font-size: .9rem; } }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  color: var(--green-ink); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .3s, border-color .2s;
}
.theme-toggle:hover { border-color: var(--green-deep); }
.theme-toggle:active { transform: rotate(-25deg) scale(.95); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
.theme-toggle[aria-pressed="true"] .sun { display: none; }
.theme-toggle[aria-pressed="true"] .moon { display: block; }
.mobile-nav { position: relative; }
.mobile-nav summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 22px; height: 22px; }
.mobile-nav ul {
  position: absolute; right: 0; top: 54px; width: 240px; margin: 0; padding: 8px; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.mobile-nav li a { display: block; padding: 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mobile-nav li a:hover { background: var(--green-tint); }
@media (min-width: 1000px) { .mobile-nav { display: none; } }
@media (max-width: 559px) {
  .header-cta { display: none; }
  .brand-word { width: 118px; }
  .header-inner { gap: 10px; min-height: 66px; }
}

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 20px 0 56px; }
@media (min-width: 900px) { .hero { padding: 64px 0 88px; } }
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: -120px; border-radius: 50%;
  background: rgba(107, 163, 108, .2); filter: blur(70px); animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-50px, 40px) scale(1.12); } }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.hero-copy { order: 2; }
.hero-visual { order: 1; position: relative; }
@media (min-width: 900px) { .hero-copy { order: 1; } .hero-visual { order: 2; } }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .07s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .21s; }
.hero-copy > :nth-child(5) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1 span { display: block; color: var(--green-deep); }
:root[data-theme="dark"] .hero h1 span { color: var(--green); }
@media not all /* light by default (11 Nov); dark only via the toggle */ { :root:not([data-theme="light"]) .hero h1 span { color: var(--green); } }
.hero .lead { margin-bottom: 30px; }
.hero-meta { display: flex; gap: 10px; align-items: flex-start; margin: 26px 0 0; font-size: .95rem; color: var(--muted); }
.hero-meta > svg { width: 20px; height: 20px; flex: none; color: var(--sand-deep); margin-top: 2px; }
.hero-meta a { font-weight: 700; white-space: nowrap; }

.hero-photo { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(46, 86, 46, .18); }
.hero-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; animation: settle 1.6s var(--ease) both; }
@media (min-width: 900px) { .hero-photo img { aspect-ratio: 5 / 6; object-position: 42% 50%; } }
@keyframes settle { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-seal {
  position: absolute; left: -22px; top: -22px; width: 104px; height: 104px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: 0 12px 32px rgba(31, 42, 32, .18);
}
.hero-seal::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px dashed rgba(175, 162, 131, .75); animation: spin 60s linear infinite reverse; }
.hero-mark { width: 74%; overflow: visible; animation: spin 90s linear 1.8s infinite; }
.hero-mark .petal { transform-box: fill-box; transform-origin: center; animation: petal 1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-mark .p2 { animation-delay: .15s; } .hero-mark .p3 { animation-delay: .3s; } .hero-mark .p4 { animation-delay: .45s; }
.hero-mark .spark { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out .9s infinite; }
.hero-mark .spark2 { animation-delay: 1.5s; }
@keyframes petal { from { opacity: 0; transform: scale(.4) rotate(-40deg); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.6); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 899px) { .hero-seal { left: 12px; top: 12px; width: 68px; height: 68px; } .hero-seal::after { inset: -5px; } }
.hero-float {
  position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px; border-radius: 16px; text-decoration: none; color: #1f2a20; line-height: 1.35; font-size: .9rem;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18); animation: rise .8s var(--ease) .6s both;
}
.hero-float strong { color: #2e562e; font-size: 1rem; }
.hero-float:hover { color: #1f2a20; }
@media (min-width: 900px) { .hero-float { right: auto; left: -32px; bottom: 40px; } }
.pulse-dot { width: 12px; height: 12px; border-radius: 50%; background: #3f8f40; flex: none; box-shadow: 0 0 0 0 rgba(63, 143, 64, .55); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(63, 143, 64, 0); } }

/* ===== Live status band ===== */
.status-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-grid { display: grid; }
@media (min-width: 860px) { .status-grid { grid-template-columns: repeat(3, 1fr); } }
.status-item { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.status-item:last-child { border-bottom: 0; }
@media (min-width: 860px) {
  .status-item { padding: 30px 28px; border-bottom: 0; border-left: 1px solid var(--line); }
  .status-item:first-child { border-left: 0; padding-left: 0; }
}
.status-item h2 { font-size: 1.05rem; letter-spacing: -.01em; margin: 2px 0 2px; color: var(--ink); }
.status-item p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.si-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--green-tint); color: var(--green-deep); }
.si-icon svg { width: 24px; height: 24px; }
.si-sand { background: var(--sand-tint); color: var(--sand-deep); }
.si-alert { background: #2e562e; color: #fff; }
.status-call { font-weight: 700; font-size: .95rem; }

.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; line-height: 1.2;
  padding: 6px 12px; border-radius: 999px;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status.is-open { background: #e3efe3; color: #355f36; }
.status.is-open::before { animation: pulse 1.6s ease-out infinite; box-shadow: 0 0 0 0 rgba(53, 95, 54, .5); }
.status.is-closed { background: #f3eee2; color: #6b5e42; }

/* ===== Section head + specialty toggle ===== */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 36px; }
.section-head h2 { margin: 0; max-width: 15em; }
.seg {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.seg button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font: 700 1rem var(--font); color: var(--muted); transition: color .3s;
}
.seg button svg { width: 20px; height: 20px; }
.seg button[aria-selected="true"] { color: #fff; }
.seg-pill {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; display: none;
  background: var(--green-deep); transition: transform .45s cubic-bezier(.5, 0, .2, 1.2), background-color .35s;
}
.has-tabs .seg-pill { display: block; }
.seg[data-active="chest"] .seg-pill { transform: translateX(100%); background: #7d6f50; }
html:not(.has-tabs) .seg { display: none; }

.spec-panel {
  display: grid; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.spec-panel[hidden] { display: none; }
html:not(.has-tabs) .spec-panel + .spec-panel { margin-top: 24px; }
@media (min-width: 900px) { .spec-panel { grid-template-columns: 360px 1fr; } }
.spec-panel.is-active > * { animation: rise .55s var(--ease) both; }
.spec-panel.is-active > :nth-child(2) { animation-delay: .08s; }
.spec-intro { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; background: var(--green-tint); }
.panel-chest .spec-intro { background: var(--sand-tint); }
@media (min-width: 900px) { .spec-intro { padding: 40px 36px; } }
.spec-intro h3 { font-size: 1.9rem; letter-spacing: -.03em; margin: 0; }
.spec-intro > p { margin: 0; color: var(--muted); }
.doc-mini { display: flex; align-items: center; gap: 14px; margin: 8px 0 6px; }
.doc-mini strong { display: block; color: var(--ink); line-height: 1.3; }
.doc-mini span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.doc-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--white); box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }
.svc-groups { padding: 28px; display: grid; gap: 26px 40px; align-content: start; }
@media (min-width: 640px) { .svc-groups { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .svc-groups { padding: 40px 44px; } }
.svc-group h4 { font-size: .9rem; letter-spacing: .01em; color: var(--sand-deep); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.svc-group ul { list-style: none; margin: 0; padding: 0; }
.svc-group li { position: relative; padding: 6px 0 6px 20px; line-height: 1.45; }
.svc-group li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.panel-chest .svc-group li::before { background: var(--sand); }
.svc-all { grid-column: 1 / -1; }
.svc-note { grid-column: 1 / -1; margin: 0; font-size: .9rem; }

/* ===== Doctors ===== */
.photo-note { margin: 0 0 8px; font-size: .9rem; }
.doc-row { display: grid; gap: 28px; align-items: center; margin-top: 48px; }
@media (min-width: 900px) {
  .doc-row { grid-template-columns: 1.1fr 1fr; gap: 64px; margin-top: 72px; }
  .doc-row-flip .doc-img { order: 2; }
}
.doc-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); box-shadow: var(--shadow); }
.doc-spec { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--green-tint); color: var(--green-ink); }
.doc-spec-sand { background: var(--sand-tint); color: var(--sand-deep); }
.doc-body h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.03em; margin-bottom: .2em; }
.doc-role { font-weight: 700; color: var(--sand-deep); margin-bottom: 16px; }
.doc-line { color: var(--muted); }
.creds { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.creds li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); line-height: 1.45; }
.creds strong { color: var(--ink); margin-right: 6px; }
.doc-reg { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }

/* ===== Operation theatre band ===== */
.ot-band { position: relative; isolation: isolate; min-height: 440px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
@media (min-width: 900px) { .ot-band { min-height: 560px; align-items: center; } }
.ot-band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ot-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(14, 28, 15, .88) 0%, rgba(14, 28, 15, .35) 55%, rgba(14, 28, 15, .1) 100%);
}
@media (min-width: 900px) { .ot-band::before { background: linear-gradient(90deg, rgba(14, 28, 15, .86) 0%, rgba(14, 28, 15, .45) 45%, rgba(14, 28, 15, 0) 75%); } }
.ot-copy { width: 100%; padding-top: 48px; padding-bottom: 48px; }
.ot-copy h2 { color: #fff; max-width: 11em; }
.ot-copy p { max-width: 26em; font-size: 1.1rem; color: #e3ece3; margin: 0; }
.ot-copy .eyebrow { color: #d9cfb3; }
.ot-copy .eyebrow::before { background: #d9cfb3; }

/* ===== Gallery ===== */
.gallery { display: flex; gap: 12px; margin: 32px -16px 0; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 82%; scroll-snap-align: start; margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand-tint); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; font-size: .9rem; font-weight: 700; color: #fff;
  background: linear-gradient(transparent, rgba(16, 28, 17, .75));
}
@media (min-width: 900px) {
  .gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; margin: 40px 0 0; padding: 0; overflow: visible; }
  .gallery figure { flex: none; }
  .gallery img { aspect-ratio: auto; }
  .gallery .g-feature { grid-column: span 2; grid-row: span 2; }
}

/* ===== Features ===== */
.features { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 32px 40px; }
@media (min-width: 600px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); margin-top: 72px; } }
.features li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: start; }
.f-icon { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--green-deep); }
.f-icon svg { width: 22px; height: 22px; }
.features h3 { font-size: 1.08rem; margin: 2px 0 4px; color: var(--ink); }
.features p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.55; }

/* ===== Emergency band ===== */
.emergency { background: var(--band); color: #e6efe6; padding: 64px 0; overflow: hidden; }
@media (min-width: 900px) { .emergency { padding: 96px 0; } }
.emergency-grid { display: grid; gap: 8px 56px; align-items: center; }
@media (min-width: 900px) { .emergency-grid { grid-template-columns: auto 1fr; } }
.big-247 {
  margin: 0; font-size: clamp(5rem, 15vw, 11rem); font-weight: 700; line-height: .9; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 2px rgba(182, 219, 182, .7); background: linear-gradient(180deg, rgba(107, 163, 108, .5), rgba(107, 163, 108, 0));
  -webkit-background-clip: text; background-clip: text;
}
.emergency h2 { color: #fff; max-width: 14em; }
.emergency p { max-width: 34em; color: #dce7dc; font-size: 1.05rem; margin-bottom: 26px; }

/* ===== Find us ===== */
.find-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .find-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.find-addr { color: var(--muted); }
.hours-table { width: 100%; border-collapse: collapse; font-size: .97rem; margin: 22px 0 26px; }
.hours-table caption { text-align: left; font-weight: 700; color: var(--ink); padding-bottom: 8px; }
.hours-table th, .hours-table td { text-align: left; padding: 12px 8px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.hours-table th { color: var(--green-ink); width: 34%; }
.hours-table td { color: var(--muted); }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.map-frame { position: relative; }
.map-frame img { width: 100%; aspect-ratio: 1600 / 672; object-fit: cover; }
.map-frame iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--sand-tint); }
.map-load { position: absolute; left: 14px; top: 14px; min-height: 42px; padding: 0 16px; font-size: .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.map-load svg { width: 18px; height: 18px; }
html:not(.js) .map-load { display: none; }
.map-cta { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink); font-size: .95rem; line-height: 1.4; }
.map-cta > svg:first-child { width: 28px; height: 28px; color: var(--green-deep); flex: none; }
.map-cta > svg:last-child { width: 20px; height: 20px; margin-left: auto; color: var(--green-deep); transition: transform .2s; }
.map-cta span { color: var(--muted); }
.map-cta strong { color: var(--ink); }
.map-cta:hover > svg:last-child { transform: translateX(3px); }
:root[data-theme="dark"] .map-cta, :root[data-theme="dark"] a.map-cta { color: var(--ink); }

/* ===== FAQ ===== */
.faq-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.faq-aside { color: var(--muted); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 700; font-size: 1.05rem; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--green-deep); border-bottom: 2px solid var(--green-deep); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--green-deep); }
.faq details p { margin: 0; padding: 0 0 22px; color: var(--muted); max-width: 36em; }

/* ===== Footer ===== */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-logo { width: 180px; margin-bottom: 16px; }
.footer-addr { color: var(--muted); }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--green-ink); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ===== Floating WhatsApp (mobile) ===== */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(18, 140, 126, .35);
  animation: float-in .5s 1.2s both;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s ease-out 2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@keyframes float-in { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: none; } }
@media (min-width: 1000px) { .wa-float { right: 28px; bottom: 28px; width: 62px; height: 62px; } }

/* ===== Scroll reveal (only when JS runs) ===== */
.reveal-ready .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
.reveal-ready .reveal.d1 { transition-delay: .08s; }
.reveal-ready .reveal.d2 { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== v4 tuning ===== */
.emergency .big-247 { font-size: clamp(5.5rem, 16vw, 11.5rem); max-width: none; margin: 0; line-height: .9; }
@media (min-width: 900px) { .section { padding: 88px 0; } .ot-band { min-height: 480px; } .doc-row { margin-top: 56px; } .emergency { padding: 80px 0; } }
@media (max-width: 899px) {
  .section { padding: 52px 0; }
  .emergency { padding: 52px 0; }
  .features { gap: 22px; margin-top: 44px; }
  .doc-row { margin-top: 40px; gap: 22px; }
  .ot-band { min-height: 380px; }
  .section-head { margin-bottom: 24px; }
  .svc-groups { gap: 20px; }
  .svc-group li { padding: 4px 0 4px 20px; }
  .svc-group li::before { top: 12px; }
}
@media (max-width: 559px) {
  h1 { font-size: 2.15rem; }
  .hero-float { left: 12px; right: auto; bottom: 12px; padding: 9px 14px 9px 12px; font-size: .82rem; }
  .hero-float strong { font-size: .92rem; }
  .status-item { padding: 18px 0; }
  .features { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .features li { grid-template-columns: 1fr; }
  .f-icon { grid-row: auto; margin-bottom: 10px; width: 40px; height: 40px; }
  .features p { font-size: .9rem; }
}
@media (max-width: 819px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-logo { width: 130px; }
  .site-footer { padding: 40px 0 24px; }
}
@media (max-width: 559px) {
  .status-item { padding: 14px 0; gap: 14px; }
  .si-icon { width: 40px; height: 40px; border-radius: 12px; }
  .doc-img { aspect-ratio: 16 / 10; }
  .creds li { padding: 8px 0; font-size: .92rem; }
  .spec-intro { padding: 24px 20px; }
  .svc-groups { padding: 24px 20px; }
}
.emergency .big-247 { color: #cfe6cf; -webkit-text-stroke: 0; background: none; }

/* =====================================================================
   Inner pages (service, hub, doctor, contact, legal)
   ===================================================================== */
.main-nav a[aria-current="page"] { background: var(--green-tint); color: var(--green-ink); }
.footer-247 { margin-top: -4px; font-size: .92rem; color: var(--muted); }
.footer-247 strong { color: var(--green-ink); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

.crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 9px; color: var(--sand); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-deep); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 28px 0 48px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .page-hero { padding: 40px 0 72px; } }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; right: -160px; top: -200px; border-radius: 50%;
  background: rgba(107, 163, 108, .18); filter: blur(70px);
}
.page-hero-chest::before { background: rgba(175, 162, 131, .24); }
.page-hero-alert { background: var(--band); color: #e6efe6; border-bottom: 0; }
.page-hero-alert::before { background: rgba(107, 163, 108, .25); }
.page-hero-alert h1, .page-hero-alert .crumbs [aria-current] { color: #fff; }
.page-hero-alert .crumbs ol, .page-hero-alert .crumbs a { color: #cfdccf; }
.page-hero-alert .lead { color: #dce7dc; }
.page-hero-alert .eyebrow { color: #d9cfb3; }
.page-hero-alert .eyebrow::before { background: #d9cfb3; }
.page-hero-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1fr 380px; gap: 64px; align-items: center; } }
.page-hero h1 { font-size: clamp(2.05rem, 4.4vw, 3.2rem); max-width: 16em; }
.page-hero .lead { margin: 0; }
.page-hero-copy > * { animation: rise .7s var(--ease) both; }
.page-hero-copy > :nth-child(2) { animation-delay: .06s; }
.page-hero-copy > :nth-child(3) { animation-delay: .12s; }
.page-hero-copy .btn-row { margin-top: 26px; }

.facts-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; animation: rise .8s var(--ease) .15s both;
}
.facts-card .doc-mini { text-decoration: none; margin: 0 0 4px; }
.facts-card .doc-mini:hover strong { color: var(--green-deep); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 6px; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: .92rem; }
.facts dt { font-weight: 700; color: var(--green-ink); }
.facts dd { margin: 0; color: var(--muted); line-height: 1.45; }
.facts .status { margin-top: 6px; }
.btn-block { width: 100%; }
.facts-card .text-link { align-self: center; font-size: .92rem; margin-top: 2px; }

.section-tight { padding: 48px 0 64px; }
@media (min-width: 900px) { .section-tight { padding: 64px 0 96px; } }

.page-body { display: grid; gap: 32px; }
@media (min-width: 1000px) { .page-body { grid-template-columns: 230px minmax(0, 1fr); gap: 72px; } }
.page-side { order: 2; }
@media (min-width: 1000px) { .page-side { order: 0; } .side-sticky { position: sticky; top: 100px; } }
.side-title { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sand-deep); margin: 0 0 10px; }
.toc { list-style: none; margin: 0 0 28px; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .93rem; line-height: 1.4; }
.toc a:hover { color: var(--green-deep); border-left-color: var(--green); }
@media (max-width: 999px) { .page-side .toc:first-of-type { display: none; } .page-side .side-title:first-child { display: none; } .page-side { border-top: 1px solid var(--line); padding-top: 24px; } }

.prose { max-width: 720px; }
.prose-wide { max-width: 860px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 2em 0 .55em; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0 0 1em; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding: 5px 0 5px 24px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.page-hero-chest + .section .prose ul li::before { background: var(--sand); }
.lead-in strong { color: var(--green-ink); }
.callout {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; margin: 1.6em 0;
  background: var(--green-tint); border: 1px solid transparent;
}
.callout > svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--green-deep); }
.callout-alert { background: #fbefe8; border-color: #f0d4c4; color: #3d2418; }
.callout-alert > svg { color: #b4532a; }
.callout-alert strong { color: #8f3d1c; }
.callout-alert a { color: #8f3d1c; font-weight: 700; }
:root[data-theme="dark"] .callout-alert { background: #2a1a13; border-color: #4a2c1f; color: #f1dfd6; }
:root[data-theme="dark"] .callout-alert strong, :root[data-theme="dark"] .callout-alert a { color: #f4b393; }
@media not all /* light by default (11 Nov); dark only via the toggle */ {
  :root:not([data-theme="light"]) .callout-alert { background: #2a1a13; border-color: #4a2c1f; color: #f1dfd6; }
  :root:not([data-theme="light"]) .callout-alert strong, :root:not([data-theme="light"]) .callout-alert a { color: #f4b393; }
}
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); line-height: 1.45; }
.data-table thead th { background: var(--sand-tint); color: var(--ink); font-size: .88rem; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 700; color: var(--green-ink); }
.prose .faq { margin-top: 8px; }
.reviewed { display: flex; gap: 10px; align-items: center; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.reviewed svg { width: 20px; height: 20px; color: var(--green-deep); flex: none; }

.svc-cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .svc-cards { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1000px) { .svc-cards { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); text-decoration: none;
  background: var(--white); border: 1px solid var(--line); color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(107, 163, 108, .5); color: var(--ink); }
.svc-card h3 { font-size: 1.2rem; margin: 0; }
.svc-card p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.5; }
.svc-more { margin-top: auto; padding-top: 12px; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: .92rem; color: var(--link); }
.svc-more svg { width: 18px; height: 18px; transition: transform .2s; }
.svc-card:hover .svc-more svg { transform: translateX(3px); }
.hub-notes { margin-top: 56px; }

.book-band { background: var(--band); color: #e6efe6; padding: 56px 0; }
.book-band-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1000px) { .book-band-inner { grid-template-columns: 1fr auto; gap: 48px; } }
.book-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .3em; }
.book-band p { margin: 0; color: #d3e0d3; }

/* Doctor pages */
.doc-hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .doc-hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.doc-hero-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; border-radius: 22px; box-shadow: 0 30px 70px rgba(46, 86, 46, .16); animation: settle 1.4s var(--ease) both; }
.doc-hero-role { font-weight: 700; color: var(--sand-deep); font-size: 1.1rem; margin: -4px 0 14px; }
.chip-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row li { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .92rem; }
.chip-row a { text-decoration: none; color: var(--ink); }
.chip-row li:hover { border-color: var(--green); }

/* About page */
.photo-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin: 1.6em 0; }
.photo-row figure { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.photo-row figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* Contact page */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .si-icon { width: 44px; height: 44px; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list span, .contact-list a { color: var(--muted); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.form-card h2 { font-size: 1.5rem; }
.form-row { display: grid; gap: 6px; margin-bottom: 16px; }
.form-2 { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .form-2 { grid-template-columns: 1fr 1fr; } }
.form-row label { font-weight: 700; font-size: .92rem; }
.form-row input, .form-row select, .form-row textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-height: 48px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.form-row textarea { min-height: 96px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--green-deep); box-shadow: 0 0 0 4px rgba(107, 163, 108, .2); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 4px 0 20px; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: #497a49; flex: none; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.form-error { color: #a23b1a; font-size: .9rem; font-weight: 700; margin: 0 0 12px; }
.routes { list-style: none; padding: 0; margin: 0; }
.routes li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.routes li span:last-child { color: var(--muted); text-align: right; }

/* Legal and 404 */
.legal h2 { font-size: 1.3rem; }
.legal-note { background: #fff3c4; color: #5b4a00; border-radius: 12px; padding: 14px 18px; font-size: .92rem; margin-bottom: 28px; }
.not-found { text-align: center; padding: 96px 0; }
.not-found h1 { margin-bottom: .3em; }
.not-found .btn-row { justify-content: center; margin-top: 24px; }
.page-body > *, .prose, .contact-grid > * { min-width: 0; }
.prose .chip-row li { padding: 7px 14px; }
.prose .chip-row li::before { display: none; }
.contact-list .si-icon { color: var(--green-deep); }
.contact-list .si-icon.si-alert { color: #fff; }
@media (max-width: 999px) { .page-side.toc-only { display: none; } }
@media (max-width: 559px) {
  .data-table { min-width: 0; font-size: .88rem; }
  .data-table th, .data-table td { padding: 10px 10px; }
}

/* ===== Photos on inner pages, Google rating, mobile booking card (v5) ===== */
.g-rating { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font-size: .92rem; line-height: 1.3; }
.g-rating strong { color: var(--ink); font-size: 1rem; }
.g-rating:hover span:last-child { text-decoration: underline; }
.g-stars { display: inline-flex; gap: 1px; color: #e3a008; }
.g-stars svg { width: 16px; height: 16px; }
.hero-copy .rating-hero, .page-hero-copy .rating-hero { margin-top: 20px; }
.hero .hero-meta { margin-top: 14px; }
.facts-card .g-rating { justify-content: center; padding: 10px 0 4px; border-top: 1px solid var(--line); }
.rating-block { margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.hero-copy > :nth-child(6) { animation-delay: .35s; }

.facts-mobile { display: none; }
@media (max-width: 899px) {
  .facts-desktop { display: none; }
  .facts-mobile { display: flex; margin: 28px 0; }
  .page-hero { padding-bottom: 32px; }
}
.prose .facts-card ul li::before, .prose .facts dl::before { display: none; }

.page-figure { margin: 0 0 2.2em; }
.page-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.page-figure figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; }
.hub-banner { margin: 0 0 36px; }
.hub-banner img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 699px) { .hub-banner img { aspect-ratio: 16 / 10; } }
.hub-notes .facts-mobile { margin-top: 0; }
.svc-cards + .facts-mobile { margin: 28px 0 0; }
@media (max-width: 639px) {
  .svc-cards { gap: 10px; }
  .svc-card { position: relative; padding: 16px 52px 16px 18px; gap: 2px; }
  .svc-card h3 { font-size: 1.08rem; }
  .svc-card p { font-size: .92rem; }
  .svc-more { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); padding: 0; font-size: 0; }
  .svc-more svg { width: 20px; height: 20px; }
}
.rating-doc { margin: -12px 0 20px; }
.doc-hero-grid .rating-hero { margin-top: 18px; }

/* v6: grouped chest lists, neutral OPD status */
.svc-group-wide { grid-column: 1 / -1; }
@media (min-width: 640px) { .svc-cols { columns: 2; column-gap: 40px; } .svc-cols li { break-inside: avoid; } }
.svc-group .svc-note { margin: 8px 0 0; }
.chip-head { font-size: .95rem; letter-spacing: 0; color: var(--sand-deep); margin: 20px 0 10px; }
.prose .chip-head + .chip-row { margin-bottom: 6px; }
.status.is-closed { background: #efeee9; color: #4f5a4e; }
.status.is-closed::before { background: #9aa39a; }
.doc-mono { display: grid; place-items: center; background: #497a49; color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.panel-chest .doc-mono, .page-hero-chest .doc-mono { background: #7d6f50; }
.facts-chest .doc-mono { background: #7d6f50; }

/* ===== v8 (11 Nov): doctors' feedback ===== */
.doc-avatar.doc-mono { display: grid; place-items: center; color: #fff; font-size: 1.05rem; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.status.status-247 { background: #fbe9e0; color: #9a3f1a; font-weight: 700; }
.status.status-247::before { animation: pulse247 1.6s ease-out infinite; }
@keyframes pulse247 { 0% { box-shadow: 0 0 0 0 rgba(180, 83, 42, .5); } 100% { box-shadow: 0 0 0 8px rgba(180, 83, 42, 0); } }
:root[data-theme="dark"] .status.status-247 { background: #3a2016; color: #f4b393; }
.status-item .status-247 { margin-bottom: 8px; }
.hub-groups { display: grid; gap: 18px; }
@media (min-width: 900px) { .hub-groups { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.hub-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 18px; }
.hub-group h2 { font-size: 1.35rem; letter-spacing: -.015em; margin: 0 0 12px; }
.hub-group ul { list-style: none; margin: 0; padding: 0; }
.hub-group li { border-top: 1px solid var(--line); padding: 11px 0; font-size: 1rem; line-height: 1.4; }
.hub-group li:first-child { border-top: 0; }
.hub-group a { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.hub-group a svg { width: 16px; height: 16px; flex: none; color: var(--green-deep); transition: transform .2s; }
.hub-group a:hover { color: var(--link); }
.hub-group a:hover svg { transform: translateX(3px); }
.hub-groups + .facts-mobile { margin: 28px 0 0; }
.hub-banner img[src*="dr-karan-writing"] { object-position: 50% 70%; }

/* ===== v9 (12 Nov): own illustrations ===== */
figure.diagram { margin: 26px 0 30px; }
figure.diagram svg { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
figure.diagram figcaption, .inline-photo figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.fig-note { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--sand-tint); color: var(--sand-deep); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
figure.diagram-top { margin-top: 0; }
.inline-photo { margin: 22px 0 28px; }
.facts-also { margin: -4px 0 14px; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
@media (max-width: 640px) { .diagram-scroll svg { min-width: 600px; } figure.diagram figcaption::after { content: " Swipe to see the full picture."; } }

/* Ojas OPD (18 Nov): Dr Karan asked for it to stand out */
.facts-also { display: grid; gap: 2px; margin: 12px 0 4px; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--sand-tint); border-left: 4px solid var(--sand); font-size: .92rem; line-height: 1.4; }
.facts-also-k { color: var(--sand-deep); font-weight: 700; font-size: .84rem; }
.facts-also strong { color: var(--ink); }
.si-also { margin-top: 6px; font-size: .88rem; font-weight: 700; color: var(--sand-deep); }
.hours-table .row-also th, .hours-table .row-also td { background: var(--sand-tint); }
.hours-table .row-also th { padding-left: 10px; color: var(--sand-deep); }
.hours-table .row-also td { color: var(--ink); font-weight: 700; }

.ico-wa { stroke: none; }

/* Social links (18 Nov) */
.social-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; }
.social-title { font-size: .86rem; font-weight: 700; color: var(--sand-deep); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.soc { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; transition: transform .2s var(--ease), filter .2s; }
.soc svg { width: 19px; height: 19px; }
.soc:hover { transform: translateY(-2px); filter: brightness(1.08); }
.soc-whatsapp { background: #25d366; }
.soc-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.soc-facebook { background: #1877f2; }
.soc-youtube { background: #ff0000; }
.soc-google { background: #fff; color: #4285f4; box-shadow: inset 0 0 0 1px var(--line); }
.social-card { margin: 12px 0 4px; }
.social-card .soc { width: 34px; height: 34px; }
.social-footer .social-title { color: inherit; opacity: .85; width: 100%; }

/* Icon tiles for treatments and procedures (18 Nov) */
.tile-groups { display: grid; gap: 36px; }
.tile-head { font-size: 1.35rem; letter-spacing: -.015em; margin: 0 0 14px; }
.tile-grid { display: grid; grid-template-columns: repeat(var(--c-xl, 6), minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1199px) { .tile-grid { grid-template-columns: repeat(var(--c-lg, 4), minmax(0, 1fr)); } }
@media (max-width: 899px) { .tile-grid { grid-template-columns: repeat(var(--c-md, 3), minmax(0, 1fr)); } }
.tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 20px 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 650; font-size: .95rem; line-height: 1.3;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(107, 163, 108, .55); color: var(--ink); }
.tile-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green-ink); flex: none; transition: transform .25s var(--ease); }
.tile-ico svg { width: 28px; height: 28px; }
.tile:hover .tile-ico { transform: scale(1.06); }
.tile-name { display: block; }
.tile-more { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: .04em; }
.tile-more svg { width: 14px; height: 14px; }
.tile-groups .tile-ico, .panel-chest .tile-ico { background: var(--sand-tint); color: var(--sand-deep); }
.tile-groups .tile:hover, .panel-chest .tile:hover { border-color: rgba(175, 162, 131, .7); }
.svc-tiles { grid-template-columns: 1fr !important; gap: 22px; }
.svc-tiles .tile-head { font-size: .9rem; letter-spacing: .01em; color: var(--sand-deep); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.svc-tiles .tile-grid { gap: 10px; }
.svc-tiles .tile { padding: 14px 8px 12px; font-size: .86rem; gap: 8px; background: var(--cream); }
.svc-tiles .tile-ico { width: 44px; height: 44px; }
.svc-tiles .tile-ico svg { width: 24px; height: 24px; }
.svc-tiles .svc-note { margin: 0; font-size: .92rem; color: var(--muted); }
.svc-card > .tile-ico { margin-bottom: 8px; }
@media (max-width: 639px) {
  .tile-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile-grid.odd > .tile:last-child { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 14px 16px; }
  .tile-grid.odd > .tile:last-child .tile-name { flex: 1; }
  .tile-grid.odd > .tile:last-child .tile-more { margin: 0; white-space: nowrap; }
  .svc-card > .tile-ico { display: none; }
}

/* Drop-down menus (18 Nov) */
.header-inner { position: relative; }
.main-nav .has-sub { position: relative; }
.main-nav .has-mega { position: static; }
.main-nav .has-sub > a { display: flex; align-items: center; gap: 4px; }
.caret { width: 14px; height: 14px; transition: transform .2s; }
.main-nav .has-sub:hover > a .caret, .main-nav .has-sub:focus-within > a .caret { transform: rotate(180deg); }
.main-nav .sub {
  position: absolute; top: 100%; left: 0; z-index: 70; min-width: 290px; padding: 12px; margin-top: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.main-nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.main-nav .has-sub:hover > .sub, .main-nav .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub ul { display: block; }
.main-nav .sub a { padding: 8px 10px; border-radius: 8px; font-weight: 500; font-size: .92rem; }
.main-nav .sub-mega { left: 50%; width: min(900px, 92vw); transform: translate(-50%, 6px); padding: 18px 18px 14px; }
.main-nav .has-mega:hover > .sub-mega, .main-nav .has-mega:focus-within > .sub-mega { transform: translate(-50%, 0); }
.sub-cols { display: grid; grid-template-columns: 1fr 1.25fr 1.1fr; gap: 6px 18px; }
.sub-head { margin: 0 0 6px; padding: 0 10px 8px; border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sand-deep); }
.main-nav .sub-all { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); border-radius: 0; font-weight: 700; color: var(--link); }
.mobile-nav > ul { max-height: calc(100vh - 110px); overflow-y: auto; width: 280px; }
.m-sub summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; color: var(--ink); }
.m-sub summary::-webkit-details-marker { display: none; }
.m-sub[open] summary .caret { transform: rotate(180deg); }
.m-sub ul { list-style: none; margin: 0 0 6px 10px; padding: 0 0 0 8px; border-left: 2px solid var(--line); }
.mobile-nav .m-sub li a { padding: 9px 10px; font-weight: 500; font-size: .95rem; }
.social-links a.soc, .site-footer .social-links a.soc { color: #fff; }
.social-links a.soc-google, .site-footer .social-links a.soc-google { color: #4285f4; }
.social-doc { margin: 14px 0 12px; }
.mobile-nav .m-sub summary { width: auto; height: auto; border: 0; background: none; border-radius: 8px; display: flex; place-items: initial; }
.mobile-nav .m-sub summary:hover { background: var(--green-tint); }
.mobile-nav .m-sub ul { position: static; width: auto; max-height: none; overflow: visible; background: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; padding: 0 0 0 8px; margin: 0 0 6px 10px; }
/* Doctor avatars as vertical rectangles (MG 18 Nov) */
.doc-avatar { width: 54px; height: 72px; border-radius: 10px; object-position: center top; }
