/* McLeod Hospital — clean, professional theme.
   White pages, one deep navy for structure and actions, McLeod rose (from the logo) as a small accent,
   and red reserved for emergency. */
:root {
  --ink: #17223b;
  --body: #3e4a62;
  --muted: #67728a;
  --line: #e6eaf2;
  --bg: #ffffff;
  --soft: #f5f7fa;
  --navy: #12355b;     --navy-d: #0c2742;  --navy-t: #eef3f8;

  --rose: #d6246e;      --rose-d: #b0155a;  --rose-t: #fff0f6;
  --blue: #1f63d6;      --blue-d: #154ba8;  --blue-t: #eef4ff;
  --violet: #6d4ae0;    --violet-t: #f3efff;
  --green: #12a26b;     --green-t: #e9f9f2;
  --red: #e4412f;       --red-d: #c42f1f;   --red-t: #fff1ef;
  --indigo: #3b45c8;    --indigo-t: #eef0ff;
  --amber: #e98a0c;     --amber-d: #c46f00; --amber-t: #fff6e8;
  --teal: #0b9fb3;      --teal-t: #e7f8fb;

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(23, 34, 59, .28);
  --shadow-sm: 0 6px 20px -10px rgba(23, 34, 59, .22);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:lang(ta) { --font: "Noto Sans Tamil", "Plus Jakarta Sans", "Latha", "Nirmala UI", sans-serif; }
:lang(si) { --font: "Noto Sans Sinhala", "Plus Jakarta Sans", "Iskoola Pota", "Nirmala UI", sans-serif; }
[lang] { font-family: var(--font); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Sections reached by a link stop below the sticky header, not underneath it */
[id] { scroll-margin-top: calc(var(--header-h, 77px) + 16px); }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 900px; }

/* Type */
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; line-height: 1.12; }
:lang(ta) h1, :lang(ta) h2, :lang(ta) h3, :lang(si) h1, :lang(si) h2, :lang(si) h3 { letter-spacing: 0; line-height: 1.3; }
.display { font-size: clamp(38px, 5.4vw, 68px); }
.display.sm { font-size: clamp(32px, 4.4vw, 54px); }
:lang(ta) .display, :lang(si) .display { font-size: clamp(28px, 3.6vw, 46px); }
:lang(ta) .display.sm, :lang(si) .display.sm { font-size: clamp(26px, 3.4vw, 42px); }
.h2 { font-size: clamp(28px, 3.4vw, 44px); }
:lang(ta) .h2, :lang(si) .h2 { font-size: clamp(24px, 2.8vw, 36px); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); }
h1 em, h2 em, h3 em { font-style: normal; color: var(--rose-d); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-d); }
:lang(ta) .eyebrow, :lang(si) .eyebrow { letter-spacing: .02em; text-transform: none; font-size: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--body); max-width: 60ch; margin: 0; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; max-width: 90ch; }
p { margin: 0; }
.copy > * + * { margin-top: 20px; }
.copy > .btn, .copy > .link-arrow { margin-top: 30px; }
.center { text-align: center; justify-content: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 700 15.5px/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: none; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 16.5px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-d); }
.btn-emergency { background: #fff; color: var(--red-d); border-color: var(--red); }
.btn-emergency svg { color: var(--red); }
.btn-emergency:hover { background: var(--red-t); }
.btn-emergency b { font-weight: 800; }
.btn-blue { background: var(--navy); color: #fff; } .btn-blue:hover { background: var(--navy-d); }
.btn-violet { background: var(--navy); color: #fff; } .btn-violet:hover { background: var(--navy-d); }
.btn-amber { background: var(--navy); color: #fff; } .btn-amber:hover { background: var(--navy-d); }
.btn-soft { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-soft:hover { border-color: var(--navy); color: var(--navy); }
.btn-white { background: #fff; color: var(--ink); }
.btn-outline-white { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-wa { background: #1faa59; color: #fff; width: 100%; }
.btn-wa:hover { background: #178a48; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions.center { margin-top: 36px; }

/* Top bar */
.topbar { background: var(--navy); font-size: 14px; color: #dbe5f0; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; min-height: 38px; padding-block: 4px; }
.tb-left { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }
.topbar a svg { width: 16px; height: 16px; color: #ff8a80; }
.topbar a { color: #fff; }
.topbar a b { font-weight: 800; }
.live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #8fe3bd; }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 162, 107, .55); } 70% { box-shadow: 0 0 0 9px rgba(18, 162, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 162, 107, 0); } }
.langs { display: flex; gap: 2px; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px; }
.langs a { padding: 4px 12px; border-radius: 999px; font-size: 13.5px; }
.langs a[aria-current="true"] { background: #fff; color: var(--navy); }
@media (max-width: 720px) { .tb-hide { display: none !important; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(23, 34, 59, .35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; min-width: 0; }
.brand > span { min-width: 0; }
@media (min-width: 561px) { .brand b, .brand small { white-space: nowrap; } }
.nav a { padding: 9px 9px; }
.brand img { width: 48px; height: 48px; }
.brand b { display: block; font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.01em; }
.brand small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 9px 11px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover { background: var(--navy-t); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--rose); border-radius: 0; }
.hd-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.hd-cta .btn { min-height: 46px; padding: 0 20px; font-size: 14.5px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .2s var(--ease), background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1300px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: var(--nav-top, 118px) 0 auto 0; max-height: calc(100vh - var(--nav-top, 118px)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; padding: 14px max(20px, env(safe-area-inset-right, 0px)) 28px max(20px, env(safe-area-inset-left, 0px)); box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: 17px; padding: 14px 16px; border-radius: 14px; }
}
/* Tamil and Sinhala menu labels are longer, so the menu collapses sooner */
@media (min-width: 1301px) {
  html:not([lang="en"]) .menu-btn { display: inline-flex; }
  html:not([lang="en"]) .nav { position: fixed; inset: var(--nav-top, 118px) 0 auto 0; max-height: calc(100vh - var(--nav-top, 118px)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; padding: 14px max(20px, env(safe-area-inset-right, 0px)) 28px max(20px, env(safe-area-inset-left, 0px)); box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  html:not([lang="en"]).menu-open .nav, html:not([lang="en"]) .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  html:not([lang="en"]) .nav a { font-size: 17px; padding: 14px 16px; border-radius: 14px; }
}
@media (max-width: 700px) { html:not([lang="en"]) .brand { flex: 0 1 auto; } html:not([lang="en"]) .brand b, html:not([lang="en"]) .brand small { white-space: normal; } }
@media (max-width: 560px) { .brand { flex: 0 1 auto; } html:not([lang="en"]) .brand b { font-size: 16px; } html:not([lang="en"]) .brand small { font-size: 11.5px; } .btn-emergency.btn-lg { width: 100%; font-size: 15px; } }
@media (max-width: 560px) { .hd-cta .btn span { display: none; } .hd-cta .btn { padding: 0 14px; } .brand b { font-size: 18px; } .brand img { width: 42px; height: 42px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 72px) 56px; background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { display: none; }
.b1 { width: 420px; height: 420px; background: #ffd1e3; top: -120px; right: 8%; }
.b2 { width: 360px; height: 360px; background: #d6e6ff; bottom: 40px; right: -80px; }
.b3 { width: 300px; height: 300px; background: #ffe9c7; top: 30%; left: -120px; opacity: .45; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; align-content: center; }
.hero-native { margin: 0; font-family: "Noto Sans Tamil", sans-serif; font-size: 18px; font-weight: 500; color: var(--muted); }
.hero-native:empty { display: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink); }
.trust-row svg { width: 17px; height: 17px; color: var(--navy); }
.hero-art { position: relative; min-height: 520px; }
.hero-art figure { margin: 0; position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--soft); }
.hero-art img, .hero-art .ph { width: 100%; height: 100%; object-fit: cover; }
.art-main { inset: 0 0 70px 70px; border-radius: 20px !important; }
.art-people.a1 { width: 44%; aspect-ratio: 4 / 5; left: 0; bottom: 0; border: 6px solid #fff; }
.art-people.a2 { width: 36%; aspect-ratio: 1; right: -8px; top: -16px; border: 6px solid #fff; }
.float-chip { position: absolute; display: grid; gap: 0; padding: 12px 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); line-height: 1.2; animation: none; }
.float-chip b { font-size: 26px; font-weight: 800; color: var(--ink); }
.float-chip > span { font-size: 13px; font-weight: 600; color: var(--muted); max-width: 18ch; }
.c1 { left: 46%; bottom: 18px; } .c1 b { color: var(--rose-d); }
.c2 { right: 18px; top: 40%; animation-delay: -2s; } .c2 b { color: var(--navy); }
.c3 { left: 90px; top: 22px; animation-delay: -4s; } .c3 b { color: var(--navy); }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 430px; }
}
@media (max-width: 560px) {
  .hero-art { min-height: 360px; }
  .art-main { inset: 0 0 60px 30px; }
  .float-chip { padding: 9px 12px; } .float-chip b { font-size: 20px; } .float-chip span { font-size: 11.5px; }
  .c3 { left: 44px; }
}

/* Placeholder for photos still to come */
.ph { display: grid; place-items: center; background: var(--navy-t); color: var(--navy); text-align: center; padding: 16px; min-height: 160px; }
.ph-in { display: grid; gap: 4px; justify-items: center; max-width: 30ch; }
.ph-in svg { width: 28px; height: 28px; opacity: .7; }
.ph-in b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.ph-in small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }

/* Service tiles that pop in */
.svc-head { display: grid; gap: 8px; margin-top: clamp(40px, 5vw, 64px); }
.svc-pop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.pop-em .ico { background: var(--red-t); color: var(--red-d); }
.pop a { height: 100%; display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; gap: 8px; align-items: start; padding: 26px 24px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.pop a:hover { box-shadow: var(--shadow-sm); border-color: var(--navy); }
.pop .ico { width: 46px; height: 46px; margin-bottom: 8px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--c); }
.pop .ico svg { width: 25px; height: 25px; }
.pop b { font-size: 16.5px; color: var(--ink); line-height: 1.25; }
.pop small { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.js .pop { opacity: 0; transform: translateY(18px) scale(.96); }
.js .pop.in { opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
@media (max-width: 1060px) { .svc-pop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .svc-pop { grid-template-columns: 1fr; } }

.t-rose { --c: var(--navy); --tint: var(--navy-t); }
.t-blue { --c: var(--navy); --tint: var(--navy-t); }
.t-violet { --c: var(--navy); --tint: var(--navy-t); }
.t-green { --c: var(--navy); --tint: var(--navy-t); }
.t-red { --c: var(--red); --tint: var(--red-t); }
.t-indigo { --c: var(--navy); --tint: var(--navy-t); }
.t-amber { --c: var(--navy); --tint: var(--navy-t); }
.t-teal { --c: var(--navy); --tint: var(--navy-t); }

/* Stats */
.stats-band { background: var(--navy); color: #fff; padding-block: 38px; }
.stats-band.rose { background: var(--navy); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.stats.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats li { display: grid; gap: 4px; align-content: start; }
.stats b { font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stats li > span { font-size: 14px; opacity: .92; line-height: 1.4; }
.stats-band .fine { color: rgba(255, 255, 255, .85); }
@media (max-width: 980px) { .stats, .stats.five { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; } }
@media (max-width: 520px) { .stats, .stats.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section.soft, .services { background: var(--soft); }
.services { padding-block: clamp(64px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 70px); }
.tint-rose { background: var(--soft); }
.tint-sky { background: var(--soft); }
.tint-amber { background: var(--soft); }
.tint-lilac { background: var(--soft); }
.tint-red { background: var(--soft); }
.tint-teal { background: var(--soft); }
.tint-green { background: var(--soft); }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); }
.head.center { justify-items: center; text-align: center; }
.head .muted { max-width: 70ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--soft); }
.photo.tall { aspect-ratio: 4 / 5; max-height: 620px; }
.photo img, .photo .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.photo:hover img { transform: none; }
.photo .badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #fff; font-weight: 800; color: var(--navy); box-shadow: var(--shadow-sm); }
.photo .badge svg { width: 18px; height: 18px; }
.photo-stack { position: relative; padding-bottom: 60px; }
.photo-stack .photo.small { position: absolute; width: 46%; right: -10px; bottom: 0; aspect-ratio: 1; border: 6px solid #fff; }

.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-weight: 600; color: var(--ink); }
.ticks li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' 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 / 15px no-repeat; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.chips.big li { font-size: 15.5px; padding: 11px 18px; box-shadow: var(--shadow-sm); }

/* IVF comparison */
.compare { background: #fff; border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.compare h3 { font-size: 17px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 46px; grid-template-areas: "l v" "b b"; gap: 6px 12px; align-items: center; font-size: 14px; }
.bar-row span { grid-area: l; font-weight: 600; color: var(--ink); }
.bar-row b { grid-area: v; text-align: right; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar { grid-area: b; height: 12px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); border-radius: inherit; }
.b-rose { background: var(--rose-d); }
.b-grey { background: #b9c1d1; }
.compare .fine { margin: 0; }

/* Emergency band */
.em-band { background: var(--navy-d); color: #fff; padding-block: clamp(56px, 7vw, 96px); }
.em-band h2, .em-band .eyebrow { color: #fff; }
.em-band h2 em { color: #ff9a8f; }
.em-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.em-call { display: grid; gap: 2px; padding: 18px 28px; border-radius: 16px; background: var(--red); color: #fff; text-decoration: none; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); transition: transform .2s var(--ease); }
.em-call:hover { transform: translateY(-3px) scale(1.02); }
.em-call span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .85); }
.em-call b { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; font-variant-numeric: tabular-nums; }
.em-call.big { justify-self: start; }
.em-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.em-grid li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.em-grid svg { color: #ff9a8f; }
.em-grid svg { grid-row: span 2; width: 34px; height: 34px; }
.em-grid b { font-size: 17px; }
.em-grid span { font-size: 14px; opacity: .9; }
@media (max-width: 900px) { .em-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .em-grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.gallery figure:hover img { transform: scale(1.02); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 13.5px; font-weight: 700; color: var(--ink); }
.g1 { grid-column: span 2; grid-row: span 2; }
.gallery.two { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 320px; }
@media (max-width: 900px) { .gallery, .gallery.three { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } }
@media (max-width: 520px) { .gallery, .gallery.two { grid-template-columns: 1fr; grid-auto-rows: 220px; } .g1 { grid-column: auto; grid-row: span 1; } }

/* Why, cards */
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why li, .card { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); min-width: 0; transition: transform .2s var(--ease), box-shadow .2s; }
.why li:hover, .card:hover { box-shadow: var(--shadow); }
.why b, .card h3 { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.why span:not(.ico), .card p { font-size: 15.5px; color: var(--muted); }
.ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--tint, var(--rose-t)); color: var(--c, var(--rose)); }
.ico svg { width: 27px; height: 27px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .why, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .why, .cards.three, .cards.four { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.steps.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: s; display: grid; gap: 6px; align-content: start; padding: 22px 20px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--navy); margin-bottom: 6px; }
.steps b { color: var(--ink); font-size: 16.5px; line-height: 1.35; }
.steps span { font-size: 14.5px; color: var(--muted); }
.steps.vertical { grid-template-columns: 1fr; }
.steps.vertical li { grid-template-columns: 38px 1fr; column-gap: 16px; align-items: center; }
.steps.vertical li::before { grid-row: span 2; margin: 0; }
.steps.light li { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.steps.light b { color: #fff; }
.steps.light li::before { background: #fff; color: var(--navy); }
@media (max-width: 1060px) { .steps.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps.six, .steps.three { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: 28px; color: #fff; }
.cta-band.rose { background: var(--navy); }
.cta-band.blue { background: var(--navy); }
.cta-band h2, .cta-band h2 em { color: #fff; -webkit-text-fill-color: #fff; background: none; }
.cta-band p { margin-top: 10px; opacity: .95; max-width: 60ch; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* Page hero */
.page-hero { padding-block: clamp(36px, 5vw, 64px); }
.page-hero .copy > * + * { margin-top: 20px; }
.copy > .btn, .copy > .link-arrow { margin-top: 30px; }
.hero-photo { aspect-ratio: 5 / 4; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Doctors */
.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.doc { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.doc .avatar { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--navy); background: var(--navy-t); }
.doc b { display: block; color: var(--ink); font-size: 15.5px; }
.doc span { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: block; }
.doc.featured { grid-column: span 2; background: var(--navy); border: 0; }
.doc.featured .avatar { background: #fff; color: var(--navy); }
.doc.featured b, .doc.featured span { color: #fff; }
@media (max-width: 1060px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .docs { grid-template-columns: 1fr; } .doc.featured { grid-column: auto; } }

/* Timeline */
.timeline { list-style: none; margin: 20px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 18px; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); }
.timeline b { color: var(--navy); font-size: 18px; font-weight: 800; }

/* Features list */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.feature-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--soft); font-weight: 600; color: var(--ink); font-size: 15px; }
.feature-list svg { width: 22px; height: 22px; color: var(--navy); flex: none; }
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-weight: 700; color: var(--ink); font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-t); color: var(--navy); font-size: 20px; font-weight: 600; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* Contact info + form */
.info { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.info li > svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--navy-t); color: var(--navy); }
.info small { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info span { color: var(--ink); font-weight: 600; }
.info a { text-decoration: none; font-variant-numeric: tabular-nums; }
.info a:hover { color: var(--navy); text-decoration: underline; }
.card-form { background: #fff; border-radius: 26px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.book-form { display: grid; gap: 16px; }
.book-form h3 { font-size: 24px; }
.seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink); background: #fff; transition: all .2s; }
.seg input:checked + label { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--rose); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--soft); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus { outline: none; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(18, 53, 91, .12); }
.form-error { color: var(--red-d); font-weight: 700; }
.form-note { font-size: 13px; color: var(--muted); }
.map { margin: 18px 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; background: var(--soft); box-shadow: var(--shadow-sm); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--navy-d); color: #b8c1d6; padding-block: 72px 110px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ff9cc5; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.ft-grid h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.ft-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft-brand { display: grid; gap: 16px; align-content: start; }
.ft-brand .brand b { color: #fff; }
.ft-brand .brand small { color: #b8c1d6; }
.ft-tag { color: #ff9cc5; font-weight: 700; }
.ft-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13.5px; }
@media (max-width: 900px) { .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ft-grid { grid-template-columns: 1fr; } }

/* Quick-contact dock */
.dock { position: fixed; z-index: 60; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; }
.dock a { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .45); transition: transform .2s var(--ease); }
.dock a:hover { transform: scale(1.05); }
.dock svg { width: 28px; height: 28px; }
.dock-call { background: var(--red-d); }
.dock-wa { background: #1faa59; }
@media (max-width: 560px) { .dock span { display: none; } .dock a { width: 56px; padding: 0; justify-content: center; } }

/* Reveal on scroll: visible by default, animated only when JS is running */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

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

/* Calm hero: one photo, one message */
.hero { padding-block: clamp(48px, 7vw, 96px); background: #fff; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-copy { gap: 24px; }
.hero-photo-main { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 4; max-width: 100%; box-shadow: var(--shadow); background: var(--soft); }
.hero-photo-main img, .hero-photo-main .ph { width: 100%; height: 100%; object-fit: cover; }
.actions { gap: 20px 28px; }
.link-call { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.link-call svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--red-t); color: var(--red-d); flex: none; }
.link-call span { display: grid; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.link-call b { font-size: 18px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section > .wrap > .link-arrow { margin-top: 32px; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.points { list-style: none; padding: 0; display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; }
.points li { display: grid; gap: 2px; }
.points b { color: var(--ink); font-size: 16.5px; }
.points span { color: var(--muted); font-size: 15.5px; }
.gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 16px; }
.contact-dl { display: grid; grid-template-columns: max-content 1fr; gap: 14px 28px; margin: 0; }
.contact-dl dt { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.contact-dl dd { margin: 0; color: var(--ink); font-weight: 600; }
.contact-dl a { text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-dl a:hover { text-decoration: underline; }
@media (max-width: 560px) { .contact-dl { grid-template-columns: 1fr; gap: 4px; } .contact-dl dd { margin-bottom: 12px; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.gallery figcaption { max-width: calc(100% - 24px); }

/* Hero: photo runs to the screen edge and fades into the text side */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 120px); }
.hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero-copy { position: relative; z-index: 1; max-width: 600px; }
.hero-photo-main { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; aspect-ratio: auto; border-radius: 0; box-shadow: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 14%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 14%, #000 34%); }
@media (max-width: 900px) {
  .hero { padding-bottom: 0; }
  .hero-photo-main { position: relative; width: auto; height: 320px; margin: 36px calc(-1 * max(20px, env(safe-area-inset-left, 0px))) 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%); }
}

/* Even gallery grids */
.gallery.three { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 240px; }
.gallery figure { cursor: zoom-in; }
.gallery figure:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* Click-to-enlarge photo viewer */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(12, 39, 66, .88); cursor: zoom-out; opacity: 0; transition: opacity .2s var(--ease); }
.lightbox.open { opacity: 1; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; transform: scale(.92); transition: transform .2s var(--ease); }
.lightbox.open figure { transform: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 120px); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: #fff; font-weight: 700; font-size: 16px; }
.hero .hero-grid { position: static; }
@media (max-width: 900px) { .hero-photo-main { width: calc(100% + 2 * max(20px, env(safe-area-inset-left, 0px))); max-width: none; } }

/* ===== Refined, premium layer (client meeting, Oct 2026) ===== */
:root { --head: "DM Serif Display", Georgia, "Times New Roman", serif; --gold: #b8925a; }
:lang(ta) { --head: "Noto Serif Tamil", "Noto Sans Tamil", serif; }
:lang(si) { --head: "Noto Serif Sinhala", "Noto Sans Sinhala", serif; }
h1, h2, .h2 { font-family: var(--head); font-weight: 400; letter-spacing: -.005em; line-height: 1.08; }
:lang(ta) h1, :lang(ta) h2, :lang(si) h1, :lang(si) h2 { font-weight: 700; line-height: 1.3; }
.display { font-size: clamp(40px, 5.2vw, 68px); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--rose-d); }
:lang(ta) h1 em, :lang(si) h1 em, :lang(ta) h2 em, :lang(si) h2 em { font-style: normal; }
.eyebrow { color: var(--gold); }
.eyebrow::before { height: 1px; width: 28px; }
.head.center .eyebrow::before { display: none; }

/* Hero with quick-access panel */
.hero2 { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 84px) clamp(48px, 6vw, 88px); background: var(--navy-t); }
.hero2-bg { position: absolute; inset: -40px; }
.hero2-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(1.1); transform: scale(1.06); opacity: .55; }
.hero2-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 40%, rgba(238,243,248,.6) 100%); }
.hero2-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero2-copy { display: grid; gap: 22px; align-content: center; }
.badges { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.badges li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.badges svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); flex: none; }
.quick { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.8); border-radius: 24px; padding: clamp(18px, 2vw, 26px); box-shadow: 0 30px 70px -30px rgba(12, 39, 66, .45); }
.quick-title { font-family: var(--head); font-size: clamp(22px, 2vw, 28px); color: var(--ink); margin-bottom: 16px; }
:lang(ta) .quick-title, :lang(si) .quick-title { font-weight: 700; font-size: 20px; }
.qtiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qt { position: relative; display: block; height: 168px; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; background: var(--navy); isolation: isolate; }
.qt img, .qt .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .45s var(--ease); }
.qt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,39,66,.05) 20%, rgba(12,39,66,.88) 100%); transition: background .2s; }
.qt:hover img { transform: scale(1.07); }
.qt:hover::after { background: linear-gradient(180deg, rgba(12,39,66,.15) 10%, rgba(12,39,66,.94) 100%); }
.qt-ico { position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--navy); }
.qt-ico svg { width: 20px; height: 20px; }
.qt-em .qt-ico { color: var(--red-d); }
.qt-em::after { background: linear-gradient(180deg, rgba(120,20,15,.05) 20%, rgba(140,28,20,.9) 100%); }
.qt-txt { position: absolute; left: 14px; right: 14px; bottom: 12px; display: grid; gap: 2px; }
.qt-txt b { font-size: 16px; line-height: 1.25; }
.qt-txt small { font-size: 12.5px; opacity: .9; line-height: 1.35; }
.qcontact { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.qc { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 12px; background: var(--navy-t); color: var(--navy); font-weight: 700; font-size: 14.5px; text-decoration: none; transition: background .2s, color .2s; }
.qc svg { width: 18px; height: 18px; flex: none; }
.qc:hover { background: var(--navy); color: #fff; }
.qc-book { background: var(--navy); color: #fff; }
.qc-book:hover { background: var(--navy-d); }
.qc-wa { color: #178a48; background: #e8f7ee; }
.qc-wa:hover { background: #1faa59; color: #fff; }
@media (max-width: 1100px) { .hero2-grid { grid-template-columns: 1fr; } .hero2-copy { max-width: 720px; } }
@media (max-width: 640px) {
  .hero2 { padding-block: 28px 40px; }
  .display { font-size: 36px; }
  :lang(ta) .display, :lang(si) .display { font-size: 27px; }
  .hero2-copy { gap: 14px; }
  .hero2-copy .lede { font-size: 16px; }
  .badges { display: flex; flex-wrap: wrap; gap: 8px; }
  .badges li { font-size: 13px; background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; gap: 8px; box-shadow: var(--shadow-sm); }
  .badges svg { width: 26px; height: 26px; padding: 5px; box-shadow: none; background: var(--navy-t); }
  .quick { padding: 14px; border-radius: 20px; }
  .quick-title { font-size: 19px; margin-bottom: 12px; }
  .qtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qt { height: 132px; border-radius: 14px; }
  .qt-ico { width: 32px; height: 32px; top: 10px; left: 10px; }
  .qt-txt b { font-size: 14.5px; }
  .qt-txt small { display: none; }
  .qcontact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Trust band */
.trust { background: #fff; border-bottom: 1px solid var(--line); padding-block: 40px 30px; }
.trust-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-stats li { display: grid; gap: 6px; padding: 4px 28px; border-left: 1px solid var(--line); }
.trust-stats li:first-child { border-left: 0; padding-left: 0; }
.trust-stats b { font-family: var(--head); font-weight: 400; font-size: clamp(38px, 4vw, 54px); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.trust-stats > li > span { color: var(--muted); font-size: 14.5px; }
.trust .fine { margin-top: 20px; }
@media (max-width: 760px) { .trust-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; } .trust-stats li:nth-child(3) { border-left: 0; padding-left: 0; } .trust-stats li { padding: 0 16px; } }

/* Centres of excellence (tabs) */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 40px; padding: 6px; background: var(--soft); border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 12px 20px; border-radius: 999px; font: 700 15px var(--font); color: var(--muted); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.tabs button svg { width: 18px; height: 18px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.tabs button:hover { color: var(--navy); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; animation: fadeUp .2s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tp-media { margin: 0; position: relative; border-radius: 22px; overflow: visible; aspect-ratio: 5 / 4; max-width: 100%; }
.tp-media img, .tp-media .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.tp-stat { position: absolute; right: -14px; bottom: -22px; display: grid; gap: 2px; max-width: 240px; padding: 18px 22px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.tp-stat b { font-family: var(--head); font-weight: 400; font-size: 36px; line-height: 1; color: var(--navy); }
.tp-stat b svg { width: 30px; height: 30px; color: var(--rose-d); }
.tp-stat span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.tp-stat.em { border-top-color: var(--red); } .tp-stat.em b { color: var(--red-d); font-family: var(--font); font-weight: 800; font-size: 26px; }
.tp-copy > * + * { margin-top: 18px; }
.tp-copy .actions { margin-top: 28px; }
.mini-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-grid li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 15px; }
.mini-grid svg { width: 20px; height: 20px; color: var(--red-d); flex: none; }
@media (max-width: 900px) {
  .tab-panel { grid-template-columns: 1fr; }
  .tp-stat { right: 12px; bottom: -18px; }
  .tabs { border-radius: 18px; width: auto; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs button { white-space: nowrap; padding: 10px 14px; font-size: 14px; }
}

/* Story */
.story-photo { aspect-ratio: 4 / 5; max-height: 600px; overflow: visible; box-shadow: none; background: none; }
.story-photo img { border-radius: 22px; box-shadow: var(--shadow); }
.story-year { position: absolute; left: -16px; bottom: 28px; display: grid; gap: 2px; padding: 18px 22px; max-width: 220px; border-radius: 18px; background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.story-year b { font-family: var(--head); font-weight: 400; font-size: 44px; line-height: 1; color: #fff; }
.story-year span { font-size: 13px; opacity: .85; }
.points-title { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 30px !important; }
:lang(ta) .points-title, :lang(si) .points-title { letter-spacing: 0; text-transform: none; }
.points { border-top: 0; padding-top: 0; gap: 18px; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.points li > svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--navy-t); color: var(--navy); }
.points li div { display: grid; gap: 2px; }
@media (max-width: 900px) { .story-year { left: 12px; bottom: 12px; } }

/* Find a doctor */
.finddoc { padding-block: 0 clamp(72px, 9vw, 120px); }
.fd-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--navy); color: #dbe5f0; }
.fd-card h2 { color: #fff; } .fd-card h2 em { color: #f2a7c4; }
.fd-copy > * + * { margin-top: 14px; }
.fd-input { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); }
.fd-input > svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.fd-input input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 16px var(--font); color: var(--ink); padding: 12px 4px; background: transparent; }
.fd-input .btn { min-height: 48px; border-radius: 12px; }
.fd-pop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; }
.fd-pop span { opacity: .8; }
.fd-pop a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); }
.fd-pop a:hover { background: rgba(255,255,255,.12); }
@media (max-width: 900px) { .fd-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .fd-input .btn { padding: 0 14px; } }

/* Visit us */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.visit-info { display: grid; gap: 20px; }
.cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cc { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; min-width: 0; }
a.cc:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.cc-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-t); color: var(--navy); margin-bottom: 6px; }
.cc-ico svg { width: 21px; height: 21px; }
.cc-ico.wa { background: #e8f7ee; color: #1faa59; }
.cc-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
:lang(ta) .cc-label, :lang(si) .cc-label { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.cc b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.cc-note { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.cc-em { background: var(--red-t); border-color: #f7d4cf; }
.cc-em .cc-ico { background: var(--red); color: #fff; }
.cc-em b { color: var(--red-d); }
.cc-em .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; animation: pulse 2s infinite; }
.cc-lines { display: grid; gap: 4px; }
.cc-lines a { font-weight: 700; font-size: 16px; text-decoration: none; font-variant-numeric: tabular-nums; }
.cc-lines a:hover { color: var(--navy); text-decoration: underline; }
.map-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.map-card .map { margin: 0; border-radius: 0; aspect-ratio: auto; min-height: 240px; box-shadow: none; }
.map-meta { display: grid; gap: 14px; align-content: center; padding: 22px; }
.map-meta p { color: var(--ink); font-weight: 600; margin-top: 2px; }
@media (max-width: 1000px) { .visit-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cc-grid { grid-template-columns: 1fr; } .map-card { grid-template-columns: 1fr; } }

/* Find a doctor page */
.sp-search { max-width: 640px; margin: 0 auto 36px; padding-right: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.sp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-card { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.sp-card[hidden] { display: none; }
.sp-card h3 { font-size: 18px; color: var(--navy); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sp-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sp-docs li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.sp-docs .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--navy); background: var(--navy-t); }
.sp-docs b { display: block; color: var(--ink); font-size: 15.5px; }
.sp-docs small { display: block; color: var(--muted); font-size: 13px; }
.sp-call { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; text-decoration: none; }
.sp-call svg { width: 16px; height: 16px; color: var(--navy); }
.sp-call:hover { color: var(--navy); }
.sp-none { text-align: center; margin-top: 24px; }
@media (max-width: 1000px) { .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sp-grid { grid-template-columns: 1fr; } }

/* FAQ animation */
.faq details { overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: var(--navy); box-shadow: var(--shadow); }
.faq-a { overflow: hidden; transition: height .2s var(--ease); }
.faq-a p { padding-bottom: 22px; color: var(--body); line-height: 1.7; }
.faq details[open] summary { color: var(--navy); }
.faq details[open] summary::after { background: var(--navy); color: #fff; }

/* Footer */
.ft-social { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-weight: 600; }
.ft-social svg { width: 18px; height: 18px; }
.ft-dl { display: grid; gap: 4px; margin: 0; }
.ft-dl dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8fa3bd; margin-top: 10px; }
.ft-dl dt:first-child { margin-top: 0; }
.ft-dl dd { margin: 0; color: #fff; font-weight: 600; }
.ft-dl a { font-variant-numeric: tabular-nums; }
.site-footer { padding-block: 72px 40px; }

/* WhatsApp button (desktop) and quick-contact bar (phones) */
.dock-wa { position: fixed; z-index: 60; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1faa59; color: #fff; box-shadow: 0 16px 32px -14px rgba(0,0,0,.45); transition: transform .2s var(--ease); }
.dock-wa:hover { transform: scale(1.06); }
.dock-wa svg { width: 30px; height: 30px; }
.mbar { display: none; }
@media (max-width: 760px) {
  .dock-wa { display: none; }
  .mbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 12px; font-size: 12.5px; font-weight: 700; text-decoration: none; }
  .mbar svg { width: 20px; height: 20px; }
  .mb-call { background: var(--red-t); color: var(--red-d); }
  .mb-wa { background: #e8f7ee; color: #178a48; }
  .mb-book { background: var(--navy); color: #fff; }
  .site-footer { padding-bottom: 110px; }
}
.fd-form, .fd-copy { min-width: 0; }
/* Compact desktop menu so it fits on laptop screens */
@media (min-width: 1301px) {
  .nav a { font-size: 14px; padding: 8px 8px; }
  .site-header .wrap { gap: 14px; }
  .hd-cta .btn { padding: 0 16px; }
}
.qcontact { display: flex; flex-wrap: wrap; }
.qc { flex: 1 1 auto; white-space: nowrap; }
.qc-book { flex-grow: 1.4; }
@media (max-width: 640px) { .qc { flex: 1 1 calc(50% - 10px); white-space: normal; } }
@media (max-width: 900px) { .gallery, .gallery.three { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; } }
@media (max-width: 520px) { .gallery, .gallery.three, .gallery.two { grid-template-columns: 1fr; grid-auto-rows: 220px; } .g1 { grid-column: auto; grid-row: span 1; } }

/* Find a Doctor: categories */
.sp-total { color: var(--ink); font-weight: 600; }
.sp-total b { font-family: var(--head); font-weight: 400; font-size: 28px; color: var(--navy); }
.sp-cat { margin-top: 44px; }
.sp-cat[hidden] { display: none; }
.sp-cat:first-child { margin-top: 0; }
.sp-cat-title { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
:lang(ta) .sp-cat-title, :lang(si) .sp-cat-title { letter-spacing: 0; text-transform: none; font-size: 16px; }
.sp-cat-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sp-docs li { grid-template-columns: 40px 1fr; }
.sp-docs .avatar { width: 40px; height: 40px; font-size: 13px; }
.sp-docs b { font-weight: 600; font-size: 15px; }
.sp-cat .sp-grid { display: block; columns: 3 280px; column-gap: 16px; }
.sp-cat .sp-card { break-inside: avoid; margin-bottom: 16px; }

/* Small confirmation note */
.toast { position: fixed; z-index: 300; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); padding: 12px 20px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s var(--ease); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* Map placeholder shown in previews (and before the live map loads) */
.map { position: relative; }
.map-fallback { position: absolute; inset: 0; display: block; }
.map-fallback img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(1.02); }
.map-fallback::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,39,66,0) 40%, rgba(12,39,66,.55) 100%); }
.map-pin { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow); white-space: nowrap; transition: transform .2s var(--ease); }
.map-pin svg { width: 20px; height: 20px; color: var(--red-d); }
.map-fallback:hover .map-pin { transform: translate(-50%, -54%); }

/* Hospital leadership card on Find a Doctor */
.sp-lead .sp-grid { columns: auto; }
.sp-lead .sp-card { max-width: 640px; background: var(--navy); border-color: var(--navy); padding: 26px 28px; }
.sp-lead .sp-card h3 { color: #c9a46a; border-color: rgba(255,255,255,.15); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
:lang(ta) .sp-lead .sp-card h3, :lang(si) .sp-lead .sp-card h3 { letter-spacing: 0; text-transform: none; font-size: 15px; }
.sp-lead .sp-docs li { grid-template-columns: 64px 1fr; gap: 18px; }
.sp-lead .sp-docs .avatar { width: 64px; height: 64px; font-size: 20px; background: #fff; color: var(--navy); }
.sp-lead .sp-docs b { color: #fff; font-family: var(--head); font-weight: 400; font-size: 26px; line-height: 1.15; }
.sp-lead .sp-docs small { color: #dbe5f0; font-size: 15px; margin-top: 4px; }
.sp-lead .sp-docs small.quals { color: #9fb3cb; font-size: 13.5px; letter-spacing: .02em; }
.sp-docs li > span { display: grid; min-width: 0; }
.sp-lead .sp-card { min-width: 0; }
.sp-lead .sp-docs b, .sp-lead .sp-docs small { overflow-wrap: anywhere; }
@media (max-width: 420px) { .sp-lead .sp-card { padding: 20px; } .sp-lead .sp-docs li { grid-template-columns: 48px 1fr; gap: 14px; } .sp-lead .sp-docs .avatar { width: 48px; height: 48px; font-size: 16px; } .sp-lead .sp-docs b { font-size: 22px; } }

/* Illustration family (surgery, maternity, paediatrics, fertility): navy line art,
   soft blue fill, one rose accent. Decorative only. */
.ill { width: 100%; height: 100%; display: block; overflow: visible; }
.ill .s { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ill .f { fill: var(--navy-t); }
.ill .a { fill: var(--rose-t); stroke: var(--rose-d); }
.ill .acc { stroke: var(--gold); stroke-dasharray: 2 4; }
.ill .dot { fill: var(--navy); }
.qt-ico .ill { width: 26px; height: 26px; }
.qt-ico .ill .f { fill: #e6eef7; }
.tabs button .ill { width: 22px; height: 22px; }
.tabs button .ill .s { stroke-width: 3; }
.tp-ill { line-height: 0; }
.tp-ill .ill { width: 56px; height: 56px; }
.ico-ill { background: var(--navy-t); padding: 7px; }
.ico-ill .ill { width: 100%; height: 100%; }
.sp-card h3 .ill { display: inline-block; width: 26px; height: 26px; vertical-align: -7px; margin-right: 8px; }
.sp-card h3 .ill .s { stroke-width: 2.8; }

/* Botanical sprig: one per fertility/maternity page hero, kept faint and behind content */
.has-sprig { position: relative; overflow: hidden; }
.has-sprig > .wrap { position: relative; z-index: 1; }
.sprig { position: absolute; left: -30px; bottom: -40px; width: 260px; height: 260px; opacity: .22; pointer-events: none; }
.sprig .s { fill: none; stroke: var(--rose-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sprig .f { fill: var(--rose-t); }
.sprig .a { fill: var(--rose-t); stroke: var(--rose-d); }
@media (max-width: 760px) { .sprig { width: 170px; height: 170px; left: -40px; bottom: -50px; opacity: .16; } }

/* Label shown on any stock photograph */
.stock-note { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--muted); font-size: 11.5px; font-weight: 600; }
/* Keep the sprig clear of the text: bottom-right corner, behind the photo side */
.sprig { left: auto; right: -50px; bottom: -70px; transform: scaleX(-1); opacity: .18; z-index: 0; }
@media (max-width: 900px) { .sprig { right: -60px; bottom: -70px; opacity: .14; } }

/* Quick-access clusters slider */
.qcar-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 34px; }
.qcar-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:lang(ta) .qcar-label, :lang(si) .qcar-label { letter-spacing: 0; text-transform: none; font-size: 14px; }
.qcar-ctrl { display: flex; align-items: center; gap: 6px; flex: none; }
.qcar-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.qcar-btn svg { width: 16px; height: 16px; }
.qcar-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.qcar-toggle .i-play { display: none; }
.qcar.is-paused .qcar-toggle .i-play { display: block; }
.qcar.is-paused .qcar-toggle .i-pause { display: none; }
.qcar-dots { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.qcar-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #c9d5e3; cursor: pointer; transition: width .2s var(--ease), background .2s; }
.qcar-dot[aria-current="true"] { width: 22px; background: var(--navy); }
.qcar-viewport { overflow: hidden; border-radius: 16px; touch-action: pan-y; }
.qcar-track { display: grid; gap: 12px; }
.js .qcar.is-ready .qcar-track { display: flex; gap: 0; align-items: flex-start; transition: transform .25s cubic-bezier(.4, 0, .2, 1); }
.js .qcar.is-ready .qcar-group { flex: 0 0 100%; min-width: 0; }
.js .qcar:not(.is-ready) .qcar-bar { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .js .qcar.is-ready .qcar-track { transition: none; } }
@media (max-width: 640px) { .qcar-btn { width: 30px; height: 30px; } .qcar-label { font-size: 12px; } }
.hero2-grid > *, .quick, .qcar, .qcar-viewport { min-width: 0; }
/* The blurred background bleeds past the hero; clip it so focus can never scroll the hero sideways */
.hero2, .has-sprig { overflow: clip; }

/* Tiles: lighter fade, at most two lines of text (title + subtitle; title only on phones) */
.qcar-group:not(#qg-1) .qt::after { background: linear-gradient(180deg, rgba(12,39,66,0) 42%, rgba(12,39,66,.72) 100%); }
.qcar-group:not(#qg-1) .qt:hover::after { background: linear-gradient(180deg, rgba(12,39,66,0) 30%, rgba(12,39,66,.82) 100%); }
.qt-txt b, .qt-txt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(8,26,46,.45); }
@media (max-width: 640px) { .qt-txt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }
/* Group dots are the only manual control: give them a bigger, easy tap area */
.qcar-dot { position: relative; }
.qcar-dot::before { content: ""; position: absolute; inset: -10px -4px; }
.qcar-dots { gap: 10px; }
/* Two-line limit: English desktop = 1-line title + 1-line subtitle.
   Phones, Tamil and Sinhala = title up to 2 lines, subtitle hidden. */
@media (max-width: 640px) { .qt-txt small { display: none; } }
html:not([lang="en"]) .qt-txt small { display: none; }
html:not([lang="en"]) .qt-txt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
@media (max-width: 380px) { html:not([lang="en"]) .qt-txt b { font-size: 13.5px; } }
html:not([lang="en"]) .qt-txt b { overflow-wrap: anywhere; }

/* Tile without a photo (used until a suitable image exists) */
.qt-plain { background: linear-gradient(150deg, #eef3f8 0%, #dbe6f2 55%, #c9d8ea 100%); }
.qt-plain .qt-art { position: absolute; right: -8px; top: 10px; width: 120px; height: 120px; color: #9fb6d0; z-index: -2; }
.qt-plain .qt-art svg { width: 100%; height: 100%; stroke-width: 1.1; }
.qcar-group:not(#qg-1) .qt-plain::after { background: linear-gradient(180deg, rgba(12,39,66,0) 40%, rgba(12,39,66,.62) 100%); }

/* Stock label on a slider tile: small, top right, clear of the title */
.qt .stock-note { top: 10px; right: 10px; bottom: auto; font-size: 10px; padding: 3px 8px; z-index: 1; }
/* Image credits page */
.credits-table { overflow-x: auto; margin: 28px 0 16px; border: 1px solid var(--line); border-radius: 14px; }
.credits-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.credits-table th, .credits-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits-table th { background: var(--soft); color: var(--ink); font-weight: 700; }
.credits-table a { color: var(--navy); overflow-wrap: anywhere; }

/* ===== Find a Doctor: refined directory ===== */
.sp-search { margin-bottom: 18px; }
.sp-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 40px; }
.sp-chip { font: 600 14px var(--font); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sp-chip:hover { border-color: var(--navy); }
.sp-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sp-card { padding: 0; overflow: hidden; gap: 0; transition: box-shadow .2s, border-color .2s; }
.sp-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.sp-card h3 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--soft), #fff); font-size: 16.5px; }
.sp-card h3 .sp-name { flex: 1; min-width: 0; }
.sp-ill { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: #fff; box-shadow: var(--shadow-sm); }
.sp-ill .ill { width: 22px; height: 22px; display: block; margin: 0; vertical-align: 0; }
.sp-docs { gap: 0; padding: 6px 0; }
.sp-docs li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 18px; transition: background .2s; }
.sp-docs li + li { border-top: 1px solid var(--line); }
.sp-docs li:hover { background: var(--soft); }
.doc-meta { display: grid; min-width: 0; }
.doc-meta b { font-weight: 600; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }

/* Initials avatars: one tint per section, serif monogram, soft ring */
.sp-docs .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 400; font-size: 17px; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 4px 10px -6px rgba(12,39,66,.45); }
.sp-docs .avatar.av-women { background: linear-gradient(145deg, #fde7ef, #f6cfdd); color: #9c1b52; }
.sp-docs .avatar.av-surgery { background: linear-gradient(145deg, #e3edf8, #c9dbef); color: #12355b; }
.sp-docs .avatar.av-medicine { background: linear-gradient(145deg, #e2f4f1, #c3e7e0); color: #0d5c52; }
.sp-docs .avatar.av-imaging { background: linear-gradient(145deg, #ebe8fb, #d6d0f5); color: #3f3297; }
.sp-docs .avatar.av-allied { background: linear-gradient(145deg, #fbf0de, #f2ddb8); color: #7a4b07; }
.photo-av { object-fit: cover; }

/* Book link: quiet until the row is hovered or focused */
.doc-book { flex: none; font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; opacity: .75; transition: opacity .2s, background .2s, color .2s, border-color .2s; }
.sp-docs li:hover .doc-book, .doc-book:focus-visible { opacity: 1; background: var(--navy); color: #fff; border-color: var(--navy); }
@media (hover: none) { .doc-book { opacity: 1; } }

/* Leadership card keeps its navy treatment */
.sp-lead .sp-card h3 { background: transparent; padding: 0 0 12px; border-color: rgba(255,255,255,.15); }
.sp-lead .sp-docs { padding: 0; }
.sp-lead .sp-docs li { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 16px 0 0; }
.sp-lead .sp-docs li:hover { background: transparent; }
.sp-lead .sp-docs .avatar { width: 64px; height: 64px; font-size: 24px; background: #fff; color: var(--navy); }
.sp-lead .doc-book { background: #fff; color: var(--navy); border-color: #fff; opacity: 1; }
.sp-lead .sp-docs li:hover .doc-book { background: var(--rose-t); color: var(--rose-d); }
@media (max-width: 480px) {
  .sp-docs li { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 10px 14px; }
  .sp-docs .avatar { width: 40px; height: 40px; font-size: 15px; }
  .sp-lead .sp-docs li { grid-template-columns: 52px minmax(0, 1fr); }
  .sp-lead .sp-docs .avatar { width: 52px; height: 52px; font-size: 19px; }
  .sp-lead .doc-book { grid-column: 2; justify-self: start; }
}

/* ISO 9001 seal in the hero badges */
.badges .badge-iso img { width: 52px; height: 52px; margin: -9px; flex: none; filter: drop-shadow(0 4px 8px rgba(23, 34, 59, .18)); }
@media (max-width: 640px) { .badges .badge-iso img { width: 34px; height: 34px; margin: -4px; } }

/* Find a Doctor: the hovered doctor grows, with a larger portrait and name */
@media (hover: hover) and (min-width: 721px) {
  .sp-docs li { transition: background .25s, padding .2s ease, grid-template-columns .2s ease, box-shadow .2s; }
  .sp-docs .avatar { transition: width .2s ease, height .2s ease, font-size .2s ease, box-shadow .2s; }
  .sp-docs b { transition: font-size .2s ease, color .2s; }
  .sp-docs li:hover { grid-template-columns: 72px minmax(0, 1fr) auto; padding-block: 14px; box-shadow: inset 3px 0 0 var(--navy); }
  .sp-docs li:hover .avatar { width: 72px; height: 72px; font-size: 26px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line), 0 10px 22px -10px rgba(12,39,66,.55); }
  .sp-docs li:hover b { font-size: 17.5px; color: var(--navy); }
  .sp-lead .sp-docs li:hover b { font-size: 26px; color: #fff; }
  .sp-lead .sp-docs li:hover { grid-template-columns: 96px minmax(0, 1fr) auto; padding-block: 16px 0; box-shadow: none; }
  .sp-lead .sp-docs li:hover .avatar { width: 96px; height: 96px; font-size: 34px; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 14px 28px -12px rgba(0,0,0,.6); }
}
@media (prefers-reduced-motion: reduce) { .sp-docs li, .sp-docs .avatar, .sp-docs b { transition: none; } }

/* IVF desk on WhatsApp (077 121 5005): reachable wherever IVF appears */
.actions .btn-wa { width: auto; }
.btn-wa svg { width: 20px; height: 20px; flex: none; }
.has-wa { position: relative; }
.qt-wa { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #1faa59; color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 6px 14px -6px rgba(0,0,0,.5); transition: transform .2s, background .2s; }
.qt-wa svg { width: 21px; height: 21px; }
.has-wa .qt .stock-note { top: 58px; right: 10px; }
.qt-wa:hover, .qt-wa:focus-visible { background: #178a48; transform: scale(1.1); }
@media (max-width: 720px) { .qt-wa { width: 32px; height: 32px; top: 10px; right: 10px; } .qt-wa svg { width: 18px; height: 18px; } .has-wa .qt .stock-note { top: 48px; right: 8px; } }
.wa-mini { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 8px; border-radius: 50%; background: #1faa59; color: #fff; vertical-align: middle; transition: background .2s; }
.wa-mini svg { width: 15px; height: 15px; }
.wa-mini:hover { background: #178a48; }
.doc-wa { display: inline-flex; align-items: center; gap: 5px; }
.doc-wa svg { width: 14px; height: 14px; color: #1faa59; }
.sp-docs li:hover .doc-wa, .doc-wa:focus-visible { background: #1faa59; border-color: #1faa59; }
.sp-docs li:hover .doc-wa svg { color: #fff; }

/* Immediate response: every control acknowledges a press at once, and taps never wait */
a, button, summary, label, [role="tab"] { touch-action: manipulation; }
.btn, .qt, .sp-chip, .doc-book, .cc, .qt-wa, .wa-mini, .tabs button, .nav a, .mbar a, .dock-wa, .faq summary { transition-property: transform, background, color, border-color, box-shadow, opacity; }
.btn:active, .qt:active, .sp-chip:active, .doc-book:active, .cc:active, .qt-wa:active, .wa-mini:active, .tabs button:active, .mbar a:active, .dock-wa:active { transform: scale(.97); transition-duration: 60ms; }

/* Honest loading state for a slow page change: indeterminate, no percentage */
.nav-loading { position: fixed; z-index: 200; top: 0; left: 0; right: 0; height: 3px; overflow: hidden; background: rgba(18,53,91,.12); pointer-events: none; }
.nav-loading::before { content: ""; position: absolute; top: 0; bottom: 0; width: 35%; background: var(--navy); animation: navload 1.1s ease-in-out infinite; }
@keyframes navload { from { left: -35%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .nav-loading::before { animation: none; left: 0; width: 100%; opacity: .6; } }

/* Image skeletons: a calm shimmer where a photo is still loading, then a quick fade-in */
.skel { background-color: #e8eef5 !important; background-image: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 80%) !important; background-size: 200% 100% !important; background-repeat: no-repeat !important; animation: skel 1.2s ease-in-out infinite; }
@keyframes skel { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.js img.img-wait { opacity: 0; }
.img-in { animation: imgIn .2s ease-out; }
@keyframes imgIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; background-image: none !important; } .img-in { animation: none; } }

/* Surgery specialties: one colourful illustration per card, in a consistent 16:9 panel */
.card.has-art { padding-top: 0; overflow: hidden; }
.sp-art { margin: 0 -26px 6px; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--art-bg, #eef3f8); }
.sp-art .art { width: 74%; height: auto; transition: transform .25s var(--ease); }
.card.has-art:hover .sp-art .art { transform: scale(1.04); }
.art-general { --art-bg: #e3f4f2; } .art-paediatric { --art-bg: #e6f1fc; } .art-urology { --art-bg: #fdeceb; }
.art-vascular { --art-bg: #fde9ec; } .art-ent { --art-bg: #f1ecfb; } .art-ortho { --art-bg: #e8eefb; }
.art-plastic { --art-bg: #f4edfb; } .art-gyn { --art-bg: #fdebf1; } .art-scope { --art-bg: #e5f5ef; }
/* Home carousel design tiles: the same illustrations */
.qt-plain .qt-art.qt-art-c { left: 50%; right: auto; top: 8px; width: 78%; height: auto; transform: translateX(-50%); z-index: -2; }
.qt-plain .qt-art.qt-art-c svg { stroke-width: 0; }
@media (prefers-reduced-motion: reduce) { .sp-art .art { transition: none; } }

/* Reception & Emergency Contact: the two common reception lines shown beside the emergency number */
.tb-rx { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; color: #dbe5f0; font-weight: 600; }
.tb-rx a { font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .tb-rx { display: none; } } /* phones: the Call button opens the full list */
.rx-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 14px 0 0; font-size: 15px; }
.rx-l { flex-basis: 100%; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
:lang(ta) .rx-l, :lang(si) .rx-l { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.rx-line a { font-weight: 800; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.rx-line a:hover { text-decoration: underline; }
.em-calls { display: grid; gap: 4px; justify-self: start; align-content: center; }
.rx-em .rx-l { color: #8fa3bd; }
.rx-em a { color: #fff; font-size: 20px; }
.cc-sub { margin-top: 8px; }
.ft-lines { display: grid; gap: 2px; }
.form-surg { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; font-weight: 600; }
.form-surg[hidden] { display: none; }
.form-surg svg { width: 18px; height: 18px; color: var(--navy); }
.form-surg a { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Mobile call sheet: every line at a glance, opened by the Call button in the bottom bar */
.call-sheet { width: min(440px, calc(100vw - 24px)); margin: auto auto 12px; padding: 20px; border: 0; border-radius: 20px; background: var(--surface, #fff); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.call-sheet::backdrop { background: rgba(10, 25, 45, .5); }
.call-sheet h2 { margin: 0 0 12px; font-size: 18px; }
.call-sheet ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.call-sheet li a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--soft); text-decoration: none; color: var(--ink); }
.call-sheet li a span { font-size: 13px; font-weight: 700; color: var(--muted); }
.call-sheet li a b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.call-sheet .cs-em { background: var(--red-t); }
.call-sheet .cs-em b { color: var(--red-d); }
.call-sheet form { margin: 0; }
.call-sheet .btn { width: 100%; justify-content: center; }

/* Surgery specialties: licensed 3D medical illustrations, one per card, same 16:9 frame */
.sp-art.sp-photo { position: relative; margin: 0 -26px 6px; overflow: hidden; background: #e8eef5; }
.sp-art.sp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.card.has-art:hover .sp-photo img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .sp-art.sp-photo img { transition: none; } }

/* Heritage ribbon at the top of the home hero: gold rules and leaf sprigs around a one-line claim */
.heritage-wrap { position: relative; margin-bottom: clamp(20px, 3vw, 36px); }
/* The ribbon opens the hero, so the hero needs only a little space above it */
.hero2:has(> .heritage-wrap) { padding-top: clamp(16px, 2vw, 26px); }
.heritage { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 15px; line-height: 1.4; text-align: center; color: var(--body); }
.heritage::before, .heritage::after { content: ""; flex: 1 1 24px; min-width: 32px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.heritage::after { background: linear-gradient(90deg, var(--gold), transparent); }
.hr-orn { flex: none; display: inline-flex; color: var(--gold); }
.hr-orn svg { width: 22px; height: 22px; }
.hr-flip { transform: scaleX(-1); }
.hr-text { flex: 0 1 auto; display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 10px; row-gap: 2px; }
.hr-text b { font-family: var(--head); font-weight: 400; font-size: 1.2em; color: var(--ink); }
.hr-dot { color: var(--gold); font-weight: 700; }
.hr-legacy { font-style: italic; }
:lang(ta) .hr-text b, :lang(si) .hr-text b { font-weight: 700; font-size: 1.05em; }
:lang(ta) .hr-legacy, :lang(si) .hr-legacy { font-style: normal; }
/* Two stacked lines (claim, then legacy) wherever one line will not fit, so the dot never dangles */
:lang(ta) .hr-text, :lang(si) .hr-text { flex-direction: column; align-items: center; }
:lang(ta) .hr-dot, :lang(si) .hr-dot { display: none; }
@media (max-width: 900px) {
  .hr-text { flex-direction: column; align-items: center; }
  .hr-dot { display: none; }
}
@media (max-width: 640px) {
  .hero2:has(> .heritage-wrap) { padding-top: 14px; }
  .heritage { justify-content: center; gap: 10px; font-size: 13.5px; }
  .heritage::before, .heritage::after { display: none; }
  .hr-orn svg { width: 18px; height: 18px; }
}

/* Community and green initiatives (Our Story) and the home green band */
.comm-list { display: grid; gap: 22px; margin-top: 34px; }
.comm-item { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: clamp(18px, 3vw, 36px); align-items: center; padding: clamp(18px, 2.4vw, 28px); border-radius: 22px; background: var(--surface, #fff); border: 1px solid var(--line); }
.comm-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--navy-t); color: var(--navy); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.comm-tag svg { width: 15px; height: 15px; }
.comm-text h3 { margin: 12px 0 8px; font-size: clamp(19px, 1.8vw, 23px); color: var(--ink); }
.comm-text p { margin: 0; color: var(--body); }
.comm-green { background: linear-gradient(135deg, #effaf2, #e3f4e8); border-color: #cfe9d6; }
.comm-green .comm-tag { background: #d3efdb; color: #1f6b3a; }
.gallery.comm-photos { grid-auto-rows: 160px; gap: 10px; }
.gallery.comm-photos.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
.gallery.comm-photos.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 180px; }
.gallery.comm-photos.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; }
@media (max-width: 860px) { .comm-item { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .gallery.comm-photos.n3 { grid-auto-rows: 100px; } .gallery.comm-photos.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; } .gallery.comm-photos.n2 { grid-auto-rows: 140px; } }
.green-band { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 20px; text-decoration: none; background: linear-gradient(120deg, #1f6b3a, #2f8f52 60%, #4aa86a); color: #fff; box-shadow: 0 18px 40px -26px rgba(31,107,58,.8); }
.gb-leaf { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.gb-leaf svg { width: 26px; height: 26px; }
.gb-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.gb-text b { font-family: var(--head); font-weight: 400; font-size: clamp(20px, 2vw, 25px); }
.gb-text small { opacity: .88; font-size: 14px; }
.gb-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: #fff; color: #1f6b3a; font-weight: 700; font-size: 14px; }
.gb-cta svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .green-band { flex-wrap: wrap; } .gb-cta { width: 100%; justify-content: center; } }

/* Patient stories (Our Story page) and the three featured on the home page */
.tm-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 24px; }
.tm-grid { columns: 3 300px; column-gap: 18px; }
.tm-card { break-inside: avoid; margin: 0 0 18px; padding: 22px 22px 18px; border-radius: 20px; background: var(--surface, #fff); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.tm-card[hidden] { display: none; }
.tm-card blockquote { margin: 0; }
.tm-card blockquote p { margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.65; }
.tm-card blockquote p::before { content: "\201C"; display: block; font-family: var(--head); font-size: 46px; line-height: .6; color: var(--rose); margin: 6px 0 8px; }
.tm-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tm-card figcaption b { display: block; color: var(--ink); font-size: 15px; }
.tm-card figcaption small { color: var(--muted); font-size: 13px; }
.tm-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-size: 17px; }
.tm-ivf { background: #fde7ef; color: #9c1b52; } .tm-surgery { background: #e3edf8; color: #12355b; } .tm-maternity { background: #fbf0de; color: #7a4b07; }
.tm-children { background: #ebe8fb; color: #3f3297; } .tm-general { background: #e2f4f1; color: #0d5c52; }
.tm-featured { columns: 3 280px; }
.tm-more { text-align: center; margin: 10px 0 0; }
.tm-more .btn svg { width: 18px; height: 18px; }
.tm-note { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.tm-grid.is-short .tm-card:nth-child(n+10) { display: none; }

/* Phones: a lighter, less zoomed layout; top bar and heritage ribbon on one line */
.tb-short { display: none; }
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .display { font-size: 31px; }
  :lang(ta) .display, :lang(si) .display { font-size: 24px; }
  .display.sm { font-size: 29px; }
  :lang(ta) .display.sm, :lang(si) .display.sm { font-size: 23px; }
  .h2 { font-size: 25px; }
  .h3 { font-size: 20px; }
  .lede, .hero2-copy .lede { font-size: 15.5px; }
  .eyebrow { font-size: 12px; }
  .section { padding-block: 56px; }
  .btn { min-height: 46px; padding: 0 20px; font-size: 14.5px; }
  .btn-lg { min-height: 50px; padding: 0 22px; font-size: 15px; }

  .topbar { font-size: 13px; }
  .topbar .wrap { flex-wrap: nowrap; gap: 8px; min-height: 40px; }
  .tb-left { flex-wrap: nowrap; min-width: 0; }
  .tb-label { display: none; }
  .tb-short { display: inline; font-weight: 700; }
  .tb-right { gap: 6px; flex: none; }
  .langs { padding: 2px; }
  .langs a { padding: 3px 8px; font-size: 12.5px; }
  .theme-switch { padding: 2px; }
  .theme-switch button { width: 26px; height: 24px; }

  .heritage { font-size: 13px; gap: 8px; }
  .hr-text, :lang(ta) .hr-text, :lang(si) .hr-text { flex-direction: row; }
  .hr-legacy, .hr-dot { display: none; }
  .hr-orn svg { width: 15px; height: 15px; }
}
@media (max-width: 640px) {
  .topbar a b { white-space: nowrap; }
  .heritage { white-space: nowrap; }
  :lang(ta) .heritage, :lang(si) .heritage { white-space: normal; }
  .brand b { font-size: 17px; }
  .brand small { font-size: 11.5px; }
  .brand img { width: 38px; height: 38px; }
  .mbar a { min-height: 46px; font-size: 12px; text-align: center; line-height: 1.15; }
  .mbar svg { width: 18px; height: 18px; }
}
@media (max-width: 420px) {
  .topbar { font-size: 12.5px; }
  .topbar .wrap { gap: 6px; }
  .tb-short { display: none; }
  .langs a { padding: 3px 6px; font-size: 12px; }
  .theme-switch button { width: 22px; height: 22px; }
  .theme-switch svg { width: 14px; height: 14px; }
  .heritage { font-size: 12.5px; }
  .hr-orn { display: none; }
  html:not([lang="en"]) .brand b { font-size: 14px; line-height: 1.2; }
  html:not([lang="en"]) .brand small { font-size: 10.5px; line-height: 1.3; }
  html:not([lang="en"]) .brand img { width: 34px; height: 34px; }
}
@media (max-width: 380px) {
  .topbar { font-size: 12px; }
  .tb-left a > svg { display: none; }
  .langs a { padding: 3px 5px; }
  .theme-switch button { width: 21px; }
}

/* ISO 9001:2015 certificate: "View certificate" buttons and the book-opening dialog */
.iso-open { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: inherit; flex-wrap: wrap; }
.badges .iso-open { gap: 12px; border-radius: 999px; }
.iso-cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: linear-gradient(135deg, #7d1230, #a8204a); color: #fbe7b8; font-size: 12.5px; font-weight: 700; box-shadow: 0 6px 14px -6px rgba(125, 18, 48, .7); transition: transform .2s ease; }
.iso-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.iso-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 236, 190, .55) 50%, transparent 70%); transform: translateX(-120%); animation: iso-glint 3.6s ease-in-out 1.2s infinite; }
.iso-open:hover .iso-cta, .iso-open:focus-visible .iso-cta { transform: translateY(-1px) scale(1.04); }
.iso-open:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.badges .iso-open img { transition: transform .5s cubic-bezier(.2, .8, .2, 1.2); }
.iso-open:hover img { transform: rotate(-14deg) scale(1.08); }
@keyframes iso-glint { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@media (max-width: 640px) { .badges .iso-open { gap: 8px; } .iso-cta { padding: 3px 9px; font-size: 11.5px; } .iso-cta svg { width: 13px; height: 13px; } }
.ft-iso { color: inherit; font: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.ft-iso:hover { color: #fbe7b8; text-decoration-color: currentColor; }

.iso-modal { --sp: .8; --bh: min(58vh, 520px, calc((100vw - 64px) * 1.42)); --bw: calc(var(--bh) * .704); width: min(980px, calc(100vw - 20px)); max-height: calc(100vh - 20px); margin: auto; padding: 0; border: 0; border-radius: 24px; color: #f4ecdf; background: radial-gradient(120% 90% at 30% 20%, #2b2f4a 0%, #161a2c 55%, #0e1120 100%); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .7); display: none; overflow: auto; }
.iso-modal[open] { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; animation: iso-pop .35s cubic-bezier(.2, .8, .2, 1); }
.iso-modal::backdrop { background: rgba(8, 12, 24, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes iso-pop { from { opacity: 0; transform: scale(.96); } }
.iso-modal > form { position: absolute; top: 0; right: 0; z-index: 3; margin: 0; }
.iso-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.iso-x:hover { background: rgba(255, 255, 255, .2); }
.iso-x svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.iso-stage { position: relative; height: calc(var(--bh) + 80px); display: grid; place-items: center; perspective: 1800px; overflow: hidden; }
.iso-stage::before { content: ""; position: absolute; width: calc(var(--bw) * 1.8); height: calc(var(--bw) * 1.8); border-radius: 50%; background: radial-gradient(circle, rgba(232, 190, 110, .28), transparent 65%); opacity: 0; }
.iso-book { position: relative; width: var(--bw); height: var(--bh); transform-style: preserve-3d; }
.iso-page, .iso-cover, .iso-front, .iso-back { position: absolute; inset: 0; border-radius: 4px 10px 10px 4px; }
.iso-page { overflow: hidden; background: #fff; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .8), 0 0 0 6px #23232b; }
.iso-page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iso-shine { position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 35%, rgba(255, 244, 214, .75) 48%, rgba(255, 255, 255, .0) 60%); transform: translateX(-110%); mix-blend-mode: soft-light; pointer-events: none; }
.iso-cover { transform-origin: left center; transform-style: preserve-3d; }
.iso-front, .iso-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.iso-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; color: #e9c77b; font-family: "DM Serif Display", Georgia, serif; background: linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 40%), repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 6px), linear-gradient(160deg, #a51d45, #7a1030 60%, #5e0b24); box-shadow: inset 0 0 0 calc(var(--bw) * .035) transparent, inset 0 0 0 calc(var(--bw) * .04) #c9a35a40, 0 30px 60px -18px rgba(0, 0, 0, .8); overflow: hidden; }
.iso-front::before { content: ""; position: absolute; inset: 6%; border: 1.5px solid #d9b56b; border-radius: 3px; box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px #d9b56b55; }
.iso-front::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(110deg, transparent 40%, rgba(255, 230, 170, .45) 50%, transparent 60%); transform: translateX(-80%); }
.iso-front img { width: 26%; height: auto; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 2px #d9b56b; margin-bottom: 8%; }
.iso-front b { font-size: calc(var(--bw) * .11); letter-spacing: .08em; font-weight: 400; line-height: 1; }
.iso-front small { font-size: calc(var(--bw) * .045); letter-spacing: .3em; }
.iso-front i { width: 30%; height: 1px; background: #d9b56b; margin: 9% 0 5%; }
.iso-front em { font-style: normal; font-size: calc(var(--bw) * .06); letter-spacing: .14em; text-transform: uppercase; }
.iso-front strong { font-weight: 400; font-size: calc(var(--bw) * .065); letter-spacing: .06em; }
.iso-front { transform: translateZ(1px); }
.iso-back { transform: rotateY(180deg) translateZ(1px); background: linear-gradient(90deg, #2c2530, #221d26); box-shadow: inset 0 0 0 calc(var(--bw) * .03) #2c2530, inset 0 0 0 calc(var(--bw) * .033) #6e5560; }
.iso-info { padding: 40px 36px 36px 8px; }
.iso-info h2 { margin: 0 0 10px; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.15; color: #fff; }
.iso-info p { margin: 0 0 18px; color: #c9cbe0; line-height: 1.6; }
.iso-info dl { margin: 0; display: grid; gap: 10px; }
.iso-info dl div { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(233, 199, 123, .18); }
.iso-info dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #e9c77b; font-weight: 700; }
.iso-info dd { margin: 2px 0 0; font-weight: 600; color: #fff; }
.iso-info > * { opacity: 0; transform: translateY(12px); }

/* The motion (one 3.9s timeline): book rises, gold glint on the cover, cover swings open
   (book shrinks a little so the open spread fits), cover slips away, certificate settles and shines */
.iso-modal.play .iso-book { animation: iso-book 3.9s both; }
.iso-modal.play .iso-stage { animation: iso-in .5s ease-out both; }
.iso-modal.play .iso-cover { animation: iso-cover 3.9s both; }
.iso-modal.play .iso-front { animation: iso-face-a 3.9s linear both; }
.iso-modal.play .iso-back { animation: iso-face-b 3.9s linear both; }
.iso-modal.play .iso-front::after { animation: iso-sweep 1s ease-in-out .55s both; }
.iso-modal.play .iso-shine { animation: iso-sweep 1.3s ease-in-out 3.2s both; }
.iso-modal.play .iso-stage::before { animation: iso-halo 1.6s ease-out 2.7s both; }
.iso-modal.play .iso-info > * { animation: iso-up .6s cubic-bezier(.2, .8, .2, 1) both; }
.iso-modal.play .iso-info > :nth-child(1) { animation-delay: .3s; }
.iso-modal.play .iso-info > :nth-child(2) { animation-delay: .45s; }
.iso-modal.play .iso-info > :nth-child(3) { animation-delay: .6s; }
.iso-modal.play .iso-info > :nth-child(4) { animation-delay: .75s; }
@keyframes iso-book {
  0% { transform: translateY(60px) rotateX(28deg) rotateZ(-4deg) scale(.88); animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  23% { transform: none; }
  28% { transform: none; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  66% { transform: translateX(calc(var(--bw) * .5 * var(--sp))) scale(var(--sp)); }
  71% { transform: translateX(calc(var(--bw) * .5 * var(--sp))) scale(var(--sp)); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  92%, 100% { transform: none; }
}
@keyframes iso-cover {
  0%, 28% { transform: none; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  66% { transform: rotateY(-168deg); }
  71% { transform: rotateY(-168deg); animation-timing-function: ease-in; }
  85%, 100% { transform: rotateY(-168deg) translateX(-40px); }
}
@keyframes iso-face-a { 0%, 47.4% { visibility: visible; } 47.5%, 100% { visibility: hidden; } }
@keyframes iso-face-b { 0%, 47.4% { visibility: hidden; } 47.5%, 71% { visibility: visible; opacity: 1; } 85%, 100% { visibility: visible; opacity: 0; } }
@keyframes iso-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes iso-sweep { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@keyframes iso-halo { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; } 100% { opacity: .6; transform: scale(1); } }
@keyframes iso-up { to { opacity: 1; transform: none; } }
/* End state (also what reduced-motion users get straight away) */
.iso-modal.done .iso-book { animation: none; }
.iso-modal.done .iso-cover { visibility: hidden; animation: none; }
.iso-modal.done .iso-stage::before { opacity: .6; animation: none; }
.iso-modal.done .iso-info > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .iso-cta::after { animation: none; } }
@media (max-width: 760px) {
  .iso-modal { --sp: .6; --bh: min(44vh, calc((100vw - 60px) * 1.42)); }
  .iso-modal[open] { grid-template-columns: 1fr; align-items: start; }
  .iso-stage { height: calc(var(--bh) + 48px); }
  .iso-info { padding: 4px 20px 24px; }
  .iso-info h2 { font-size: 24px; }
  .iso-info p { font-size: 14.5px; margin-bottom: 14px; }
  .iso-info dl { gap: 8px; margin-bottom: 16px; }
}

/* News & visits (Our Story page) */
.news-item { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding: clamp(16px, 2.4vw, 28px); border-radius: 24px; background: var(--surface, #fff); border: 1px solid var(--line); }
.gallery.news-photos { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); grid-auto-rows: 88px; gap: 8px; }
.news-photos figure { margin: 0; border-radius: 14px; overflow: hidden; }
.news-photos figure.lead { grid-column: 1 / -1; grid-row: span 4; }
.news-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.news-meta time { font-size: 13px; font-weight: 700; color: var(--muted); }
.news-text h3 { margin: 0 0 12px; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.2; color: var(--ink); }
.news-text p { margin: 0 0 12px; line-height: 1.65; }
.news-lh { font-weight: 700; color: var(--ink); }
.news-list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.news-list li { position: relative; padding-left: 22px; line-height: 1.5; }
.news-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--rose, #b3194c); }
@media (max-width: 900px) { .news-item { grid-template-columns: 1fr; } .gallery.news-photos { grid-auto-rows: 58px; gap: 6px; } .news-photos figure { border-radius: 10px; } }

/* News carousel: one featured story at a time, changes every 30 s. The box resizes to each story
   (no empty space); the story cards underneath slide so the current one stays in view. */
.news-car { margin-top: 34px; }
.news-slides { position: relative; transition: height .45s ease; }
.news-slide { position: absolute; top: 0; left: 0; right: 0; margin-top: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.news-slide.is-active { position: relative; opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease, visibility 0s; }
.news-slide .news-photos { align-self: stretch; grid-template-rows: minmax(0, 1fr) 96px; grid-auto-rows: 96px; min-height: 420px; }
.news-slide .news-photos figure.lead { grid-row: 1; }
.news-rail { position: relative; margin-top: 18px; }
.news-tabs { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px; }
.news-tabs::-webkit-scrollbar { display: none; }
.news-tab { position: relative; flex: 0 0 calc((100% - 3 * 16px) / 4); scroll-snap-align: start; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface, #fff); color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; font: inherit; transition: border-color .2s, box-shadow .2s, transform .25s; }
.news-tab:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.news-tab.is-active { border-color: var(--rose-d); box-shadow: 0 0 0 2px var(--rose-d); }
.nt-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.nt-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.news-tab:hover .nt-img img, .news-tab.is-active .nt-img img { transform: scale(1.05); }
.nt-txt { display: grid; gap: 4px; padding: 12px 14px 16px; }
.nt-txt small { font-size: 12px; font-weight: 700; color: var(--muted); }
.nt-txt b { font-size: 15px; line-height: 1.35; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--rose-d); transform: scaleX(0); transform-origin: left; }
.news-car.is-running .news-tab.is-active .nt-bar { animation: nt-progress var(--news-ms, 30000ms) linear forwards; }
.news-car.is-paused .news-tab.is-active .nt-bar { animation-play-state: paused; }
@keyframes nt-progress { to { transform: scaleX(1); } }
.news-arrow { position: absolute; top: calc(50% - 26px); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface, #fff); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); display: grid; place-items: center; padding-bottom: 3px; transition: transform .2s, background .2s; }
.news-arrow:hover { transform: scale(1.08); }
.news-arrow.prev { left: -18px; }
.news-arrow.next { right: -18px; }
@media (max-width: 1100px) { .news-tab { flex-basis: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 900px) { .news-slide .news-photos { min-height: 0; grid-template-rows: auto; } .news-slide .news-photos figure.lead { grid-row: span 4; } }
@media (max-width: 760px) { .news-tab { flex-basis: 70%; } .news-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .news-slide, .news-slide.is-active, .news-slides { transition: none; transform: none; } .news-tabs { scroll-behavior: auto; } }

/* Home page: latest news teaser */
.hn-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hn-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface, #fff); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.hn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.hn-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.hn-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.hn-card:hover .hn-img img { transform: scale(1.04); }
.hn-txt { display: grid; gap: 6px; padding: 16px 18px 18px; }
.hn-txt small { font-size: 12px; font-weight: 700; color: var(--muted); }
.hn-txt b { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 20px; line-height: 1.25; }
.hn-txt em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--rose-d); }
.hn-all { text-align: center; margin: 26px 0 0; }
@media (max-width: 900px) { .hn-grid { grid-template-columns: 1fr; } .hn-card { flex-direction: row; } .hn-img { flex: 0 0 38%; aspect-ratio: auto; min-height: 120px; } .hn-txt b { font-size: 17px; } }
