/*
 * Human Health Tech — premium design system
 * Color system derived from the brand logo: deep navy-to-violet gradient,
 * cross red accent, and the teal-blue of the caring-hands mark.
 */

/* ============ Design tokens ============ */
:root {
    --navy-900: #0a1338;
    --navy-800: #101c4d;
    --blue-700: #1a2f7a;
    --blue-600: #24409e;
    --blue-500: #3157c4;
    --violet-600: #4b2e91;
    --violet-500: #6a45b5;
    --accent-red: #e31b23;
    --accent-red-dark: #b91219;
    --teal-500: #17a5c9;
    --cream-50: #f7f8fc;
    --cream-100: #eef1fa;
    --white: #ffffff;
    --ink-900: #10162b;
    --ink-700: #2b3153;
    --ink-600: #565d80;
    --ink-400: #8990b3;
    --border-soft: #e3e6f3;

    --gradient-brand: linear-gradient(135deg, var(--blue-700) 0%, var(--violet-600) 100%);
    --gradient-brand-hover: linear-gradient(135deg, var(--blue-600) 0%, var(--violet-500) 100%);
    --gradient-dark: linear-gradient(160deg, var(--navy-900) 0%, #1c1049 100%);
    --gradient-radial-glow: radial-gradient(circle at 20% 20%, rgba(75, 46, 145, .55), transparent 55%);

    --font-display: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-soft: 0 10px 30px -12px rgba(16, 22, 43, .12);
    --shadow-medium: 0 20px 45px -15px rgba(16, 22, 43, .22);
    --shadow-strong: 0 30px 60px -20px rgba(10, 19, 56, .35);

    --radius-lg: 1.25rem;
    --radius-md: 0.85rem;
    --radius-sm: 0.5rem;

    --section-pad-y: 6rem;
}

@media (max-width: 767.98px) {
    :root { --section-pad-y: 3.5rem; }
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--ink-700);
    background: var(--cream-50);
    line-height: 1.7;
    max-width: 100%;
}
/* No overflow-x:hidden here on purpose: setting overflow on either axis
   forces the other to compute as "auto" (per spec), which makes html/body
   count as a scroll container — and that breaks position:sticky elements
   (the navbar) from sticking to the real viewport instead of that
   ancestor. The real remaining overflow source (AOS's fade-left/fade-right
   translateX transform, before a below-the-fold element is revealed) is
   contained on <main> below instead — a sibling of <nav>, not an
   ancestor, so it can't affect the navbar's sticky positioning. */
/*main { overflow-x: hidden; }*/

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink-900);
    font-weight: 700;
    line-height: 1.25;
}

a { text-decoration: none; color: inherit; transition: color .2s ease; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--violet-600); color: #fff; }

/* ============ Spinner ============ */
#spinner {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-50);
    transition: opacity .4s ease, visibility .4s ease;
}
#spinner.spinner-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#spinner .spinner-grow { width: 3rem; height: 3rem; color: var(--blue-700); }

/* ============ Utility text elements ============ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--blue-700);
    margin-bottom: .9rem;
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 2rem;
    height: 2px;
    background: var(--accent-red);
}
.eyebrow-light { color: #cfd6f7; }
.eyebrow-light::before { background: var(--accent-red); }

.section-title-lg {
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
    margin-bottom: 1rem;
}
.text-accent { color: var(--accent-red); }
.text-white-70 { color: rgba(255,255,255,.75); }

.lead-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink-700);
    margin-bottom: 1.25rem;
}
.section-text { color: var(--ink-600); margin-bottom: 1rem; }

.check-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: .9rem;
}
.check-item i { color: var(--blue-700); font-size: 1.15rem; }

.section-pad { padding: var(--section-pad-y) 0; }
.section-title-wrap { max-width: 720px; margin-inline: auto; }

.ratio-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    min-height: 360px;
    background: #fff;
}
.ratio-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* Portrait frame: shows the full subject (e.g. a cutout photo) without
   cropping — a gradient panel fills the space around it instead. */
/* Portrait showcase: a brand-gradient backdrop shape + dot-pattern accent
   behind a cutout photo, with a drop-shadow that hugs the subject's own
   silhouette (a plain box-shadow would just draw a rectangle). */
.portrait-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 420px;
    padding: 2.5rem 1rem 0;
}
.portrait-shape {
    position: absolute;
    inset: 6% 8% 0;
    background: var(--gradient-brand);
    border-radius: 3rem 3rem 7rem 3rem;
    overflow: hidden;
    z-index: 0;
}
.portrait-shape::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-radial-glow);
    opacity: .85;
}
.portrait-dots {
    position: absolute;
    top: 0;
    left: 6%;
    width: 84px;
    height: 84px;
    background-image: radial-gradient(rgba(255,255,255,.85) 2px, transparent 2px);
    background-size: 14px 14px;
    z-index: 2;
}
.portrait-ring {
    position: absolute;
    right: 4%;
    bottom: 6%;
    width: 130px;
    height: 130px;
    border: 2px dashed rgba(255,255,255,.35);
    border-radius: 50%;
    z-index: 0;
}
.portrait-img {
    position: relative;
    z-index: 1;
    width: 86%;
    max-width: 360px;
    height: auto;
    filter: drop-shadow(0 30px 34px rgba(10, 19, 56, .35));
}

@media (max-width: 575.98px) {
    .portrait-showcase { min-height: 320px; padding-top: 1.5rem; }
    .portrait-shape { inset: 10% 12% 0; }
    .portrait-dots { width: 56px; height: 56px; background-size: 11px 11px; }
    .portrait-ring { width: 90px; height: 90px; }
}

/* ============ Buttons ============ */
.btn { font-weight: 600; border-radius: 999px; letter-spacing: .01em; }

.btn-premium {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    padding: .8rem 1.9rem;
    box-shadow: 0 12px 24px -10px rgba(26, 47, 122, .55);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-premium:hover, .btn-premium:focus {
    background: var(--gradient-brand-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -10px rgba(26, 47, 122, .6);
}

.btn-outline-premium {
    background: #c0242e;
    color: #fff;
    padding: .75rem 1.85rem;
    transition: all .25s ease;
}
.btn-outline-premium:hover {
    background: var(--blue-700);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light-premium {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.55);
    padding: .75rem 1.85rem;
    transition: all .25s ease;
}
.btn-outline-light-premium:hover { background: #fff; color: var(--blue-700); }

.btn-premium-light {
    background: #fff;
    color: var(--blue-700);
    border: none;
    padding: .7rem 1.7rem;
    font-weight: 700;
    transition: all .25s ease;
}
.btn-premium-light:hover { background: var(--cream-100); transform: translateY(-2px); color: var(--blue-700); }

.btn-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--cream-100);
    color: var(--blue-700);
    border: none;
    margin-right: .5rem;
}
.btn-icon:hover { background: var(--blue-700); color: #fff; }
.btn-icon-label { display: none; }

/* ============ Topbar ============ */
.topbar {
    background: var(--navy-900);
    color: #d8ddf5;
    font-size: .85rem;
    padding: .55rem 0;
}
.topbar-hours i { color: var(--teal-500); }
.topbar-contacts { gap: 1.75rem; }
.topbar-contact-item { color: #d8ddf5; margin-left: 1.75rem; }
.topbar-contact-item:first-child { margin-left: 0; }
.topbar-contact-item:hover { color: #fff; }
.topbar-contact-item i { color: var(--teal-500); }

@media (max-width: 991.98px) {
    .topbar { font-size: .72rem; padding: .5rem 0; }
    .topbar .row { flex-direction: column; gap: .4rem; }
    .topbar .col-lg-6 { width: 100%; text-align: center !important; }
    .topbar-hours { display: flex !important; justify-content: center; flex-wrap: wrap; text-align: center; }
    .topbar-contacts {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: .5rem 1rem;
    }
    .topbar-contact-item { margin-left: 0; }
}

@media (max-width: 400px) {
    .topbar { font-size: .68rem; }
}

/* ============ Navbar ============ */
.navbar-premium {
    /* No backdrop-filter here: it (like filter/transform) turns the element
       into the containing block for any position:fixed descendant — and
       the mobile off-canvas menu + its backdrop are fixed descendants of
       this <nav>. With it, both were confined to <nav>'s own ~68px height
       instead of the full viewport, squashing the menu into a sliver.
       At 97% opacity the background is already near-solid, so blur adds
       negligible visual difference — not worth reintroducing the bug. */
    background: rgba(255,255,255,.97);
    box-shadow: 0 1px 0 rgba(16,22,43,.06);
    transition: box-shadow .3s ease, padding .3s ease;
    z-index: 1030;
}
.navbar-premium.is-scrolled { box-shadow: var(--shadow-soft); }

.logo-img { height: 52px; width: auto; flex: none; }
/* Bootstrap's base .navbar-brand sets white-space:nowrap for a typical
   single-line brand; ours stacks two lines and must be allowed to wrap
   (and shrink as a flex item) or a narrow phone forces the whole navbar,
   and with it the page, into horizontal overflow. */
.navbar-brand { white-space: normal; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ink-900);
    text-transform: uppercase;
    letter-spacing: .02em;
}
.brand-name em { font-style: normal; color: var(--blue-700); }
.brand-slogan {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-red);
    font-weight: 600;
}

.navbar-nav .nav-link {
    color: var(--ink-700);
    font-weight: 600;
    padding: 1.8rem .9rem !important;
    position: relative;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover { color: var(--blue-700); }
.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 1rem; right: 1rem; bottom: 1.35rem;
    height: 2px;
    background: var(--accent-red);
}
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    padding: .6rem;
    max-width: min(320px, 90vw);
}
/* Bootstrap forces white-space:nowrap on dropdown items; the package names
   ("Comprehensive Health Package") are long enough to overflow the narrow
   mobile off-canvas menu at nowrap, so let them wrap instead. */
.dropdown-item, .dropdown-toggle { white-space: normal; }
.dropdown-item { display: flex; align-items: center; gap: .75rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--cream-100); color: var(--blue-700); }
.dropdown-item-icon {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cream-100);
    color: var(--blue-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    transition: background .2s ease, color .2s ease;
}
.dropdown-item:hover .dropdown-item-icon,
.dropdown-item:focus .dropdown-item-icon { background: var(--gradient-brand); color: #fff; }

@media (min-width: 992px) {
    /* Plenty of room on desktop — size the menu to fit the longest label
       ("Comprehensive Health Package") on one line instead of wrapping. */
    .dropdown-menu { max-width: none; min-width: 260px; }
    .dropdown-item, .dropdown-toggle { white-space: nowrap; }
}

.nav-actions { gap: .6rem; margin-left: .5rem; }

/* Between the lg breakpoint and ~1650px, the full-padding nav row (brand +
   7 links + search/Catalogue/Book Appointment) is a few px wider than the
   available space, which silently cascades into ugly two-line link labels
   and the Book Appointment button dropping to its own row — even though it
   looks like "plenty of room" at a glance. Trim padding/gaps in just that
   band so everything fits on one line; wide desktops keep the roomier
   spacing since they already have space to spare. */
@media (min-width: 992px) and (max-width: 1699.98px) {
    .navbar-nav .nav-link { padding: 1.8rem .3rem !important; font-size: .93rem; white-space: nowrap; }
    .brand-slogan { white-space: nowrap; }
    .nav-actions { gap: .2rem; margin-left: .15rem; }
    /* The two CTA buttons are the biggest single chunk of the action
       group's width — shrink them everywhere in this band too, rather
       than only up to ~1500px, so the fit has real margin instead of
       sitting a few px from tipping back into a wrapped second row. */
    .nav-actions .btn-outline-premium,
    .nav-actions .btn-premium { padding: .6rem .65rem; font-size: .85rem; }
    .nav-actions .btn-outline-premium i { margin-right: .3rem !important; }
}

/* 992-1229.98px (the narrow sliver right at the lg breakpoint, before the
   row has room to breathe) needs more than padding trims to fit 7 links +
   brand + 2 CTA buttons — the tagline is the least essential piece, so it's
   the first thing to give. */
@media (min-width: 992px) and (max-width: 1229.98px) {
    .navbar-nav .nav-link { padding: 1.8rem .3rem !important; font-size: .9rem; }
    .logo-img { height: 42px; }
    .brand-name { font-size: 1.05rem; }
    .brand-slogan { display: none; }
    /* There isn't room for the 2 CTA buttons beside the links here without
       squeezing nav-link padding to the point of being cramped and hard to
       click — so Book Appointment is let to drop to its own row, styled as
       a deliberate second row (right-aligned, evenly spaced) rather than a
       layout accident. */
    .nav-actions { gap: .15rem; margin-left: 0; justify-content: flex-end; row-gap: .5rem; padding-top: .5rem; }
}
.navbar-close-btn {
    display: none;
    width: 100%;
    text-align: right;
    background: none; border: none;
    font-size: 1.8rem; line-height: 1;
    color: var(--ink-900);
    margin-bottom: 1rem;
}
.navbar-backdrop { display: none; }

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(88vw, 380px);
        max-width: 100vw;
        background: #fff;
        padding: 1.75rem 1.5rem;
        overflow-y: auto;
        overflow-x: hidden;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(100%);
        transition: transform .35s ease, visibility .35s ease;
        z-index: 1045;
        box-shadow: var(--shadow-strong);
    }
    .navbar-collapse.show {
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }
    .navbar-close-btn { display: block; }
    .navbar-nav .nav-link { padding: .75rem .25rem !important; }
    .navbar-nav .nav-link.active::after { display: none; }
    .nav-actions { flex-direction: column; align-items: stretch !important; margin-top: 1rem; }
    .nav-actions .btn { width: 100%; margin: .35rem 0 !important; }
    /* .btn-icon is a fixed 44x44 circle for the desktop navbar; the rule
       above would otherwise stretch it to a squashed, full-width oval. */
    .nav-actions .btn-icon {
        width: 100%;
        height: auto;
        border-radius: 999px;
        gap: .5rem;
        padding: .75rem 1.85rem;
        background: transparent;
        border: 1.5px solid var(--blue-700);
    }
    .nav-actions .btn-icon-label { display: inline; font-weight: 600; }
    .navbar-backdrop {
        display: none;
        position: fixed; inset: 0;
        background: rgba(10, 19, 56, .55);
        z-index: 1040;
    }
    .navbar-backdrop.show { display: block; }
}

.search-modal-content { background: rgba(10, 19, 56, .92); }
.search-form .form-control {
    padding: .9rem 1.25rem;
    border-radius: 999px 0 0 999px;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.08);
    color: #fff;
}
.search-form .form-control::placeholder { color: rgba(255,255,255,.6); }
.search-form .btn { border-radius: 0 999px 999px 0; }

/* ============ Hero ============ */
.hero { position: relative; }
.hero .carousel-item, .hero-img { height: 88vh; min-height: 520px; max-height: 780px; }
.hero-img { width: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,19,56,.55) 0%, rgba(10,19,56,.65) 45%, rgba(75,46,145,.75) 100%);
}
.hero-caption {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}
.hero-caption-inner { max-width: 900px; margin: 0 auto; }
.hero-title {
    color: #fff;
    font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4rem);
    margin: .5rem 0 1.75rem;
}

/* ============ Info strip ============ */
.info-strip { margin-top: -70px; position: relative; z-index: 5; padding-bottom: 2rem; }
.info-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255,255,255,.08);
}
.info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-radial-glow);
    opacity: .6;
    pointer-events: none;
}
.info-card > * { position: relative; z-index: 1; }
.info-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 1.4rem;
}
.info-card-icon-light { margin-inline: auto; background: rgba(255,255,255,.08); color: var(--teal-500); }

.info-card-primary { background: var(--gradient-brand); color: #fff; }
.info-card-primary h3 { color: #fff; margin-bottom: 1.4rem; font-size: 1.4rem; }
.info-card-row { display: flex; justify-content: space-between; align-items: baseline; color: rgba(255,255,255,.92); font-weight: 600; }
.info-card-row span:first-child { color: rgba(255,255,255,.65); font-weight: 500; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }
.info-card-row span:last-child { font-family: var(--font-display); font-size: 1.05rem; }
.info-card-divider { display: block; height: 1px; background: rgba(255,255,255,.16); margin: .9rem 0; }

.info-card-dark { background: var(--gradient-dark); color: #fff; justify-content: center; align-items: center; }
.info-card-dark h3 { color: #fff; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.info-card-note { color: rgba(255,255,255,.68); font-size: .9rem; max-width: 260px; margin: 0 auto 1.5rem; }
.info-card-phone {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    padding: .6rem 1.5rem;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,.25);
    transition: all .25s ease;
}
.info-card-phone i { color: var(--teal-500); font-size: 1.1rem; }
.info-card-phone:hover { color: var(--navy-900); background: #fff; border-color: #fff; }
.info-card-phone:hover i { color: var(--blue-700); }

/* ============ CTA band ============ */
.cta-band {
    position: relative;
    background: var(--gradient-dark);
    padding: 5rem 0;
    overflow: hidden;
    color: #fff;
}
.cta-band-pattern, .testimonial-band-pattern, .page-header-pattern {
    position: absolute; inset: 0;
    background: var(--gradient-radial-glow);
    opacity: .8;
}
.cta-title { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.cta-text { color: rgba(255,255,255,.82); max-width: 560px; }
.cta-card {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-strong);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-radial-glow);
    opacity: .55;
    pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: var(--teal-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
}
.cta-card-divider { display: block; width: 70%; height: 1px; background: rgba(255,255,255,.18); margin: 1.5rem 0; }
.cta-card-inline { text-align: left; align-items: flex-start; padding: 1.5rem 1.75rem; display: inline-flex; flex-direction: column; }
.cta-card-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); margin-bottom: .4rem; }
.cta-phone { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #fff; transition: color .2s ease; }
.cta-phone:hover { color: var(--teal-500); }
.cta-band-standalone { margin-top: 0; padding: 5.5rem 0; }

/* ============ Service cards ============ */
.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    height: 100%;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); border-color: transparent; }

.service-card-img { position: relative; height: 210px; }
.service-card-img-crop { position: absolute; inset: 0; overflow: hidden; }
.service-card-img-crop img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-card-img-crop img { transform: scale(1.08); }
.service-card-img-crop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(10, 19, 56, .6) 100%);
    opacity: 0;
    transition: opacity .35s ease;
}
.service-card:hover .service-card-img-crop::after { opacity: 1; }

.service-card-icon {
    position: absolute;
    left: 1.5rem;
    bottom: -22px;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-medium);
    transition: transform .35s ease;
}
.service-card:hover .service-card-icon { transform: rotate(-8deg) scale(1.08); }

.service-card-body { padding: 2.25rem 1.5rem 1.5rem; text-align: left; }
.service-card-body h5 { margin: 0; font-size: 1.08rem; }

/* ============ Compare slider ============ */
.compare-slider { position: relative; cursor: ew-resize; user-select: none; background: #fff; }
.compare-base, .compare-overlay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare-overlay { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.compare-range {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0; cursor: ew-resize;
    margin: 0; appearance: none;
}
.compare-handle {
    position: absolute; top: 50%; left: 50%;
    width: 46px; height: 46px;
    background: #fff; color: var(--blue-700);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-medium);
    pointer-events: none;
}

/* ============ Testimonials ============ */
.testimonial-band { position: relative; background: var(--gradient-brand); padding: 5.5rem 0; overflow: hidden; }
.testimonial-band-standalone { padding-top: calc(var(--section-pad-y) - 1.5rem); }

.testimonial-carousel-wrap { position: relative; }

.testimonial-card {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-lg);
    padding: 3.25rem 2.75rem 2.75rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-strong);
}
.testimonial-card::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
    pointer-events: none;
}
.testimonial-quote-icon {
    display: inline-block;
    font-size: 2.5rem;
    line-height: 1;
    color: rgba(255,255,255,.4);
    margin-bottom: .75rem;
}
.testimonial-quote { position: relative; z-index: 1; color: #fff; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; margin-bottom: 0; }
.testimonial-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.18);
}
.testimonial-initials {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 50%;
    background: #fff;
    color: var(--blue-700);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-name { color: #fff; margin: 0; font-size: 1.05rem; }
.testimonial-card-static { display: flex; flex-direction: column; }

.testimonial-indicators { position: relative; margin: 2rem 0 0; }
.testimonial-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.4);
    border: none;
    opacity: 1;
    margin: 0 5px;
}
.testimonial-indicators .active { background-color: #fff; }

.testimonial-carousel-wrap .carousel-control-prev,
.testimonial-carousel-wrap .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    opacity: 1;
    transition: background .2s ease;
}
.testimonial-carousel-wrap .carousel-control-prev:hover,
.testimonial-carousel-wrap .carousel-control-next:hover { background: rgba(255,255,255,.28); }
.testimonial-carousel-wrap .carousel-control-prev { left: -64px; }
.testimonial-carousel-wrap .carousel-control-next { right: -64px; }
.testimonial-carousel-wrap .carousel-control-prev-icon,
.testimonial-carousel-wrap .carousel-control-next-icon { background-size: 55%; padding: 0; }

@media (max-width: 991.98px) {
    .testimonial-carousel-wrap .carousel-control-prev { left: .5rem; }
    .testimonial-carousel-wrap .carousel-control-next { right: .5rem; }
}

/* ============ Package & pricing ============ */
.package-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column; align-items: center;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.package-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }
.package-card-icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: var(--cream-100);
    color: var(--blue-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 1.25rem;
}
.package-card p { color: var(--ink-600); margin-bottom: 1.5rem; }
.package-card .btn { margin-top: auto; }
.package-card-highlight { background: var(--gradient-brand); color: #fff; }
.package-card-highlight p { color: rgba(255,255,255,.85); }
.package-card-highlight .package-card-icon { background: rgba(255,255,255,.15); color: #fff; }
.package-card-phone { color: #fff; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-top: auto; }

.test-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.test-list li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed var(--border-soft); font-weight: 600; color: var(--ink-900); }
.test-list li i { color: var(--blue-700); }
.package-phone { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent-red); }

.price-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); height: 100%; }
.price-card-img { position: relative; height: 190px; }
.price-card-img-crop { position: absolute; inset: 0; overflow: hidden; }
.price-card-img-crop img { width: 100%; height: 100%; object-fit: cover; }
.price-tag { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--blue-700); font-weight: 700; padding: .4rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-soft); font-family: var(--font-display); }
.price-card-body { padding: 1.75rem 1.25rem 1.25rem; text-align: center; }
.price-feature { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-600); margin-bottom: .4rem; }
.price-feature i { color: var(--blue-700); }

/* ============ Laboratory ============ */
.lab-intro-card { background: var(--gradient-brand); color: #fff; border-radius: var(--radius-lg); padding: 2.5rem; display: flex; flex-direction: column; }
.lab-intro-card .eyebrow { color: #cfd6f7; }
.lab-intro-card .eyebrow::before { background: var(--accent-red); }
.lab-intro-card h3 { color: #fff; font-size: 1.4rem; }
.lab-intro-card .btn { margin-top: auto; }
.lab-intro-features { list-style: none; padding: 0; margin: 1.75rem 0 2rem; }
.lab-intro-features li {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .7rem 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.9);
    font-weight: 600;
    font-size: .95rem;
}
.lab-intro-features li:last-child { border-bottom: none; }
.lab-intro-features i {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: var(--teal-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}
.lab-photo-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); height: 100%; min-height: 220px; position: relative; }
.lab-photo-card img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; transition: transform .5s ease; }
.lab-photo-card:hover img { transform: scale(1.06); }
.lab-photo-card-labelled { min-height: 260px; }
.lab-photo-card-bento { min-height: 160px; }
.lab-photo-card-bento img { min-height: 160px; }
.lab-photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.25rem; background: linear-gradient(0deg, rgba(10,19,56,.85), transparent); color: #fff; font-weight: 700; }

/* ============ Contact ============ */
.contact-card { background: #fff; border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow-soft); }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.contact-icon-badge { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--cream-100); color: var(--blue-700); display: flex; align-items: center; justify-content: center; }
.contact-info-item h6 { margin-bottom: .25rem; }
.contact-info-item p { color: var(--ink-600); margin-bottom: 0; font-size: .95rem; }
.contact-map-card iframe { width: 100%; height: 100%; min-height: 460px; border: 0; border-radius: var(--radius-lg); }

@media (min-width: 992px) {
    /* Full-width row now (not squeezed into a third column), so the map
       can afford to be taller and still read as proportionate. */
    .contact-map-card iframe { min-height: 520px; }
}

/* ============ Forms ============ */
.premium-form .form-control,
.premium-form .form-select {
    padding: .85rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-soft);
    background: var(--cream-50);
}
.premium-form .form-control:focus,
.premium-form .form-select:focus {
    border-color: var(--blue-700);
    box-shadow: 0 0 0 .2rem rgba(26, 47, 122, .12);
    background: #fff;
}
.appointment-form-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); padding: 2.25rem; backdrop-filter: blur(6px); }
.appointment-form-card .premium-form .form-control,
.appointment-form-card .premium-form .form-select { background: rgba(255,255,255,.92); border-color: transparent; }

.captcha-label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-600); margin-bottom: .4rem; }
.appointment-form-card .captcha-label { color: rgba(255,255,255,.8); }

.alert-premium { border: none; border-radius: var(--radius-md); padding: 1.1rem 1.4rem; margin-bottom: 2rem; }
.alert-premium.alert-success { background: #e5f7ec; color: #14663a; }
.alert-premium.alert-danger { background: #fdecec; color: var(--accent-red-dark); }

/* ============ Page header (inner hero + breadcrumb) ============ */
.page-header {
    position: relative;
    background: var(--gradient-dark);
    padding: 5rem 0 3rem;
    overflow: hidden;
    margin-bottom: 0;
}
.page-header-title { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); margin-bottom: 1rem; }
.breadcrumb { justify-content: center; font-weight: 600; }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,.75); }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ============ 404 ============ */
.not-found-code {
    font-family: var(--font-display);
    font-size: clamp(4rem, 3rem + 5vw, 8rem);
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

/* ============ Thank you ============ */
.thankyou-hero {
    position: relative;
    background: var(--gradient-dark);
    padding: 9rem 0 5rem;
    overflow: hidden;
}
.thankyou-pattern { position: absolute; inset: 0; background: var(--gradient-radial-glow); opacity: .8; }
.thankyou-icon {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 1.75rem;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    box-shadow: 0 0 0 10px rgba(255,255,255,.08), var(--shadow-strong);
}
.thankyou-title { color: #fff; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin: .75rem 0 1rem; }
.thankyou-text { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

.thankyou-step {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
    text-align: center;
}
.thankyou-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cream-100);
    color: var(--blue-700);
    font-family: var(--font-display);
    font-weight: 800;
    margin-bottom: 1.1rem;
}
.thankyou-step p { color: var(--ink-600); margin-bottom: 0; }

/* ============ Footer ============ */
.site-footer { position: relative; background: var(--navy-900); color: #cfd3ea; overflow: hidden; }
.footer-glow { position: absolute; inset: 0; background: var(--gradient-radial-glow); opacity: .5; }
.footer-heading { color: #fff; font-size: 1.15rem; margin-bottom: 1.4rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .65rem; }
.footer-links a { color: #cfd3ea; display: inline-flex; align-items: center; gap: .5rem; }
.footer-links a:hover { color: #fff; }
.footer-links i { color: var(--accent-red); font-size: .8rem; }
.footer-text { display: flex; align-items: flex-start; gap: .4rem; color: #cfd3ea; margin-bottom: .8rem; font-size: .93rem; }
.footer-text i { color: var(--teal-500); margin-top: .2rem; }
.footer-social { flex-wrap: wrap; }
.social-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: background .2s ease, transform .2s ease;
}
.social-btn:hover { background: var(--gradient-brand); transform: translateY(-3px); }
.footer-bottom { position: relative; background: var(--accent-red); color: #fff; padding: 1rem 0; font-size: .9rem; }
.footer-bottom a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ============ Floating buttons ============ */
.whatsapp-float {
    position: fixed; right: 1.5rem; bottom: 1.5rem;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow-medium);
    z-index: 1050;
    transition: transform .25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.back-to-top {
    position: fixed; right: 1.5rem; bottom: 6.2rem;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--gradient-brand); color: #fff;
    display: none; align-items: center; justify-content: center;
    box-shadow: var(--shadow-medium);
    z-index: 1050;
    transition: transform .25s ease, opacity .25s ease;
    opacity: 0;
}
.back-to-top.is-visible { display: flex; opacity: 1; }
.back-to-top:hover { transform: translateY(-4px); color: #fff; }

/* Bottom-right, just left of the WhatsApp button — not bottom-left: on
   narrower desktop widths (small-laptop range) page content runs the full
   column width, and a bottom-left fixed button sat directly on top of
   body copy (e.g. the About page's left column) at those sizes. Compact
   circle by default so it stays unobtrusive; expands to show its label
   only on intentional hover/focus, growing leftward/away from the
   WhatsApp button rather than toward it. */
.quick-enquiry-float {
    position: fixed;
    right: 6.4rem;
    bottom: 1.5rem;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    width: 58px;
    height: 58px;
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: 999px;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
    box-shadow: var(--shadow-medium);
    z-index: 1050;
    transition: width .3s ease, box-shadow .25s ease, transform .25s ease;
}
.quick-enquiry-float i { flex: none; font-size: 1.35rem; margin-right: 17px; }
.quick-enquiry-float span { opacity: 0; margin-right: .6rem; margin-left: 1.5rem; transition: opacity .2s ease; }
.quick-enquiry-float:hover,
.quick-enquiry-float:focus-visible {
    width: 195px;
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    color: #fff;
}
.quick-enquiry-float:hover span,
.quick-enquiry-float:focus-visible span { opacity: 1; transition: opacity .2s ease .15s; }

/* ============ Quick Enquiry modal ============ */
.quick-enquiry-modal { border: none; border-radius: var(--radius-lg); overflow: hidden; }
.quick-enquiry-header {
    position: relative;
    background: var(--gradient-dark);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.quick-enquiry-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-radial-glow);
    opacity: .6;
}
.quick-enquiry-header > * { position: relative; z-index: 1; }
.quick-enquiry-header .btn-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.quick-enquiry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: var(--teal-500);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.quick-enquiry-header h3 { color: #fff; margin-bottom: .4rem; }
.quick-enquiry-header p { color: rgba(255,255,255,.75); margin: 0; font-size: .92rem; }
.quick-enquiry-modal .modal-body { padding: 2rem; }
.quick-enquiry-error { margin-top: 1rem; margin-bottom: 0; }
.quick-enquiry-success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.25rem;
}
.btn-spinner { display: inline-flex; align-items: center; gap: .5rem; }

/* ============ Misc ============ */
.carousel-control-prev, .carousel-control-next { width: 4%; }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: rgba(255,255,255,.25); border-radius: 50%; padding: 1.4rem; background-size: 45%; }

@media (max-width: 575.98px) {
    .info-strip { margin-top: -40px; }
    .info-card { padding: 1.75rem; }
    .page-header { padding: 3.5rem 0 2rem; }
}

@media (max-width: 400px) {
    .logo-img { height: 42px; }
    .brand-name { font-size: 1.05rem; }
    .brand-slogan { font-size: .6rem; letter-spacing: .08em; }
}
