/* ==========================================================================
   T. Jana's Physio Care — Single Page Website
   Infinite Option Web Solutions
   Design tokens first, then layout. Mobile-first throughout.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    /* Brand — the client's blue gradient, taken from the logo wordmark.
       Cyan is the light end, electric blue the dark end; green accent and
       orange stay, orange reserved ONLY for conversion buttons. */
    --brand-cyan: #0cb8b6;
    --brand-blue: #0cb8b6;

    /* Bright gradient — small surfaces, accents, plates.
       The blue stop lands at 66% rather than 100%: the cyan is very pale, and
       white icons on a 50/50 blend of it disappear. This keeps the cyan as a
       highlight on the leading corner while the body of the shape stays blue. */
    --gradient-brand: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 66%);
    /* Same gradient behind a dark scrim — for full sections that carry body text.
       White text on raw cyan fails contrast, the scrim fixes it while the cyan
       still reads through. */
    --gradient-band:
        linear-gradient(135deg, rgba(3, 16, 44, .38) 0%, rgba(3, 16, 44, .60) 100%),
        linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);

    --primary: #0cb8b6;
    --primary-dark: #0038C7;
    --primary-light: #07BAFC;
    --navy: #0cb8b6;
    --navy-soft: #062A5C;
    /* Ink for anything sitting ON the --navy band. --navy is a light cyan now,
       so these are dark; if --navy goes dark again, flip these two back to light. */
    --on-navy: #04293C;
    --on-navy-soft: #0A5570;

    --accent: #4CAF2B;
    --accent-dark: #3B8A21;

    --cta: #F7941D;
    --cta-dark: #DC7B08;

    --text: #10243A;
    --text-body: #4A5C6D;
    --text-muted: #7C8C9B;

    --bg: #FFFFFF;
    --bg-alt: #F2F7FD;
    --bg-soft: #E4F3FE;
    --line: #D8E6F5;

    --white: #fff;

    /* Type */
    --font-display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --font-body: 'Rubik', 'Segoe UI', sans-serif;

    /* Shape + motion */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-pill: 999px;
    --shadow-sm: 0 4px 14px rgba(6, 43, 76, .07);
    --shadow-md: 0 14px 34px rgba(6, 43, 76, .10);
    --shadow-lg: 0 26px 60px rgba(6, 43, 76, .16);
    --shadow-cta: 0 12px 26px rgba(247, 148, 29, .34);
    --t-fast: .2s cubic-bezier(.4, 0, .2, 1);
    --t-base: .35s cubic-bezier(.4, 0, .2, 1);

    --header-h: 74px;
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-body);
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text);
    line-height: 1.18;
    letter-spacing: -.02em;
    margin: 0 0 14px;
    font-weight: 800;
}

p { margin: 0 0 16px; }
a { text-decoration: none; color: var(--primary); transition: color var(--t-fast); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Same protection for every content grid on the page */
.rev-grid > *,
.intro-grid > *,
.intro-cards > *,
.gal-grid > *,
.foot-grid > *,
.detail-grid > *,
.faq-grid > * { min-width: 0; }

.section { padding: 62px 0; }
.section-alt { background: var(--bg-alt); }

/* Anchor targets stop clear of the sticky nav bar instead of landing under it */
section[id] { scroll-margin-top: 16px; }

/* Section heading block */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--cta);
    margin-bottom: 12px;
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.eyebrow.is-light { color: #8FE3FF; }
.eyebrow.is-light::before { background: var(--cta); }

.sec-head { max-width: 660px; margin-bottom: 38px; }
.sec-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.is-center .eyebrow::before { display: none; }
.sec-head h2 { font-size: 24px; }
.sec-head p { margin-bottom: 0; }
/* The cyan end is too light to read on white — highlight words take the blue end */
.hl { color: var(--brand-blue); }
.hl-green { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 30px;
    padding: 8px 15px;
    border: 2px solid transparent;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.btn i { font-size: 17px; }
.btn:hover { transform: translateY(-2px); }

.btn-cta { background: var(--cta); color: #fff; box-shadow: var(--shadow-cta); }
.btn-cta:hover { background: var(--cta-dark); color: #fff; }

.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 12px 26px rgba(0, 74, 255, .30); }
.btn-primary:hover { background: var(--brand-blue); color: #fff; }

.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-white{
     background: var(--white);
     display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 30px;
    padding: 8px 15px;
    color: var(--cta);
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);

}
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--primary-dark); }
/* WhatsApp actions always carry WhatsApp's own green, never the orange CTA —
   `.green` is kept as an alias so existing markup keeps working. */
.btn-whatsapp,
.btn.green {
    background: #25D366;
    color: #fff;
    box-shadow: 0 12px 26px rgba(37, 211, 102, .34);
}
.btn-whatsapp:hover,
.btn.green:hover { background: #1DA851; color: #fff; }
/* ---------- 3. Top bar ---------- */
.topbar {
    background: var(--navy);
    color: var(--on-navy-soft);
    font-size: 13px;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 42px;
    flex-wrap: wrap;
}
.topbar-msg { font-weight: 500; color: var(--white); text-align: center; }
.topbar-msg b { color: var(--white); font-weight: 700; }
/* Address + hours would force the document wider than a phone screen,
   so this row only appears from tablet width up. */
.topbar-meta { display: none; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar-meta span { display: inline-flex; align-items: center; gap: 8px; color: var(--white);}
.topbar-meta i { color: var(--white); font-size: 15px; }

/* ---------- 4. Header ---------- */
.site-header { background: #fff; }
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.brand { display: inline-flex; align-items: center; }
/* Wide, detailed logo — it needs real height or the tagline lines turn to mush */
.brand-logo {
    height: 56px;
    width: auto;
    display: block;
    transition: transform var(--t-fast);
}
.brand:hover .brand-logo { transform: scale(1.03); }
/* The logo carries a dark 3D edge, so on the navy footer it sits on a light
   plate to keep the wordmark readable. */
.brand.is-footer {
    background: #fff;
    border-radius: var(--r-md);
    padding: 10px 14px;
    margin-bottom: 16px;
}
.brand.is-footer .brand-logo { height: 76px; }

.header-info { display: none; align-items: center; gap: 28px; }
.info-item { display: flex; align-items: center; gap: 12px; }
.info-item .ico {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: 19px;
    transition: var(--t-fast);
}
.info-item:hover .ico { background: var(--primary); color: #fff; }
.info-item small { display: block; font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.info-item b {
    display: block;
    font-family: var(--font-display);
    font-size: 15.5px;
    color: var(--text);
}
.header-cta { display: none; }

.nav-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--r-sm);
    color: var(--primary);
    font-size: 22px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

/* ---------- 5. Navigation ---------- */
.nav-wrap { position: relative; z-index: 60;}
/* Vertical brand gradient: blue at the top, pale cyan at the foot */
.main-nav {
    display: none;
    background: linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
    border-top: 1px solid rgba(255, 255, 255, .22);
}
/* The phone menu is a drawer: a panel down the right-hand edge with the page
   dimmed behind it, sliding in from off-screen.

   Fixed to the viewport rather than sized in vh — `100vh` on iOS Safari is the
   height *without* the browser chrome, so a vh-sized panel is taller than the
   screen and its last link sits under the address bar. `inset` cannot be wrong
   that way. */
.main-nav.is-open {
    position: fixed;
    inset: 0 0 0 auto;                 /* full height, pinned to the right edge */
    width: min(82%, 340px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;      /* scrolling the drawer must not drag the page */
    box-shadow: -18px 0 40px rgba(3, 16, 44, .28);
    animation: nav-in .22s cubic-bezier(.22, .61, .36, 1);
}
@keyframes nav-in { from { transform: translateX(100%); } }

/* The dimmed page behind it. It lives inside `.nav-wrap`, which the body class
   raises to z-index 200, so `z-index: 1` here is enough to clear the fixed
   bottom bar while the drawer above it stays on top. */
.nav-scrim { display: none; }
body.nav-open .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(4, 27, 48, .55);
    animation: scrim-in .22s ease-out;
}
@keyframes scrim-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .main-nav.is-open, body.nav-open .nav-scrim { animation: none; }
}

/* `.nav-wrap` carries z-index 60, which is its own stacking context — the sheet
   inside it cannot climb over the mobile bar (130) on its own however high its
   z-index. The body class raises the whole wrapper instead, and takes the
   fixed bar and the floating WhatsApp button out of the way while it is open. */
body.nav-open { overflow: hidden; }
body.nav-open .nav-wrap { z-index: 200; }
body.nav-open .mobile-bar,
body.nav-open .fab-whatsapp,
body.nav-open .to-top { display: none; }

/* A row on the desktop bar, a column in the sheet. As a flex row the list was a
   shrink-to-fit item: it took only the width of its longest word, which is why
   the dividers stopped a third of the way across the panel. */
.nav-inner { display: block; }
.main-nav.is-open .nav-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;                  /* so the socials sit at the foot */
}

/* Close button only — the burger that opened the drawer is underneath it, and
   the logo is still on the header a tap away, so repeating it here only costs
   the drawer its first 70px. `.nav-brand` stays in the markup: from 992 it is
   the pinned bar's logo. */
.nav-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.nav-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.nav-close:hover { background: #fff; color: var(--primary); }

.nav-list { display: flex; flex-direction: column; padding: 6px 18px 14px; }
.main-nav.is-open .nav-list { flex: 1 1 auto; padding: 10px 20px 18px; }
.nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 14px 2px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, .28);
}
/* room to breathe now that the sheet has the whole screen */
.main-nav.is-open .nav-list > li > a { font-size: 17px; padding: 16px 2px; }

/* The sheet is tall; without these the foot of it is an empty block of colour. */
.main-nav.is-open .nav-socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, .22);
}
/* nothing follows the last link, so a rule under it just floats */
.nav-list > li:last-child > a { border-bottom: 0; }
.nav-list > li > a:hover,
.nav-list > li > a.is-active { color: #000; }
.nav-list .caret { font-size: 12px; transition: transform var(--t-fast); }
.has-drop.is-open > a .caret { transform: rotate(180deg); }

.drop {
    display: none;
    padding: 6px 0 12px 12px;
}
.has-drop.is-open .drop { display: block; }
.drop a {
    display: block;
    padding: 9px 10px;
    font-size: 14.5px;
    color: var(--text-body);
    border-radius: var(--r-sm);
}
.drop a:hover { background: var(--bg-alt); color: var(--primary); }

/* Logo inside the nav bar — only shown once the bar sticks to the top and the
   header (with the main logo) has scrolled away. */
.nav-brand { display: none; }
.nav-brand img { height: 50px; width: auto; display: block; }

.nav-socials { display: none; gap: 10px; }
.nav-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .55);
    color: var(--on-navy);
    font-size: 15px;
    transition: var(--t-fast);
}
.nav-socials a:hover { background: #fff; color: var(--primary); transform: translateY(-2px); }
/* the WhatsApp icon takes WhatsApp's green, like the footer socials do */
.nav-socials a[href*="wa.me"] { color: #1DA851; }
.nav-socials a[href*="wa.me"]:hover { background: #25D366; color: #fff; }

/* Sticky state */
.nav-wrap.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* box-shadow: var(--shadow-md); */
    animation: slideDown .35s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ---------- 6. Hero — image carousel only, no overlaid copy ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); }
/* The slides are all absolute, so the track carries the banner height itself —
   there is no longer any text inside to give it one.

   On a phone that height follows the viewport width rather than sitting at one
   number: a flat 300px on a 360px screen is very nearly square, which crops a
   landscape photograph to its middle and eats a third of the fold before a word
   of the page shows. 52vw keeps the band in proportion to the screen, and the
   clamp stops it collapsing on a 320px phone or running tall on a 575px one.
   The fixed heights come back from 576 up, where the range is narrow enough for
   a number to be right. */
.hero-track { position: relative; height: clamp(180px, 40vw, 200px); }
/* Outgoing slide keeps its visibility until the fade finishes, so the two
   slides genuinely cross-fade instead of flashing the background. */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility 0s linear .9s;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity .9s ease, visibility 0s linear 0s;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Round brand-gradient buttons, sitting over the photograph */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    background: var(--gradient-brand);
    color: var(--bg);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--t-fast);
}
.hero-arrow:hover { background: var(--cta); color: #fff; }
.hero-arrow.prev { left: 10px; }
.hero-arrow.next { right: 10px; }
/* On a phone the arrows crowd a small banner — dots and swipe cover navigation */
@media (max-width: 767px) { .hero-arrow { display: none; } }

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    /* Held closer to the edge on the short phone band, where 22px is a
       noticeable slice of the picture. Restored at 768. */
    bottom: 12px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 9px;
}
.hero-dots button {
    width: 26px;
    height: 4px;
    border: 0;
    padding: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: var(--t-fast);
}
.hero-dots button.is-active { background: var(--cta); width: 40px; }

/* ---------- 7. Intro band — portrait, promise, two highlights ----------
   Dark brand band directly under the hero: cut-out portrait on the left,
   Light band directly under the hero: cut-out portrait on the left, the clinic
   promise on the right, and a white panel of two highlight cards that the
   portrait tucks behind. */
.intro {
    position: relative;
    background: var(--bg-alt);
    overflow: hidden;
    /* small breathing room under the card panel before About begins */
    padding: 48px 0 36px;
}
/* Oversized word behind the portrait — the figure covers most of it, which is
   the point; it reads as texture rather than as a word to be read. */
.intro-mark {
    position: absolute;
    left: -24px;
    bottom: 250px;
    z-index: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 104px;
    line-height: 1;
    letter-spacing: 6px;
    color: rgba(0, 74, 255, .08);
    pointer-events: none;
    user-select: none;
}
/* keeps every real element above the watermark */
.intro > .container { position: relative; z-index: 1; }

/* On a phone the block stacks, and the reading order is deliberately not the
   markup order: the copy comes first, the portrait sits under it, and the
   highlight cards follow. Beside each other the portrait leads because the eye
   goes left; stacked, a photograph above the heading would push the actual
   message below the fold.

   `order` on the two grid children does that without moving anything in
   index.php, where the portrait has to stay first for the desktop layout.
   Both are reset at 768, where the two columns come back. */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: center;
}
.intro-copy   { order: 1; }
.intro-figure { order: 2; }

/* A flex column only so `order` works on the counters inside it — the visual
   result is identical to the block it is at 768 and up. */
.intro-copy { display: flex; flex-direction: column; }

.intro-figure { position: relative; text-align: center; }
/* Soft brand disc so the cut-out does not float against the flat background.
   It is sized in px, so it has to shrink with the column or it spills out of
   the grid and washes the copy beside it. */
.intro-figure::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 186, 252, .22), transparent 70%);
}
/* Stacked, the portrait has the whole width to itself and has to be reined in
   or it dwarfs the copy above it. From 768 the cap is dropped and the column
   decides the size again — a fixed max-width there is what once forced the
   grid wider than the viewport, which is why `.intro-grid > *` is in the
   `min-width: 0` list above. */
.intro-figure img {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    width: 100%;
    max-width: 260px;
    filter: drop-shadow(0 12px 22px rgba(6, 43, 76, .22));
}

/* Credentials strip in place of the old label chip.
   Two columns while it has to wrap — a divider on the last item of a wrapped
   row would dangle with nothing after it, and CSS can't detect a row break.
   The dividers only appear at 992 where all four sit on one line. */
.intro-stats {
    display: grid;
    /* All three on one line, even on the narrowest phone: equal 1fr tracks
       rather than `auto`, so a long label shares the width instead of pushing
       its neighbours onto a second row. The numbers are set small here for the
       same reason — they are a footnote at this size, not a headline. */
    grid-template-columns: repeat(3, 1fr);
    gap: 0 10px;
    /* Stacked, the counters read as a footnote to the promise rather than as a
       preamble to it, so they sit under the buttons — see the `order` on the
       flex column below. Above the heading again from 768. */
    order: 1;
    margin: 24px 0 0;
}
.intro-stats li { position: relative; line-height: 1.2; min-width: 0; }
.intro-stats b {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.02em;
}
.intro-stats span { display: block; font-size: 10.5px; line-height: 1.3; color: var(--text-muted); }
.intro-copy h2 { color: var(--text); font-size: 23px; line-height: 1.3; }
.intro-copy h2 span { color: var(--brand-blue); }
.intro-copy p { color: var(--text-body); font-size: 14.5px; line-height: 1.65; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.intro-actions .btn { padding: 12px 18px; font-size: 14px; }

/* Highlight panel — white card the portrait stands behind */
.intro-cards {
    position: relative;
    z-index: 3;              /* sits over the portrait, hiding its cut edge */
    /* Stacked, the portrait sits directly above this panel and is meant to meet
       it — the same tuck the desktop layout gets from a negative margin. The
       34px separation comes back at 768, where the portrait moves beside the
       copy and the panel needs clearing from the grid above it. */
    margin-top: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 26px 22px 30px;
    display: grid;
    gap: 24px;
}
.intro-card .ico {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 24px;
    margin-bottom: 14px;
    box-shadow: 0 8px 18px rgba(0, 74, 255, .22);
}
.intro-card h3 { color: var(--text); font-size: 17px; margin-bottom: 8px; }
.intro-card p { color: var(--text-body); font-size: 14.5px; margin: 0; line-height: 1.65; }
/* ---------- 8. About — copy left, clinic photograph bled in on the right ----
   The photograph is a section background rather than an <img>, so the subject
   runs to the edge of the viewport. It already fades to near-white on its left,
   and the gradient overlay finishes the job so the copy always sits on a clean
   ground whatever the screen width. */
.about {
    position: relative;
    background-color: var(--bg-alt);
    /* index.php sets --about-bg from the admin panel; the url() here is the
       fallback for when nothing has been uploaded yet. */
    background-image: var(--about-bg, url("../images/bg.png"));
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    /* starts flush against the intro section above it */
    padding: 0 0 60px;
    overflow: hidden;
}
/* On a phone the copy sits over the whole photograph, so the wash is almost
   flat and the picture is reduced to texture. The diagonal reveal only makes
   sense once there is room for the copy beside the subject — see the 992
   breakpoint. */
.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(242, 247, 253, .95) 0%,
        rgba(242, 247, 253, .93) 100%);
}
.about .container { position: relative; z-index: 1; }
.about-copy { max-width: 560px; }
.about h2 { font-size: 24px; margin-bottom: 14px; }
.about-lead { font-size: 17px; color: var(--text-body); max-width: 480px; }

.about-list { display: grid; gap: 14px; margin: 26px 0 32px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.about-list i { color: var(--brand-blue); font-size: 20px; line-height: 1.45; }

/* Solid call-to-action block beside the signature, split by a hairline rule */
.about-foot { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--gradient-brand);
    color: #fff;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    padding: 18px 26px;
    border-radius:50px;
    box-shadow: 0 14px 30px rgba(0, 74, 255, .26);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    /* One line, always. A pill broken over three lines stops reading as a button
       and starts reading as a paragraph that happens to be coloured. The copy is
       admin-editable, so this holds whatever wording is typed rather than
       depending on the current text being short enough. */
    white-space: nowrap;
}
.about-cta i { font-size: 30px; color: var(--cta); flex: 0 0 auto; }
.about-cta:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 18px 36px rgba(0, 74, 255, .34); }

.about-sign { display: flex; align-items: center; gap: 14px; padding-left: 20px; border-left: 3px solid var(--cta); }
.about-sign img {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
}
.sign-name {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 30px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.1;
}
.sign-role { display: block; font-size: 12.5px; color: var(--text-muted); }
/* ---------- 8b. Location — full-bleed map with a floating detail card ------ */
.map-band {
    position: relative;
    line-height: 0;                 /* kills the inline-frame descender gap */
    background: var(--bg-alt);
}
.map-band iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}
.map-card {
    position: relative;
    z-index: 2;
    margin: -40px 18px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px 22px 26px;
    line-height: 1.75;
}
/* The big line is meant to be the area — "Bauria, Howrah" — with the address
   small beneath it. Clamped so that a whole address pasted in by mistake wraps
   to three lines instead of pushing the button out of the card. */
.map-card h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.map-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: 18px;
}

/* ---------- 9. Services — photo cards on a snap slider ---------- */
.svc-slider { position: relative; }

/* Native horizontal scroller: touch swipe and trackpad work for free, the
   arrows just drive scrollLeft. */
.svc-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 2px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.svc-track::-webkit-scrollbar { display: none; }

.svc-card {
    position: relative;          /* containing block for .svc-cover */
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* extra top room so the title never runs under the badge */
.svc-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 34px 24px 26px;
}
.svc-card h3 { font-size: 18px; margin-bottom: 8px; }
/* Two lines then an ellipsis — the full condition list lives on the detail page */
.svc-card p {
    font-size: 14.5px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More on the left, the arrow in the bottom-right corner of the card.
   `margin-top: auto` pins the row to the foot so it lines up across a row of
   cards whose copy runs to different lengths. */
.svc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}
.svc-more {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
}

/* Photo sits at the top of the card and the badge straddles its lower edge.
   (The arrow is no longer here — it lives in .svc-foot.) */
.svc-media { position: relative; }
.svc-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.svc-badge {
    position: absolute;
    bottom: -30px;
    right: 20px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 5px solid #fff;
    color: var(--brand-blue);
    font-size: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--t-base);
}
.svc-card:hover .svc-badge { background: var(--gradient-brand); color: #fff; }

/* An uploaded PNG or SVG badge. Contained, not covered: a logo cropped to fill
   a circle is a logo with its edges cut off. */
.svc-badge img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

/* ---- the fixed card artwork -------------------------------------------
   Two drawings of the same icon, colour and white, stacked in the badge's one
   grid cell and cross-faded. The badge is already `display: grid`, so putting
   both in `grid-area: 1 / 1` overlaps them without absolute positioning and
   without the badge having to become a containing block.

   Both are in the HTML rather than swapping one src on hover: a swap starts a
   download at the moment the pointer arrives, and the badge flashes empty the
   first time each card is hovered. */
.svc-badge.is-art img {
    grid-area: 1 / 1;
    width: 34px;
    height: 34px;
    object-fit: contain;
    transition: opacity var(--t-base);
}
.svc-badge.is-art .art-w { opacity: 0; }
/* driven by the card, because the whole card is the link */
.svc-card:hover .svc-badge.is-art .art-c { opacity: 0; }
.svc-card:hover .svc-badge.is-art .art-w { opacity: 1; }

/* The plate still turns to the brand gradient under the artwork — that is what
   the white drawing exists for. (`.is-img`, the uploaded single icon, keeps its
   white plate instead: one file cannot recolour itself.) */
/* The plate stays white under an uploaded icon. The hover state recolours a
   font icon to white, which a PNG cannot follow — turning the plate to the
   brand gradient under a dark icon would bury it. The lift and the shadow give
   the hover feedback instead. */
.svc-card:hover .svc-badge.is-img { background: #fff; }
.svc-card:hover .svc-badge.is-img img { transform: scale(1.08); }
.svc-badge.is-img img { transition: transform var(--t-base); }

.svc-go {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bg-alt);
    color: var(--text);
    font-size: 19px;
    transition: var(--t-base);
}
/* driven by the card, since the whole card is the link now */
.svc-card:hover .svc-go {
    background: var(--gradient-brand);
    color: #fff;
    transform: rotate(45deg);
}

/* The whole card is one link: this anchor covers it and carries the accessible
   name, so the arrow above is decorative only (no nested anchors). */
.svc-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
}
.svc-cover:focus-visible {
    outline: 3px solid var(--brand-blue);
    outline-offset: 3px;
}

/* Mobile: arrows sit under the track. From tablet up they move to the sides,
   vertically centred on the cards — see the 768 breakpoint. */
.svc-nav { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.svc-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 19px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--t-fast);
}
.svc-arrow:hover:not(:disabled) { background: var(--gradient-brand); border-color: transparent; color: #fff; }
.svc-arrow:disabled { opacity: .35; cursor: default; }

.svc-note {
    margin-top: 30px;
    background: var(--bg-soft);
    border-radius: var(--r-md);
    padding: 22px;
    display: grid;
    gap: 14px;
    align-items: center;
    text-align: center;
}
.svc-note p { margin: 0; color: var(--text); font-size: 15.5px; }
.svc-note b { font-family: var(--font-display); }

/* ---------- 10. Gallery ---------- */
/* Full-bleed mosaic — the grid sits outside .container on purpose, so the
   photographs run edge to edge. Every tile opens in the lightbox. */
.gal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.gal-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0;          /* tiles butt together in the full-bleed band */
    cursor: pointer;
    background: var(--bg-soft);
    aspect-ratio: 4 / 3;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gal-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 16, 44, .80), rgba(3, 16, 44, 0) 60%);
    opacity: 0;
    transition: opacity var(--t-base);
}
.gal-item:hover img { transform: scale(1.08); }
.gal-item:hover::after { opacity: 1; }
.gal-cap {
    position: absolute;
    left: 14px;
    bottom: 12px;
    right: 14px;
    z-index: 2;
    color: #fff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--t-base);
}
.gal-item:hover .gal-cap { transform: translateY(0); opacity: 1; }

/* `.gal-item { display:block }` would otherwise beat the browser's [hidden]
   rule, so the JS-hidden tiles need this explicitly. Without JS every photo
   simply shows — the gallery never ends up empty. */
.gal-item[hidden] { display: none; }

.gal-more,
.faq-more { text-align: center; margin-top: 26px; }
/* .faq-col keeps the accordion and its button in a single grid cell, so the
   button follows the last question instead of starting a new grid row under
   the tall panel on the left */
.faq-more { margin-top: 22px; }
.gal-more .btn i,
.faq-more .btn i { transition: transform var(--t-fast); }
.gal-more .btn:hover i,
.faq-more .btn:hover i { transform: translateY(3px); }
/* same reason as .gal-item[hidden] — be explicit rather than rely on the UA rule */
.acc-item[hidden] { display: none; }


/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(6, 43, 76, .93);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 78vh; border-radius: var(--r-md); }
.lb-close, .lb-nav {
    position: absolute;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--t-fast);
}
.lb-close:hover, .lb-nav:hover { background: var(--cta); border-color: var(--cta); }
.lb-close { top: 20px; right: 20px; }
.lb-nav.prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-caption {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    color: #CFE2F1;
    font-size: 14px;
}

/* ---------- 11. Certifications — framed cards on a snap slider ---------- */
.cert { background: #eeffff; color: var(--on-navy); overflow: hidden; }
.cert .sec-head h2 { color: var(--on-navy); }
.cert .sec-head p { color: var(--on-navy-soft); }
.cert .eyebrow.is-light { color: var(--on-navy-soft); }
.cert .eyebrow.is-light::before { background: var(--on-navy); }

.cert-slider { position: relative; }
.cert-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 2px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cert-track::-webkit-scrollbar { display: none; }

/* White mount with the scan inset inside a thin frame, caption underneath */
.cert-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    margin: 0;
    background: #fff;
    border-radius: 16px;
    padding: 12px 12px 4px;
    transition: transform var(--t-base);
}
.cert-card:hover { transform: translateY(-6px); }
.cert-shot {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-alt);
}
.cert-shot img {
    width: 100%;
    aspect-ratio: 600 / 430;
    object-fit: cover;
    display: block;
}
.cert-card figcaption {
    padding: 14px 6px 14px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-body);
    line-height: 1.45;
}

.cert-nav { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.cert-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(4, 41, 60, .30);
    background: rgba(255, 255, 255, .60);
    color: var(--on-navy);
    font-size: 19px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--t-fast);
}
.cert-arrow:hover:not(:disabled) { background: var(--gradient-brand); border-color: transparent; color:var(--white)}
.cert-arrow:disabled { opacity: .3; cursor: default; }

/* ---------- 11b. Videos — clip slider under the gallery ----------
   The head is two columns from 768 up: heading on the left, paragraph on the
   right, which is the shape the client asked for and a deliberate break from
   the centred heading the other sections use. Stacked on a phone, because two
   narrow columns of prose read worse than one. */
.videos { background: var(--bg-alt); }

.vid-head { display: grid; gap: 14px; margin-bottom: 30px; }
.vid-head h2 { margin: 0; font-size: 26px; line-height: 1.22; }
.vid-head p  { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.75; }

.vid-slider { position: relative; }
.vid-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.vid-track::-webkit-scrollbar { display: none; }

.vid-card { flex: 0 0 100%; scroll-snap-align: start; margin: 0; min-width: 0; }

/* The still and the play button. A <button> rather than a div, so it is
   reachable by keyboard — and `aspect-ratio` rather than a fixed height, so the
   card keeps 16:9 at every width without a wrapper doing padding tricks. */
.vid-shot {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #0B2239;
    cursor: pointer;
}
.vid-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.vid-shot:hover img { transform: scale(1.03); }
.vid-blank { position: absolute; inset: 0; background: var(--gradient-band); }

/* A white disc with a dark triangle, as in the reference. */
.vid-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--brand-blue);
    font-size: 30px;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
    transition: var(--t-base);
}
.vid-shot:hover .vid-play,
.vid-shot:focus-visible .vid-play { transform: translate(-50%, -50%) scale(1.09); background: #fff; }
/* the triangle sits optically centred, not geometrically */
.vid-play i { margin-left: 3px; }

/* Once played, the button is replaced by the player itself. */
.vid-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #000;
    display: block;
}

.vid-meta { padding: 14px 2px 0; }
.vid-meta h3 { margin: 0 0 4px; font-size: 17px; }
.vid-meta p  { margin: 0; font-size: 14px; color: var(--text-soft); line-height: 1.6; }

/* Shared arrow, same treatment as the other sliders. */
.sl-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 19px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--t-fast);
}
.sl-arrow:hover:not(:disabled) { background: var(--gradient-brand); border-color: transparent; color: #fff; }
.sl-arrow:disabled { opacity: .3; cursor: default; }
/* On a phone they sit under the slider rather than over the picture, where they
   would cover the very thing being previewed. */
.vid-slider .sl-arrow { position: static; margin: 14px 6px 0; display: inline-grid; }

/* ---------- 12. Reviews ---------- */
.rev-top { display: grid; gap: 22px; align-items: end; margin-bottom: 34px; }
.rating-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}
.rating-score {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stars { color: var(--cta); font-size: 15px; letter-spacing: 2px; }
.rating-box small { display: block; color: var(--text-muted); font-size: 13px; }

.rev-grid { display: grid; gap: 18px; }
.rev-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 24px 22px;
    position: relative;
    transition: var(--t-base);
}
.rev-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
/* Keeps the patient name aligned to the card bottom when quotes differ in length */
.rev-card { display: flex; flex-direction: column; }
.rev-card .rev-who { margin-top: auto; }
.rev-card .quote {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 44px;
    color: var(--bg-soft);
    line-height: 1;
}
.rev-card p { font-size: 15px; color: var(--text-body); position: relative; z-index: 1; }
.rev-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--bg-alt); }
.avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--bg-soft);   /* shows while the photo loads */
}
.rev-who b { display: block; font-family: var(--font-display); font-size: 15.5px; color: var(--text); }
.rev-who span { font-size: 13px; color: var(--text-muted); }

/* ---------- 13. FAQ ---------- */
.faq-grid { display: grid; gap: 30px; }
/* Orange panel — everything on it is black; the old white/pale-blue text was
   left over from when this panel was dark. */
.faq-aside {
    background: var(--cta);
    border-radius: var(--r-lg);
    padding: 30px 26px;
    color: #000;
}
.faq-aside h3 { color: #000; font-size: 19px; }
.faq-aside p { color: rgba(0, 0, 0, .78); font-size: 15px; }
.faq-aside .eyebrow.is-light { color: #000; }
.faq-aside .eyebrow.is-light::before { background: #000; }

.faq-call { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.faq-call .ico {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    /* was orange-on-orange and invisible once the panel changed colour */
    background: #fff;
    color: var(--cta-dark);
    font-size: 22px;
}
.faq-call small { display: block; color: rgba(0, 0, 0, .70); font-size: 12.5px; }
.faq-call b { font-family: var(--font-display); font-size: 19px; color: #000; }

.acc-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--t-base);
}
.acc-item.is-open { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.acc-q {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 17px 52px 17px 20px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    position: relative;
}
.acc-q::after {
    content: "\F64D";
    font-family: "bootstrap-icons";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--primary);
    transition: transform var(--t-fast);
}
.acc-item.is-open .acc-q::after { transform: translateY(-50%) rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height var(--t-base); }
.acc-a p { padding: 0 20px 18px; margin: 0; font-size: 15px; }

/* ---------- 14. Contact — copy + hours left, booking panel right ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; gap: 30px; align-items: start; }
/* grid children default to min-width:auto; a select sized by its longest option
   would otherwise stretch the page past the phone viewport */
.contact-grid > *,
.contact-info > *,
.form-grid > * { min-width: 0; }

/* --- left column --- */
.chip-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--r-pill);
    margin-bottom: 16px;
}
.contact-copy h2 { font-size: 24px; }
.contact-copy > p { color: var(--text-body); max-width: 540px; }

.hours {
    width: 100%;
    border-collapse: collapse;
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    background: #fff;
}
.hours th,
.hours td {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.hours thead th {
    background: var(--bg-soft);
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text);
}
.hours tbody td { color: var(--text-body); }
.hours tbody td:first-child { font-weight: 500; color: var(--text); }
.hours tr:last-child td { border-bottom: 0; }

/* --- Booking: framed photograph beside the form, on the brand band --------- */
.book { background: #eeffff; }
.book-split { display: grid; gap: 30px; align-items: center; }

/* A contained, rounded photo rather than a full-bleed half — the caption chip
   rides on its bottom edge. */
.book-photo {
    position: relative;
    margin: 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    
}
.book-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.book-photo figcaption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(4, 18, 44, .62);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r-pill);
    padding: 9px 16px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
}
.book-photo figcaption i { color: var(--accent); font-size: 16px; }

.book-panel { background: transparent; padding: 0; }
.book-inner { max-width: 620px; margin: 0 auto; }
.book-panel h2 { color: #10243A; font-size: 23px; margin-bottom: 22px; }

.chip-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cta);
    border: 1px solid rgba(255, 255, 255, .22);
    color: var(--bg);
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: var(--r-pill);
    margin-bottom: 16px;
}
.chip-dark i { color: var(--bg); }

/* Fields sit on the dark panel: translucent fill, light text and placeholders */
.book-panel .field label { color: rgba(37, 37, 37, 0.78); }
.book-panel .field input,
.book-panel .field select,
.book-panel .field textarea {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(17, 17, 17, 0.22);
    color: rgba(37, 37, 37, 0.78);
}
.book-panel .field input::placeholder,
.book-panel .field textarea::placeholder { color: rgba(31, 31, 31, 0.55); }
.book-panel .field select option { color: var(--text); }   /* native menu stays light */
.book-panel .field input:focus,
.book-panel .field select:focus,
.book-panel .field textarea:focus {
    border-color: var(--cta);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, .22);
}
.book-panel .field input[type="date"] { color-scheme: dark; }

.book-submit { display: flex; justify-content: flex-end; }
.book-submit .btn { min-width: 220px; }
.form-note { font-size: 12.5px; color: rgba(29, 29, 29, 0.6); margin: 14px 0 0; }

.form-grid { display: grid; gap: 16px; }
.field label {
    display: block;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #1a1a1a;
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: #fff;
    transition: var(--t-fast);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(7, 186, 252, .16);
}
.field .err { display: none; color: #D93025; font-size: 12.5px; margin-top: 5px; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #D93025; }
.field.has-error .err { display: block; }

.form-msg {
    display: none;
    border-radius: var(--r-sm);
    padding: 13px 16px;
    font-size: 14.5px;
    margin-bottom: 16px;
}
.form-msg.ok { display: block; background: #E8F6E4; color: #2C6B18; border: 1px solid #BFE4B4; }
.form-msg.bad { display: block; background: #FDECEA; color: #B3261E; border: 1px solid #F5C6C2; }

/* --- info cards --- */
.contact-info { display: grid; gap: 16px; margin-top: 34px; }
.ci-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 20px;
    transition: var(--t-base);
}
.ci-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.ci-card .ico {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 26px;
    box-shadow: 0 10px 22px rgba(0, 74, 255, .24);
}
.ci-card b {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--text);
    margin-bottom: 3px;
}
.ci-card span span,
.ci-card > span > span { display: block; font-size: 14.5px; color: var(--text-body); line-height: 1.55; }

/* ---------- 15. Footer ---------- */
.site-footer { background: #6f00d2; color: var(--on-navy-soft); padding-top: 52px; }
.foot-grid { display: grid; gap: 30px; padding-bottom: 34px; }
.site-footer h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}
.site-footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--cta);
}
.site-footer p { font-size: 14.5px; color: var(--white); }
.foot-links li { margin-bottom: 9px; }
.foot-links a { color: var(--white); font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; }
.foot-links a i { color: var(--white); font-size: 12px; }
.foot-links a:hover { color: var(--white); }
.foot-contact li { display: flex; gap: 11px; margin-bottom: 13px; font-size: 14.5px; }
.foot-contact i { color: var(--white); font-size: 17px; line-height: 1.6; }
.foot-contact a { color: var(--white); }
.foot-contact a:hover { color: var(--white); }
.foot-socials { display: flex; gap: 10px; margin-top: 18px; }
.foot-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .55);
    color: var(--text);
    font-size: 16px;
    transition: var(--t-fast);
}
.foot-socials a:nth-of-type(1):hover { background: var(--white); }
.foot-socials a:nth-of-type(2):hover { background: var(--white); }
.foot-socials a:nth-of-type(3):hover { background: var(--white); }
.foot-socials a:nth-of-type(4):hover { background: var(--white); }
.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 0 88px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    font-size: 13.5px;
}
.foot-bottom a { color: var(--white); }
.foot-bottom span{
    color: var(--white);
}

.foot-contact span{
    color: var(--white); 
}

/* ---------- 16. Floating + mobile bar ---------- */
.fab-whatsapp {
    position: fixed;
    right: 16px;
    bottom: 82px;
    z-index: 120;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25D366;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
    transition: var(--t-fast);
}
.fab-whatsapp:hover { transform: scale(1.08); color: #fff; }

.to-top {
    position: fixed;
    right: 16px;
    bottom: 144px;
    z-index: 120;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--t-base);
    box-shadow: var(--shadow-md);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(6, 43, 76, .10);
}
.mobile-bar a {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.mobile-bar a i { font-size: 19px; }
.mobile-bar a:first-child { color: var(--primary); }
.mobile-bar a:last-child { background: #25D366; color: #fff; }   /* WhatsApp green */

/* ---------- 17. Scroll reveal (fail-safe: hidden only when JS is on) ---------- */
.has-js [data-animate] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}
.has-js [data-animate].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001s !important; transition-duration: .001s !important; }
    .has-js [data-animate] { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- 18. Service detail page ---------- */
/* Page hero — a clinic photograph under a flat black overlay. It has to be a
   translucent layer of its own, not `--gradient-band`, because that token's
   lower layer is the raw opaque gradient and would hide the photograph
   completely. .72 keeps the photo readable while white headings and the light
   breadcrumb links stay legible over the brightest part of the image. */
.page-hero {
    position: relative;
    background-color: #000;
    /* service.php sets --page-hero-bg from the admin panel; the url() here is
       the fallback for a database that has no photo chosen yet. */
    background-image:
        linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .72)),
        var(--page-hero-bg, url('../images/hero-2.jpg'));
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    color: #fff;
    padding: 54px 0;
    text-align: center;
}
.page-hero h1 { color: #fff; font-size: 24px; }
.crumb { font-size: 14px; color: #A9C6DD; }
.crumb a { color: #8FE3FF; }
.crumb i { font-size: 11px; margin: 0 6px; }

.detail-grid { display: grid; gap: 30px; }
.detail-body h2 { font-size: 20px; margin-top: 26px; }
.detail-body h2:first-child { margin-top: 0; }
.detail-figure img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
/* The "What This Covers" card grid is gone — the sub-services it listed are now
   the sidebar's tabs, and each one has a page of its own. */

/* ---- one sub-service, laid out as an article -----------------------------
   The shape of a blog post: a wide photograph across the top, then a single
   column of copy with the lists, the quote and the second photograph spaced
   down it. */
/* No `.post > h2` rule any more: the article no longer repeats the page name as
   a heading of its own — the banner carries it as the <h1> and the body opens
   with its own. Headings inside the copy are `.post-body h2`, further down. */
.post > p { margin: 0 0 18px; }

/* The banner. 16:10 rather than a fixed height, so the same photograph works
   from a phone to a wide screen without the subject being cropped away. */
.post-hero {
    margin: 0 0 22px;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.post-hero img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

/* ---- the body written in the editor --------------------------------------
   Whatever the editor produced: paragraphs, headings, lists, links, quotes and
   photographs dropped into the middle of the text. Styled here rather than left
   to the browser, or an <h2> from the editor would out-shout the page title. */
.post-body > *:first-child { margin-top: 0; }
.post-body > *:last-child  { margin-bottom: 0; }
.post-body p { margin: 0 0 18px; }
.post-body h2 { font-size: 22px; margin: 30px 0 12px; }
.post-body h3 { font-size: 18px; margin: 26px 0 10px; }
.post-body ul,
.post-body ol { margin: 0 0 18px; padding-left: 22px; }
.post-body li { margin-bottom: 8px; line-height: 1.7; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }

/* ---- lists written in the editor -------------------------------------
   Quill 2 does NOT emit <ul>. It writes EVERY list as an <ol> and records
   which kind it is on the item: <li data-list="bullet"> or "ordered". So the
   moment the clinic edits a page and saves, every bullet list it contains
   starts rendering as 1. 2. 3. on the website — which is exactly what happened
   to the Spondylolisthesis page.

   Setting list-style-type on the ITEM overrides the <ol> it sits in, so both
   kinds render correctly whichever wrapper Quill chose. Pages written before
   the editor touched them still use real <ul>/<ol> and are unaffected. */
.post-body li[data-list="bullet"]  { list-style-type: disc; }
.post-body li[data-list="ordered"] { list-style-type: decimal; }

/* The empty span Quill puts in each item to draw its own marker. It belongs to
   the editor, not to the page, and it adds a stray gap if left visible. */
.post-body .ql-ui { display: none; }

/* Quill marks nesting with a class rather than by nesting the list. */
.post-body .ql-indent-1 { margin-left: 24px; }
.post-body .ql-indent-2 { margin-left: 48px; }
.post-body .ql-indent-3 { margin-left: 72px; }
.post-body a { color: var(--primary); text-decoration: underline; }
.post-body strong, .post-body b { color: var(--text); font-weight: 700; }

/* A photograph dropped into the middle of the copy.

   `max-width`, not `width` — a width set in the editor arrives as a `width`
   attribute on the <img>, and `width: 100%` here would override it and stretch
   every picture back to full measure however it was sized. With max-width the
   chosen size is honoured, an image with no width set still fills the column at
   most, and both still shrink to fit a phone. `height: auto` keeps whatever is
   chosen in proportion. */
.post-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

/* The editor's own quote, distinct from the pulled-out line below. */
.post-body blockquote {
    margin: 22px 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--line);
    color: var(--text-body);
    font-style: italic;
}
.sub-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 4px 12px 4px 10px;
    border-radius: 20px;
    background: var(--bg-alt);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}
.sub-eyebrow i { font-size: 13px; color: var(--primary); }
.sub-eyebrow a { color: var(--primary); }
.sub-eyebrow a:hover { text-decoration: underline; }

/* The opening line, set a shade larger than the body so the page has
   somewhere to start. */
.panel-lead { font-size: 16px; line-height: 1.7; color: var(--text); margin: 0 0 18px; }
.side-box {
    background: var(--bg-alt);
    border-radius: var(--r-md);
    padding: 22px;
    margin-bottom: 20px;
}
.side-box h3 { font-size: 17px; }
/* the line under the heading that says what the list below is */
.side-note {
    margin: 4px 0 2px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.side-list li { border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    font-size: 14.5px;
    color: var(--text-body);
    font-family: var(--font-display);
    font-weight: 500;
}
.side-list a:hover, .side-list a.is-active { color: var(--primary); }
.side-list a i { color: var(--accent); font-size: 13px; }
/* The sub service's own icon, before its name. The chevron on the right is
   also an `i`, so the name and its badge are wrapped to keep the two apart. */
.side-name { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.side-ico { flex: 0 0 auto; color: var(--primary) !important; font-size: 14px !important; }
/* The open sub-service. A colour change alone is easy to miss in a list of
   twenty, so the active row also carries a bar and the arrow turns. */
.side-list a.is-active {
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--primary);
    padding-left: 10px;
}
.side-list a.is-active i { transform: rotate(90deg); color: var(--primary); }

.side-cta {
    background: var(--brand-cyan);
    color: #fff;
    border-radius: var(--r-md);
    padding: 24px 22px;
    text-align: center;
}
.side-cta h3 { color: #fff; font-size: 18px; }
/* the old pale blue body colour was mixed for the dark band; on cyan it needs
   to be plain white at a slight knock-back */
.side-cta p { color: rgba(255, 255, 255, .92); font-size: 14.5px; }

/* The sub-service list and the booking CTA ride along while the long article
   scrolls past them. Two things this needs:
   - `align-self: start`, because a grid item stretches to the row height by
     default and a full-height item has nothing left to stick within;
   - a `top` clear of the pinned nav bar (64px), matching the 84px the anchor
     targets already use.
   It used to carry `max-height` + `overflow-y: auto` as well, because the second
   box listing every service made it ~740px tall and pushed the booking CTA off a
   short window. That box is gone, so the column fits and the inner scrollbar it
   needed goes with it. Only from 992px, where the sidebar is a real column
   rather than a stacked block under the article. */
@media (min-width: 992px) {
    .detail-aside {
        position: sticky;
        top: 84px;
        align-self: start;
    }
}

/* ==========================================================================
   19. Breakpoints
   ========================================================================== */
@media (min-width: 576px) {
    /* still stacked, just roomier */
    .intro-grid { gap: 30px; }
    .intro-stats { gap: 0 18px; }
    .intro-stats b { font-size: 19px; }
    .intro-stats span { font-size: 11.5px; }
    .intro-figure img { max-width: 300px; }
    .intro-figure::before { width: 265px; height: 265px; }
    .intro-copy h2 { font-size: 30px; }

    /* Back to a fixed height — 576 to 767 is a narrow enough band for one
       number to be right, and it must beat the clamp above. */
    .hero-track { height: 300px; }
    .svc-note { grid-template-columns: 1fr auto; text-align: left; }
    .gal-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .cert-card { flex-basis: calc((100% - 22px) / 2); }
}

@media (min-width: 768px) {
    .topbar .container { justify-content: space-between; }
    .topbar-meta { display: flex; }

    .section { padding: 84px 0; }

    /* ---- headings ------------------------------------------------------
       Every heading on the site is set a size or two smaller on a phone: a
       38px section title on a 360px screen eats a third of the screen before
       a word of the answer is visible. These restore the sizes the design
       uses everywhere there is room for them; the ones with a rule of their
       own at 992 or 1200 grow again there. */
    .sec-head h2      { font-size: 38px; }
    .page-hero h1     { font-size: 30px; }
    .contact-copy h2  { font-size: 30px; }
    .book-panel h2    { font-size: 28px; margin-bottom: 26px; }
    .detail-body h2   { font-size: 24px; margin-top: 28px; }
    .svc-card h3      { font-size: 20px; }
    .intro-card h3    { font-size: 18px; }
    .faq-aside h3     { font-size: 22px; }
    .map-card h3      { font-size: 20px; }
    .side-box h3      { font-size: 18px; }
    .side-cta h3      { font-size: 19px; }
    .done-card h3     { font-size: 23px; }
    .site-footer h4   { font-size: 17px; }

    .hero-track { height: 440px; }
    .hero-dots { bottom: 22px; }
    .hero-arrow { width: 52px; height: 52px; }
    .hero-arrow.prev { left: 24px; }
    .hero-arrow.next { right: 24px; }

    .intro { padding: 60px 0 46px; }
    /* Two columns again — there is room for the portrait beside the copy, so
       the markup order takes over and the `order` swap above is undone. */
    .intro-grid { grid-template-columns: .8fr 1.2fr; gap: 32px; }
    .intro-copy, .intro-figure { order: initial; }
    .intro-copy { display: block; }                 /* the flex column was only for `order` */
    .intro-figure img { max-width: none; filter: drop-shadow(0 20px 34px rgba(6, 43, 76, .22)); }
    .intro-figure::before { width: 300px; height: 300px; }
    .intro-cards { margin-top: 34px; }              /* clear of the grid above it again */
    /* counters back above the heading, and the margin flips with them. Tracks
       go back to `auto` so each one hugs its own label instead of sharing the
       width equally — there is room for that here. */
    .intro-stats {
        order: initial;
        grid-template-columns: repeat(3, auto);
        justify-content: start;
        gap: 16px 30px;
        margin: 0 0 22px;
    }
    .intro-stats b { font-size: 26px; }
    .intro-stats span { font-size: 13px; }
    .intro-copy h2 { font-size: 32px; }
    .intro-copy p { font-size: 15px; }
    .intro-actions { gap: 12px; margin-top: 22px; }
    .intro-actions .btn { padding: 14px 24px; font-size: 15px; }

    /* Side by side now, so a hairline sits between the columns. The column gap
       is dropped to zero and the space comes from the cards' own padding, which
       keeps the divider centred and the columns evenly spaced. */
    .intro-cards {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 0;
        row-gap: 30px;
        padding: 32px 30px 38px;
    }
    .intro-cards .intro-card { padding: 0 26px; border-left: 0; }
    .intro-cards .intro-card:nth-child(odd) { padding-left: 0; }
    .intro-cards .intro-card:nth-child(even) { padding-right: 0; border-left: 1px solid var(--line); }

    .about { padding: 0 0 80px; }
    .about h2 { font-size: 38px; }

    .svc-card { flex-basis: calc((100% - 22px) / 2); }

    /* Arrows sit under the track, centred — not floating over the cards */
    .svc-arrow { width: 52px; height: 52px; }
    .gal-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .cert-card { flex-basis: calc((100% - 44px) / 3); }
    /* arrows straddle the track like the services slider */
    .cert-nav { margin: 0; }
    .cert-arrow { position: absolute; top: 42%; transform: translateY(-50%); z-index: 4; width: 52px; height: 52px; }
    .cert-arrow[data-slider-prev] { left: -67px; }
    .cert-arrow[data-slider-next] { right: -67px; }

    /* Videos: heading left, paragraph right — the reference layout. Two narrow
       columns of prose read worse than one, so this only applies from 768. */
    .vid-head {
        grid-template-columns: 1.05fr 1fr;
        /* The two columns sit on a shared bottom edge, not a shared top one.
           Started at the top, the paragraph lines up with the little eyebrow
           label and floats a clear 40px above the heading it belongs to, which
           reads as the right column having slipped upwards. `end` puts its last
           line level with the heading's last line, and it stays right however
           many lines either one runs to. */
        align-items: end;
        gap: 40px;
        margin-bottom: 36px;
    }
    /* The full design size — the base value above is the phone size, as
       everywhere else in this file. */
    .vid-head h2 { font-size: 34px; }
    /* No padding nudge: the box bottoms are aligned, so the two last baselines
       already land within 2px of each other. */
    .vid-head p  { font-size: 15.5px; }

    /* One clip per view at the full width of the container — the shape of the
       reference, where the still spans the same measure as the heading above it.

       The arrows therefore sit ON the picture, inset from its edge, rather than
       outside the track where the certificate slider keeps them: -67px is off
       the side of a 1280px screen, and a still 1200px wide has room to spare. */
    .vid-slider .sl-arrow {
        position: absolute;
        /* Centred by the box rather than by a percentage. The card is a 16:9
           still with a caption under it, so 50% of the slider is not the middle
           of the picture — top/bottom/margin:auto needs no number at all. */
        top: 0;
        bottom: 0;
        margin: auto 0;
        background: rgba(255, 255, 255, .92);
        border-color: transparent;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
        z-index: 4;
        width: 52px;
        height: 52px;
    }
    .vid-slider .sl-arrow.prev { left: 18px; }
    .vid-slider .sl-arrow.next { right: 18px; }
    .rev-grid { grid-template-columns: repeat(2, 1fr); }
    .rev-top { grid-template-columns: 1fr auto; }
    .contact-info { grid-template-columns: repeat(3, 1fr); }
    .foot-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .field.is-full { grid-column: 1 / -1; }
    .detail-grid { grid-template-columns: 1.7fr 1fr; }
    /* Article typography: a shade larger, with the two lists side by side.
       The measure is not widened past this — a line much beyond 75 characters
       is tiring to read, and the sidebar already keeps the column sensible. */
    .post > p, .panel-lead, .post-body p, .post-body li { font-size: 16px; }
    .post > p, .post-body p { line-height: 1.85; }
}

@media (min-width: 992px) {
    :root { --header-h: 78px; }

    .brand-logo { height: 88px; }
    .header-info { display: flex; }
    .header-cta { display: inline-flex; }
    .nav-toggle { display: none; }

    /* from here the visible bar is .nav-inner, so .main-nav drops its own
       gradient — otherwise it shows through when the pinned bar goes white */
    .main-nav { display: block !important; border-top: 0; background: none; }
    /* The full-screen sheet is a phone thing only — everything it sets has to
       be undone here, or the desktop bar would be fixed over the page. */
    .main-nav.is-open {
        position: static;
        width: auto;
        z-index: auto;
        overflow: visible;
        box-shadow: none;
        animation: none;
    }
    .nav-scrim, body.nav-open .nav-scrim { display: none; }
    .main-nav.is-open .nav-inner { display: flex; flex-direction: row; min-height: 0; }
    .main-nav.is-open .nav-list { flex: 0 1 auto; padding: 0; }
    .main-nav.is-open .nav-list > li > a { font-size: 15px; padding: 20px 14px; }
    .main-nav.is-open .nav-socials { padding: 0; border-top: 0; }
    /* `display: contents` so the logo and the links are direct children of the
       flex row again — the pinned-bar rules below target `.nav-brand` itself. */
    .nav-top { display: contents; }
    .nav-close { display: none; }
    /* the logo belongs to the pinned bar here, not to an `is-open` left over
       from a phone-width menu the visitor resized out of */
    .main-nav.is-open .nav-brand { display: none; }
    body.nav-open { overflow: visible; }
    /* The bar sits under the header and overlaps the top of the hero —
       a negative bottom margin only, so it never covers the header info. */
    .nav-wrap {
        margin-bottom: -34px;
        position: relative;
        z-index: 60;
    }
    .nav-wrap .container { padding: 0 18px; }
    .nav-inner {
        /* back to the row that holds brand, links and socials */
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--brand-cyan);
        border-bottom: 3px solid var(--cta);
        border-radius: var(--r-sm) var(--r-sm) 0 0;
        box-shadow: var(--shadow-md);
        padding: 0 22px;
    }
    .nav-list { flex-direction: row; padding: 0; gap: 4px; }
    .nav-list > li:last-child > a { border-bottom: 0; }
    .nav-list > li { position: relative; }
    .nav-list > li > a {
        border-bottom: 0;
        padding: 20px 14px;
        font-size: 15px;
    }
    .nav-list > li > a::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 12px;
        height: 2px;
        background: var(--cta);
        transform: scaleX(0);
        transition: transform var(--t-fast);
    }
    .nav-list > li > a:hover::after,
    .nav-list > li > a.is-active::after { transform: scaleX(1); }

    .drop {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 288px;
        background: #fff;
        border-radius: 0 0 var(--r-md) var(--r-md);
        box-shadow: var(--shadow-lg);
        border-top: 3px solid var(--cta);
        padding: 10px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        transition: var(--t-base);
    }
    .has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateY(0); }
    .drop.is-wide { width: 560px; column-count: 2; column-gap: 6px; }
    .drop a { break-inside: avoid; }

    .nav-socials { display: flex; }
    /* the sticky bar covers the top of whatever we jump to */
    section[id] { scroll-margin-top: 84px; }

    /* --- Pinned: a plain white bar spanning the full screen width. The
       gradient goes, so the links turn black and the icons take the teal. --- */
    .nav-wrap.is-stuck {
        margin-bottom: 0;
        background: #fff;
        box-shadow: 0 6px 22px rgba(6, 43, 76, .12);
    }
    .nav-wrap.is-stuck .nav-inner {
        background: none;
        padding: 4px 8px;
        border-bottom: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .nav-wrap.is-stuck .nav-list > li > a {
        color: #000;
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .nav-wrap.is-stuck .nav-list > li > a:hover,
    .nav-wrap.is-stuck .nav-list > li > a.is-active { color: #0CB8B6; }
    .nav-wrap.is-stuck .nav-list > li > a::after { bottom: 8px; background: #0CB8B6; }

    .nav-wrap.is-stuck .nav-socials a { background: var(--bg-alt); color: #0CB8B6; }
    .nav-wrap.is-stuck .nav-socials a:hover { background: #0CB8B6; color: #fff; }

    /* on white the logo needs no plate */
    .nav-wrap.is-stuck .nav-brand {
        display: inline-flex;
        align-items: center;
        margin-right: 10px;
    }
    .nav-wrap.is-stuck .nav-brand img { height: 42px; }

    .hero-track { height: 560px; }

    .intro { padding: 76px 0 60px; }
    .intro-grid { grid-template-columns: .85fr 1.15fr; gap: 46px; align-items: end; }
    .intro-copy h2 { font-size: 40px; }
    /* all four fit on one line here, so the hairline dividers can come back */
    .intro-stats { display: flex; gap: 0; }
    .intro-stats li { padding: 0 26px; }
    .intro-stats li:first-child { padding-left: 0; }
    .intro-stats li:last-child { padding-right: 0; }
    .intro-stats li + li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 4px;
        bottom: 4px;
        width: 1px;
        background: var(--line);
    }
    /* the portrait tucks behind the highlight panel so its straight bottom
       edge is never visible */
    .intro-figure img { max-width: 380px; margin-bottom: -46px; }
    .intro-figure::before { width: 400px; height: 400px; }
    .intro-mark { font-size: 190px; bottom: 320px; left: -40px; }
    /* three across — divider before the second and third card */
    .intro-cards { grid-template-columns: repeat(3, 1fr); column-gap: 0; padding: 36px 38px 42px; }
    /* The two-column rules above are :nth-child, so they outrank a plain
       .intro-card selector whatever the order — these have to match that
       specificity to take over at three columns. */
    .intro-cards .intro-card:nth-child(odd),
    .intro-cards .intro-card:nth-child(even) { padding: 0 30px; border-left: 1px solid var(--line); }
    .intro-cards .intro-card:first-child { padding-left: 0; border-left: 0; }
    .intro-cards .intro-card:last-child { padding-right: 0; }

    /* the detail card floats over the map instead of sitting beneath it */
    .map-band iframe { height: 460px; }
    .map-card {
        position: absolute;
        z-index: 2;
        top: 50%;
        /* aligns with the page container, but never runs off a narrow screen */
        right: max(18px, calc((100% - 1240px) / 2 + 18px));
        transform: translateY(-50%);
        margin: 0;
        width: 340px;
        padding: 28px 26px 30px;
    }

    .about { padding: 0 0 100px; min-height: 600px; display: flex; align-items: center; }
    .about h2 { font-size: 44px; }
    /* wide enough to keep the CTA block and the signature on one line */
    .about-copy { max-width: 660px; }
    .about-foot { flex-wrap: nowrap; }
    /* now there is room beside the subject — reveal the photograph on the right */
    .about::before {
        background: linear-gradient(100deg,
            rgba(242, 247, 253, .97) 0%,
            rgba(242, 247, 253, .95) 40%,
            rgba(242, 247, 253, .76) 52%,
            rgba(242, 247, 253, .28) 66%,
            rgba(242, 247, 253, 0) 80%);
    }

    .svc-card { flex-basis: calc((100% - 44px) / 3); }
    .rev-grid { grid-template-columns: repeat(3, 1fr); }
    .faq-grid { grid-template-columns: .82fr 1.18fr; align-items: start; }
    .contact-grid { grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
    .contact-copy h2 { font-size: 38px; }
    .hours { margin-top: 0; }
    .contact-info { grid-template-columns: repeat(3, 1fr); gap: 22px; }

    /* photo stays the smaller column so the form leads */
    .book-split { grid-template-columns: .8fr 1.2fr; gap: 50px; }
    .book-photo img { aspect-ratio: 3 / 4; }
    .book-inner { margin: 0; width: 100%; max-width: none; }
    .book-panel h2 { font-size: 36px; }

    .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }

    .fab-whatsapp { bottom: 24px; }
    .to-top { bottom: 88px; }
    .mobile-bar { display: none; }
    .foot-bottom { padding-bottom: 18px; }

    .page-hero { padding: 84px 0; }
    .page-hero h1 { font-size: 42px; }
}

@media (min-width: 1200px) {
    .sec-head h2 { font-size: 42px; }
    .hero-track { height: 620px; }
    .contact-info { grid-template-columns: repeat(3, 1fr); }
}

/* Marks a field the patient may skip. Quieter than the label so the required
   fields still read as the ones that matter. */
.book-panel label .opt {
    font-weight: 400;
    font-size: 12.5px;
    opacity: .7;
}

/* ---------- Booking confirmation dialog ----------
   Shown after the form is sent. It matters that this is a dialog rather than a
   line of text: the WhatsApp tab opens over the page, and when the patient
   comes back a small green sentence halfway down a long page is easy to miss —
   so they fill the form in again. */
.done-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 16, 44, .62);
    opacity: 0;
    transition: opacity .18s ease;
}
.done-modal.is-open { opacity: 1; }
.done-modal[hidden] { display: none; }

.done-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: var(--r-lg);
    padding: 40px 30px 28px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(3, 16, 44, .34);
    transform: translateY(10px) scale(.98);
    transition: transform .18s ease;
}
.done-modal.is-open .done-card { transform: none; }
@media (prefers-reduced-motion: reduce) {
    .done-modal, .done-card { transition: none; }
}

.done-x {
    position: absolute;
    top: 12px; right: 12px;
    width: 34px; height: 34px;
    border: 0; border-radius: 50%;
    background: none; color: var(--text-muted, #7C8FA3);
    font-size: 15px; cursor: pointer;
}
.done-x:hover { background: var(--bg-alt); }

.done-tick {
    width: 66px; height: 66px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: #E9F8EF;
    color: var(--green, #4CAF2B);
    font-size: 32px;
}

.done-card h3 { font-size: 20px; margin-bottom: 8px; }
.done-card > p { font-size: 14.5px; line-height: 1.65; margin: 0 auto; max-width: 330px; }

.done-actions {
    display: grid;
    gap: 10px;
    margin: 22px 0 18px;
}
.done-actions .btn { width: 100%; justify-content: center; }

.done-note {
    font-size: 13.5px;
    color: var(--text-body);
    padding-top: 16px;
    border-top: 1px solid var(--line);
    margin: 0;
}
.done-note i { color: var(--brand-blue); margin-right: 4px; }
.done-note a { font-weight: 500; color: var(--primary); }

@media (min-width: 480px) {
    .done-actions { grid-template-columns: 1fr auto; }
}