/* Vasudev Hospital – premium corporate layer (loads after site.css)
   Concept: a hospital-group style front door. Deep navy hero with the real building,
   a floating appointment console, mega-menu navigation, and the reception OPD board
   kept as the signature element. */
:root {
  --hero-a: #0b1452;
  --hero-b: #1c2b8f;
  --hero-ink: #f3f5ff;
  --hero-dim: #b7c0f2;
  --gold: #f2b733;
  --card-lift: 0 2px 4px rgba(15, 26, 70, .05), 0 18px 40px rgba(15, 26, 70, .10);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hero-a: #050a24; --hero-b: #111d63; --gold: #f5c45a; --card-lift: 0 2px 4px rgba(0,0,0,.3), 0 18px 40px rgba(0,0,0,.4); } }
:root[data-theme="dark"] { --hero-a: #050a24; --hero-b: #111d63; --gold: #f5c45a; --card-lift: 0 2px 4px rgba(0,0,0,.3), 0 18px 40px rgba(0,0,0,.4); }

/* ---------- header with mega menu ---------- */
.topbar .social { display: inline-flex; gap: .9rem; }
header.site { background: var(--surface); backdrop-filter: none; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(15, 26, 70, .05); border-bottom: 0; }
header.site .hdr { gap: 1.2rem; padding-block: .55rem; }
.brand img { width: 54px; height: 54px; }
.brand strong { font-size: 1.12rem; }
nav.main { margin-left: auto; gap: 0; align-items: stretch; }
.nav-item { position: relative; display: flex; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .9rem .75rem; background: none; border: 0; color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; border-radius: 0; position: relative; }
nav.main a.nav-link { padding: .9rem .75rem; border-radius: 0; }
.nav-link::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .35rem; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s ease; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-item:hover > .nav-link::after, .nav-item.open > .nav-link::after { transform: scaleX(1); }
nav.main a.nav-link:hover, nav.main a.nav-link[aria-current="page"] { background: none; color: var(--navy); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-item:hover .chev, .nav-item.open .chev { transform: rotate(180deg); }
.mega, .drop { position: absolute; top: 100%; z-index: 50; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--card-lift); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav-item:hover > .mega, .nav-item:hover > .drop, .nav-item:focus-within > .mega, .nav-item:focus-within > .drop, .nav-item.open > .mega, .nav-item.open > .drop { opacity: 1; visibility: visible; transform: none; }
.mega { left: -220px; width: min(860px, 92vw); padding: 1.2rem; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 1.2rem; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .2rem; }
.mega-grid a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .1rem .6rem; align-items: center; padding: .5rem .55rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.mega-grid a:hover, .mega-grid a:focus-visible { background: var(--tint); }
.mega-grid .mi { grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; background: var(--tint); color: var(--navy); display: grid; place-items: center; }
.mega-grid .mi svg { width: 20px; height: 20px; }
.mega-grid b { font-size: .93rem; font-weight: 600; line-height: 1.2; }
.mega-grid small { color: var(--muted); font-size: .8rem; line-height: 1.2; }
.mega-side { border-radius: 12px; padding: 1rem; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: var(--hero-ink); display: grid; gap: .6rem; align-content: start; }
.mega-side b { font-family: var(--font-display); font-size: 1.15rem; }
.mega-side p { color: var(--hero-dim); font-size: .9rem; }
.mega-side a.btn { background: #fff; color: #0b1452; justify-self: start; }
.drop { left: 0; min-width: 250px; padding: .5rem; display: grid; }
.drop a { display: flex; gap: .6rem; align-items: center; padding: .6rem .7rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.drop a svg { width: 18px; height: 18px; color: var(--navy); }
.drop a:hover { background: var(--tint); }
.hdr-cta { display: flex; align-items: center; gap: .8rem; }
.hdr-em { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.hdr-em small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1; }
.hdr-em b { font-family: var(--font-mono); font-size: 1rem; color: var(--red); }
.hdr-em .ring { width: 38px; height: 38px; border-radius: 50%; background: var(--red-soft); position: relative; flex: none; }
.hdr-em .ring::before { content: ""; position: absolute; inset: 9px; background: var(--red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h3.4l1.7 4.3-2.2 1.4a11 11 0 0 0 6.4 6.4l1.4-2.2L20 15.6V19a1.6 1.6 0 0 1-1.7 1.6A16.3 16.3 0 0 1 3.4 5.7 1.6 1.6 0 0 1 5 4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h3.4l1.7 4.3-2.2 1.4a11 11 0 0 0 6.4 6.4l1.4-2.2L20 15.6V19a1.6 1.6 0 0 1-1.7 1.6A16.3 16.3 0 0 1 3.4 5.7 1.6 1.6 0 0 1 5 4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.hdr-em .ring::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0% { opacity: .6; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.25); } }
.nav-link { white-space: nowrap; }
.marquee-track .dup { display: contents; }

/* Header fit: app.js measures the header and adds .compact whenever the full menu
   would not fit (any screen width, zoom level or font). Compact = ☰ menu. */
header.site .hdr { flex-wrap: nowrap; }
header.site .brand { flex: 0 1 auto; min-width: 0; }
header.site:not(.compact) .brand { flex-shrink: 0; }
header.site:not(.compact) .brand strong, header.site:not(.compact) .brand small { white-space: nowrap; }
header.site nav.main { flex: 0 0 auto; }
header.site .hdr-cta { flex: 0 0 auto; }
header.site:not(.compact) .menu-btn { display: none; }
header.site.wide-em .hdr-em { display: flex; }
header.site:not(.wide-em) .hdr-em { display: none; }
header.site.compact nav.main { display: none; margin-left: 0; }
header.site.compact .hdr-cta { margin-left: auto; }
header.site.compact .menu-btn { display: grid; margin-left: .6rem; position: relative; z-index: 41; flex: none; }
header.site.compact .brand strong { font-size: 1.02rem; line-height: 1.15; }
@media (max-width: 600px) { header.site.compact .hdr-cta { display: none; } header.site.compact .menu-btn { margin-left: auto; } }
@media (max-width: 420px) { header.site .brand small { display: none; } header.site .brand img { width: 44px; height: 44px; } }
header.site.compact nav.main.open { display: flex; position: fixed; inset: 0; flex-direction: column; align-items: stretch; gap: 0; padding: calc(env(safe-area-inset-top, 0px) + 84px) var(--gutter) 6rem; background: var(--surface); overflow-y: auto; z-index: 39; }
header.site.compact nav.main.open .nav-item { flex-direction: column; }
header.site.compact nav.main.open .nav-link, header.site.compact nav.main.open a.nav-link { width: 100%; justify-content: space-between; padding: 1rem .2rem; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
header.site.compact nav.main.open .nav-link::after { display: none; }
header.site.compact nav.main.open .mega, header.site.compact nav.main.open .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; width: auto; padding: .4rem 0; display: none; }
header.site.compact nav.main.open .nav-item.open > .mega, header.site.compact nav.main.open .nav-item.open > .drop { display: grid; }
header.site.compact nav.main.open .mega { grid-template-columns: 1fr; }
header.site.compact nav.main.open .mega-grid { grid-template-columns: 1fr; }
header.site.compact nav.main.open .mega-side { display: none; }
header.site.compact nav.main.open .nav-book { display: inline-flex; margin-top: 1.2rem; }
.nav-book { display: none; }

/* ---------- hero ---------- */
.p-hero { position: relative; overflow: hidden; color: var(--hero-ink); background:
  radial-gradient(900px 500px at 85% 10%, rgba(212, 42, 49, .22), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(120, 140, 255, .18), transparent 60%),
  linear-gradient(135deg, var(--hero-a), var(--hero-b)); padding-block: clamp(2.4rem, 5vw, 4.2rem) clamp(6.5rem, 10vw, 8rem); }
.p-hero::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M19 14h6v5h5v6h-5v5h-6v-5h-5v-6h5z' fill='%23fff'/%3E%3C/svg%3E"); pointer-events: none; }
.p-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.slides { position: relative; min-height: 340px; }
.slide { position: absolute; inset: 0; display: grid; gap: 1.1rem; align-content: center; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease, visibility .6s; }
.slide.on { opacity: 1; visibility: visible; transform: none; position: relative; }
.slide .kicker { display: inline-flex; align-items: center; gap: .5rem; width: fit-content; padding: .3rem .8rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: .88rem; font-weight: 600; color: var(--hero-ink); }
.slide .kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.slide h1 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.7rem); font-weight: 800; letter-spacing: -.02em; }
.slide h1 em { font-style: normal; color: var(--gold); }
.slide .hi-line { font-size: 1.2rem; font-weight: 600; color: #ffb3b6; }
.slide p.lead { color: var(--hero-dim); }
.slide .cta-row .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.slide .cta-row .btn-ghost:hover { border-color: #fff; }
.slide .cta-row .btn-white { background: #fff; color: #0b1452; }
.slide-ctrl { display: flex; align-items: center; gap: .6rem; margin-top: 1.3rem; }
.slide-ctrl .dots { display: flex; gap: .4rem; }
.slide-ctrl .dots button { width: 28px; height: 6px; border-radius: 99px; border: 0; background: rgba(255,255,255,.28); cursor: pointer; padding: 0; transition: background .2s, width .2s; }
.slide-ctrl .dots button[aria-current="true"] { background: var(--gold); width: 44px; }
.slide-ctrl .arr { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.slide-ctrl .arr svg { width: 18px; height: 18px; }
.slide-ctrl .arr.prev svg { transform: rotate(180deg); }

.collage { position: relative; aspect-ratio: 1 / 1.02; max-width: 520px; width: 100%; justify-self: end; }
.collage .main { position: absolute; inset: 0 12% 10% 0; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 4px solid rgba(255,255,255,.12); }
.collage .main img { width: 100%; height: 100%; object-fit: cover; }
.collage .thumb { position: absolute; width: 36%; aspect-ratio: 1.13; border-radius: 18px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 18px 40px rgba(0,0,0,.35); background: var(--tint); }
.collage .thumb img { width: 100%; height: 100%; object-fit: cover; }
.collage .t1 { right: 0; top: 14%; }
.collage .t2 { right: 6%; bottom: 0; }
.float-card { position: absolute; display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 16px 34px rgba(0,0,0,.28); font-size: .88rem; line-height: 1.25; max-width: 240px; animation: bob 5s ease-in-out infinite; }
.float-card b { display: block; font-size: .95rem; }
.float-card small { color: var(--muted); }
.float-card .fi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card .fi svg { width: 20px; height: 20px; }
.float-card.nabh { left: -6%; top: 8%; }
.float-card.nabh .fi { background: var(--ok-soft); color: var(--ok); }
.float-card.opd { left: 2%; bottom: 4%; animation-delay: -2.5s; }
.float-card.opd .fi { background: var(--red-soft); color: var(--red); }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (max-width: 960px) {
  .p-hero .wrap { grid-template-columns: 1fr; }
  .collage { justify-self: center; max-width: 440px; }
  .float-card.nabh { left: 0; }
  .slides { min-height: 0; }
}
@media (max-width: 560px) { .collage { display: none; } .p-hero { padding-bottom: 8.5rem; } }

/* appointment console overlapping hero */
.console-wrap { position: relative; z-index: 5; margin-top: -4.6rem; }
.console { background: var(--surface); border-radius: 20px; box-shadow: var(--card-lift); border: 1px solid var(--line); overflow: hidden; }
.console-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
.console-tabs button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1rem; border: 0; background: var(--paper); color: var(--muted); font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; }
.console-tabs button svg { width: 18px; height: 18px; }
.console-tabs button[aria-selected="true"] { background: var(--surface); color: var(--navy); border-bottom-color: var(--red); }
.console-body { padding: 1.1rem 1.2rem 1.3rem; }
.console-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .8rem; align-items: end; }
.console-form .field label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.console-form .btn { min-height: 48px; }
@media (max-width: 860px) { .console-form { grid-template-columns: 1fr 1fr; } .console-form .btn { grid-column: 1 / -1; } }
@media (max-width: 520px) { .console-form { grid-template-columns: 1fr; } .console-tabs button span { display: none; } }
.quick-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.quick-tiles a { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; background: var(--surface); text-decoration: none; color: var(--ink); transition: background .15s; }
.quick-tiles a:hover { background: var(--tint); }
.quick-tiles .qi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--navy); flex: none; }
.quick-tiles a.em .qi { background: var(--red); color: #fff; }
.quick-tiles .qi svg { width: 22px; height: 22px; }
.quick-tiles b { display: block; font-weight: 650; line-height: 1.2; }
.quick-tiles small { color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .quick-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .quick-tiles a { padding: .85rem; } .quick-tiles small { display: none; } }

/* counters */
.counters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.counter { text-align: center; padding: 1rem .5rem; display: grid; gap: .1rem; }
.counter b { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.counter b sup { font-size: .5em; color: var(--red); }
.counter span { color: var(--muted); font-size: .92rem; }
.counter + .counter { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .counter + .counter { border-left: 0; } .counter:last-child { grid-column: 1 / -1; } }

/* section heading style */
.s-title { display: grid; gap: .5rem; max-width: 720px; }
.s-title.center { margin-inline: auto; text-align: center; justify-items: center; }
.s-title .eyebrow { display: inline-flex; align-items: center; gap: .5rem; }
.s-title .eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); }
.s-title.center .eyebrow::after { content: ""; width: 22px; height: 2px; background: var(--red); }

/* centres of excellence */
.coe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.coe a { position: relative; min-height: 340px; border-radius: 20px; overflow: hidden; display: grid; align-content: end; padding: 1.2rem; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow); }
.coe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.coe a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 60, .05) 20%, rgba(8, 14, 60, .88) 75%); }
.coe a:hover img { transform: scale(1.06); }
.coe .ci { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); display: grid; place-items: center; margin-bottom: .8rem; }
.coe .ci svg { width: 26px; height: 26px; }
.coe h3 { color: #fff; font-size: 1.3rem; }
.coe p { color: rgba(255,255,255,.82); font-size: .93rem; margin-top: .35rem; }
.coe .more { margin-top: .8rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--gold); }
.coe .more svg { width: 16px; height: 16px; transition: transform .2s; }
.coe a:hover .more svg { transform: translateX(4px); }
@media (max-width: 1000px) { .coe { grid-template-columns: repeat(2, minmax(0, 1fr)); } .coe a { min-height: 260px; } }
@media (max-width: 520px) { .coe { grid-template-columns: 1fr; } }

/* split OPD + why */
.opd-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 1.2rem; align-items: stretch; }
.why { border-radius: 20px; padding: clamp(1.2rem, 3vw, 1.8rem); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 1rem; align-content: start; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.why-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: .8rem; }
.why-list .wi { width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--navy); display: grid; place-items: center; }
.why-list .wi svg { width: 22px; height: 22px; }
.why-list b { display: block; }
.why-list small { color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 960px) { .opd-split { grid-template-columns: 1fr; } }

/* doctor carousel */
.carousel { position: relative; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1rem) / 4); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .3rem .2rem 1rem; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .car-track { grid-auto-columns: calc((100% - 2 * 1rem) / 3); } }
@media (max-width: 800px) { .car-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (max-width: 520px) { .car-track { grid-auto-columns: 82%; } }
.car-nav { display: flex; gap: .5rem; }
.car-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.car-nav button:hover { border-color: var(--navy); }
.car-nav button svg { width: 20px; height: 20px; }
.car-nav .prev svg { transform: rotate(180deg); }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: box-shadow .2s, transform .2s; }
.dcard:hover { box-shadow: var(--card-lift); transform: translateY(-3px); }
.dcard .ph { aspect-ratio: 4 / 4.2; position: relative; overflow: hidden; background: linear-gradient(170deg, var(--tint), var(--surface)); }
.dcard .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.dcard .ph .pill { position: absolute; left: 10px; top: 10px; box-shadow: var(--shadow); }
.dcard .ph .mono-av { font-size: 3.4rem; }
.dcard .bd { padding: .95rem 1rem 1.1rem; display: grid; gap: .35rem; align-content: start; }
.dcard h3 { font-size: 1.1rem; }
.dcard h3 a { color: var(--ink); text-decoration: none; }
.dcard .des { color: var(--red); font-weight: 600; font-size: .9rem; line-height: 1.3; }
.dcard .qual { color: var(--muted); font-size: .86rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard .today { font-size: .85rem; color: var(--ink); display: flex; gap: .4rem; align-items: center; margin-top: .2rem; }
.dcard .today svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.dcard .today span { font-family: var(--font-mono); font-size: .8rem; }
.dcard .acts { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .5rem; }
.dcard .acts .btn { min-height: 40px; padding: .3rem .6rem; font-size: .9rem; }

/* bento facilities */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: .9rem; }
.bento figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--tint); }
.bento figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bento figure:hover img { transform: scale(1.05); }
.bento figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .75rem; border-radius: 12px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(6px); font-weight: 600; font-size: .92rem; }
.bento .big { grid-column: span 2; grid-row: span 2; }
.bento .tall { grid-row: span 2; }
.bento .text-tile { display: grid; align-content: center; gap: .6rem; padding: 1.3rem; background: linear-gradient(150deg, var(--hero-a), var(--hero-b)); color: var(--hero-ink); }
.bento .text-tile b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; }
.bento .text-tile p { color: var(--hero-dim); font-size: .92rem; }
.bento .text-tile a { color: var(--gold); font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; } }
@media (max-width: 480px) { .bento { grid-auto-rows: 150px; gap: .6rem; } .bento .big { grid-column: span 2; } }

/* insurance marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: .8rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ins-tile { display: grid; place-items: center; min-width: 170px; height: 78px; padding: .5rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.ins-tile b { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.1; }
.ins-tile small { color: var(--muted); font-size: .78rem; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } .marquee { mask-image: none; -webkit-mask-image: none; } .marquee-track .dup { display: none; } }

/* patient journey */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: j; }
.journey li { list-style: none; position: relative; padding: 1.3rem 1.1rem 1.2rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: .45rem; counter-increment: j; }
.journey li::before { content: "0" counter(j); font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: color-mix(in srgb, var(--navy) 20%, transparent); }
.journey li b { font-size: 1.08rem; }
.journey li p { color: var(--muted); font-size: .93rem; }
.journey li a { font-weight: 600; font-size: .92rem; }
@media (max-width: 900px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .journey { grid-template-columns: 1fr; } }
ol.journey { padding: 0; margin: 0; }

/* CTA banner */
.cta-banner { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.6rem); background: linear-gradient(120deg, #b3141b, var(--red)); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; }
.cta-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); }
.cta-banner h2 { color: #fff; }
.cta-banner p { opacity: .92; margin-top: .4rem; }
.cta-banner .nums { display: flex; flex-wrap: wrap; gap: .6rem; position: relative; z-index: 1; }
.cta-banner .btn { background: #fff; color: #b3141b; }
.cta-banner .btn.out { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
@media (max-width: 760px) { .cta-banner { grid-template-columns: 1fr; } }

/* ---------- inner page banner ---------- */
.page-hero { position: relative; overflow: hidden; color: var(--hero-ink); background: radial-gradient(700px 300px at 90% 0%, rgba(212, 42, 49, .25), transparent 60%), linear-gradient(135deg, var(--hero-a), var(--hero-b)); padding-block: clamp(2rem, 4vw, 3.2rem); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M19 14h6v5h5v6h-5v5h-6v-5h-5v-6h5z' fill='%23fff'/%3E%3C/svg%3E"); }
.page-hero .wrap { position: relative; display: grid; gap: .6rem; }
.page-hero .crumbs, .page-hero .crumbs a { color: var(--hero-dim); margin: 0; }
.page-hero h1 { color: #fff; }
.page-hero .sub { color: var(--hero-dim); max-width: 64ch; font-size: 1.08rem; }
.page-hero .hi { color: #ffb3b6; font-size: 1.15rem; font-weight: 600; }
.page-hero .cta-row { margin-top: .4rem; }
.page-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }

/* department detail with sidebar */
.with-side { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.side-list { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: .5rem; display: grid; max-height: calc(100vh - 120px); overflow-y: auto; }
.side-list h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .6rem .7rem .4rem; }
.side-list a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.side-list a svg { width: 18px; height: 18px; color: var(--navy); flex: none; }
.side-list a:hover { background: var(--tint); }
.side-list a[aria-current="page"] { background: var(--navy); color: var(--surface); }
.side-list a[aria-current="page"] svg { color: var(--surface); }
.side-select { display: none; }
@media (max-width: 900px) { .with-side { grid-template-columns: 1fr; } .side-list { display: none; } .side-select { display: grid; } }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; } }
.proc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.proc-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .65rem; align-items: center; padding: .65rem .8rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; }
.proc-list li span { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: var(--surface); display: grid; place-items: center; font-family: var(--font-mono); font-size: .78rem; }

/* doctor profile with booking panel */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.6rem; align-items: start; }
.doc-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.4rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem; }
.doc-head .ph { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--tint); }
.doc-head .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.doc-head .info { display: grid; gap: .55rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.book-panel { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--card-lift); }
.book-panel .bp-head { padding: 1rem 1.2rem; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; }
.book-panel .bp-head b { font-family: var(--font-display); font-size: 1.2rem; }
.book-panel .bp-head small { display: block; color: var(--hero-dim); }
.book-panel .bp-body { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .8rem; }
@media (max-width: 960px) { .doc-layout { grid-template-columns: 1fr; } .book-panel { position: static; } }
@media (max-width: 600px) { .doc-head { grid-template-columns: 1fr; } .doc-head .ph { max-width: 260px; } }

/* footer upgrade */
.foot-cta { background: var(--surface); border-top: 1px solid var(--line); }
.foot-cta .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-block: 1.4rem; }
.foot-cta a { display: flex; gap: .8rem; align-items: center; text-decoration: none; color: var(--ink); }
.foot-cta .fi { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--navy); display: grid; place-items: center; flex: none; }
.foot-cta .fi svg { width: 22px; height: 22px; }
.foot-cta b { display: block; }
.foot-cta small { color: var(--muted); }
@media (max-width: 760px) { .foot-cta .wrap { grid-template-columns: 1fr; } }
.foot-grid { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* mobile bottom dock */
.mob-dock { display: none; }
@media (max-width: 760px) {
  .mob-dock { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--surface); border-top: 1px solid var(--line); padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(15, 26, 70, .08); }
  .mob-dock a { display: grid; justify-items: center; gap: 2px; padding: .3rem; font-size: .75rem; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 10px; }
  .mob-dock a:first-child { color: var(--red); }
  .mob-dock .d-ic svg { width: 22px; height: 22px; }
  .mob-dock .dock-main { color: var(--navy); }
  body { padding-bottom: 68px; }
  .chat-launch { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .chat-nudge { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
}
.reveal { animation: rise .6s ease both; }
@keyframes rise { from { opacity: .001; transform: translateY(16px); } }
.foot-grid > div { min-width: 0; }
footer.site a, footer.site p { overflow-wrap: anywhere; }
footer.site { padding-top: 0; }
footer.site .foot-cta a { color: var(--ink); }
footer.site .foot-cta a:hover { text-decoration: none; }
footer.site .foot-cta a:hover b { color: var(--navy); }
.mega-grid .mi { align-self: center; }
@media (max-width: 760px) {
  .home-depts { display: none; }
  .coe a { min-height: 210px; }
  .counter { padding: .6rem .3rem; }
  .counter b { font-size: 1.9rem; }
}
.float-card, .float-card b, .float-card small { font-family: var(--font-body); }

/* ---------- full-width photo hero ---------- */
.p-hero.has-photo { background: var(--hero-a); min-height: min(720px, 86vh); display: grid; align-items: center; }
.p-hero.has-photo::before { display: none; }
.hero-bgs { position: absolute; inset: 0; z-index: 0; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 7s ease-out; }
.hero-bg.on { opacity: 1; transform: scale(1); }
.hero-bgs::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(8, 13, 52, .92) 0%, rgba(8, 13, 52, .78) 42%, rgba(8, 13, 52, .35) 75%, rgba(8, 13, 52, .55) 100%),
  linear-gradient(0deg, rgba(8, 13, 52, .7) 0%, transparent 35%); }
.p-hero.has-photo .wrap { z-index: 1; width: 100%; grid-template-columns: minmax(0, 1.15fr) minmax(0, 360px); justify-content: space-between; }
.slide .h1like { font-family: var(--font-display); font-size: clamp(2.2rem, 4.8vw, 3.7rem); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
.slide .h1like em { font-style: normal; color: var(--gold); }
.slide p.lead { color: #d6dcff; max-width: 54ch; }
.slide h1, .slide .h1like, .slide .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.glass { justify-self: end; width: 100%; display: grid; gap: .55rem; padding: 1rem; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); color: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.g-eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding: .1rem .3rem .2rem; }
.g-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .6rem .65rem; border-radius: 14px; background: rgba(255, 255, 255, .92); color: #0f1a46; text-decoration: none; transition: transform .15s; }
a.g-row:hover { transform: translateX(3px); }
.g-row b { display: block; font-size: .95rem; line-height: 1.2; }
.g-row small { display: block; color: #56618a; font-size: .8rem; line-height: 1.25; }
.g-row .gi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #e9f0fa; color: #1c2b8f; overflow: hidden; font-weight: 700; }
.g-row .gi svg { width: 21px; height: 21px; }
.g-row .gi.av img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.g-row.em { background: #d42a31; color: #fff; }
.g-row.em small { color: rgba(255, 255, 255, .85); }
.g-row.em .gi { background: rgba(255, 255, 255, .18); color: #fff; }
.g-row .gi.ok { background: #e3f5ec; color: #11834f; }
.g-row .pill { font-size: .72rem; }
.g-row .pill.open { background: #e3f5ec; color: #11834f; }
.g-row .pill.later { background: #fbf1dc; color: #9a6400; }
.g-row .pill.done, .g-row .pill.off, .g-row .pill.call { background: #e9f0fa; color: #56618a; }
.g-link { display: inline-flex; align-items: center; gap: .35rem; justify-self: end; color: #fff; font-weight: 600; font-size: .92rem; padding: .2rem .3rem; text-decoration: none; }
.g-link svg { width: 16px; height: 16px; }
@media (max-width: 960px) {
  .p-hero.has-photo { min-height: 0; }
  .p-hero.has-photo .wrap { grid-template-columns: 1fr; }
  .glass { justify-self: stretch; max-width: 520px; }
  .hero-bgs::after { background: linear-gradient(180deg, rgba(8, 13, 52, .72) 0%, rgba(8, 13, 52, .9) 60%, rgba(8, 13, 52, .95) 100%); }
}
@media (max-width: 560px) { .glass .g-row:nth-of-type(n+3) { display: none; } .glass .g-link { justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .hero-bg { transition: opacity .3s; transform: none; } }

/* gallery tiles open the lightbox */
.g-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-open:hover img, .g-open:focus-visible img { transform: scale(1.05); }
.bento figure .g-open { position: absolute; inset: 0; }

/* masonry gallery */
.masonry { columns: 3 300px; column-gap: 1rem; }
.m-item { break-inside: avoid; margin: 0 0 1rem; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.m-item .g-open { aspect-ratio: 3 / 2; overflow: hidden; }
.m-item:nth-child(3n+2) .g-open { aspect-ratio: 4 / 3.2; }
.m-item figcaption { padding: .7rem .9rem .8rem; display: grid; gap: .1rem; }
.m-item figcaption small { color: var(--muted); }
.filters .chip .mono { font-size: .78rem; opacity: .7; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: .5rem; padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px); background: rgba(4, 7, 28, .94); }
.lightbox figure { margin: 0; display: grid; gap: .7rem; justify-items: center; max-height: 100%; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 12px; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #fff; display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; justify-content: center; }
.lightbox figcaption .mono { color: #9aa6e6; font-size: .85rem; }
.lb-nav, .lb-x { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-nav svg, .lb-x svg { width: 22px; height: 22px; }
.lb-nav.prev svg { transform: rotate(180deg); }
.lb-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); right: 16px; z-index: 2; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 1fr; } .lb-nav { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); } .lb-nav.prev { left: 24px; } .lb-nav.next { right: 24px; } }
header.site:not(.compact) nav.main a.nav-link, header.site:not(.compact) .nav-link { padding-inline: .6rem; }
header.site:not(.compact) .nav-link::after { left: .6rem; right: .6rem; }
header.site .hdr { gap: .9rem; }
@media (max-width: 760px) {
  body .chat-launch { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body .chat-nudge { bottom: calc(152px + env(safe-area-inset-bottom, 0px)); }
  .bento .big { grid-row: span 1; }
}

/* flagship (no-photo) centre card */
.coe-feature { position: relative; min-height: 340px; border-radius: 20px; overflow: hidden; display: grid; align-content: end; gap: .35rem; padding: 1.2rem; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow);
  background: radial-gradient(420px 260px at 100% 0%, rgba(212, 42, 49, .45), transparent 65%), linear-gradient(160deg, var(--hero-b), var(--hero-a)); }
.coe-feature::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; border: 34px solid rgba(255, 255, 255, .06); z-index: -1; }
.coe-feature .ci { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; margin-bottom: .5rem; }
.coe-feature .ci svg { width: 26px; height: 26px; }
.coe-feature .tag { width: fit-content; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0b1452; background: var(--gold); border-radius: 999px; padding: .15rem .6rem; }
.coe-feature h3 { color: #fff; font-size: 1.3rem; }
.coe-feature p { color: #ffb3b6; font-weight: 600; }
.coe-feature ul { margin: .3rem 0 0; padding-left: 1.1rem; color: rgba(255, 255, 255, .85); font-size: .92rem; display: grid; gap: .15rem; }
.coe-feature .more { margin-top: .6rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--gold); }
.coe-feature .more svg { width: 16px; height: 16px; transition: transform .2s; }
.coe-feature:hover .more svg { transform: translateX(4px); }
@media (max-width: 1000px) { .coe-feature { min-height: 260px; } }
.hero-media .photo.wide { aspect-ratio: 3 / 2; }
.hero-media .photo.wide img { object-position: center 60%; }

/* phones: show hero photos as a clear banner above the text instead of behind it */
@media (max-width: 760px) {
  .p-hero.has-photo { display: block; padding-top: 0 !important; padding-bottom: 7.5rem; }
  .p-hero.has-photo .hero-bgs { position: relative; inset: auto; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; }
  .p-hero.has-photo .hero-bgs::after { background: linear-gradient(180deg, transparent 55%, var(--hero-a) 100%); }
  .p-hero.has-photo .wrap { padding-top: .4rem; }
  .p-hero.has-photo .slide .kicker { margin-top: -.2rem; }
}
/* facility cards: sized so the smaller brochure photos are never stretched */
.fac-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
@media (max-width: 560px) { .fac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } .fac .bd { padding: .7rem .75rem .8rem; } .fac h3 { font-size: 1rem; } .fac p { font-size: .88rem; } }
header.site .wrap.hdr, .topbar .wrap { max-width: 1440px; }
.hero-bg { background-image: var(--bg-d); }
@media (max-width: 760px) { .hero-bg { background-image: var(--bg-m); } }
.fac-grp { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--red); }
.fac .fac-ph { display: grid; place-items: center; color: var(--navy); }
.fac .fac-ph svg { width: 44px; height: 44px; opacity: .55; }
