/* =========================================================
   Mahalakshmi Multispeciality Hospital — site styles
   Palette taken from the logo: teal ring, rose infant, charcoal "MH"
   ========================================================= */

:root {
  --teal-900: #0e4a49;
  --teal-700: #16706e;
  --teal-600: #1d817e;
  --teal-500: #2a9896;
  --teal-100: #dcefed;
  --teal-50:  #eef7f6;
  --rose-600: #b3605a;
  --rose-500: #c97b75;
  --rose-100: #f6e3e0;
  --rose-50:  #fcf3f1;
  --ink-900: #1f272b;
  --ink-700: #3a4549;
  --ink-500: #5e6b70;
  --line: #e3e8e8;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --gold: #b8862b;

  /* Semantic tokens: these are what change between light and dark themes */
  --accent: #16706e;          /* teal text, links, icons */
  --accent-strong: #0e4a49;   /* link hover */
  --btn-bg: #16706e;          /* primary buttons keep white text in both themes */
  --btn-bg-hover: #0e4a49;
  --header-bg: rgba(251, 250, 248, .86);
  --footer-bg: #1f272b;
  --chip-text: #0e4a49;
  --chip-gold-bg: #fbf4e4; --chip-gold-text: #8a6418; --chip-gold-line: #f0e2bf;
  --emg-bg: #fff4f2; --emg-line: #f3cdc8; --emg-text: #7a3a35; --emg-icon: #c0463d; --emg-link: #a3322a;
  --crumb-sep: #b6c0c2;
  color-scheme: light;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 45, 45, .06), 0 2px 8px rgba(15, 45, 45, .05);
  --shadow: 0 2px 4px rgba(15, 45, 45, .04), 0 12px 32px rgba(15, 45, 45, .08);
  --shadow-lg: 0 24px 60px rgba(15, 45, 45, .14);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-variation-settings: "opsz" 72;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn-bg); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--teal-50); }
.section--rose { background: var(--rose-50); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--rose-500); border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-500); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 2px; background: var(--rose-500); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 .98rem/1 var(--font-body);
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--btn-bg); color: #fff; box-shadow: 0 8px 22px rgba(22, 112, 110, .28); }
.btn--primary:hover { background: var(--btn-bg-hover); color: #fff; transform: translateY(-2px); }
.btn--rose { background: var(--rose-500); color: #fff; box-shadow: 0 8px 22px rgba(201, 123, 117, .3); }
.btn--rose:hover { background: var(--rose-600); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-600); color: var(--accent); }
.btn--light { background: #fff; color: var(--teal-900); }
.btn--light:hover { background: var(--teal-50); color: var(--teal-900); transform: translateY(-2px); }
.btn--sm { padding: 11px 18px; font-size: .9rem; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--teal-900); color: #d4ebe9; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar__items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__items span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }
@media (max-width: 760px) { .topbar__hide-sm { display: none !important; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 45, 45, .06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-900); }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.brand__tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--ink-700); text-decoration: none; font-weight: 500; font-size: .96rem;
}
.nav a:hover { color: var(--accent); background: var(--teal-50); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--teal-50); font-weight: 600; }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px; position: relative;
  transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(15, 45, 45, .1);
    padding: 10px var(--gutter) 22px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 13px 14px; border-radius: 12px; }
  .nav .btn { margin: 10px 0 0; width: 100%; }
}
@media (max-width: 340px) { .brand__tag { display: none; } .brand__name { font-size: 1rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: .55;
}
.hero::before { width: 520px; height: 520px; background: var(--teal-100); top: -140px; right: -120px; }
.hero::after  { width: 420px; height: 420px; background: var(--rose-100); bottom: -160px; left: -140px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero .lead { margin-bottom: 30px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__trust div { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--ink-900); }
.hero__trust svg { width: 22px; height: 22px; color: var(--teal-600); flex: none; }

.hero__visual { position: relative; }
.hero__card {
  position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero__logo { width: min(100%, 360px); aspect-ratio: 1; border-radius: 50%; margin: 0 auto; box-shadow: 0 0 0 10px var(--teal-50); object-fit: cover; }
.hero__badge {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: .86rem; line-height: 1.3; color: var(--ink-500);
}
.hero__badge strong { display: block; color: var(--ink-900); font-size: 1rem; }
.hero__badge .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.hero__badge .ico svg { width: 22px; height: 22px; }
.hero__badge--a { top: 22px; left: -34px; }
.hero__badge--a .ico { background: var(--teal-50); color: var(--accent); }
.hero__badge--b { bottom: 30px; right: -28px; }
.hero__badge--b .ico { background: var(--rose-50); color: var(--rose-600); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; margin: 10px auto 0; width: 100%; }
  .hero__badge--a { left: -8px; }
  .hero__badge--b { right: -8px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--teal-50), var(--bg)); }
.page-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--rose-100); filter: blur(70px); opacity: .5; right: -100px; top: -120px; z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; font-size: .88rem; color: var(--ink-500); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--crumb-sep); }
.breadcrumb a { color: var(--ink-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Stats ---------- */
.stats { margin-top: calc(var(--section-y) * -0.45); position: relative; z-index: 2; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { padding: 30px 26px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 600; color: var(--accent); line-height: 1; }
.stat__label { margin-top: 8px; font-size: .92rem; color: var(--ink-500); }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-500); margin: 0; font-size: .98rem; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--accent); margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card--rose .card__icon { background: var(--rose-50); color: var(--rose-600); }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; text-decoration: none; font-size: .95rem; }
.card__link::after { content: "→"; transition: transform .2s ease; }
.card:hover .card__link::after { transform: translateX(4px); }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--ink-500); font-size: .95rem; }
.card ul li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316706e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checklist strong { color: var(--ink-900); }

/* ---------- Facilities feature panel ---------- */
.feature-panel {
  background: var(--surface); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow); display: grid; gap: 18px;
}
.feature-row { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.feature-row:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-row .card__icon { margin: 0; flex: none; }
.feature-row h3 { margin-bottom: 4px; font-size: 1.15rem; }
.feature-row p { margin: 0; color: var(--ink-500); font-size: .96rem; }

/* ---------- Economy ward band ---------- */
.care-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 60%, #238d89 100%);
  color: #d6ecea; padding: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
}
.care-band::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.05); right: -140px; top: -160px;
}
.care-band h2 { color: #fff; }
.care-band .eyebrow { color: #ffd9d4; }
.care-band .eyebrow::before { background: #ffd9d4; }
.care-band p { color: #cfe7e5; max-width: 56ch; }
.care-band__price {
  position: relative; text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 30px 24px;
}
.care-band__price .big { font-family: var(--font-display); font-size: clamp(3.4rem, 7vw, 5rem); color: #fff; line-height: 1; font-weight: 600; }
.care-band__price .big small { font-size: .4em; vertical-align: super; }
.care-band__price p { margin: 10px auto 0; font-size: .95rem; }
@media (max-width: 800px) { .care-band { grid-template-columns: 1fr; } }

/* ---------- Doctor ---------- */
.doctor { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.doctor__aside { position: sticky; top: 110px; text-align: center; }
.doctor__photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--teal-50); aspect-ratio: 7 / 9;
}
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.doctor__photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(180deg, transparent, rgba(14, 74, 73, .35));
}
.doctor__exp {
  position: absolute; left: 16px; bottom: 16px; z-index: 1; background: var(--surface); border-radius: 14px;
  padding: 10px 14px; text-align: left; box-shadow: var(--shadow); font-size: .8rem; color: var(--ink-500); line-height: 1.25;
}
.doctor__exp strong { display: block; font-family: var(--font-display); color: var(--accent); font-size: 1.5rem; }
.doctor__name { margin: 24px 0 4px; font-size: 1.7rem; }
.doctor__role { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600; background: var(--teal-50); color: var(--chip-text); border: 1px solid var(--teal-100); }
.chip--rose { background: var(--rose-50); color: var(--rose-600); border-color: var(--rose-100); }
.chip--gold { background: var(--chip-gold-bg); color: var(--chip-gold-text); border-color: var(--chip-gold-line); }

.quals { list-style: none; padding: 0; margin: 0 0 44px; display: grid; gap: 12px; }
.quals li {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px;
}
.quals b { font-family: var(--font-display); font-size: 1.15rem; color: var(--accent); }
.quals span { color: var(--ink-700); }
.medal { color: var(--gold); font-weight: 700; white-space: nowrap; }
@media (max-width: 520px) { .quals li { grid-template-columns: 1fr; gap: 2px; } }

.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--teal-500), var(--rose-500)); border-radius: 2px;
}
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--teal-500); box-sizing: border-box;
}
.timeline li:last-child::before { border-color: var(--rose-500); background: var(--rose-500); box-shadow: 0 0 0 5px var(--rose-100); }
.timeline h4 { font-family: var(--font-body); font-size: 1.04rem; font-weight: 700; margin: 0 0 4px; color: var(--ink-900); letter-spacing: 0; }
.timeline .meta { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--teal-50); padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--ink-500); font-size: .97rem; }

@media (max-width: 900px) {
  .doctor { grid-template-columns: 1fr; }
  .doctor__aside { position: static; max-width: 380px; margin: 0 auto; }
}

/* Compact doctor teaser on home */
.doctor-teaser { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.doctor-teaser .doctor__photo { max-width: 300px; }
@media (max-width: 800px) { .doctor-teaser { grid-template-columns: 1fr; } .doctor-teaser .doctor__photo { margin: 0 auto; width: 100%; } }
blockquote.pull {
  margin: 22px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--rose-500);
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink-900);
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-weight: 600; color: var(--ink-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal-50); color: var(--accent);
  display: grid; place-items: center; font-size: 1.2rem; line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-500); padding-bottom: 20px; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  background: var(--rose-50); border: 1px solid var(--rose-100); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta h2 { margin-bottom: 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta p { margin: 0; color: var(--ink-500); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-list .card__icon { margin: 0; width: 48px; height: 48px; border-radius: 14px; flex: none; }
.contact-list .card__icon svg { width: 22px; height: 22px; }
.contact-list h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); margin: 2px 0 4px; font-weight: 700; }
.contact-list p, .contact-list address { margin: 0; font-style: normal; color: var(--ink-900); font-weight: 500; }
.contact-list a { font-weight: 600; }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; background: var(--teal-50); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.emergency {
  display: flex; gap: 16px; align-items: center; background: var(--emg-bg); border: 1px solid var(--emg-line);
  border-radius: var(--radius); padding: 18px 20px; color: var(--emg-text);
}
.emergency svg { width: 28px; height: 28px; flex: none; color: var(--emg-icon); }
.emergency a { color: var(--emg-link); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #b7c2c4; padding: 72px 0 28px; margin-top: var(--section-y); font-size: .95rem; }
.site-footer a { color: #dfe7e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--font-body); color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand img { box-shadow: none; }
.site-footer .brand__tag { color: #7fcfca; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8b979a; }

/* ---------- Floating call (mobile) ---------- */
.fab-call {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; display: none;
  width: 58px; height: 58px; border-radius: 50%; background: var(--rose-500); color: #fff;
  align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(201, 123, 117, .45);
}
.fab-call svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .fab-call { display: inline-flex; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

@media print {
  .topbar, .site-header, .fab-call, .map, .cta { display: none !important; }
  body { background: #fff; }
}

/* Keep button colours inside the nav (".nav a" is more specific than ".btn--*") */
.nav a.btn--primary, .nav a.btn--primary:hover { color: #fff; background: var(--btn-bg); }
.nav a.btn--primary:hover { background: var(--btn-bg-hover); }
.page-hero + main > .section:first-child { padding-top: clamp(36px, 5vw, 64px); }

/* =========================================================
   Mobile refinements
   ========================================================= */
.brand__tag { font-size: .75rem; }
.card__link { min-height: 44px; }
.breadcrumb a { display: inline-block; padding: 8px 0; }
.site-footer ul { gap: 2px; }
.site-footer ul a { display: inline-block; padding: 8px 0; }
.topbar a { display: inline-block; padding: 8px 0; }

/* Respect iPhone home-indicator / notch areas */
.fab-call { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }

@media (max-width: 980px) {
  /* Menu scrolls on short screens / landscape */
  .nav { max-height: calc(100vh - 78px); max-height: calc(100dvh - 78px); overflow-y: auto; overscroll-behavior: contain; }
  .nav a { min-height: 48px; display: flex; align-items: center; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section-head { margin-bottom: 28px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__trust { gap: 12px 18px; }
  .hero__visual { max-width: 340px; }
  .hero__card { padding: 18px; }
  .hero__badge { padding: 9px 12px; font-size: .78rem; }
  .hero__badge strong { font-size: .9rem; }
  .hero__badge .ico { width: 34px; height: 34px; border-radius: 10px; }
  .card { padding: 24px 22px; }
  .stat { padding: 22px 12px; }
  .care-band__price { padding: 22px 18px; }
  .cta { text-align: left; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .map, .map iframe { min-height: 320px; }
  .doctor-teaser .chips { justify-content: flex-start; }
  /* Leave room so the floating call button never covers footer text */
  .site-footer { padding-bottom: 96px; }
}

@media (max-width: 360px) {
  .brand img { width: 44px; height: 44px; }
  .hero__actions .btn { width: 100%; }
  .btn { padding: 14px 20px; }
}
@media (max-width: 980px) {
  /* Dim the page behind the open menu */
  .nav.is-open { box-shadow: 0 20px 40px rgba(15, 45, 45, .1), 0 0 0 100vmax rgba(15, 40, 40, .35); }
}
/* ".nav a { display:block }" must not override the button's flex layout */
.nav a.btn { display: inline-flex; }
@media (max-width: 980px) { .nav a.btn { display: flex; } }
/* Long unbroken strings (email) must not widen the contact column on small phones */
.contact-grid > * { min-width: 0; }
.contact-list > li > div:last-child { min-width: 0; }
.contact-list a, .site-footer address a { overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .topbar { font-size: .78rem; }
  .topbar .container { gap: 10px; }
  .topbar__xs-hide { display: none; }
}
/* Breadcrumb: link has tap-target padding, current item doesn't, so centre all items on one line */
.breadcrumb ol { align-items: center; }
.breadcrumb li { display: flex; align-items: center; min-height: 40px; }


/* =========================================================
   Themes: light is the default; the header toggle switches to dark
   (html[data-theme="light" | "dark"], saved in localStorage)
   ========================================================= */
:root[data-theme="dark"] {
  --teal-600: #3fb3ad;
  --teal-100: #173a39;
  --teal-50:  #112a2b;
  --rose-600: #e49890;
  --rose-100: #3a2627;
  --rose-50:  #231a1b;
  --ink-900: #edf3f3;
  --ink-700: #c5d1d2;
  --ink-500: #98a8ab;
  --line: #26373b;
  --bg: #0d1416;
  --surface: #152023;
  --gold: #e2b45c;
  --accent: #5ec8c1;
  --accent-strong: #8fdcd6;
  --btn-bg: #16706e;
  --btn-bg-hover: #1d817e;
  --header-bg: rgba(13, 20, 22, .85);
  --footer-bg: #080d0e;
  --chip-text: #bfe9e5;
  --chip-gold-bg: #2a2315; --chip-gold-text: #e9c77a; --chip-gold-line: #4a3c1c;
  --emg-bg: #2a1614; --emg-line: #5a2a26; --emg-text: #f1c4bf; --emg-icon: #ff8a80; --emg-link: #ffb3ab;
  --crumb-sep: #3d4f53;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .25);
  --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
:root[data-theme="dark"] .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235ec8c1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .care-band { background: linear-gradient(135deg, #0a3534 0%, #0f5654 60%, #146a67 100%); }
:root[data-theme="dark"] .hero::before, :root[data-theme="dark"] .hero::after, :root[data-theme="dark"] .page-hero::after { opacity: .35; }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .hero__logo { filter: brightness(.94); }
:root[data-theme="dark"] .doctor__photo img { filter: brightness(.95); }
:root[data-theme="dark"] .map iframe { filter: brightness(.85) contrast(1.05); }

/* Theme toggle button */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.theme-toggle {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-900); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--teal-600); color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (min-width: 981px) { .site-header .nav { margin-left: auto; } }
@media (max-width: 980px) { .header-actions { margin-left: auto; } }
body { transition: background-color .25s ease, color .25s ease; }

/* Small phones: header holds logo + theme toggle + menu button on one row */
@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand img { width: 44px; height: 44px; }
  .brand__tag { letter-spacing: .05em; white-space: nowrap; }
  .header-actions { gap: 6px; }
  .theme-toggle, .nav-toggle { width: 44px; height: 44px; }
}
@media (max-width: 380px) { .brand__tag { letter-spacing: .02em; font-size: .72rem; } }
@media (max-width: 480px) {
  .care-band { padding: 32px 22px; }
  .care-band .btn { white-space: normal; text-align: center; line-height: 1.3; }
}

/* =========================================================
   Facilities photo gallery + lightbox
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery__item {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--teal-100); aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm);
}
.gallery__item--feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__link, .gallery__link picture { display: block; width: 100%; height: 100%; }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__link:hover img, .gallery__link:focus-visible img { transform: scale(1.04); }
.gallery__link:focus-visible { outline-offset: -4px; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 48px 18px 16px; color: #fff; line-height: 1.35;
  background: linear-gradient(180deg, transparent, rgba(6, 28, 28, .82));
}
.gallery__item figcaption strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.gallery__item figcaption span { display: block; font-size: .86rem; color: rgba(255, 255, 255, .86); margin-top: 2px; }
.gallery__item--feature figcaption { padding: 70px 26px 22px; }
.gallery__item--feature figcaption strong { font-size: 1.5rem; }
.gallery__item--feature figcaption span { font-size: .95rem; }
@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--feature { grid-row: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; gap: 14px; }
  .gallery__item--feature { grid-column: auto; }
  .gallery__item--feature figcaption { padding: 48px 18px 16px; }
  .gallery__item--feature figcaption strong { font-size: 1.12rem; }
}

.lightbox {
  width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(4, 12, 13, .97); }
.lightbox__figure { margin: 0; padding: 64px 72px 20px; max-width: 1280px; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox__media { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox__media picture { display: contents; }
.lightbox__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__caption { padding-top: 14px; text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .85); max-width: 60ch; }
.lightbox__caption strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: #fff; font-weight: 600; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background-color .2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__figure { padding: 68px 12px 84px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

/* Top bar stays on one line: drop lower-priority items as space runs out */
.topbar .container, .topbar__items { flex-wrap: nowrap; }
.topbar__items span, .topbar a { white-space: nowrap; }
@media (max-width: 1240px) { .topbar__hide-lg { display: none !important; } }
@media (max-width: 1100px) { .topbar__hide-md { display: none !important; } }
