/* =====================================================================
   Niramoi Premium Hospital Micro-site — Base Theme (Micropath redesign)
   Brand colors are CSS variables. The admin panel writes the hospital's
   chosen hex values into a <style> block in the page <head> (see
   views/frontend/layout/header.php); everything below derives its tints,
   shades and shadows from those five values, so ONE stylesheet re-skins
   every micro-site.

   Roles:  --primary   action / brand accent (Micropath: signal red)
           --dark      headings, footer, deep surfaces (Micropath: navy)
           --secondary supporting accent (Micropath: maroon)
           --accent    highlight on dark surfaces
           --light-bg  alternate section background
   ===================================================================== */

:root {
    --primary:    #B3202A;
    --secondary:  #8E1B3A;
    --accent:     #E8545C;
    --dark:       #14235B;
    --light-bg:   #F4F6FB;
    --white:      #FFFFFF;

    /* derived tokens — never hard-code hospital colors below this line */
    --primary-600: color-mix(in srgb, var(--primary) 86%, #000);
    --primary-50:  color-mix(in srgb, var(--primary) 8%, #fff);
    --primary-100: color-mix(in srgb, var(--primary) 16%, #fff);
    --dark-700:    color-mix(in srgb, var(--dark) 82%, #000);
    --dark-50:     color-mix(in srgb, var(--dark) 6%, #fff);
    --ink:         color-mix(in srgb, var(--dark) 88%, #000);
    --gray-100:    #F3F5F9;
    --gray-200:    #E6EAF1;
    --gray-300:    #D7DCE6;
    --gray-600:    #556075;

    --radius:     14px;
    --radius-sm:  8px;
    --radius-lg:  20px;
    --font-head:  'Plus Jakarta Sans', 'Hind Siliguri', 'Segoe UI', sans-serif;
    --font-body:  'Hind Siliguri', 'Plus Jakarta Sans', 'Segoe UI', sans-serif;

    --shadow-sm: 0 1px 2px rgba(16, 24, 56, .06), 0 1px 3px rgba(16, 24, 56, .06);
    --shadow:    0 2px 4px rgba(16, 24, 56, .04), 0 8px 24px rgba(16, 24, 56, .08);
    --shadow-lg: 0 4px 8px rgba(16, 24, 56, .05), 0 24px 48px rgba(16, 24, 56, .14);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    background: var(--white);
    margin: 0;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .brand-font {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.01em;
    color: var(--dark);
    margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { padding: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, #fff); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px; z-index: 200; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--light-bg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 11px 26px; border-radius: 999px;
    font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.2;
    border: 2px solid transparent; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 32%, transparent); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 38%, transparent); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-ghost { border-color: var(--gray-300); color: var(--dark); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-lg { min-height: 52px; padding: 13px 32px; font-size: 16px; }

/* ---------- Top utility bar ---------- */
.topbar { position: relative; background: var(--ink); color: rgba(255,255,255,.78); font-size: 13.5px; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary) 60%, transparent); opacity: .85; }
.topbar .container { max-width: 1320px; display: flex; justify-content: space-between; align-items: center; min-height: 42px; flex-wrap: wrap; gap: 6px 18px; }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78); transition: color .15s; }
.topbar .tb-item i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.08); color: color-mix(in srgb, var(--primary) 45%, #fff); font-size: 12px; }
.topbar a.tb-item:hover { color: #fff; }
.topbar .emergency { display: inline-flex; align-items: center; gap: 8px; color: #fff; background: var(--primary); padding: 4px 14px 4px 10px; border-radius: 999px; font-weight: 700; font-family: var(--font-head); font-size: 13px; box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 45%, transparent); transition: background-color .2s; }
.topbar .emergency:hover { background: var(--primary-600); }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #fff; animation: phPulse 1.8s ease-out infinite; }
.topbar .socials { display: flex; gap: 4px; }
.topbar .socials a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: rgba(255,255,255,.75); transition: background-color .2s, color .2s; }
.topbar .socials a:hover { background: var(--primary); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--gray-200); transition: box-shadow .25s, background-color .25s; }
.site-header.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 10px 30px -12px rgba(16,24,56,.18); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; max-width: 1320px; transition: min-height .25s; }
.site-header.scrolled .container { min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 56px; width: auto; transition: height .25s; }
.site-header.scrolled .brand img { height: 48px; }
.brand .name { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--dark); }

.main-nav { display: flex; align-items: center; gap: 2px; margin: 0 0 0 auto; list-style: none; }
.main-nav > li { position: relative; list-style: none; }
.main-nav > li > a {
    position: relative; display: flex; align-items: center; gap: 5px;
    padding: 10px 12px; font-family: var(--font-head); font-weight: 600; font-size: 15px; white-space: nowrap;
    color: var(--ink); border-radius: 10px; transition: color .2s;
}
.main-nav > li:not(.nav-cta) > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2.5px; border-radius: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav > li > a:hover, .main-nav > li.active > a { color: var(--primary); }
.main-nav > li:not(.nav-cta) > a:hover::after, .main-nav > li.active > a::after { transform: scaleX(1); }
.main-nav > li > a .bi-chevron-down { font-size: 10px; transition: transform .2s; }
.main-nav > li.has-dropdown:hover > a .bi-chevron-down { transform: rotate(180deg); }
.main-nav ul { list-style: none; margin: 0; }
.main-nav .nav-cta { margin-left: 12px; }
.main-nav .nav-cta a { background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff; padding: 11px 20px; border-radius: 999px; box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--primary) 60%, transparent); transition: transform .2s var(--ease), box-shadow .2s; }
.main-nav .nav-cta a:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--primary) 70%, transparent); }

.header-call { display: none; align-items: center; gap: 10px; padding-left: 18px; margin-left: 4px; border-left: 1px solid var(--gray-200); color: var(--ink); flex-shrink: 0; }
.header-call .hc-ico { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary-50); color: var(--primary); font-size: 17px; transition: background-color .2s, color .2s; }
.header-call .hc-ico::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); animation: phPulse 2.4s ease-out infinite; }
.header-call small { display: block; font-size: 11.5px; color: var(--gray-600); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; line-height: 1.2; }
.header-call strong { font-family: var(--font-head); font-size: 16px; color: var(--dark); line-height: 1.25; }
.header-call:hover .hc-ico { background: var(--primary); color: #fff; }
@media (min-width: 1360px) { .header-call { display: inline-flex; } }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 240px; margin-top: 10px !important;
    background: #fff; border: 1px solid var(--gray-200); box-shadow: 0 24px 48px -16px rgba(16,24,56,.25); border-radius: 14px;
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; list-style: none;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: 14.5px; transition: background-color .15s, color .15s, padding .15s; }
.dropdown li a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-300); transition: background-color .15s; }
.dropdown li a:hover { background: var(--primary-50); color: var(--primary); padding-left: 18px; }
.dropdown li a:hover::before { background: var(--primary); }

.nav-menu-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; background: var(--dark-50); border: 0; border-radius: 12px; cursor: pointer; color: var(--dark); }
.nav-scrim { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--dark) 0%, var(--dark-700) 58%, color-mix(in srgb, var(--dark) 70%, var(--primary)) 130%); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(60% 80% at 85% 10%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(255,255,255,.07), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 13.5px; font-weight: 600; margin-bottom: 22px; }
.hero-eyebrow i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); font-size: 12px; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.82); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16); font-size: 14.5px; color: rgba(255,255,255,.86); }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points i { color: var(--accent); font-size: 17px; }

/* hero visual — slider card when slides exist, else brand mark */
.hero-visual { position: relative; }
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(0,0,0,.35); aspect-ratio: 4 / 3.4; background: var(--dark-700); border: 1px solid rgba(255,255,255,.18); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1); transition: transform 7s ease-out; }
.hero-slide.active .hero-slide-bg { transform: scale(1.07); }
.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,16,44,.55)); }
.hero-brand-card { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; }
.hero-brand-card img { width: auto; height: auto; max-width: 70%; max-height: 82%; object-fit: contain; mix-blend-mode: multiply; }

.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(16,24,56,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s, transform .2s; }
.hero-arrow:hover { background: var(--primary); transform: translateY(-50%) scale(1.06); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }
.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: all .25s ease; }
.hero-dot.active { width: 28px; border-radius: 6px; background: #fff; }
.hero-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--primary); z-index: 5; }

.hero-float { position: absolute; z-index: 6; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 12px 18px 12px 12px; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.3; }
.hero-float .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-size: 20px; }
.hero-float strong { display: block; font-family: var(--font-head); font-size: 17px; color: var(--dark); }
.hero-float.f1 { left: -28px; bottom: -22px; }
.hero-float.f2 { right: -16px; top: 28px; }

/* ---------- Quick access strip (overlaps hero) ---------- */
.quick-strip { position: relative; z-index: 10; margin-top: -48px; padding-bottom: 56px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); overflow: hidden; }
.quick-item { display: flex; align-items: center; gap: 16px; padding: 26px 28px; border-right: 1px solid var(--gray-200); transition: background-color .2s; }
.quick-item:last-child { border-right: 0; }
.quick-item:hover { background: var(--primary-50); }
.quick-item .ico { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--primary-50); color: var(--primary); transition: background-color .2s, color .2s; }
.quick-item:hover .ico { background: var(--primary); color: #fff; }
.quick-item h3 { font-size: 16px; margin: 0 0 2px; }
.quick-item p { margin: 0; font-size: 13.5px; color: var(--gray-600); line-height: 1.4; }

/* ---------- Section headings ---------- */
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head .kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.section-head .kicker::before { content: ""; width: 26px; height: 2px; background: var(--primary); border-radius: 2px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.section-head p { color: var(--gray-600); font-size: 17px; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker::after { content: ""; width: 26px; height: 2px; background: var(--primary); border-radius: 2px; }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-row .section-head { margin: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card { display: block; background: #fff; border: 1px solid var(--gray-200); border-radius: 16px; overflow: hidden; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { border-color: transparent; transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .body { padding: 20px 22px 22px; }
.card .thumb { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--gray-100); }
.card h3 { font-size: 18px; }

/* service card */
.service-card { position: relative; display: block; padding: 32px 28px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.service-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--primary); transition: width .35s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::after { width: 100%; }
.service-card .icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; font-size: 27px; background: var(--primary-50); color: var(--primary); margin-bottom: 20px; transition: background-color .25s, color .25s; }
.service-card:hover .icon { background: var(--primary); color: #fff; }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { color: var(--gray-600); font-size: 15px; margin: 0; }
.service-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--primary); }
.service-card .more i { transition: transform .2s; }
.service-card:hover .more i { transform: translateX(4px); }

/* doctor card (partials/doctor_card.php) */
.doctor-card { display: flex; flex-direction: column; border-radius: 18px; box-shadow: 0 1px 2px rgba(16,24,56,.04), 0 6px 18px -8px rgba(16,24,56,.12); }
.doctor-card .dc-photo { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--primary-50), var(--gray-100)); }
.doctor-card .dc-photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--dark) 55%, transparent)); opacity: .55; transition: opacity .35s; }
.doctor-card .thumb { aspect-ratio: 4/4.3; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.doctor-card:hover .thumb { transform: scale(1.06); }
.doctor-card:hover .dc-photo::after { opacity: .85; }
.doctor-card .dc-spec { position: absolute; left: 12px; bottom: 12px; z-index: 2; max-width: calc(100% - 24px); display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    background: rgba(255,255,255,.95); color: var(--primary); font-family: var(--font-head); font-size: 12.5px; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doctor-card .dc-verified { position: absolute; right: 12px; top: 12px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #1D9BF0; font-size: 17px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.doctor-card .body { flex: 1; text-align: center; padding: 20px 20px 16px; }
.doctor-card h3 { font-size: 18px; margin-bottom: 6px; transition: color .2s; }
.doctor-card:hover h3 { color: var(--primary); }
.doctor-card .degrees { font-size: 13px; color: var(--gray-600); margin: 0 0 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doctor-card .role { display: inline-block; color: var(--primary); font-weight: 700; font-size: 14px; line-height: 1.4; }
.doctor-card .dept { color: var(--gray-600); font-size: 13.5px; margin-top: 6px; line-height: 1.5; }
.doctor-card .dc-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 16px 16px; padding: 11px; border-radius: 12px; background: var(--gray-100); color: var(--dark); font-family: var(--font-head); font-weight: 700; font-size: 14px; transition: background-color .25s, color .25s; }
.doctor-card .dc-foot i { transition: transform .25s; }
.doctor-card:hover .dc-foot { background: var(--primary); color: #fff; }
.doctor-card:hover .dc-foot i { transform: translateX(4px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* stats strip (home "at a glance") */
.stats-strip { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; }
.stats-strip::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(40% 120% at 100% 0, color-mix(in srgb, var(--primary) 38%, transparent), transparent 70%),
                radial-gradient(30% 90% at 0 100%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M20 15h4v5h5v4h-5v5h-4v-5h-5v-4h5z' fill='%23ffffff' fill-opacity='.04'/%3E%3C/svg%3E"); }
.stats-strip .container { padding-top: 56px; padding-bottom: 56px; }
.stats-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 18px; }
.stat-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px 24px 22px; border-radius: 20px; color: #fff;
    background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.1);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow: hidden; transition: transform .3s var(--ease), border-color .3s, background-color .3s; }
.stat-card::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 110px; height: 110px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 35%, transparent); opacity: 0; transition: opacity .35s; }
.stat-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--primary) 60%, transparent); color: #fff; }
.stat-card:hover::after { opacity: .6; }
.sc-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--primary); font-size: 22px; margin-bottom: 14px;
    box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--primary) 80%, #000); transition: transform .3s var(--ease); }
.stat-card:hover .sc-ico { transform: rotate(-8deg) scale(1.05); }
.sc-num { font-family: var(--font-head); font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.sc-num em { font-style: normal; color: color-mix(in srgb, var(--primary) 45%, #fff); margin-left: 2px; }
.sc-label { font-size: 15px; color: rgba(255,255,255,.72); font-weight: 500; }
.sc-go { position: absolute; top: 20px; right: 20px; font-size: 15px; color: rgba(255,255,255,.35); transition: color .25s, transform .25s; }
.stat-card:hover .sc-go { color: #fff; transform: translate(2px, -2px); }
.stats-emergency { display: flex; width: fit-content; margin: 26px auto 0; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.85); font-size: 15px; transition: background-color .2s; }
.stats-emergency strong { color: #fff; font-family: var(--font-head); }
.stats-emergency:hover { background: var(--primary); color: #fff; }
@media (max-width: 960px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .stat-card { padding: 18px; } .sc-ico { width: 42px; height: 42px; font-size: 19px; margin-bottom: 10px; } }

/* about split */
.about-media { position: relative; }
.about-media img { mix-blend-mode: multiply; }
.about-media > img { mix-blend-mode: normal; width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 5/4; object-fit: cover; }
.about-media::before { content: ""; position: absolute; inset: 24px -20px -20px 24px; border-radius: var(--radius-lg); background: var(--primary-100); z-index: -1; }
.about-media .badge-years { position: absolute; left: -20px; bottom: 28px; background: var(--primary); color: #fff; padding: 16px 22px; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.3; }
.about-media .badge-years strong { display: block; font-family: var(--font-head); font-size: 28px; }
.check-list { list-style: none; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.check-list i { color: var(--primary); font-size: 19px; line-height: 1.4; }

/* testimonial */
.testimonial { position: relative; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px 28px 28px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial::before { content: "\201C"; position: absolute; top: 6px; right: 22px; font-family: Georgia, serif; font-size: 84px; line-height: 1; color: var(--primary-100); }
.testimonial .stars { color: #F5A623; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial p { position: relative; font-size: 15.5px; color: var(--ink); }
.testimonial .who { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.testimonial .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--gray-100); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 130%); color: #fff; border-radius: var(--radius-lg); padding: 52px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; box-shadow: 0 24px 48px color-mix(in srgb, var(--primary) 30%, transparent); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.1); }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); font-size: 17px; }
.cta-band .btn { position: relative; z-index: 1; background: #fff; color: var(--primary); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.cta-band .btn:hover { transform: translateY(-2px); background: var(--dark); color: #fff; }

/* ---------- Tests list ---------- */
.test-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.test-table th { text-align: left; background: var(--dark); color: #fff; padding: 14px 18px; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; letter-spacing: .03em; }
.test-table td { padding: 14px 18px; border-bottom: 1px solid var(--gray-200); font-size: 15px; }
.test-table tr:last-child td { border-bottom: 0; }
.test-table tbody tr:hover td { background: var(--primary-50); }
.test-category-title { display: flex; align-items: center; gap: 10px; background: var(--dark-50); color: var(--dark); border-left: 4px solid var(--primary); padding: 12px 18px; border-radius: var(--radius-sm); margin: 36px 0 14px; font-size: 17px; }

/* ---------- Contact / forms ---------- */
.contact-box { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-control { width: 100%; min-height: 48px; padding: 12px 16px; background: var(--gray-100); border: 1.5px solid transparent; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 15.5px; color: var(--ink); margin-bottom: 14px; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.form-control::placeholder { color: #7B859A; }
.form-control:hover { background: var(--gray-200); }
.form-control:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.map-embed iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.info-card { background: var(--dark); color: rgba(255,255,255,.88); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px; }
.info-card h4 { color: #fff; font-size: 20px; margin-bottom: 20px; }
.info-card p { display: flex; gap: 14px; margin-bottom: 16px; }
.info-card p i { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); color: var(--accent); }
.info-card p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: rgba(255,255,255,.7); padding: 76px 0 0; margin-top: 0; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(45% 70% at 100% 0, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M20 15h4v5h5v4h-5v5h-4v-5h-5v-4h5z' fill='%23ffffff' fill-opacity='.035'/%3E%3C/svg%3E"); }
.site-footer.has-cta { margin-top: 70px; padding-top: 0; overflow: visible; }
.site-footer.has-cta::before { overflow: hidden; }
.footer-cta { position: relative; top: -56px; margin-bottom: -16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 30px 36px; border-radius: 22px; color: #fff; overflow: hidden;
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-600) 55%, color-mix(in srgb, var(--primary) 60%, var(--dark)) 100%);
    box-shadow: 0 24px 50px -18px color-mix(in srgb, var(--primary) 65%, #000); }
.footer-cta::after { content: ""; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); }
.fc-text { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.fc-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.16); font-size: 26px; flex-shrink: 0; }
.footer-cta h3 { color: #fff; font-size: clamp(19px, 2.2vw, 24px); margin: 0 0 4px; }
.footer-cta p { margin: 0; color: rgba(255,255,255,.86); font-size: 15px; }
.fc-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-light-solid { background: #fff; color: var(--primary); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.btn-light-solid:hover { background: var(--dark); color: #fff; transform: translateY(-2px); }
.site-footer .btn-light-solid { color: var(--primary); }
.site-footer .btn-light-solid:hover, .site-footer .btn-outline, .site-footer .btn-outline:hover { color: #fff; }
.site-footer .btn-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.footer-grid { grid-template-columns: 1.5fr .8fr .8fr 1.3fr; gap: 48px; padding-bottom: 8px; }
.site-footer h4 { color: #fff; font-size: 16.5px; letter-spacing: .01em; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: var(--primary); border-radius: 3px; }
.site-footer a { color: rgba(255,255,255,.72); transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; font-size: 15px; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 16px; border-radius: 14px; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.footer-logo img { height: 48px; width: auto; }
.footer-about { font-size: 15px; line-height: 1.75; max-width: 340px; margin-bottom: 0; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; }
.footer-links a::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: 10px; color: var(--primary); transition: transform .2s; }
.footer-links a:hover::before { transform: translateX(3px); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.footer-contact i { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.07); color: color-mix(in srgb, var(--primary) 50%, #fff); font-size: 14px; margin-top: -3px; }
.footer-contact .is-emergency i { background: var(--primary); color: #fff; }
.footer-contact .is-emergency a { color: #fff; font-weight: 700; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); font-size: 16px; transition: background-color .2s, transform .2s, border-color .2s; }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding: 20px 0; font-size: 13.5px; color: rgba(255,255,255,.55); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.85); font-weight: 600; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--primary); color: #fff; font-size: 18px; cursor: pointer;
    box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--primary) 70%, #000); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background-color .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-600); }

/* ---------- Inner page content ---------- */
.kicker-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-family: var(--font-head); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.kicker-pill i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; }
.body-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.muted-lead { color: var(--gray-600); margin: -6px 0 24px; }

.about-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.about-figure { position: relative; padding: 0 0 24px 24px; }
.about-figure::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; border-radius: 24px; background: linear-gradient(135deg, var(--primary-100), var(--primary-50)); z-index: -1; }
.about-figure::after { content: ""; position: absolute; right: -14px; top: -14px; width: 90px; height: 90px; border-radius: 20px; z-index: -1;
    background-image: radial-gradient(color-mix(in srgb, var(--primary) 45%, transparent) 2px, transparent 2px); background-size: 14px 14px; }
.about-figure img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; left: 0; bottom: 48px; display: flex; align-items: center; gap: 12px; background: #fff; padding: 14px 20px; border-radius: 16px; box-shadow: var(--shadow-lg); max-width: 240px; }
.about-badge strong { font-family: var(--font-head); font-size: 30px; color: var(--primary); line-height: 1; }
.about-badge i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-50); color: var(--primary); font-size: 20px; }
.about-badge span { font-size: 13.5px; font-weight: 600; color: var(--dark); line-height: 1.3; }

.value-grid { gap: 22px; }
.value-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 18px; padding: 28px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.vc-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--primary-50); color: var(--primary); font-size: 24px; margin-bottom: 18px; transition: background-color .25s, color .25s, transform .3s; }
.value-card:hover .vc-ico { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.value-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.value-card p { margin: 0; color: var(--gray-600); font-size: 15px; }

.mv-grid { gap: 28px; align-items: stretch; }
.mv-card { position: relative; background: #fff; border: 1px solid var(--gray-200); border-radius: 22px; padding: 34px 32px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.mv-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.mv-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--mv, var(--primary)); }
.mv-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: color-mix(in srgb, var(--mv, var(--primary)) 7%, transparent); }
.mv-secondary { --mv: var(--secondary); }
.mv-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--gray-300); position: relative; z-index: 1; }
.mv-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--mv, var(--primary)); color: #fff; font-size: 26px; flex-shrink: 0; box-shadow: 0 12px 24px -10px var(--mv, var(--primary)); }
.mv-label { display: block; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mv, var(--primary)); }
.mv-head h2 { font-size: 24px; margin: 2px 0 0; }
.mv-card .rich-content { position: relative; z-index: 1; font-size: 15.5px; }
.mv-card .rich-content h1:first-child, .mv-card .rich-content h2:first-child, .mv-card .rich-content h3:first-child { display: none; }

.narrow-content { max-width: 880px; }
.content-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 22px; padding: 40px 44px; box-shadow: var(--shadow); }

.rich-content ul { list-style: none; padding-left: 0; }
.rich-content ul li { position: relative; padding-left: 30px; }
.rich-content ul li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px; color: var(--primary); font-size: 17px; }

.person-card .pc-photo { overflow: hidden; background: linear-gradient(180deg, var(--primary-50), var(--gray-100)); }
.person-card .pc-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.person-card:hover .pc-photo img { transform: scale(1.06); }
.person-card .body { text-align: center; }
.person-card h3 { font-size: 16.5px; margin-bottom: 4px; }
.pc-role { color: var(--primary); font-weight: 700; font-size: 14px; }
.pc-dept { color: var(--gray-600); font-size: 13.5px; margin-top: 2px; }

.admin-list { display: grid; gap: 24px; }
.leader-card { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--gray-200); border-radius: 22px; padding: 28px 32px; box-shadow: var(--shadow-sm); }
.lc-person { display: flex; align-items: center; gap: 18px; }
.lc-person img { width: 104px; height: 104px; border-radius: 24px; object-fit: cover; object-position: top; box-shadow: 0 0 0 5px var(--primary-50); }
.lc-person h3 { font-size: 19px; margin-bottom: 4px; }
.lc-role { color: var(--primary); font-weight: 700; font-size: 14.5px; }
.lc-msg { position: relative; margin: 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--primary-100); color: var(--gray-600); font-size: 15.5px; line-height: 1.75; font-style: italic; }

.empty-state { max-width: 460px; margin: 10px auto; text-align: center; padding: 48px 28px; border: 1.5px dashed var(--gray-300); border-radius: 22px; background: var(--gray-100); }
.empty-state > span { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: #fff; color: var(--primary); font-size: 30px; box-shadow: var(--shadow); margin-bottom: 16px; }
.empty-state h3 { font-size: 19px; margin-bottom: 6px; }
.empty-state p { margin: 0; color: var(--gray-600); }

.contact-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 36px; }
.contact-tile { display: flex; align-items: center; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--gray-200); border-radius: 18px; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; min-width: 0; }
a.contact-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.ct-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--primary-50); color: var(--primary); font-size: 22px; flex-shrink: 0; transition: background-color .25s, color .25s; }
a.contact-tile:hover .ct-ico { background: var(--primary); color: #fff; }
.contact-tile small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-600); }
.contact-tile strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--dark); line-height: 1.4; overflow-wrap: anywhere; }
.contact-tile.is-emergency { background: linear-gradient(135deg, var(--primary), var(--primary-600)); border-color: transparent; color: #fff; }
.contact-tile.is-emergency .ct-ico { background: rgba(255,255,255,.18); color: #fff; }
.contact-tile.is-emergency small, .contact-tile.is-emergency strong { color: #fff; }

.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: start; }
.contact-box { border-radius: 22px; padding: 38px; }
.contact-form label { display: block; margin: 0; }
.contact-form label > span { display: block; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.contact-form label em { color: var(--primary); font-style: normal; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.contact-side { display: grid; gap: 22px; }
.hours-card { background: var(--ink); color: rgba(255,255,255,.82); border-radius: 22px; padding: 28px; position: relative; overflow: hidden; }
.hours-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 30%, transparent); filter: blur(4px); }
.hours-card h3 { color: #fff; font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hours-card h3 i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); font-size: 16px; }
.hours-card ul { list-style: none; margin: 0; position: relative; z-index: 1; }
.hours-card li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.14); font-size: 14.5px; }
.hours-card li:last-child { border-bottom: 0; }
.hours-card li strong { color: #fff; text-align: right; }
.map-embed { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map-embed iframe { width: 100% !important; height: 320px; border: 0; border-radius: 0; }
.m-0 { margin: 0; }

/* ---------- Alerts / flash ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 15px; }
.alert-success { background: #E6F6EC; color: #176B37; border: 1px solid #B7E3C6; }
.alert-error   { background: #FDECEC; color: #A32019; border: 1px solid #F4C3C0; }

/* ---------- Page header (inner pages, built by page_header() in hp_helper) ---------- */
.page-header {
    position: relative; overflow: hidden; isolation: isolate; color: #fff;
    background: linear-gradient(118deg, var(--dark) 0%, var(--dark-700) 55%, color-mix(in srgb, var(--dark) 72%, var(--primary)) 120%);
    padding: 32px 0 64px;
}
.ph-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ph-orb { position: absolute; border-radius: 50%; filter: blur(10px); }
.ph-orb.o1 { width: 520px; height: 520px; right: -140px; top: -220px; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 55%, transparent), transparent 68%); animation: phFloat 14s ease-in-out infinite; }
.ph-orb.o2 { width: 380px; height: 380px; left: -160px; bottom: -200px; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%); animation: phFloat 18s ease-in-out infinite reverse; }
@keyframes phFloat { 50% { transform: translate(-30px, 24px) scale(1.06); } }
/* faint medical "+" pattern, fading in from the right */
.ph-grid { position: absolute; inset: 0; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M20 15h4v5h5v4h-5v5h-4v-5h-5v-4h5z' fill='%23ffffff' fill-opacity='.07'/%3E%3C/svg%3E");
    -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 75%); mask-image: linear-gradient(90deg, transparent 15%, #000 75%); }

.ph-inner { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; align-items: center; }
.ph-text { min-width: 0; }

.ph-crumb ol { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0 0 14px; padding: 4px 12px 4px 4px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13.5px; }
.ph-crumb li { display: inline-flex; align-items: center; gap: 4px; color: rgba(255,255,255,.72); }
.ph-crumb li + li::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: 10px; opacity: .55; margin: 0 4px; }
.ph-crumb a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; padding: 3px 8px; border-radius: 999px; transition: background-color .2s, color .2s; }
.ph-crumb li:first-child a { padding: 3px 10px 3px 4px; }
.ph-crumb li:first-child i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); font-size: 12px; }
.ph-crumb a:hover { background: rgba(255,255,255,.12); color: #fff; }
.ph-crumb [aria-current] span { color: color-mix(in srgb, var(--primary) 35%, #fff); font-weight: 600; padding: 3px 4px; }

.ph-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); margin-bottom: 8px; }
.ph-kicker i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--primary) 85%, #fff); color: #fff; font-size: 12px; }
.page-header h1 { position: relative; color: #fff; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; padding-bottom: 12px; text-wrap: balance; }
.page-header h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 40%, #fff)); }
.ph-sub { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.8); max-width: 620px; margin: 0 0 16px; }

.ph-help { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 8px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ph-help-ico { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); font-size: 16px; flex-shrink: 0; }
.ph-help-ico::after { content: ""; position: absolute; inset: -3px; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--primary) 70%, transparent); animation: phPulse 2.2s ease-out infinite; }
@keyframes phPulse { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(1.25); } }
.ph-help small { display: block; font-size: 11px; color: rgba(255,255,255,.65); line-height: 1.2; }
.ph-help div > a { font-family: var(--font-head); font-size: 15.5px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.ph-help div > a:hover { color: color-mix(in srgb, var(--primary) 35%, #fff); }
.ph-help-btn { margin-left: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 10px; background: #fff; color: var(--dark); font-family: var(--font-head); font-weight: 700; font-size: 13.5px; transition: background-color .2s, color .2s, transform .2s; }
.ph-help-btn:hover { background: var(--primary); color: #fff; transform: translateX(2px); }

/* right-hand page icon inside pulsing rings */
.ph-visual { position: relative; width: 190px; height: 190px; justify-self: end; display: grid; place-items: center; }
.ph-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.ph-ring.r1 { inset: 0; border-style: dashed; animation: phSpin 40s linear infinite; }
.ph-ring.r2 { inset: 22px; background: rgba(255,255,255,.03); }
.ph-ring.r3 { inset: 44px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.ph-ring.r1::before { content: ""; position: absolute; top: 14px; left: 24px; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 70%, #fff); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 25%, transparent); }
@keyframes phSpin { to { transform: rotate(360deg); } }
.ph-icon { position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 22px; background: linear-gradient(145deg, var(--primary), var(--primary-600)); font-size: 34px; color: #fff;
    box-shadow: 0 22px 44px -12px color-mix(in srgb, var(--primary) 70%, #000), inset 0 1px 0 rgba(255,255,255,.3); transform: rotate(-6deg); animation: phBob 6s ease-in-out infinite; }
@keyframes phBob { 50% { transform: rotate(-6deg) translateY(-6px); } }

/* heartbeat line + curved edge into the page */
.ph-ecg { position: absolute; left: 0; right: 0; bottom: 20px; width: 100%; height: 44px; z-index: -1; }
.ph-ecg path { fill: none; stroke: color-mix(in srgb, var(--primary) 70%, #fff); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55;
    stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: phEcg 3.6s ease-in-out .3s infinite; }
@keyframes phEcg { 0% { stroke-dashoffset: 1400; opacity: 0; } 15% { opacity: .55; } 60% { stroke-dashoffset: 0; opacity: .55; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ph-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 32px; }
.ph-curve path { fill: #fff; }
.page-header + .section { padding-top: 40px; }
.page-header + .section-alt, .page-header + .section.section-alt { margin-top: 0; }

/* entrance */
.ph-crumb, .ph-kicker, .page-header h1, .ph-sub, .ph-help, .ph-visual { animation: phIn .8s var(--ease) both; }
.ph-kicker { animation-delay: .06s; } .page-header h1 { animation-delay: .12s; } .ph-sub { animation-delay: .2s; } .ph-help { animation-delay: .28s; } .ph-visual { animation-name: phInScale; animation-delay: .15s; }
@keyframes phIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes phInScale { from { opacity: 0; transform: scale(.85); } }

/* ---------- Doctor detail page ---------- */
.doctor-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--dark) 0%, var(--dark-700) 60%, color-mix(in srgb, var(--dark) 70%, var(--primary)) 140%); color: #fff; padding: 64px 0; }
.doctor-hero .container { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.doctor-hero .photo-frame { height: 260px; aspect-ratio: 4/4.6; border-radius: var(--radius-lg); overflow: hidden; border: 4px solid rgba(255,255,255,.22); flex-shrink: 0; box-shadow: 0 20px 40px rgba(0,0,0,.3); background: rgba(255,255,255,.08); }
.doctor-hero .photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.doctor-hero .badge-speciality { display: inline-block; background: var(--primary); padding: 5px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.doctor-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; }
.doctor-hero .degrees { font-size: 15.5px; opacity: .88; margin-bottom: 6px; }
.doctor-hero .designation { font-size: 16.5px; font-weight: 600; }
.doctor-hero .org { font-size: 14.5px; opacity: .82; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.doctor-hero .stat-pills { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.doctor-hero .stat-pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

.doctor-detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.detail-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 30px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.detail-card h3 { font-size: 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.detail-card h3 i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-50); color: var(--primary); font-size: 17px; }

/* Shared typography for ANY CKEditor-produced content */
.rich-content { font-size: 16px; color: #2B3550; line-height: 1.85; }
.rich-content p { margin: 0 0 16px; }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { color: var(--dark); font-family: var(--font-head); margin: 28px 0 12px; line-height: 1.35; }
.rich-content h1 { font-size: 28px; }
.rich-content h2 { font-size: 24px; }
.rich-content h3 { font-size: 20px; }
.rich-content h4 { font-size: 17px; }
.rich-content ul, .rich-content ol { margin: 0 0 16px; padding-left: 24px; }
.rich-content li { margin-bottom: 8px; }
.rich-content li::marker { color: var(--primary); }
.rich-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.rich-content strong, .rich-content b { color: var(--dark); }
.rich-content blockquote { border-left: 4px solid var(--primary); background: var(--primary-50); padding: 14px 20px; margin: 20px 0; color: var(--gray-600); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 16px 0; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.rich-content table td, .rich-content table th { border: 1px solid var(--gray-300); padding: 10px 12px; }

.treatment-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.treatment-tags .tag { background: var(--dark-50); color: var(--dark); border: 1px solid var(--gray-200); padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; }

.chamber-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; position: sticky; top: 100px; box-shadow: var(--shadow); }
.chamber-card .head { background: var(--dark); color: #fff; padding: 20px 24px; }
.chamber-card .head strong { display: block; font-family: var(--font-head); font-size: 16px; }
.chamber-card .head span { font-size: 13.5px; opacity: .78; }
.chamber-card .body { padding: 24px; }
.chamber-card .row { display: flex; gap: 12px; font-size: 14.5px; margin-bottom: 16px; color: #2B3550; }
.chamber-card .row i { color: var(--primary); margin-top: 3px; }
.chamber-card .visiting-hours { background: var(--dark-50); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; white-space: pre-line; margin-bottom: 14px; }
.chamber-card .off-days { color: var(--primary); font-size: 13.5px; font-weight: 600; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.chamber-card .btn { width: 100%; }
.chamber-card .phone-buttons { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .main-nav > li > a { padding: 10px 9px; font-size: 14.5px; }
    .main-nav .nav-cta { margin-left: 6px; }
    .hero .container { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 88px; gap: 44px; }
    .hero-visual { max-width: 560px; }
    .hero-float.f1 { left: 12px; }
    .hero-float.f2 { right: 12px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-item:nth-child(2) { border-right: 0; }
    .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--gray-200); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .leader-card { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 960px) {
    .ph-inner { grid-template-columns: 1fr; }
    .ph-visual { display: none; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 68px 0; }
    .doctor-detail-grid { grid-template-columns: 1fr; }
    .chamber-card { position: static; }
    .about-media { margin-bottom: 20px; }
}
@media (max-width: 900px) {
    .nav-menu-toggle { display: flex; }
    .main-nav { position: fixed; top: 0; right: 0; width: min(320px, 86vw); height: 100vh; height: 100dvh; background: #fff;
        flex-direction: column; align-items: stretch; gap: 2px; box-shadow: -12px 0 40px rgba(16,24,56,.2);
        transform: translateX(105%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; padding: 84px 16px 24px; overflow-y: auto; z-index: 120; }
    .main-nav.open { transform: none; visibility: visible; }
    .main-nav > li > a { padding: 14px 16px; font-size: 16px; border-radius: var(--radius-sm); justify-content: space-between; }
    .main-nav > li:not(.nav-cta) > a::after { display: none; }
    .main-nav > li.active > a { background: var(--primary-50); }
    .main-nav .nav-cta { margin: 12px 0 0; }
    .main-nav .nav-cta a { justify-content: center; }
    .dropdown { position: static; box-shadow: none; border: 0; margin: 0 !important; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 0 14px; }
    .dropdown::before { display: none; }
    .has-dropdown.open .dropdown { display: block; }
    .has-dropdown.open > a .bi-chevron-down { transform: rotate(180deg); }
    .nav-menu-toggle { position: relative; z-index: 130; }
    .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(10,16,44,.5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 110; }
    .nav-scrim.open { opacity: 1; visibility: visible; }
}
@media (max-width: 720px) {
    .container { padding: 0 20px; }
    .section { padding: 56px 0; }
    .grid { gap: 20px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .topbar .tb-mail, .topbar .tb-hours, .topbar .socials { display: none; }
    .topbar .container { justify-content: center; padding-top: 6px; padding-bottom: 6px; }
    .hero h1 { font-size: 34px; }
    .hero-lead { font-size: 16.5px; }
    .hero-cta .btn { flex: 1 1 100%; }
    .hero-float { display: none; }
    .quick-strip { margin-top: -36px; }
    .quick-grid { grid-template-columns: 1fr; }
    .quick-item, .quick-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--gray-200); padding: 20px 22px; }
    .quick-item:last-child { border-bottom: 0; }
    .section-head { margin-bottom: 36px; }
    .cta-band { padding: 36px 26px; }
    .cta-band .btn { width: 100%; }
    .contact-box { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-cta { padding: 24px 22px; top: -44px; }
    .fc-actions, .fc-actions .btn { width: 100%; }
    .cf-row { grid-template-columns: 1fr; }
    .contact-box, .content-card, .mv-card { padding: 26px 22px; }
    .about-figure { padding: 0 0 16px 16px; }
    .about-badge { bottom: 30px; }
    .site-footer { padding-top: 60px; }
    .page-header { padding: 24px 0 52px; }
    .ph-sub { font-size: 15px; }
    .ph-help { width: 100%; }
    .ph-help-btn { margin-left: auto; }
    .doctor-hero .photo-frame { height: 220px; }
    .detail-card { padding: 22px; }
    .about-media::before, .about-media .badge-years { display: none; }
    .test-table th, .test-table td { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
    .test-table { display: block; overflow-x: auto; white-space: nowrap; }
}
