/* ==========================================================================
   Medico Roots Hospital & Lab — main stylesheet
   ========================================================================== */
:root {
  --navy: #0a2a55;
  --blue: #1361c4;
  --blue-600: #0f52a8;
  --blue-50: #eef5fe;
  --blue-100: #dbe9fc;
  --red: #c8102e;
  --red-50: #fdecef;
  --green: #17733a;
  --green-50: #e8f6ed;
  --orange: #f05a1a;
  --amber: #f5a524;
  --ink: #0f1b2d;
  --body: #34445a;
  --muted: #526075;
  --line: #e3e9f1;
  --soft: #f5f8fc;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .04);
  --shadow: 0 10px 30px -12px rgba(10, 42, 85, .22);
  --shadow-lg: 0 30px 60px -20px rgba(10, 42, 85, .35);
  --max: 1200px;
  --header-h: 76px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--body); background: var(--white); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(19, 97, 196, .45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-sm { padding: clamp(40px, 6vw, 70px) 0; }
.bg-soft { background: var(--soft); }
.bg-navy { background: radial-gradient(1200px 500px at 85% -10%, #1b4f9c 0, transparent 60%), var(--navy); color: #c9d6ea; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: var(--blue-50); padding: 6px 12px; border-radius: 99px; margin-bottom: 14px; }
.eyebrow.red { color: var(--red); background: var(--red-50); }
.eyebrow.green { color: var(--green); background: var(--green-50); }
.bg-navy .eyebrow { background: rgba(255, 255, 255, .1); color: #9cc3ff; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-inline: auto; }
.section-head { margin-bottom: 44px; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s; white-space: nowrap; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(19, 97, 196, .7); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(200, 16, 46, .6); }
.btn-red:hover { background: #a90d26; color: #fff; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .7); }
.btn-wa:hover { background: #1ebe5a; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: #c9d6ea; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #e6eefa; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; opacity: .85; }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.open-pill { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; display: inline-block; flex: none; }
.dot.on { background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@media (max-width: 860px) { .topbar .hide-m { display: none !important; } }

.header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10, 42, 85, .5); }
.header .container { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 50px; width: auto; }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav > ul > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .93rem; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--blue-50); color: var(--blue); }
.nav-link.active { color: var(--blue); }
.nav-link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .18s ease; list-style: none; margin: 0; }
.dropdown.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); align-items: flex-start; }
.dropdown a:hover { background: var(--soft); }
.dropdown .di { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.dropdown .di svg { width: 18px; height: 18px; }
.dropdown strong { display: block; font-size: .92rem; font-weight: 700; }
.dropdown small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: .15s; }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-btn svg { width: 20px; height: 20px; }
.kbd { font-size: .72rem; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); background: var(--soft); }
.menu-btn { display: none; }
@media (max-width: 1140px) {
  .nav, .header-actions .hide-t { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 520px) { .brand img { height: 42px; } .header-actions .hide-s { display: none; } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(10, 23, 45, .5); opacity: 0; transition: .25s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 88vw); background: #fff; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 40px; }
.drawer-body { overflow: auto; padding: 10px 12px 24px; flex: 1; }
.drawer-body details { border-bottom: 1px solid var(--line); }
.drawer-body summary { list-style: none; cursor: pointer; padding: 14px 8px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; }
.drawer-body summary::-webkit-details-marker { display: none; }
.drawer-body summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.drawer-body details[open] summary::after { content: "–"; }
.drawer-body details a, .drawer-body > a { display: block; padding: 10px 8px; color: var(--body); }
.drawer-body details a { padding-left: 18px; }
.drawer-body > a { font-weight: 700; color: var(--ink); padding: 14px 8px; border-bottom: 1px solid var(--line); }
.drawer-foot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f3f8ff 0%, #fff 100%); padding: clamp(48px, 7vw, 90px) 0 clamp(60px, 8vw, 100px); }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px; background: radial-gradient(circle, rgba(19, 97, 196, .14), transparent 65%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -260px; background: radial-gradient(circle, rgba(35, 148, 74, .12), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 span { background: linear-gradient(90deg, var(--red), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-visual { position: relative; }
.hero-img { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; background: var(--blue-100); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.float-card { position: absolute; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-size: .88rem; animation: floaty 6s ease-in-out infinite; }
.float-card b { display: block; color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
.float-card .fi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .fi svg { width: 22px; height: 22px; }
.fc-1 { left: -28px; bottom: 34px; }
.fc-2 { right: -18px; top: 28px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .fc-1 { left: 10px; } .fc-2 { right: 10px; } }

/* Smart search */
.smart-search { position: relative; max-width: 620px; }
.search-box { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(19, 97, 196, .12), var(--shadow); }
.search-box > svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search-box input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 1rem; padding: 10px 0; background: transparent; }
.search-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: .85rem; color: var(--muted); align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--body); font-size: .84rem; font-weight: 600; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip svg { width: 14px; height: 14px; }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); max-height: 420px; overflow: auto; z-index: 30; padding: 6px; display: none; }
.results.show { display: block; }
.res-group { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); padding: 10px 12px 4px; }
.res-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); cursor: pointer; }
.res-item:hover, .res-item.sel { background: var(--blue-50); }
.res-item .ri { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--soft); color: var(--blue); flex: none; }
.res-item .ri svg { width: 17px; height: 17px; }
.res-item .rt { flex: 1; min-width: 0; }
.res-item .rt b { display: block; font-weight: 600; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-item .rt small { color: var(--muted); font-size: .8rem; }
.res-item .rp { font-weight: 700; color: var(--green); font-size: .9rem; white-space: nowrap; }
.res-empty { padding: 22px; text-align: center; color: var(--muted); font-size: .92rem; }
mark { background: #fff3b0; color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Quick services ---------- */
.quick { margin-top: -50px; position: relative; z-index: 5; }
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.quick-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); color: var(--ink); }
.quick-card .qi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.quick-card .qi svg { width: 24px; height: 24px; }
.quick-card b { font-size: 1rem; }
.quick-card small { color: var(--muted); font-size: .84rem; line-height: 1.45; }
@media (max-width: 1040px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } .quick { margin-top: -36px; } }
.t-blue { background: var(--blue-50); color: var(--blue); }
.t-red { background: var(--red-50); color: var(--red); }
.t-green { background: var(--green-50); color: var(--green); }
.t-orange { background: #fff1e8; color: var(--orange); }
.t-violet { background: #f1edff; color: #6d4bd8; }
.t-teal { background: #e6f7f8; color: #0f8b95; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card .ci { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.card .ci svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card h3 { margin-bottom: 8px; }
.img-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.img-card .ic-img { aspect-ratio: 16/9; overflow: hidden; background: var(--soft); }
.img-card .ic-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.img-card:hover .ic-img img { transform: scale(1.05); }
.img-card .ic-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

/* Split / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev > :first-child { order: 0; } }
.founder-visual { position: relative; max-width: 460px; margin-inline: auto; }
.founder-visual .ring { aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 200deg, var(--red), var(--orange), var(--green), var(--blue), var(--red)); padding: 8px; }
.founder-visual .ring > div { background: #fff; border-radius: 50%; width: 100%; height: 100%; overflow: hidden; display: grid; place-items: end center; }
.founder-visual img { width: 92%; }
.founder-badge { position: absolute; bottom: 8%; right: -4%; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); }
.founder-badge b { display: block; color: var(--ink); }
.founder-badge small { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }
.checks.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .checks.two { grid-template-columns: 1fr; } }
blockquote.quote { margin: 0 0 22px; padding: 20px 22px; border-left: 4px solid var(--red); background: var(--red-50); border-radius: 0 14px 14px 0; color: var(--ink); font-size: 1.05rem; font-style: italic; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 28px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .95rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Highlight banners */
.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo-card { position: relative; overflow: hidden; border-radius: 24px; padding: 34px; color: #fff; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.promo-card h3 { color: #fff; font-size: 1.6rem; }
.promo-card p { color: rgba(255, 255, 255, .85); }
.promo-card .big { font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.promo-card::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -80px; top: -80px; background: rgba(255, 255, 255, .1); }
.pc-red { background: linear-gradient(135deg, #c8102e, #f05a1a); }
.pc-blue { background: linear-gradient(135deg, #0a2a55, #1361c4); }
.pc-green { background: linear-gradient(135deg, #136c35, #23944a); }
@media (max-width: 800px) { .promo { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 20px; scrollbar-width: thin; }
.review { scroll-snap-align: start; flex: 0 0 min(360px, 85%); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.stars { color: var(--amber); display: flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; }
.review p { margin: 0; color: var(--body); flex: 1; }
.reviewer { display: flex; align-items: center; gap: 10px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; font-size: .95rem; }
.reviewer b { display: block; color: var(--ink); font-size: .95rem; }
.reviewer small { color: var(--muted); font-size: .8rem; }
.carousel-nav { display: flex; gap: 8px; }

/* Partners strip */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 600; font-size: .88rem; color: var(--ink); }
.logo-tile img { height: 80px; width: auto; object-fit: contain; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* CTA band */
.cta-band { border-radius: 28px; padding: clamp(32px, 5vw, 56px); background: linear-gradient(120deg, var(--navy), var(--blue)); color: #d7e5fb; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .07); }

/* ---------- Page hero ---------- */
.page-hero { background: radial-gradient(900px 400px at 90% 0, rgba(19, 97, 196, .35), transparent 60%), radial-gradient(600px 300px at 0 100%, rgba(35, 148, 74, .25), transparent 60%), var(--navy); color: #c9d6ea; padding: clamp(50px, 7vw, 86px) 0 clamp(46px, 6vw, 74px); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero .lead { color: #b7c8e2; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; margin-bottom: 14px; color: #9db2d2; flex-wrap: wrap; }
.crumbs a { color: #d7e5fb; }
.page-hero .eyebrow { background: rgba(255, 255, 255, .1); color: #9cc3ff; }

/* ---------- Filters / toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.toolbar .search-box { box-shadow: none; flex: 1 1 280px; padding: 2px 6px 2px 14px; border-radius: 12px; }
.toolbar .search-box input { padding: 9px 0; }
.select { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 38px 11px 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; font-weight: 600; font-size: .92rem; cursor: pointer; min-width: 150px; }
.select:focus { border-color: var(--blue); outline: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .92rem; user-select: none; }
.toggle input { position: absolute; opacity: 0; }
.toggle .sw { width: 42px; height: 24px; border-radius: 99px; background: #cbd5e1; position: relative; transition: .2s; flex: none; }
.toggle .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.toggle input:checked + .sw { background: var(--green); }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.toggle input:focus-visible + .sw { outline: 3px solid rgba(19, 97, 196, .45); outline-offset: 2px; }
.result-count { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }

/* Day tabs */
.daytabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.daytab { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 14px; font-weight: 700; font-size: .86rem; cursor: pointer; text-align: center; color: var(--body); }
.daytab small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.daytab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.daytab.active small { color: #b7c8e2; }

/* ---------- Doctor cards ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: .2s; box-shadow: var(--shadow-sm); }
.doc:hover { box-shadow: var(--shadow); border-color: var(--blue-100); }
.doc-top { display: flex; gap: 14px; align-items: center; }
.doc-av { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.doc-av svg { width: 28px; height: 28px; }
.doc-top b { display: block; color: var(--ink); font-size: 1.02rem; line-height: 1.3; }
.doc-top small { color: var(--muted); font-weight: 600; font-size: .85rem; }
.doc-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700; background: var(--soft); color: var(--body); }
.badge svg { width: 13px; height: 13px; }
.badge.live { background: var(--green-50); color: var(--green); }
.badge.today { background: var(--blue-50); color: var(--blue); }
.badge.red { background: var(--red-50); color: var(--red); }
.slots { display: grid; gap: 6px; font-size: .87rem; background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.slots div { display: flex; justify-content: space-between; gap: 10px; }
.slots span:first-child { font-weight: 700; color: var(--ink); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week i { font-style: normal; text-align: center; font-size: .7rem; font-weight: 700; padding: 5px 0; border-radius: 6px; background: var(--soft); color: #a3b0c2; }
.week i.on { background: var(--blue-50); color: var(--blue); }
.week i.now { outline: 2px solid var(--blue); outline-offset: -2px; }
.doc .btn { margin-top: auto; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty svg { width: 42px; height: 42px; margin: 0 auto 10px; color: #a3b0c2; }

/* ---------- Branch cards ---------- */
.branch { display: flex; flex-direction: column; gap: 14px; }
.branch-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.branch-head h3 { margin: 0; }
.branch .addr { display: flex; gap: 10px; color: var(--muted); font-size: .94rem; }
.branch .addr svg { width: 18px; height: 18px; flex: none; color: var(--red); margin-top: 3px; }
.branch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.branch-actions .wide { grid-column: 1/-1; }
.mini-stats { display: flex; gap: 16px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.mini-stats b { color: var(--ink); }

/* ---------- Lab tests ---------- */
.lab-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .lab-layout { grid-template-columns: 1fr; } }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.tests { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tests th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--soft); padding: 12px 14px; font-weight: 700; white-space: nowrap; }
.tests th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.tests th button:focus-visible { outline: 2px solid var(--blue); border-radius: 4px; }
.tests td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tests tr:hover td { background: #fafcff; }
.tests .tn { font-weight: 600; color: var(--ink); }
.tests .tn small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.tests .tp { font-weight: 800; color: var(--ink); white-space: nowrap; }
.tests .tt { white-space: nowrap; color: var(--muted); font-size: .85rem; }
.add-btn { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--blue); transition: .15s; }
.add-btn:hover { border-color: var(--blue); }
.add-btn.added { background: var(--green); border-color: var(--green); color: #fff; }
.add-btn svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .tests thead { display: none; }
  .tests, .tests tbody, .tests tr, .tests td { display: block; width: 100%; }
  .tests tr { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: center; }
  .tests td { border: 0; padding: 0; }
  .tests td.hide-m { display: none; }
}
.more-row { padding: 16px; text-align: center; border-top: 1px solid var(--line); }
.basket { position: sticky; top: calc(var(--header-h) + 16px); }
.basket-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.basket-list li { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; align-items: center; padding: 8px 10px; background: var(--soft); border-radius: 10px; }
.basket-list li button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 2px; display: grid; }
.basket-list li button:hover { color: var(--red); }
.basket-list li button svg { width: 16px; height: 16px; }
.basket-total { display: flex; justify-content: space-between; font-weight: 800; color: var(--ink); font-size: 1.15rem; padding: 12px 0; border-top: 1px dashed var(--line); }
.basket-empty { color: var(--muted); font-size: .9rem; padding: 18px 0; text-align: center; }
.basket-mobile { display: none; }
@media (max-width: 1000px) {
  .basket { position: static; }
  .basket-mobile { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; background: var(--navy); color: #fff; border-radius: 16px; padding: 12px 14px 12px 18px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-lg); transform: translateY(150%); transition: .3s; }
  .basket-mobile.show { transform: none; }
  .basket-mobile b { color: #fff; }
}

/* ---------- Packages ---------- */
.pkg { position: relative; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.pkg .off { position: absolute; top: 18px; right: -34px; transform: rotate(40deg); background: var(--red); color: #fff; font-weight: 800; font-size: .75rem; padding: 4px 40px; letter-spacing: .05em; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price b { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price s { color: var(--muted); font-size: 1rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--soft); color: var(--body); }
.pkg .btn { margin-top: auto; }
table.plain { width: 100%; border-collapse: collapse; font-size: .95rem; }
.plain th, .plain td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.plain th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--soft); }
.plain td:nth-child(2) { color: var(--muted); text-decoration: line-through; }
.plain td:nth-child(3) { font-weight: 800; color: var(--green); }

/* Camps */
.camp-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; border: 1px solid var(--line); }
.camp-hero .ch-main { padding: clamp(26px, 4vw, 44px); }
.camp-hero .ch-side { background: linear-gradient(160deg, var(--red), var(--orange)); color: #fff; padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.camp-hero .ch-side h3 { color: #fff; }
.ch-side .now { font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ch-side s { opacity: .8; }
@media (max-width: 860px) { .camp-hero { grid-template-columns: 1fr; } }
.schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.sched { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.sched.next { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-50); }
.sched .date { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.sched .date sup { font-size: .9rem; }
.countdown { display: flex; gap: 10px; margin-top: 8px; }
.countdown div { background: rgba(255, 255, 255, .16); border-radius: 12px; padding: 10px 12px; text-align: center; min-width: 64px; }
.countdown b { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.countdown small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }

/* ---------- Team ---------- */
.team-card { text-align: center; padding: 0; overflow: hidden; }
.team-card .tc-img { aspect-ratio: 1; background: linear-gradient(180deg, var(--blue-50), #fff); overflow: hidden; }
.team-card .tc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.team-card:hover .tc-img img { transform: scale(1.05); }
.team-card .tc-body { padding: 18px; }
.team-card b { display: block; color: var(--ink); font-size: 1.02rem; }
.team-card small { color: var(--muted); font-weight: 600; }
.founder { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; padding: 34px; }
.founder + .founder { margin-top: 24px; }
.founder .f-img { border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, var(--blue-50), #fff); position: sticky; top: calc(var(--header-h) + 20px); }
.founder .f-role { color: var(--red); font-weight: 700; font-size: .9rem; margin-bottom: 16px; display: block; }
.founder p { color: var(--body); }
@media (max-width: 800px) { .founder { grid-template-columns: 1fr; padding: 22px; gap: 22px; } .founder .f-img { position: static; max-width: 260px; } }

/* ---------- Products ---------- */
.product .ic-img { aspect-ratio: 1; }
.product .ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #e8f6ed, #fff7e6); color: var(--green); text-align: center; }
.product .ph svg { width: 64px; height: 64px; }
.product .pp { font-weight: 800; color: var(--green); font-size: .95rem; margin: 6px 0 10px; }
.product .ic-body p { margin-bottom: 14px; }
.product .btn { margin-top: auto; }

/* ---------- Gallery ---------- */
.masonry { columns: 3 280px; column-gap: 16px; }
.masonry button { all: unset; display: block; margin-bottom: 16px; border-radius: 16px; overflow: hidden; cursor: zoom-in; break-inside: avoid; position: relative; box-shadow: var(--shadow-sm); }
.masonry button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.masonry img { width: 100%; transition: transform .5s; }
.masonry button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(5, 12, 25, .92); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 0; color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #cbd5e1; font-size: .9rem; }
@media (max-width: 640px) { .lightbox { padding: 60px 10px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .86rem; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--red); }
.input, .textarea, .form .select { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; transition: border-color .15s, box-shadow .15s; font-size: .96rem; }
.form .select { padding-right: 38px; font-weight: 500; }
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .textarea:focus, .form .select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(19, 97, 196, .12); }
.input.invalid, .textarea.invalid, .select.invalid { border-color: var(--red); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 600; font-size: .88rem; }
.seg input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.seg input:focus-visible + span { outline: 3px solid rgba(19, 97, 196, .45); }
.contact-tiles { display: grid; gap: 14px; }
.contact-tile { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); transition: .15s; }
.contact-tile:hover { border-color: var(--blue); color: var(--ink); }
.contact-tile .ci { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.contact-tile .ci svg { width: 22px; height: 22px; }
.contact-tile small { display: block; color: var(--muted); font-size: .8rem; }
.contact-tile b { font-weight: 700; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(10, 23, 45, .55); backdrop-filter: blur(3px); animation: fade .2s; }
.modal-card { position: relative; background: #fff; border-radius: 22px; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal-head { padding: 22px 24px 0; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.modal-head h3 { margin: 0; font-size: 1.35rem; }
.modal-head p { color: var(--muted); margin: 4px 0 0; font-size: .92rem; }
.modal-body { padding: 20px 24px 24px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* Command palette */
.palette .modal-card { width: min(640px, 100%); align-self: flex-start; margin-top: 8vh; }
.palette .search-box { box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 18px; }
.palette .p-results { max-height: 60vh; overflow: auto; padding: 6px; }
.palette .p-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: #071d3b; color: #9fb2cf; padding: 70px 0 0; font-size: .93rem; }
.footer h4, .footer .foot-h { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: 0; }
.footer a { color: #c9d6ea; }
.footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { height: 56px; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 16px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-contact { display: grid; gap: 12px; }
.foot-contact a, .foot-contact span { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #6ea8ff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.socials a:hover { background: var(--blue); }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 50px; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* Floating actions */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab a, .fab button { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .2s, opacity .2s; }
.fab a:hover, .fab button:hover { transform: scale(1.06); }
.fab svg { width: 28px; height: 28px; }
.fab-wa { background: #25d366; color: #fff; }
.fab-wa:hover { color: #fff; }
.fab-top { background: #fff; color: var(--ink); width: 46px !important; height: 46px !important; opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-top svg { width: 20px; height: 20px; }
body.has-basket .fab { bottom: 86px; }
@media (min-width: 1001px) { body.has-basket .fab { bottom: 18px; } }

/* Toast */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 130; display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .92rem; font-weight: 600; display: flex; gap: 10px; align-items: center; animation: pop .25s; }
.toast svg { width: 18px; height: 18px; color: #4ade80; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.note { font-size: .88rem; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; }
.note svg { width: 18px; height: 18px; flex: none; color: var(--blue); margin-top: 2px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--blue); }
.prose { max-width: 820px; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(90deg, var(--blue), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* BMI widget */
.bmi { display: grid; gap: 14px; }
.bmi-out { border-radius: 14px; padding: 16px; background: var(--soft); text-align: center; }
.bmi-out b { display: block; font-size: 2.2rem; color: var(--ink); line-height: 1.1; }
.bmi-bar { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #60a5fa 0 18%, #22c55e 18% 50%, #f59e0b 50% 70%, #ef4444 70%); position: relative; margin: 10px 0 4px; }
.bmi-bar i { position: absolute; top: -5px; width: 4px; height: 20px; background: var(--ink); border-radius: 2px; transition: left .4s; }

@media print {
  .topbar, .header, .footer, .fab, .basket-mobile, .toolbar { display: none !important; }
}

/* Reserve space for the JS-rendered header to avoid layout shift */
#site-header { display: block; height: calc(var(--header-h) + 40px); }
[hidden] { display: none !important; }
.search-box svg { width: 22px; height: 22px; color: var(--muted); flex: none; display: block; }
.search-box > span:not(.sr-only):not(.kbd) { display: flex; flex: none; }
.chip.active .muted { color: #fff; }
.checks li > span { display: flex; flex: none; }
.link-arrow > span, .btn > span { display: inline-flex; }

/* Let grid/flex children shrink so scrollers and tables never widen the page */
.split > *, .grid > *, .lab-layout > *, .hero-grid > *, .camp-hero > * { min-width: 0; }
html, body { overflow-x: clip; }

.m-only { display: none; }
@media (max-width: 720px) { .m-only { display: inline; } .tests tr { grid-template-columns: 1fr auto auto; } }

/* ===================== v5: header logo, compact home, SEO pages, blog ===================== */
#site-header { height: var(--header-h); }
.brand { gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 52px; width: 52px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; }
.brand-txt small { font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-top: 3px; }
.br-red { color: #e8401c; }
.br-blue { color: #1f7fbf; }
@media (max-width: 520px) { .brand img { height: 44px; width: 44px; } .brand-txt b { font-size: 1.1rem; } }
.drawer-head .brand img { height: 40px; width: 40px; }
.foot-logo { background: #fff; border-radius: 14px; padding: 8px 14px 8px 8px; margin-bottom: 16px; display: inline-flex; }
.foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.nav-link { padding: 10px 10px; }

/* Hero (compact, logo) */
.hero.hero-compact { padding: clamp(22px, 3.5vw, 44px) 0 clamp(36px, 5vw, 60px); }
.hero-compact h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.hero-logo { display: grid; place-items: center; min-height: 420px; }
.logo-stage { width: min(400px, 78%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff 55%, #eef5fe 100%); box-shadow: 0 40px 80px -30px rgba(10, 42, 85, .35), 0 0 0 14px rgba(255, 255, 255, .7); display: grid; place-items: center; animation: floaty 7s ease-in-out infinite; }
.logo-stage img { width: 88%; height: auto; }
a.float-card { color: var(--body); text-decoration: none; transition: transform .2s, box-shadow .2s; z-index: 2; }
a.float-card:hover { color: var(--body); box-shadow: var(--shadow-lg); outline: 2px solid var(--blue-100); }
.hero-logo .fc-1 { left: 0; bottom: 40px; }
.hero-logo .fc-2 { right: 0; top: 18px; }
.hero-logo .fc-3 { right: 4%; bottom: -6px; animation-delay: -1.5s; }
@media (max-width: 980px) { .hero-logo { min-height: 360px; } }
@media (max-width: 560px) { .hero-logo .float-card { font-size: .78rem; padding: 10px 12px; } .hero-logo .fc-1 { bottom: 20px; } .hero-logo .fc-3 { display: none; } }

/* Compact product cards */
.product-mini { padding: 0; overflow: hidden; display: grid; grid-template-columns: 140px 1fr; }
.product-mini .pm-img { display: block; background: var(--soft); }
.product-mini .pm-img img { width: 100%; height: 100%; object-fit: cover; }
.product-mini .pm-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.product-mini h3 { font-size: 1.02rem; margin: 0; }
.product-mini h3 a { color: var(--ink); }
.product-mini .pp { font-weight: 800; color: var(--green); font-size: .86rem; }
.product-mini p { font-size: .86rem; color: var(--muted); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-mini .btn { align-self: flex-start; margin-top: auto; }

/* Camps row: mega camp (2/3) + upcoming (1/3) */
.camp-row { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .camp-row { grid-template-columns: 1fr; } }
.mega-card { position: relative; overflow: hidden; border-radius: 22px; padding: 28px; color: #fff; background: linear-gradient(135deg, #c8102e, #f05a1a); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; text-decoration: none; }
.mega-card:hover { color: #fff; }
.mega-card::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -70px; top: -90px; background: rgba(255, 255, 255, .1); }
.mega-card h3 { color: #fff; font-size: 1.45rem; margin: 6px 0 8px; }
.mega-card p { color: rgba(255, 255, 255, .88); margin: 0; font-size: .95rem; }
.mega-price { text-align: right; display: grid; gap: 6px; justify-items: end; position: relative; z-index: 1; }
.mega-price s { opacity: .8; }
.mega-price b { font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; }
@media (max-width: 600px) { .mega-card { grid-template-columns: 1fr; } .mega-price { text-align: left; justify-items: start; } }
.upcoming { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.upcoming h3 { font-size: 1.05rem; margin: 0 0 10px; }
.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.up-list a { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; color: var(--body); border: 1.5px solid transparent; }
.up-list a:hover { background: var(--soft); color: var(--body); }
.up-list li.next a { border-color: var(--red); background: var(--red-50); }
.up-date { text-align: center; background: var(--soft); border-radius: 10px; padding: 4px 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.up-date b { display: block; font-size: 1.2rem; color: var(--ink); }
.next .up-date { background: var(--red); color: #fff; }
.next .up-date b { color: #fff; }
.up-txt b { display: block; font-size: .88rem; color: var(--ink); line-height: 1.25; }
.up-txt small { color: var(--muted); font-size: .78rem; }
.up-when { font-size: .75rem; color: var(--muted); text-align: right; font-weight: 600; }
.up-when em { display: block; font-style: normal; color: var(--red); font-weight: 800; text-transform: uppercase; font-size: .66rem; letter-spacing: .06em; }

.doc-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .doc-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .doc-grid.three { grid-template-columns: 1fr; } }
.doc-top small a { color: var(--muted); }
.doc-top small a:hover { color: var(--blue); }
a.badge:hover { color: var(--blue); }
a.card.dept { color: inherit; }

/* Landing pages (branches / specialists) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.fact .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; margin: 0; }
.fact .ci svg { width: 20px; height: 20px; }
.fact b { display: block; color: var(--ink); }
.fact span, .fact a { font-size: .9rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--body); }
.link-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.link-cloud a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-weight: 600; font-size: .88rem; color: var(--ink); }
.link-cloud a:hover { border-color: var(--blue); color: var(--blue); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.post-card:hover { color: inherit; }
.post-card .pc-top { padding: 22px 22px 0; }
.pc-tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 99px; margin-bottom: 12px; }
.post-card h2, .post-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: .94rem; }
.post-card .pc-foot { margin-top: auto; padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
@media (max-width: 980px) { .article { grid-template-columns: 1fr; } }
.article .prose { max-width: 760px; font-size: 1.04rem; }
.article .prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.article .prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.article .prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .95rem; }
.article .prose th, .article .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article .prose th { background: var(--soft); color: var(--ink); }
.prose .urdu { direction: rtl; text-align: right; font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", serif; font-size: 1.15rem; line-height: 2.2; background: var(--soft); border-radius: 14px; padding: 18px 22px; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: #b7c8e2; margin-top: 10px; }
.aside-card { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.disclaimer { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 30px; }
.link-cloud.on-dark a { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.link-cloud.on-dark a:hover { background: rgba(255,255,255,.2); color: #fff; }
.mega-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mega-tags span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: 4px 11px; font-size: .8rem; font-weight: 600; }
.mega-card { align-items: center; }
.logo-stage { width: min(340px, 64%); }
.hero-logo { min-height: 460px; }
.hero-logo .fc-2 { right: 0; top: 0; }
.hero-logo .fc-1 { left: 0; bottom: 0; }
.hero-logo .fc-3 { right: 0; bottom: 0; }
@media (max-width: 560px) { .hero-logo { min-height: 380px; } .logo-stage { width: 62%; } }

/* ===================== v6 ===================== */
.brand img { height: 64px; width: 64px; }
.header .container { height: 80px; }
:root { --header-h: 80px; }
@media (max-width: 520px) { .brand img { height: 52px; width: 52px; } }
.drawer-head .brand img { height: 48px; width: 48px; }
.foot-logo { padding: 8px; border-radius: 50%; }
.foot-logo img { height: 72px; width: 72px; }

.hero-compact h1 { margin-bottom: 6px; }
.hero-sub { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; color: var(--navy); margin: 0 0 14px; letter-spacing: -.01em; }

/* Products: image on top, text below, moderate height */
.product-mini { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.product-mini .pm-img { aspect-ratio: 16 / 9; overflow: hidden; }
.product-mini .pm-img img { object-position: top center; transition: transform .5s; }
.product-mini:hover .pm-img img { transform: scale(1.04); }
.product-mini .pm-body { padding: 16px 18px 18px; }

.faq-narrow { max-width: 860px; margin-inline: auto; }

.copy-btn { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #c9d6ea; font-size: .85rem; }
.copy-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.tldr { background: var(--blue-50); border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; padding: 14px 18px; color: var(--ink); }

/* Products on home: bigger images, less empty space */
.products-home { padding-top: 28px; padding-bottom: 44px; }
.products-home .section-head { margin-bottom: 24px; }
.product-mini .pm-img { aspect-ratio: 1 / 1; background: #fff; } /* product photos are square: show the whole bag */
.product-mini .pm-img img { object-fit: contain; object-position: center; }
.product-mini .pm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.product-mini .pm-actions .btn { margin-top: 0; }
.hero.hero-compact { padding-bottom: clamp(24px, 3vw, 40px); }
.faq-extra[hidden] { display: none; }
#faqMore svg { transition: transform .2s; }
#faqMore.open svg { transform: rotate(180deg); }

/* Accessibility (WCAG AA contrast & link distinction) */
.btn-wa { background: #15803d; box-shadow: 0 8px 20px -8px rgba(21, 128, 61, .6); }
.btn-wa:hover { background: #116a32; }
.note a, .prose a, .lead a, .muted a, .faq p a, p > a:not(.btn):not(.link-arrow) { text-decoration: underline; text-underline-offset: 2px; }
.footer p a, .crumbs a { text-decoration: none; }
.foot-brand .foot-logo img { height: 72px; width: 72px; padding: 0; margin: 0; background: none; border-radius: 50%; object-fit: contain; }

/* ===================== Pakistan Healthcare Directory ===================== */
.dir-preview { background: #fff7e0; color: #6b4a00; border: 1px solid #f5c24a; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; }
.dir-preview[hidden] { display: none; }
.dir-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 800px) { .dir-list { grid-template-columns: 1fr; } }
.dir-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); min-width: 0; }
.dir-top { display: flex; gap: 12px; align-items: flex-start; }
.dir-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.dir-ic svg { width: 22px; height: 22px; }
.dir-card h3 { font-size: 1.02rem; margin: 0 0 6px; overflow-wrap: anywhere; }
.dir-top .badge { margin-right: 6px; }
.dir-addr, .dir-meta { display: flex; gap: 8px; margin: 0; font-size: .9rem; color: var(--body); }
.dir-addr svg, .dir-meta svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--muted); }
.dir-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.dir-osm { font-size: .8rem; color: var(--muted); text-decoration: underline; }
#dnear:disabled { opacity: .7; }

/* Directory: links, facility page */
.dir-card h3 a { color: var(--ink); }
.dir-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.dir-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .dir-detail { grid-template-columns: 1fr; } }
.dir-detail .facts { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.dir-detail .fact a, .dir-detail .fact span { overflow-wrap: anywhere; }
.dir-map { width: 100%; height: 360px; border: 0; border-radius: 18px; background: var(--soft); box-shadow: var(--shadow-sm); }
a.dir-near { color: var(--body); gap: 6px; }
a.dir-near b { color: var(--ink); }
a.dir-near:hover { border-color: var(--blue); }

/* Hero: small H1 line, big brand line (tags unchanged for SEO) */
.hero-compact h1 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 700; letter-spacing: 0; margin-bottom: 4px; text-transform: none; }
.hero-compact .hero-sub { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: var(--ink); margin: 0 0 14px; }

/* Floating patient reviews */
.review-floats { position: absolute; inset: 0; pointer-events: none; transition: opacity .4s; }
.review-floats.fading { opacity: 0; }
.review-float { pointer-events: auto; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 250px; }
.review-float .rf-stars { color: var(--amber); letter-spacing: 2px; font-size: .9rem; line-height: 1; }
.review-float b { font-size: .86rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.review-float small { font-size: .75rem; color: var(--muted); }
@media (max-width: 560px) { .review-float { max-width: 200px; } .review-float b { font-size: .78rem; } }

/* Mega camp banner image */
.mega-card.has-img { padding: 0; display: block; background: var(--soft); }
.mega-card.has-img::after, .mega-card.has-img .mega-main, .mega-card.has-img .mega-price { display: none; }
.mega-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.mega-img[hidden] { display: none; }

/* ===== Tighter vertical spacing on all pages (v19) ===== */
.section { padding: clamp(36px, 5vw, 64px) 0; }
.section-sm { padding: clamp(26px, 3.5vw, 44px) 0; }
.section-head { margin-bottom: 26px; }
.page-hero { padding: clamp(30px, 4.2vw, 52px) 0 clamp(28px, 3.8vw, 46px); }
.hero.hero-compact { padding: clamp(18px, 2.5vw, 32px) 0 clamp(20px, 2.5vw, 32px); }
.cta-band { padding: clamp(26px, 3.5vw, 40px); }
.footer { padding-top: 48px; }
.foot-bottom { margin-top: 32px; }
.mt-4 { margin-top: 32px; }
.mt-3 { margin-top: 22px; }

/* Brand line in the hero: red */
.hero-compact .hero-sub { color: var(--red); }

/* Uploaded hero image: shown as-is (transparent PNG/WebP), bigger, no white circle */
.logo-stage.custom { width: min(600px, 100%); aspect-ratio: auto; background: none; box-shadow: none; border-radius: 0; }
.logo-stage.custom img { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(10, 42, 85, .18)); }
.hero-logo:has(.logo-stage.custom) { min-height: 520px; }
@media (max-width: 980px) { .hero-logo:has(.logo-stage.custom) { min-height: 0; padding: 60px 0 70px; } }

/* Blog: cover images */
.post-card .pc-img { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--soft); }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.prose .post-cover { width: 100%; border-radius: 16px; margin-bottom: 18px; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
