/* ===================================================================
   Gujarat Diagnostic Care Plus — public site stylesheet
   Modern Refresh — v2
   =================================================================== */

:root {
    /* Brand palette — refined teal + navy + coral */
    --c-primary:       #0e7c86;
    --c-primary-dark:  #0b5b63;
    --c-primary-deep:  #074048;
    --c-primary-soft:  #e6f4f5;
    --c-mint:          #eaf6f5;
    --c-mint-deep:     #d4ecea;

    --c-navy:          #11293a;
    --c-navy-deep:     #0b1f2c;

    --c-coral:         #ff7a59;
    --c-coral-dark:    #ea6242;
    --c-accent:        #ff7a59;        /* alias for legacy markup */
    --c-accent-dark:   #ea6242;

    --c-text:          #2c3e4a;
    --c-muted:         #6b7c88;
    --c-line:          #e6edf0;
    --c-border:        #e6edf0;          /* alias */
    --c-bg:            #ffffff;
    --c-bg-soft:       #f4f8f9;

    /* Layered, navy-tinted shadows */
    --shadow-xs: 0 1px 2px rgba(17, 41, 58, .05);
    --shadow-sm: 0 4px 14px rgba(17, 41, 58, .06);
    --shadow-md: 0 14px 36px rgba(17, 41, 58, .10);
    --shadow-lg: 0 32px 60px rgba(17, 41, 58, .14);
    --shadow-glow: 0 14px 40px rgba(14, 124, 134, .28);

    /* Geometry */
    --radius:      20px;
    --radius-sm:   12px;
    --radius-lg:   28px;
    --radius-pill: 999px;

    --maxw:        1180px;
    --maxw-narrow: 880px;

    /* Type system */
    --font:      'Open Sans', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    --font-head: 'Poppins', 'Segoe UI', Roboto, system-ui, sans-serif;
    --fs-display: clamp(2.3rem, 4.4vw, 3.6rem);
    --fs-h2:      clamp(1.7rem, 2.6vw, 2.3rem);
    --fs-h3:      clamp(1.15rem, 1.6vw, 1.35rem);

    /* Motion */
    --ease:       cubic-bezier(.2,.7,.2,1);
    --t-fast:     .18s var(--ease);
    --t-med:      .28s var(--ease);
    --t-slow:     .5s  var(--ease);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Safety net — prevents any off-canvas/transformed element (e.g. the
       mobile drawer slid off to the right) from creating a horizontal
       scrollbar and pushing the visible layout off-screen. */
    overflow-x: hidden;
    max-width: 100vw;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--c-navy); line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding: 96px 0; position: relative; }
.section--soft  { background: var(--c-bg-soft); }
.section--mint  { background: var(--c-mint); }
.section--dark  { background: var(--c-navy-deep); color: #d9e6ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: 64px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--c-mint); color: var(--c-primary-deep);
    padding: 6px 14px; border-radius: var(--radius-pill);
    font: 600 12.5px/1 var(--font-head);
    text-transform: uppercase; letter-spacing: 1.4px;
}
.section--dark .eyebrow { background: rgba(255,255,255,.08); color: #b9efe7; }
.section-head h2 { margin: 18px 0 14px; }
.section-head p { color: var(--c-muted); font-size: 1.04rem; }
.section--dark .section-head p { color: #aebdc4; }

/* ---------- Icons ---------- */
.icon { flex-shrink: 0; vertical-align: middle; }
.icon-pill {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: var(--radius-pill);
    background: var(--c-mint); color: var(--c-primary-deep);
}
.icon-pill--lg { width: 64px; height: 64px; }
.icon-pill--coral { background: rgba(255,122,89,.14); color: var(--c-coral-dark); }
.icon-pill--dark { background: rgba(255,255,255,.08); color: #b9efe7; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 26px; border-radius: var(--radius-pill);
    font: 600 15px/1 var(--font-head);
    cursor: pointer; border: 2px solid transparent;
    transition: all var(--t-fast); white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 8px 22px rgba(14,124,134,.32); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(14,124,134,.36); }
.btn--accent { background: var(--c-coral); color: #fff; box-shadow: 0 8px 22px rgba(255,122,89,.32); }
.btn--accent:hover { background: var(--c-coral-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--c-primary-dark); border-color: #fff; }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--light { background: #fff; color: var(--c-primary-dark); border-color: #fff; }
.btn--light:hover { background: var(--c-mint); color: var(--c-primary-deep); }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ---------- Header ---------- */
.header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    box-shadow: 0 1px 0 var(--c-line);
    position: sticky; top: 0; z-index: 200;
    transition: box-shadow var(--t-med), background var(--t-med);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.96); }

.topbar {
    background: var(--c-navy-deep); color: #aebdc4; font-size: 13px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #cad6dc; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-social { display: flex; gap: 10px; align-items: center; }
.topbar-social a .icon { width: 16px; height: 16px; }

.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 152px; transition: min-height var(--t-med); }
.header.is-scrolled .header-bar { min-height: 120px; }

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img.logo-main { height: 128px; width: auto; max-width: 100%; transition: height var(--t-med); object-fit: contain; }
.header.is-scrolled .brand img.logo-main { height: 96px; }
.brand-text { line-height: 1.18; }
.brand-text .b-name { font-family: var(--font-head); font-weight: 700; color: var(--c-navy); font-size: 1.18rem; letter-spacing: -.01em; }
.brand-text .b-tag { display: block; font-size: 11.5px; color: var(--c-muted); margin-top: 1px; }

/* ---------- Navigation ---------- */
.nav { display: flex; align-items: center; gap: 6px; }
.nav > ul { display: flex; list-style: none; align-items: center; gap: 2px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 11px 14px; border-radius: var(--radius-pill);
    font: 600 14.5px/1 var(--font-head); color: var(--c-navy);
    transition: all var(--t-fast);
}
.nav > ul > li > a:hover, .nav > ul > li.active > a {
    color: var(--c-primary-deep); background: var(--c-mint);
}
.nav .has-sub > a::after {
    content: ""; width: 8px; height: 8px;
    border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translate(-2px,-2px);
    margin-left: 4px;
    transition: transform var(--t-fast);
}
.nav .has-sub:hover > a::after { transform: rotate(225deg) translate(-2px,-2px); }

.submenu {
    position: absolute; top: calc(100% + 6px); left: 0; background: #fff;
    box-shadow: var(--shadow-md); border-radius: var(--radius-sm); list-style: none;
    min-width: 240px; padding: 8px; opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: all var(--t-fast);
    border: 1px solid var(--c-line);
}
.nav li:hover > .submenu, .nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a { display: block; padding: 9px 14px; border-radius: 10px; font-size: 14px; color: var(--c-text); }
.submenu li a:hover { background: var(--c-mint); color: var(--c-primary-deep); }

/* Mega menu — Services */
.megamenu {
    position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(8px);
    background: #fff; box-shadow: var(--shadow-lg); border-radius: var(--radius);
    width: min(880px, 92vw); padding: 22px; opacity: 0; visibility: hidden;
    transition: all var(--t-fast); border: 1px solid var(--c-line); z-index: 250;
}
.nav li:hover > .megamenu, .nav li:focus-within > .megamenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mm-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px; border-radius: var(--radius-sm);
    color: var(--c-text);
}
.mm-item:hover { background: var(--c-mint); }
.mm-item .ip { width: 40px; height: 40px; border-radius: 12px; background: var(--c-mint); color: var(--c-primary-deep);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mm-item:hover .ip { background: var(--c-primary); color: #fff; }
.mm-item .mm-title { font: 600 14.5px var(--font-head); color: var(--c-navy); margin-bottom: 2px; }
.mm-item .mm-short { font-size: 12.5px; color: var(--c-muted); line-height: 1.45; }
.mm-foot { display: flex; justify-content: space-between; align-items: center;
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: 14px; }

.nav-cta { margin-left: 8px; }
.nav-toggle, .nav-close { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--c-navy); }
.nav-toggle .icon { width: 28px; height: 28px; }

/* ---------- Page banner ---------- */
.page-banner {
    position: relative;
    background: linear-gradient(120deg, var(--c-primary-deep), var(--c-primary)) center/cover;
    color: #fff; padding: 90px 0 70px; overflow: hidden;
}
.page-banner::before { content: ""; position: absolute; inset: 0;
    background: radial-gradient(80% 60% at 100% 0%, rgba(255,255,255,.16), transparent 60%),
                linear-gradient(180deg, rgba(11,31,44,.25), rgba(11,31,44,.55));
}
.page-banner[data-bg]::after {
    content: ""; position: absolute; inset: 0; background-size: cover; background-position: center;
    background-image: var(--bg-img); opacity: .25;
}
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner .eyebrow { background: rgba(255,255,255,.14); color: #d4f3ef; }
.page-banner h1 { color: #fff; margin-top: 14px; }
.page-banner p.lead { color: rgba(255,255,255,.88); max-width: 640px; margin-top: 12px; font-size: 1.05rem; }
.breadcrumb { color: #cadce0; font-size: 13.5px; margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: #cadce0; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span.sep { opacity: .5; }

/* ---------- Split hero (home) ---------- */
.hero {
    position: relative; padding: 80px 0 70px;
    background:
        radial-gradient(50% 50% at 90% 10%, rgba(14,124,134,.10), transparent 60%),
        radial-gradient(40% 60% at 10% 90%, rgba(255,122,89,.10), transparent 60%),
        #fff;
    overflow: hidden;          /* fallback for older browsers */
    overflow: clip;            /* modern: doesn't create a new BFC, text wraps naturally */
    overflow-clip-margin: 0;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 {
    /* Tighter ramp than the global --fs-display so narrow phones (~340–420px)
       get a font small enough that "Right here in Halol" never overflows. */
    font-size: clamp(1.55rem, 5.4vw, 3.6rem);
    line-height: 1.06;
    overflow-wrap: anywhere;   /* break long words at the container edge */
    word-break: break-word;    /* legacy Safari fallback for overflow-wrap */
    min-width: 0;              /* allow the headline's grid item to shrink */
}
.hero-copy { min-width: 0; }
.hero-grid > * { min-width: 0; }
.hero-copy h1 .accent { color: var(--c-primary); }
.hero-copy .lead { font-size: 1.13rem; color: var(--c-muted); margin: 18px 0 28px; max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.trust-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--c-line);
    padding: 9px 14px; border-radius: var(--radius-pill);
    font: 600 13px var(--font-head); color: var(--c-navy);
    box-shadow: var(--shadow-xs);
}
.trust-chip .icon { color: var(--c-primary); width: 16px; height: 16px; }

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 480px;           /* cap at 480px on wide screens... */
    margin-left: auto;
    aspect-ratio: 4 / 5;
    min-height: min(540px, 120vw);   /* ...but never taller than the viewport allows */
    min-width: 0;               /* let CSS Grid shrink this item below 480px */
    border-radius: var(--radius-lg); overflow: visible;
}
.hero-visual::before {
    content: ""; position: absolute; inset: -30px -30px -30px 30px;
    background: linear-gradient(135deg, var(--c-mint), transparent 70%);
    border-radius: 60% 40% 50% 50% / 50% 50% 60% 40%;
    z-index: 0;
}
.hero-stage {
    position: absolute;          /* fill parent regardless of intrinsic-size resolution */
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); background: var(--c-mint);
    z-index: 1;
}
.hero-stage .h-slide {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    opacity: 0; transition: opacity .9s var(--ease);
    background-size: cover; background-position: center;
    background-repeat: no-repeat;
}
.hero-stage .h-slide.active { opacity: 1; }
.hero-stage::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(11,31,44,.45));
    pointer-events: none;
}
.hero-card {
    position: absolute; left: -30px; bottom: 30px;
    background: #fff; border-radius: var(--radius); padding: 14px 16px;
    display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-md);
    z-index: 2; max-width: 280px;
}
.hero-card .ip { width: 44px; height: 44px; border-radius: 14px; background: var(--c-mint); color: var(--c-primary-deep);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-card strong { display: block; font: 700 14px var(--font-head); color: var(--c-navy); }
.hero-card span { font-size: 12.5px; color: var(--c-muted); }
.hero-card a { color: var(--c-primary); font-weight: 700; }
.hero-badge {
    position: absolute; right: -16px; top: 24px;
    background: var(--c-coral); color: #fff;
    padding: 10px 16px; border-radius: var(--radius-pill);
    font: 700 12.5px var(--font-head); letter-spacing: .8px; text-transform: uppercase;
    box-shadow: var(--shadow-md); z-index: 2;
}

/* ---------- Legacy slider (still used if hero-stage absent) ---------- */
.slides { position: relative; height: 540px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); background-size: cover; background-position: center; }
.slide.active { opacity: 1; }
.slide::before { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11,31,44,.78) 0%, rgba(11,31,44,.45) 60%, rgba(11,31,44,.18) 100%); }
.slide-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.slide-inner .s-box { max-width: 600px; color: #fff; }
.slide-inner h2 { color: #fff; font-size: 2.6rem; margin-bottom: 14px; }
.slide-inner p { font-size: 1.08rem; margin-bottom: 22px; color: #e3eef0; }
.slide-arrows { position: absolute; bottom: 24px; right: 24px; display: flex; gap: 10px; z-index: 5; }
.slide-arrows button { width: 44px; height: 44px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.4);
    cursor: pointer; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; transition: background var(--t-fast); }
.slide-arrows button:hover { background: var(--c-primary); border-color: var(--c-primary); }
.slide-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.slide-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.slide-dots button.active { background: #fff; }

/* ---------- Trust band ---------- */
.trust-band {
    background: linear-gradient(180deg, transparent 0 50%, var(--c-mint) 50% 100%);
    padding: 0 0 70px;
}
.trust-band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust-card {
    background: #fff; border-radius: var(--radius); padding: 26px 24px;
    box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: center;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    border: 1px solid var(--c-line);
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trust-card strong { display: block; font: 700 15px var(--font-head); color: var(--c-navy); margin-bottom: 2px; }
.trust-card span, .trust-card a { color: var(--c-muted); font-size: 14px; }
.trust-card a:hover { color: var(--c-primary); }

/* ---------- Bento services grid ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 18px;
}
.bento-card {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    background: #fff; border: 1px solid var(--c-line);
    border-radius: var(--radius); padding: 22px;
    color: var(--c-text); overflow: hidden;
    transition: all var(--t-fast);
    grid-column: span 2;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; color: var(--c-text); }
.bento-card .ip { width: 48px; height: 48px; border-radius: 14px; background: var(--c-mint); color: var(--c-primary-deep);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px; transition: all var(--t-fast); }
.bento-card:hover .ip { background: var(--c-primary); color: #fff; }
.bento-card h3 { font: 700 1.05rem/1.3 var(--font-head); color: var(--c-navy); margin-bottom: 6px; }
.bento-card p { font-size: 13.5px; color: var(--c-muted); line-height: 1.55; }
.bento-card .b-arrow {
    margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
    font: 700 13px var(--font-head); color: var(--c-primary);
    transition: gap var(--t-fast);
}
.bento-card:hover .b-arrow { gap: 12px; color: var(--c-primary-deep); }
.bento-card--feature {
    grid-column: span 4; grid-row: span 2; min-height: 360px;
    background: #1c4148 center/cover;
    color: #fff; justify-content: flex-end;
}
.bento-card--feature::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,32,40,.05) 0%, rgba(7,32,40,.85) 100%);
}
.bento-card--feature > * { position: relative; z-index: 1; }
.bento-card--feature h3 { color: #fff; font-size: 1.85rem; max-width: 460px; line-height: 1.15; }
.bento-card--feature p { color: rgba(255,255,255,.85); font-size: 15px; max-width: 460px; margin-top: 8px; }
.bento-card--feature .ip { background: rgba(255,255,255,.16); color: #fff; }
.bento-card--feature:hover .ip { background: var(--c-coral); color: #fff; }
.bento-card--feature .b-arrow { color: #fff; }
.bento-card--feature .b-tag {
    align-self: flex-start; background: rgba(255,255,255,.16); color: #fff;
    padding: 5px 12px; border-radius: var(--radius-pill);
    font: 700 11px var(--font-head); letter-spacing: 1.2px; text-transform: uppercase;
    margin-bottom: 14px;
}

/* Filter chips (services.php) */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.chip {
    padding: 9px 18px; border-radius: var(--radius-pill);
    border: 1.5px solid var(--c-line); background: #fff;
    font: 600 13.5px var(--font-head); color: var(--c-navy);
    cursor: pointer; transition: all var(--t-fast);
}
.chip:hover { border-color: var(--c-primary); color: var(--c-primary-deep); }
.chip.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ---------- About split + stats ---------- */
.split {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
.split-media { position: relative; }
.split-media::before {
    content: ""; position: absolute; inset: 20px -20px -20px 20px;
    background: linear-gradient(135deg, var(--c-mint), var(--c-mint-deep));
    border-radius: var(--radius-lg);
    z-index: -1;
}
.split-media img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-copy h2 { margin-top: 16px; }
.split-copy p { margin-top: 14px; color: var(--c-text); }
.ticklist { list-style: none; margin: 18px 0; }
.ticklist li { padding: 8px 0 8px 34px; position: relative; color: var(--c-text); }
.ticklist li::before {
    content: ""; position: absolute; left: 0; top: 9px; width: 22px; height: 22px;
    background: var(--c-primary); color: #fff; border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5L20 7'/></svg>");
    background-repeat: no-repeat; background-position: center;
}
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.stat {
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
    padding: 18px 20px; box-shadow: var(--shadow-xs);
}
.stat .stat-num { font: 800 2.1rem/1 var(--font-head); color: var(--c-primary-deep); letter-spacing: -.02em; }
.stat .stat-num small { font-size: 1rem; color: var(--c-coral); }
.stat .stat-lbl { font-size: 13.5px; color: var(--c-muted); margin-top: 4px; }

/* ---------- Why-choose band (dark) ---------- */
.why-band { background: var(--c-navy-deep); color: #d9e6ea; overflow: hidden; position: relative; }
.why-band::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(40% 60% at 10% 10%, rgba(14,124,134,.20), transparent 60%),
        radial-gradient(50% 60% at 100% 80%, rgba(255,122,89,.12), transparent 60%);
    pointer-events: none;
}
.why-band .wrap { position: relative; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-card { padding: 8px; }
.why-card .ip { width: 56px; height: 56px; border-radius: 18px; background: rgba(255,255,255,.06); color: #b9efe7;
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.why-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; position: relative; padding-bottom: 8px; }
.why-card h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--c-coral); border-radius: 2px; }
.why-card p { color: #9fb1ba; font-size: 14px; }

/* ---------- Doctor cards ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.doctor-card {
    position: relative; background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--c-line);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.doctor-card .dc-photo {
    aspect-ratio: 4 / 5; background: var(--c-mint); overflow: hidden; position: relative;
}
.doctor-card .dc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--t-slow); }
.doctor-card:hover .dc-photo img { transform: scale(1.04); }
.dc-photo::after {
    content: ""; position: absolute; inset: auto 0 0; height: 50%;
    background: linear-gradient(180deg, transparent, rgba(11,31,44,.85));
}
.dc-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--c-primary-deep); }
.dc-noimg .icon { width: 56px; height: 56px; }
.doctor-card .dc-body {
    position: relative; z-index: 1; margin-top: -68px; padding: 18px 18px 22px;
    color: #fff;
}
.doctor-card .dc-body h3 { color: #fff; font-size: 1.08rem; margin-bottom: 2px; }
.doctor-card .dc-body .dc-title { color: #b9efe7; font-weight: 600; font-size: 13px; }
.doctor-card .dc-body .dc-qual {
    color: #d9e6ea; font-size: 12.5px; margin-top: 8px;
    max-height: 0; overflow: hidden; opacity: 0; transition: all var(--t-med);
}
.doctor-card:hover .dc-body .dc-qual { max-height: 80px; opacity: 1; margin-top: 8px; }

/* ---------- Blog magazine (home) ---------- */
.mag { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.mag-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.post-card {
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
    overflow: hidden; transition: all var(--t-fast); display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .pc-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-mint); }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.post-card:hover .pc-img img { transform: scale(1.06); }
.post-card .pc-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.pc-tag {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    background: var(--c-mint); color: var(--c-primary-deep);
    font: 700 11.5px var(--font-head); padding: 4px 12px; border-radius: var(--radius-pill);
    text-transform: uppercase; letter-spacing: .8px;
}
.post-card h3 { font-size: 1.15rem; margin: 12px 0 8px; }
.post-card .pc-meta { color: var(--c-muted); font-size: 13px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.post-card p { color: var(--c-muted); font-size: 14.5px; flex: 1; }
.post-card .pc-link {
    margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
    font: 700 13.5px var(--font-head); color: var(--c-primary);
    transition: gap var(--t-fast);
}
.post-card:hover .pc-link { gap: 12px; color: var(--c-primary-deep); }

.post-card--feature .pc-img { aspect-ratio: 4 / 3; }
.post-card--mini { flex-direction: row; align-items: stretch; }
.post-card--mini .pc-img { aspect-ratio: 1; width: 140px; flex-shrink: 0; }
.post-card--mini .pc-body { padding: 16px 18px; }
.post-card--mini h3 { font-size: 1rem; margin: 8px 0 4px; }
.post-card--mini .pc-link { margin-top: auto; }

/* ---------- Testimonials rail ---------- */
.testi-section { position: relative; overflow: hidden; }
.testi-section::before {
    content: ""; position: absolute; top: -40px; right: -40px;
    width: 280px; height: 280px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230e7c86' opacity='.08'><path d='M6 17h3c0-3-1-4-3-5V6a4 4 0 0 0 4 4v7Zm9 0h3c0-3-1-4-3-5V6a4 4 0 0 0 4 4v7Z'/></svg>");
    background-repeat: no-repeat; background-size: contain;
}
.testi-rail-wrap { position: relative; }
.testi-rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: 360px;
    gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding: 6px 4px 30px;
}
.testi-rail::-webkit-scrollbar { display: none; }
.testi-card {
    scroll-snap-align: start;
    background: #fff; border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--c-line);
    display: flex; flex-direction: column; gap: 12px;
}
.testi-card .stars { color: var(--c-coral); display: flex; gap: 2px; }
.testi-card .quote { color: var(--c-text); font-size: 15px; flex: 1; }
.testi-card .who { margin-top: 8px; font: 700 14.5px var(--font-head); color: var(--c-navy); }
.testi-card .who span { display: block; font-weight: 400; font-size: 12.5px; color: var(--c-muted); }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.testi-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--c-line); cursor: pointer; padding: 0; transition: all var(--t-fast); }
.testi-dots button.active { background: var(--c-primary); width: 26px; border-radius: var(--radius-pill); }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden;
    background: linear-gradient(115deg, var(--c-primary-deep) 0%, var(--c-primary) 60%, #15a0ad 100%);
    color: #fff;
}
.cta-band::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 360px; height: 360px;
    background-image: radial-gradient(circle at center, rgba(255,255,255,.18) 0%, transparent 60%);
    pointer-events: none;
}
.cta-grid { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 600px; }
.cta-band p { color: rgba(255,255,255,.88); margin-top: 8px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Pre-footer CTA */
.prefoot {
    background: linear-gradient(120deg, var(--c-primary-deep), var(--c-primary));
    color: #fff; padding: 40px 0;
}
.prefoot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.prefoot h3 { color: #fff; font-size: 1.5rem; }
.prefoot p { color: rgba(255,255,255,.86); margin-top: 4px; }

/* ---------- Service detail ---------- */
.svc-hero {
    position: relative; padding: 120px 0 90px;
    background: #1c4148 center/cover; color: #fff; overflow: hidden;
}
.svc-hero::before { content: ""; position: absolute; inset: 0;
    background: linear-gradient(95deg, rgba(7,32,40,.85) 0%, rgba(7,32,40,.55) 70%, rgba(7,32,40,.25) 100%); }
.svc-hero .wrap { position: relative; max-width: 880px; }
.svc-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.svc-hero .lead { color: rgba(255,255,255,.88); margin-top: 12px; font-size: 1.08rem; max-width: 640px; }
.svc-hero .breadcrumb { color: rgba(255,255,255,.7); }
.svc-hero .breadcrumb a { color: rgba(255,255,255,.85); }

.svc-subnav {
    position: sticky; top: 152px; z-index: 50;
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-line);
}
.svc-subnav .wrap { display: flex; gap: 8px; padding: 12px 22px; overflow-x: auto; scrollbar-width: none; }
.svc-subnav a { padding: 8px 14px; border-radius: var(--radius-pill); font: 600 13.5px var(--font-head); color: var(--c-muted); white-space: nowrap; transition: all var(--t-fast); }
.svc-subnav a:hover, .svc-subnav a.active { background: var(--c-mint); color: var(--c-primary-deep); }

.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.content-body h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.content-body h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.content-body p { margin-bottom: 14px; }
.content-body ul, .content-body ol { margin: 0 0 16px 22px; }
.content-body li { margin-bottom: 6px; }
.content-body img { border-radius: var(--radius-sm); margin: 16px 0; }
.intro-lead { font-size: 1.12rem; color: var(--c-primary-deep); font-weight: 600; margin-bottom: 18px; line-height: 1.55; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0 28px; }
.feature-card-sm {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; background: var(--c-bg-soft); border-radius: var(--radius-sm);
    border: 1px solid var(--c-line);
}
.feature-card-sm .ip { width: 36px; height: 36px; border-radius: 10px; background: var(--c-mint); color: var(--c-primary-deep);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-card-sm .ip .icon { width: 18px; height: 18px; }
.feature-card-sm span { font-size: 14.5px; color: var(--c-text); font-weight: 500; }

/* Legacy feature-list kept for unmodified pages */
.feature-list { list-style: none; margin: 16px 0; }
.feature-list li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed var(--c-line); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 22px; height: 22px;
    background: var(--c-primary); border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5L20 7'/></svg>");
    background-repeat: no-repeat; background-position: center;
}

.sidebar { position: sticky; top: 110px; }
.sidebar-box {
    background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: var(--radius);
    padding: 22px; margin-bottom: 18px;
}
.sidebar-box h3 { font-size: 1.05rem; margin-bottom: 12px; color: var(--c-navy); }
.sidebar-nav { list-style: none; }
.sidebar-nav li a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--c-text); font-size: 14px; transition: all var(--t-fast); }
.sidebar-nav li a .icon { width: 16px; height: 16px; color: var(--c-primary); }
.sidebar-nav li a:hover, .sidebar-nav li.active a { background: var(--c-primary); color: #fff; }
.sidebar-nav li a:hover .icon, .sidebar-nav li.active a .icon { color: #fff; }
.sidebar-cta {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-deep) 100%);
    color: #fff; border-radius: var(--radius); padding: 26px; text-align: center;
    box-shadow: var(--shadow-glow);
}
.sidebar-cta h3 { color: #fff; }
.sidebar-cta p { color: rgba(255,255,255,.86); font-size: 13.5px; margin: 6px 0 14px; }
.sidebar-cta .phone { font: 700 1.5rem var(--font-head); display: block; margin: 6px 0 14px; }
.sidebar-cta a.phone { color: #fff; }

/* ---------- Media gallery ---------- */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.media-grid.media-4 { grid-template-columns: repeat(4, 1fr); }
.media-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-xs); position: relative; }
.media-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.media-grid a:hover img { transform: scale(1.07); }

.masonry { columns: 3 280px; column-gap: 16px; }
.masonry > * { break-inside: avoid; margin-bottom: 16px; }
.masonry a { display: block; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.masonry img { width: 100%; height: auto; display: block; transition: transform var(--t-slow); }
.masonry a:hover img { transform: scale(1.04); }
.masonry .cap {
    position: absolute; inset: auto 0 0; padding: 14px;
    background: linear-gradient(transparent, rgba(11,31,44,.85));
    color: #fff; font-size: 13px; opacity: 0; transition: opacity var(--t-fast);
}
.masonry a:hover .cap { opacity: 1; }

video { width: 100%; border-radius: var(--radius-sm); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(8,22,30,.94); display: none; align-items: center; justify-content: center; z-index: 999; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox .lb-close { position: absolute; top: 22px; right: 28px; color: #fff; font-size: 38px; cursor: pointer; line-height: 1; background: none; border: 0; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 44px; cursor: pointer; padding: 10px 18px; user-select: none; background: none; border: 0; }
.lightbox .lb-prev { left: 12px; } .lightbox .lb-next { right: 12px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
    margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-xs);
    transition: box-shadow var(--t-fast);
}
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--c-mint-deep); }
.faq-q {
    padding: 18px 22px; font: 600 1rem var(--font-head); color: var(--c-navy);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    outline: none;
}
.faq-q:hover { color: var(--c-primary); }
.faq-q:focus-visible { box-shadow: inset 0 0 0 2px var(--c-primary); border-radius: var(--radius-sm); }
.faq-q .sign {
    width: 30px; height: 30px; border-radius: 50%; background: var(--c-mint); color: var(--c-primary-deep);
    display: flex; align-items: center; justify-content: center; transition: transform var(--t-fast);
    flex-shrink: 0;
}
.faq-item.open .faq-q .sign { transform: rotate(180deg); background: var(--c-primary); color: #fff; }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: all var(--t-med); color: var(--c-text); }
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 800px; }

/* Section grouping on FAQ page */
.faq-section { max-width: 820px; margin: 0 auto 40px; }
.faq-section:last-of-type { margin-bottom: 0; }
.faq-section-title {
    display: flex; align-items: center; gap: 12px;
    font: 700 1.25rem var(--font-head); color: var(--c-navy);
    margin: 0 0 18px; padding: 14px 18px 14px 16px;
    background: linear-gradient(90deg, var(--c-mint) 0%, transparent 70%);
    border-left: 4px solid var(--c-primary);
    border-radius: 4px 12px 12px 4px;
}
.faq-section-title .ip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--c-primary); color: #fff; flex-shrink: 0;
}
.faq-section-title .faq-count {
    margin-left: auto; font: 500 12.5px var(--font-head);
    color: var(--c-muted); letter-spacing: .2px;
}

/* FAQ chip row — sticky under header so filters stay reachable while scrolling */
.faq-chip-row {
    position: sticky; top: 152px; z-index: 50;
    background: rgba(255,255,255,.95);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    padding: 14px 6px; margin: 0 -6px 36px;
    border-bottom: 1px solid var(--c-line);
    justify-content: flex-start;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact-info .ci-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-info .ci-item .ip { width: 48px; height: 48px; flex-shrink: 0; background: var(--c-mint);
    color: var(--c-primary-deep); border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.contact-info .ci-item strong { display: block; font: 700 15px var(--font-head); color: var(--c-navy); margin-bottom: 2px; }
.contact-info .ci-item span, .contact-info .ci-item a { color: var(--c-muted); font-size: 14.5px; }
.contact-info .ci-item a:hover { color: var(--c-primary); }

.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font: 600 13.5px var(--font-head); margin-bottom: 8px; color: var(--c-navy); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--c-line); border-radius: 12px;
    font-family: var(--font); font-size: 15px; color: var(--c-text); background: #fff;
    transition: all var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(14,124,134,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.alert--ok { background: #e4f6ec; color: #1d6b3e; border: 1px solid #b6e3c6; }
.alert--err { background: #fde8e8; color: #a3271f; border: 1px solid #f3c2bf; }

.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.footer { background: var(--c-navy-deep); color: #9fb1ba; padding: 64px 0 0; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--c-primary), transparent); }
.footer h4 { color: #fff; font: 700 1rem var(--font-head); margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer a { color: #c6d3da; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; font-size: 14px; }
.footer .f-brand img.logo-main { background: #fff; padding: 10px 14px; border-radius: 12px; height: 128px; width: auto; max-width: 100%; margin-bottom: 14px; object-fit: contain; }
.footer .f-brand p { font-size: 14px; line-height: 1.65; }
.footer .f-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer .f-contact li .icon { color: var(--c-primary); flex-shrink: 0; margin-top: 3px; }
.f-social { display: flex; gap: 10px; margin-top: 14px; }
.f-social a {
    width: 40px; height: 40px; border-radius: var(--radius-pill);
    background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center;
    transition: all var(--t-fast); color: #c6d3da;
}
.f-social a:hover { background: var(--c-primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 18px 0; font-size: 13px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Floating buttons ---------- */
.float-btns { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 12px; }
.float-btns a {
    width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; box-shadow: var(--shadow-md); transition: transform var(--t-fast);
}
.float-btns a:hover { transform: scale(1.08); color: #fff; }
.float-btns a .icon { width: 26px; height: 26px; color: #fff; }
.float-wa { background: #25d366; position: relative; }
.float-wa::before {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid #25d366; animation: pulse 2.2s var(--ease) infinite;
}
.float-call { background: var(--c-primary); }

@keyframes pulse {
    0% { transform: scale(.95); opacity: 0; }
    50% { opacity: .6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Generic grids (legacy) ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Legacy service-card kept so unmodified pages still render */
.service-card {
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
    padding: 28px 22px; transition: all var(--t-fast); display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card .sc-icon {
    width: 64px; height: 64px; margin: 0 0 16px; border-radius: 18px;
    background: var(--c-mint); color: var(--c-primary-deep);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.service-card .sc-icon img { width: 44px; height: 44px; object-fit: contain; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { color: var(--c-muted); font-size: 14.5px; flex: 1; }
.service-card .sc-link { margin-top: 14px; font: 700 13.5px var(--font-head); color: var(--c-primary); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Scroll reveal ----------
   Default visible so content never sits blank if JS fails. The .js-ready class
   is added by main.js once it has decided which elements to hide-then-reveal. */
.reveal { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-ready .reveal:not(.in-view) { opacity: 0; transform: translateY(20px); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-14 { margin-top: 14px; }
.mt-24 { margin-top: 24px; }
.mb-14 { margin-bottom: 14px; }
.mb-24 { margin-bottom: 24px; }
.empty-note { color: var(--c-muted); text-align: center; padding: 40px 0; }
.hide-sm { display: initial; }
.show-sm { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 520px; margin: 0 auto; }
    .doc-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-card--feature { grid-column: span 6; grid-row: auto; min-height: 280px; }
    .bento-card { grid-column: span 3; }
    .mag { grid-template-columns: 1fr; }
    .mag-stack { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
    .section { padding: 72px 0; }
    .header-bar { min-height: 124px; }
    .header.is-scrolled .header-bar { min-height: 100px; }
    .topbar { display: none; }
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .trust-band .wrap { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .megamenu { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav {
        position: fixed; top: 0; right: 0; width: min(340px, 90vw); height: 100vh; background: #fff;
        flex-direction: column; align-items: stretch; box-shadow: var(--shadow-lg); padding: 70px 18px 24px;
        overflow-y: auto; z-index: 250; gap: 8px;
        /* Defensive hide: transform + visibility ensure the drawer is fully off-screen
           and non-interactive even if a layout quirk overrides `right`. */
        transform: translateX(100%);
        visibility: hidden;
        transition: transform var(--t-med), visibility 0s linear var(--t-med);
    }
    .nav.open {
        transform: translateX(0);
        visibility: visible;
        transition: transform var(--t-med), visibility 0s linear 0s;
    }
    .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav > ul > li > a { padding: 13px 16px; border-radius: 12px; }
    .nav .has-sub > a::after { margin-left: auto; }
    .submenu {
        position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
        border: 0; border-radius: 0; background: var(--c-mint); display: none; padding: 4px 0; margin: 4px 0;
    }
    .submenu.show { display: block; }
    .submenu li a { padding-left: 32px; }
    .nav-close { display: inline-flex; position: absolute; top: 14px; right: 16px; }
    .nav-close .icon { width: 24px; height: 24px; }
    .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(8,22,30,.45); z-index: 240; }
    .nav-backdrop.show { display: block; }
    .nav-cta { margin: 6px 0 0; align-self: stretch; }
    .nav-cta .btn { width: 100%; justify-content: center; }
    .svc-subnav { top: 124px; }
    .faq-chip-row { top: 124px; }
    .doctor-card .dc-body .dc-qual { max-height: 80px; opacity: 1; }
    .hero-card { left: -12px; }
    .hero-badge { right: -8px; }
}

@media (max-width: 620px) {
    .section { padding: 56px 0; }
    .hero { padding: 48px 0; }
    .hero-visual { aspect-ratio: 5 / 6; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .doc-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .bento-card { grid-column: span 6; min-height: 130px; }
    .bento-card--feature h3 { font-size: 1.4rem; }
    .mag-stack { grid-template-columns: 1fr; }
    .post-card--mini { flex-direction: column; }
    .post-card--mini .pc-img { width: 100%; aspect-ratio: 16/10; }
    .media-grid, .media-grid.media-4 { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: 1fr; }
    .testi-rail { grid-auto-columns: 84%; }
    .faq-section-title { font-size: 1.1rem; padding: 12px 14px; }
    .faq-section-title .ip { width: 32px; height: 32px; }
    .faq-section-title .faq-count { display: none; }
    .brand-text .b-name { font-size: 1rem; }
    .brand img.logo-main { height: 96px; }
    .hide-sm { display: none; }
    .show-sm { display: initial; }
    .footer-bottom .wrap { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .float-wa::before { display: none; }
}
