/* =========================================================================
   Dental website — shared structure for every theme.
   Themes (themes/*.css) only set the tokens below and style the hero.
   1. Tokens  2. Base  3. Buttons & bits  4. Header  5. Hero & facts
   6. Sections & cards  7. Pages  8. Forms & FAQ  9. Footer & action bar
   10. Responsive  11. Motion
   ========================================================================= */

/* ---------- 1. Tokens (overridden by the theme, and by brand colours from site.json) ---------- */
:root {
    --primary: #2a8c84;
    --accent: #c8503a;
    --primary-deep: color-mix(in srgb, var(--primary) 70%, #000);
    --primary-soft: color-mix(in srgb, var(--primary) 12%, #fff);
    --primary-faint: color-mix(in srgb, var(--primary) 6%, #fff);
    --accent-deep: color-mix(in srgb, var(--accent) 82%, #000);
    --bg: #ffffff;
    --surface: var(--primary-faint);
    --card: #ffffff;
    --ink: #13302d;
    --muted: #546b68;
    --line: color-mix(in srgb, var(--primary) 16%, #e9eeed);
    --on-primary: #ffffff;

    --font-display: Georgia, "Times New Roman", serif;
    --font-body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --display-weight: 600;
    --display-tracking: -0.02em;

    --radius: 20px;
    --radius-sm: 12px;
    --radius-btn: 999px;
    --shadow: 0 20px 50px color-mix(in srgb, var(--primary) 14%, transparent);
    --content: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;
    /* Also follows the screen height, so short laptop screens see a whole section */
    --section: clamp(56px, min(9vw, 11vh), 112px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* Hero light (site.js WebGL glow): base colour, second colour, highlight. Themes retune these. */
    --light-1: var(--primary);
    --light-2: color-mix(in srgb, var(--primary) 55%, #fff);
    --light-3: color-mix(in srgb, var(--accent) 70%, #fff);

    /* Illustration palette (illustrations.js) */
    --illus-bg: var(--primary-faint);
    --illus-soft: var(--primary-soft);
    --illus-main: var(--primary);
    --illus-deep: var(--primary-deep);
    --illus-accent: var(--accent);
    --illus-white: #ffffff;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
    line-height: 1.12;
    text-wrap: balance; /* even line lengths, no one-word last lines */
}

h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--primary-deep); }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    width: 100%;
    max-width: var(--content);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.narrow { max-width: 820px; }

.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 300;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
}

.skip-link:focus { top: 12px; }

.icon {
    width: 1.2em;
    height: 1.2em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.illus { display: block; width: 100%; height: 100%; }

.cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 3. Buttons & bits ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 12px 24px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-btn);
    font: inherit;
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 30%, transparent);
}

.btn-accent:hover { background: var(--accent-deep); }

/* A soft sheen crosses the main button on hover */
.btn-accent { position: relative; overflow: hidden; isolation: isolate; }

.btn-accent::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
    translate: -120% 0;
    transition: translate 0.9s var(--ease);
}

.btn-accent:hover::after { translate: 120% 0; }

.btn-outline {
    border-color: var(--line);
    background: var(--card);
    color: var(--ink);
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary-deep); }

.btn-light { background: #fff; color: var(--ink); }

.btn .icon { width: 1.15em; height: 1.15em; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--primary-deep);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.18rem);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-deep);
    font-size: 0.82rem;
    font-weight: 600;
}

.demo-bar {
    background: var(--ink);
    color: #fff;
    font-size: 0.86rem;
    text-align: center;
}

.demo-bar .wrap { padding-block: 9px; }

.demo-bar a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.demo-bar .icon { width: 1em; height: 1em; }

/* Demo banner: sample note · design switcher (same page in another design) · order links */
.demo-bar .demo-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 18px;
    padding-block: 6px;
}

.demo-text { opacity: 0.82; }

.demo-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.demo-label { padding: 0 6px 0 10px; font-weight: 600; opacity: 0.7; }

.demo-bar .demo-switch a {
    padding: 5px 13px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.85;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.demo-bar .demo-switch a:hover { background: rgba(255, 255, 255, 0.15); opacity: 1; }
.demo-bar .demo-switch a[aria-current] { background: #fff; color: var(--ink); opacity: 1; }

.demo-links { display: inline-flex; align-items: center; gap: 16px; }

.demo-bar .demo-get {
    gap: 6px;
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    text-decoration: none;
}

.demo-bar .demo-get:hover { background: #fff; color: var(--ink); }

/* Four design names need the room, so the full sample note is for screen readers; the switcher's label
   says "Sample clinic" on screen, and the banner stays on one line */
.demo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Phones: the design names scroll sideways (site.js brings the current one into view) */
@media (max-width: 640px) {
    .demo-bar .demo-inner { flex-wrap: nowrap; justify-content: flex-start; gap: 10px; }
    .demo-label, .demo-links a:not(.demo-get) { display: none; }
    .demo-switch {
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }
    .demo-switch::-webkit-scrollbar { display: none; }
    .demo-bar .demo-switch a { flex: none; padding: 5px 10px; font-size: 0.76rem; }
    .demo-bar .demo-get { flex: none; padding: 5px 10px; font-size: 0.76rem; }
}

/* ---------- 4. Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px color-mix(in srgb, var(--ink) 6%, transparent);
}

/* Thin reading-progress line under the header (site.js sets --p from 0 to 1) */
.scroll-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(var(--p, 0));
    transform-origin: 0 50%;
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    color: var(--ink);
    text-decoration: none;
}

.logo-img { width: auto; height: 44px; }

.logo-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
}

.logo-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.logo-text {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
}

.nav { display: flex; gap: 2px; }

.nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav a:hover { color: var(--ink); background: var(--primary-faint); }
.nav a[aria-current="page"] { color: var(--primary-deep); background: var(--primary-soft); }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- 5. Hero & facts ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }

/* The WebGL glow sits behind the hero content and fades in on its first frame */
.hero-light {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.8s var(--ease);
}

.hero-light.is-on { opacity: 1; }
.hero > .wrap { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    padding-block: clamp(28px, min(6vw, 7vh), 80px);
}

/* Width- or height-limited, whichever is smaller: the booking buttons stay above the fold on laptops */
.hero h1 { font-size: clamp(2.3rem, min(5.4vw, 7.6vh), 4rem); }
.hero .lead { max-width: 540px; margin-bottom: clamp(18px, 3.4vh, 28px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(14px, 2.6vh, 22px); }

/* Icon stays beside the first line when the timings wrap on phones */
.hero-hours {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.hero-hours .icon { margin-top: 0.12em; }

/* The square photo is capped by screen height so it never pushes the hero past one screen */
.hero-visual { position: relative; width: min(100%, 68vh); justify-self: center; }

.hero-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: calc(var(--radius) * 1.6);
    background: var(--primary-faint);
    /* Gentle 3D tilt towards the mouse (site.js sets --rx / --ry) */
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.9s var(--ease);
}

.hero-media.is-tilting { transition-duration: 0.25s; }

/* Soft light that follows the mouse across the photo */
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(45% 45% at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, 0.22), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}

.hero-media.is-tilting::after { opacity: 1; }

.hero-card {
    position: absolute;
    left: -24px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 290px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--card);
    box-shadow: var(--shadow);
    font-size: 0.88rem;
    line-height: 1.35;
}

.hero-card-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-deep);
}

.facts { border-block: 1px solid var(--line); background: var(--card); }

.facts-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-block: 0;
    padding-block: 26px;
    list-style: none;
}

.facts-list li { display: flex; flex-direction: column; gap: 2px; }

.facts-list strong {
    color: var(--primary-deep);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
    line-height: 1.2;
}

.facts-list span { color: var(--muted); font-size: 0.9rem; }

/* ---------- 6. Sections & cards ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--surface); }

.section-head {
    max-width: 680px;
    margin: 0 auto clamp(28px, min(5vw, 5.5vh), 52px);
    text-align: center;
}

.section-head-left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head .lead { margin: 0; }

.section-more { margin: 36px 0 0; text-align: center; }

.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative;
    isolation: isolate;
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

/* Light that follows the mouse inside a card (site.js sets --gx / --gy; mouse only) */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 0%), color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.card:hover::before { opacity: 1; }

.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.card-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary-deep);
}

.card-icon .icon { width: 26px; height: 26px; transition: transform 0.5s var(--ease); }
.card-icon { transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
.treatment-card:hover .card-icon { background: var(--primary); color: var(--on-primary); }
.treatment-card:hover .card-icon .icon { transform: scale(1.1) rotate(-6deg); }

.treatment-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.treatment-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 35%, transparent);
    box-shadow: var(--shadow);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--primary-deep);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.card-link .icon { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.treatment-card:hover .card-link .icon,
.card-link:hover .icon { transform: translateX(3px); }

.split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.doctor-photo {
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: calc(var(--radius) * 1.4);
    background: var(--primary-faint);
}

.doctor-quals { margin-bottom: 4px; color: var(--primary-deep); font-weight: 600; }
.doctor-role { color: var(--muted); }

.doctor-reg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.doctor-reg .icon { margin-top: 3px; color: var(--primary); }

.gallery { display: grid; gap: 18px; }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }

.gallery-tile { margin: 0; }

.tile-media {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.tile-media > img,
.tile-media > svg { width: 100%; height: 100%; object-fit: cover; }

/* Photo tiles are buttons that open the full-screen viewer */
.tile-open {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: zoom-in;
    transition: box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.tile-open > img,
.tile-open > svg { transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }

.tile-open::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--ink) 38%, transparent));
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}

.tile-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    opacity: 0;
    translate: 0 8px;
    transition: opacity 0.4s var(--ease), translate 0.4s var(--ease);
}

.tile-zoom .icon { width: 20px; height: 20px; }

.tile-open:hover,
.tile-open:focus-visible { border-color: color-mix(in srgb, var(--primary) 35%, transparent); box-shadow: var(--shadow); }
.tile-open:hover > img,
.tile-open:hover > svg { transform: scale(1.06); }
.tile-open:hover::after,
.tile-open:focus-visible::after { opacity: 1; }
.tile-open:hover .tile-zoom,
.tile-open:focus-visible .tile-zoom { opacity: 1; translate: 0 0; }

/* Touch screens have no hover: keep the expand hint visible */
@media (hover: none) {
    .tile-zoom { opacity: 0.95; translate: 0 0; width: 36px; height: 36px; right: 10px; bottom: 10px; }
}

.gallery-tile figcaption {
    padding: 10px 4px 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
}

/* Deep shade so white body text stays readable on any brand colour */
.cta-band { padding-block: clamp(48px, 7vw, 80px); background: var(--primary-deep); color: var(--on-primary); }

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-band h2 { margin-bottom: 6px; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.cta-band p { margin: 0; opacity: 0.88; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 7. Pages ---------- */
.page-hero {
    padding-block: clamp(36px, min(7vw, 8vh), 88px) clamp(28px, min(5vw, 6vh), 56px);
    background: var(--surface);
}

.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero .lead { max-width: 680px; margin: 0; }

.doctors { display: grid; gap: clamp(40px, 6vw, 72px); }

.doctor {
    display: grid;
    grid-template-columns: 340px 1fr;
    align-items: start;
    gap: clamp(28px, 5vw, 64px);
}

.doctor-body h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.doctor-body > p:not(.doctor-quals):not(.doctor-role):not(.doctor-reg) { color: var(--muted); }

.ticks { display: grid; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks .icon { margin-top: 3px; color: var(--primary); }

.prose { color: var(--muted); font-size: 1.08rem; }

.treatment-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.treatment-detail .card-icon { margin: 0; }
.treatment-detail h2 { margin-bottom: 6px; font-size: 1.45rem; }
.treatment-summary { color: var(--ink) !important; font-weight: 500; }

.treatment-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.treatment-foot .card-link { margin: 0; padding: 0; }

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    padding: 24px 20px;
    border-top: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--card);
    box-shadow: 0 1px 0 var(--line);
}

.step-num {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: var(--display-weight);
}

.steps h3 { margin-bottom: 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 24px;
}

.contact-card h2,
.form-card h2 { font-size: 1.6rem; }

.contact-card h3 { margin-top: 26px; font-size: 1.15rem; }

.contact-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink) !important;
}

.contact-line .icon { margin-top: 3px; color: var(--primary); }
.contact-line a { color: var(--ink); font-weight: 500; text-decoration: none; }
.contact-line a:hover { color: var(--primary-deep); text-decoration: underline; }

.hours { width: 100%; margin-bottom: 22px; border-collapse: collapse; font-size: 0.95rem; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hours th { padding-right: 16px; font-weight: 600; white-space: nowrap; }
.hours td { color: var(--muted); }

.contact-note { color: var(--muted); font-size: 0.92rem; }

/* Live "Open now / Closed now" badge next to Timings (site.js) */
.open-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 3px 11px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 12%, transparent);
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
    vertical-align: middle;
    white-space: nowrap;
}

.open-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-status.is-open { background: #e3f4ea; color: #1d7a46; }

/* Home: where, when and how to get there, in one card */
.visit-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr auto;
    align-items: start;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(26px, 4vw, 44px);
}

.visit-where h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.visit-when h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin-bottom: 8px; }
.visit-when .open-status { margin-left: 10px; }
.visit-when .hours { margin: 0; }
.visit-actions { display: flex; flex-direction: column; gap: 12px; align-self: center; }

@media (max-width: 1020px) {
    .visit-card { grid-template-columns: 1fr 1fr; }
    .visit-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
    .visit-card { grid-template-columns: 1fr; }
    .visit-actions { flex-direction: column; }
    .visit-actions .btn { width: 100%; }
}
.contact-pay { margin-bottom: 22px; font-size: 0.95rem; }

/* Facilities the clinic ticked, under the clinic gallery */
.amenities { margin-top: clamp(32px, 5vw, 48px); }
.amenities-title { margin-bottom: 16px; font-size: 1.35rem; }
.amenity-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.amenity-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 500;
}
.amenity-list .icon { width: 18px; height: 18px; color: var(--primary); }

/* The clinic's own booking tool, embedded or as a button card */
.booking-section + .section { padding-top: 0; }

.booking-frame {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.booking-frame iframe { display: block; width: 100%; height: min(760px, 85vh); border: 0; }

.booking-alt { margin: 16px 0 0; color: var(--muted); font-size: 0.92rem; text-align: center; }

.booking-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.booking-card .card-icon { margin: 0; }
.booking-card h2 { margin-bottom: 4px; font-size: 1.4rem; }
.booking-card p { margin: 0; }

@media (max-width: 640px) {
    .booking-card { grid-template-columns: 1fr; text-align: left; }
    .booking-card .btn { width: 100%; }
}

.map-section iframe {
    display: block;
    width: 100%;
    height: clamp(300px, 40vw, 440px);
    border: 0;
    filter: saturate(0.85);
}

/* ---------- 8. Forms & FAQ ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.88rem; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.field .is-invalid { border-color: #c0392b; }

.hp { position: absolute; left: -9999px; }

.form-alt { margin-top: 10px; }
.form-status { margin: 12px 0 0; font-size: 0.9rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--primary-deep); }
.form-status.err { color: #b03a2e; }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
    position: relative;
    padding: 20px 44px 20px 0;
    font-size: 1.06rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before,
.faq summary::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: transform 0.3s var(--ease);
}

.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 44px 20px 0; color: var(--muted); }

/* ---------- 9. Footer & action bar ---------- */
.site-footer {
    background: var(--ink);
    color: color-mix(in srgb, #fff 72%, var(--ink));
    font-size: 0.93rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    gap: 32px;
    padding-block: 56px 36px;
}

.site-footer h2 {
    margin-bottom: 14px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.logo-footer { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; }

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-col p { margin: 0 0 6px; }
.footer-col strong { color: #fff; font-weight: 600; }

.socials { display: flex; gap: 10px; }

.socials a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid color-mix(in srgb, #fff 20%, transparent);
    border-radius: 50%;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 20px;
    border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
    font-size: 0.84rem;
}

.footer-bottom p { margin: 0; }

.footer-note { margin-block: 0; padding-bottom: 18px; font-size: 0.8rem; opacity: 0.75; }

/* Privacy Policy / Terms of Use: readable long-form text */
.legal h2 { margin: 34px 0 10px; font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.legal p, .legal li { color: var(--muted); font-size: 1.02rem; }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal a { font-weight: 500; }
.legal-updated { margin: 0; font-size: 0.9rem; }

.not-found { padding-block: clamp(64px, 14vh, 140px); }
.not-found h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.not-found .hero-actions { margin-top: 28px; }

.action-bar { display: none; }

/* ---------- Photo viewer (site.js builds it as a <dialog>) ---------- */
.lb-open { overflow: hidden; }

.lightbox {
    --fade: 1;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(8, 12, 16, calc(0.94 * var(--fade)));
    color: #fff;
    font-family: var(--font-body);
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    animation: lb-in 0.35s var(--ease);
}

.lightbox::backdrop { background: rgba(8, 12, 16, 0.6); backdrop-filter: blur(6px); }

.lb-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(12px, 3vw, 24px);
}

.lb-count { margin: 0; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.06em; opacity: 0.8; font-variant-numeric: tabular-nums; }
.lb-tools { display: flex; gap: 8px; margin-left: auto; }

.lb-btn {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-btn:active { transform: scale(0.94); }
.lb-btn:disabled { opacity: 0; pointer-events: none; }
.lb-btn .icon { width: 22px; height: 22px; stroke-width: 2; }
.lb-btn[aria-pressed="true"] { background: #fff; color: #111; }

.lb-stage { position: relative; overflow: hidden; touch-action: none; user-select: none; cursor: grab; }
.lb-stage:active { cursor: grabbing; }

.lb-track {
    display: flex;
    height: 100%;
    transform: translate3d(calc(var(--i, 0) * -100% + var(--x, 0px)), var(--y, 0px), 0);
    transition: transform 0.5s var(--ease);
    will-change: transform;
}

.lb-track.no-anim { transition: none; }

/* Each slide is exactly the stage's size, so the whole photo always fits (never cropped) */
.lb-slide {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 8px clamp(8px, 7vw, 96px);
}

.lb-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    object-fit: contain;
    transform: translate(var(--zx, 0px), var(--zy, 0px)) scale(1);
    transition: transform 0.45s var(--ease);
    cursor: zoom-in;
}

/* Illustrations: the tile's own 4:3 drawing, as large as the screen allows */
.lb-art {
    width: min(100%, calc((100dvh - 240px) * 4 / 3));
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: var(--illus-bg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    transform: translate(var(--zx, 0px), var(--zy, 0px)) scale(1);
    transition: transform 0.45s var(--ease);
    cursor: zoom-in;
}

.lb-art svg { display: block; width: 100%; height: 100%; }

.lb-slide .is-zoomed { transform: translate(var(--zx, 0px), var(--zy, 0px)) scale(2); cursor: move; }
.lb-stage.is-zoomed .lb-slide .is-zoomed { transition: none; }

.lb-nav { position: absolute; top: 50%; z-index: 2; translate: 0 -50%; }
.lb-prev { left: clamp(8px, 2vw, 24px); }
.lb-next { right: clamp(8px, 2vw, 24px); }

.lb-caption {
    min-height: 1.6em;
    margin: 0;
    padding: 12px var(--gutter) 6px;
    font-size: 0.98rem;
    text-align: center;
    opacity: 0.9;
}

.lb-thumbs {
    display: flex;
    gap: 8px;
    justify-content: safe center;
    overflow-x: auto;
    padding: 8px var(--gutter) max(16px, env(safe-area-inset-bottom));
    scrollbar-width: none;
}

.lb-thumbs::-webkit-scrollbar { display: none; }

.lb-thumb {
    flex: none;
    width: 68px;
    height: 50px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.lb-thumb img,
.lb-thumb svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: 0.85; }
.lb-thumb[aria-current="true"] { border-color: #fff; opacity: 1; transform: translateY(-2px); }

.lightbox.is-single .lb-nav,
.lightbox.is-single .lb-thumbs { display: none; }

@keyframes lb-in { from { opacity: 0; } }

@media (max-width: 640px) {
    .lb-nav { display: none; }
    .lb-slide { padding-inline: 0; }
    .lb-slide img { border-radius: 0; }
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 1020px) {
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 520px; width: 100%; justify-self: center; }
    .hero-card { left: 12px; }
    .cards-3 { grid-template-columns: repeat(2, 1fr); }
    .cards-2 { grid-template-columns: 1fr; }
    .doctor { grid-template-columns: 1fr; }
    .doctor .doctor-photo, .split .doctor-photo { max-width: 380px; }
    .facts-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .header-cta { display: none; }
    .nav-toggle { display: grid; }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 4px;
        padding: 12px var(--gutter) 20px;
        border-bottom: 1px solid var(--line);
        background: var(--bg);
        box-shadow: 0 20px 30px color-mix(in srgb, var(--ink) 8%, transparent);
    }

    .nav a { padding: 12px 16px; font-size: 1.02rem; }
    .nav-open .nav { display: flex; }

    /* Sticky Call / WhatsApp bar on phones */
    body { padding-bottom: 68px; }

    .action-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: grid;
        grid-template-columns: 1fr 1fr;
        background: var(--card);
        box-shadow: 0 -6px 24px color-mix(in srgb, var(--ink) 12%, transparent);
    }

    .action-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 60px;
        color: var(--ink);
        font-weight: 700;
        text-decoration: none;
    }

    .action-bar .action-wa { background: var(--accent); color: #fff; }
    .action-bar-3 { grid-template-columns: 1fr 1fr 1.2fr; }
}

@media (max-width: 560px) {
    .cards-3, .cards-4 { grid-template-columns: 1fr; }

    /* Photos two to a row: half the scrolling, still large enough to tap */
    .gallery-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .gallery-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd last photo spans the row */
    .gallery-3 > :last-child:nth-child(odd) .tile-media { aspect-ratio: 16 / 9; }
    .gallery-tile figcaption { padding-top: 6px; font-size: 0.82rem; line-height: 1.35; }
    .tile-media { border-radius: var(--radius-sm); }

    /* Home treatment and "why us" cards become a sideways swipe row; the next card peeks in */
    .swipe-row {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 80%;
        gap: 14px;
        margin-inline: calc(var(--gutter) * -1);
        padding: 4px var(--gutter) 14px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }

    .swipe-row::-webkit-scrollbar { display: none; }
    .swipe-row > * { scroll-snap-align: start; }
    .js .swipe-row > .reveal { opacity: 1; translate: none; } /* cards off to the side are already "seen" */
    .card { padding: 22px 20px; }
    .card-icon { width: 46px; height: 46px; margin-bottom: 14px; }
    .steps { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1 1 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .treatment-detail { grid-template-columns: 1fr; }
    .demo-bar { font-size: 0.8rem; }
}

/* ---------- 11. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* "translate" (not transform) so hover lifts and tilts keep working on revealed cards */
    .js .reveal {
        opacity: 0;
        translate: 0 26px;
        transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
        transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s;
    }

    .js .reveal.is-visible { opacity: 1; translate: 0 0; }

    /* Hero arrives in a short, calm sequence */
    .js .hero-copy > * { animation: rise 0.9s var(--ease) both; }
    .js .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
    .js .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
    .js .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
    .js .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
    .js .hero-visual { animation: settle 1.2s var(--ease) 0.12s both; }

    .hero-card { animation: bob 7s ease-in-out 1.6s infinite; }
    .sticker-1 { animation: bob 6s ease-in-out 1.2s infinite; }
    .sticker-2 { animation: bob 7.5s ease-in-out 2s infinite; }
}

@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes settle { from { opacity: 0; scale: 0.96; } }
@keyframes bob { 50% { translate: 0 -8px; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* =========================================================================
   Theme: Modern Showcase — royal blue, sunny yellow, bold geometric type (Plus Jakarta Sans).
   Suits modern multi-speciality and cosmetic clinics with good photos. Hero: a full-screen slider of the
   clinic's photos (welcome, treatments, clinic, doctor) under a transparent header; facts float over its edge.
   ========================================================================= */
:root {
    --primary: #1d4ed8;
    --accent: #ffc94d; /* yellow buttons carry ink text (13:1) */
    --ink: #0b1b33;
    --muted: #4d5b73;
    --bg: #ffffff;
    --surface: #f2f5fc;
    --card: #ffffff;
    --line: #dde4f2;
    --night: #0a1530;
    --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --display-weight: 800;
    --display-tracking: -0.035em;
    --radius: 24px;
    --radius-sm: 14px;
    --radius-btn: 999px;
    --shadow: 0 26px 60px rgba(11, 27, 51, 0.14);
    --overlap: 56px; /* how far the facts card rises into the slider */
    --demo-h: 0px;

    --illus-bg: #e8eeff;
    --illus-soft: #c9d7ff;
    --illus-main: #1d4ed8;
    --illus-deep: #1e3a8a;
    --illus-accent: #ffc94d;
    --illus-white: #ffffff;
}

body:has(.demo-bar) { --demo-h: 51px; }

.theme-showcase h3 { font-weight: 700; letter-spacing: -0.02em; }
.theme-showcase :focus-visible { outline-color: var(--primary); }
.theme-showcase .btn { font-weight: 700; }
.theme-showcase .btn-accent,
.theme-showcase .action-bar .action-wa { color: var(--ink); }
.theme-showcase .eyebrow { color: var(--primary); letter-spacing: 0.16em; }

/* Glass buttons sit on photos */
.btn-glass {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-glass:hover { border-color: #fff; background: #fff; color: var(--ink); }

/* ---------- Header: transparent over the slider until the page scrolls ---------- */
.theme-showcase.page-home:not(.nav-open) .site-header:not(.is-scrolled) {
    background: transparent;
    backdrop-filter: none;
}

.theme-showcase.page-home:not(.nav-open) .site-header:not(.is-scrolled) .logo { color: #fff; }
.theme-showcase.page-home:not(.nav-open) .site-header:not(.is-scrolled) .logo-mark { background: #fff; color: var(--primary); }
.theme-showcase.page-home:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@media (min-width: 821px) {
    .theme-showcase.page-home .site-header:not(.is-scrolled) .nav a { color: rgba(255, 255, 255, 0.82); }
    .theme-showcase.page-home .site-header:not(.is-scrolled) .nav a:hover,
    .theme-showcase.page-home .site-header:not(.is-scrolled) .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.14); }
}

/* ---------- Hero: full-screen slider ---------- */
.hero-showcase {
    height: max(560px, calc(100svh - var(--demo-h)));
    max-height: 1080px;
    margin-top: calc(var(--header-h) * -1); /* slides run up behind the transparent header */
    background: var(--night);
    color: #fff;
}

.hero-showcase :focus-visible { outline-color: var(--accent); }

.slides { position: absolute; inset: 0; touch-action: pan-y; }

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s;
}

.slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; }

.slide-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(60% 80% at 80% 20%, color-mix(in srgb, var(--primary) 70%, transparent), transparent 70%),
        linear-gradient(135deg, var(--night), color-mix(in srgb, var(--primary) 55%, var(--night)));
}

.slide-img { width: 100%; height: 100%; object-fit: cover; }

/* Shade under the header, beside the words and under the controls, so white text stays readable on any photo */
.slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 15, 35, 0.6) 0%, transparent 24%),
        linear-gradient(90deg, rgba(8, 15, 35, 0.86) 0%, rgba(8, 15, 35, 0.6) 42%, rgba(8, 15, 35, 0.1) 78%),
        linear-gradient(0deg, rgba(8, 15, 35, 0.75) 0%, transparent 46%);
}

.slide-copy {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: calc(var(--overlap) + clamp(96px, 15vh, 140px));
}

.slide-copy > * { max-width: 680px; }

.hero-showcase h1,
.hero-showcase h2 { color: #fff; font-size: clamp(2.5rem, min(5.8vw, 8.4vh), 4.8rem); line-height: 1.02; }
.hero-showcase h2 { font-size: clamp(2.2rem, min(5vw, 7.4vh), 4.1rem); }
.hero-showcase .lead { max-width: 580px; color: rgba(255, 255, 255, 0.86); }
.hero-showcase .eyebrow { color: var(--accent); }
.hero-showcase .hero-hours { color: rgba(255, 255, 255, 0.78); }

/* Treatments slide: the clinic's featured treatments as tappable chips */
.slide-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 clamp(20px, 3.4vh, 30px);
    padding: 0;
    list-style: none;
}

.slide-chips a {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.slide-chips a:hover { background: var(--accent); color: var(--ink); }

.slide-doctor { display: flex; align-items: center; gap: 22px; }
.slide-doctor h2 { margin-bottom: 8px; }

.slide-avatar {
    flex: none;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border: 3px solid var(--accent);
    border-radius: 50%;
}

/* Controls: numbered labels with a progress bar (the autoplay clock), pause, previous, next */
.hero-showcase > .slider-ui {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--overlap) + 28px);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

html:not(.js) .slider-ui { display: none; }

.slider-dots { display: flex; gap: clamp(12px, 2.4vw, 26px); }

.slider-dot {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.62);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s var(--ease);
}

.slider-dot:hover,
.slider-dot[aria-current="true"] { color: #fff; }

.slider-bar {
    position: relative;
    display: block;
    width: clamp(72px, 9vw, 130px);
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.28);
}

.slider-bar span {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.slider-dot[aria-current="true"] .slider-bar span { animation: slide-progress 7s linear forwards; }
.hero-showcase.is-paused .slider-dot[aria-current="true"] .slider-bar span { animation-play-state: paused; }

@keyframes slide-progress { to { transform: scaleX(1); } }

.slider-buttons { display: flex; gap: 10px; }

.slider-btn {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.slider-btn:hover { background: #fff; color: var(--ink); }
.slider-btn .icon { width: 20px; height: 20px; }
.slider-pause .icon-play,
.hero-showcase.is-stopped .slider-pause .icon-pause { display: none; }
.hero-showcase.is-stopped .slider-pause .icon-play { display: block; }

/* ---------- Facts: a white card floating over the bottom of the slider ---------- */
.theme-showcase .facts { position: relative; z-index: 3; border: 0; background: none; }
.theme-showcase.page-home .facts { margin-top: calc(var(--overlap) * -1); }

.theme-showcase .facts-list {
    width: calc(100% - var(--gutter) * 2);
    max-width: calc(var(--content) - var(--gutter) * 2);
    padding: 26px clamp(22px, 3vw, 40px);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 30px 70px rgba(11, 27, 51, 0.16);
}

.theme-showcase .facts-list strong { color: var(--primary); font-size: 1.6rem; }

/* ---------- Sections: headings left, intro beside them ---------- */
.theme-showcase .section-head:not(.narrow .section-head) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(24px, 5vw, 72px);
    align-items: end;
    max-width: none;
    text-align: left;
}

.theme-showcase .section-head > .eyebrow,
.theme-showcase .section-head > h2 { grid-column: 1; }
.theme-showcase .section-head > .lead { grid-column: 2; grid-row: 1 / span 2; }
.theme-showcase .section-head h2 { margin-bottom: 0; font-size: clamp(2rem, 4.2vw, 3.1rem); }
.theme-showcase .section-head .eyebrow { justify-self: start; }
.theme-showcase .section-more { text-align: left; }

/* Treatment cards are numbered and turn blue on hover */
.theme-showcase .cards-3 { counter-reset: treatment; }
.theme-showcase .treatment-card { counter-increment: treatment; }

.theme-showcase .treatment-card::after {
    content: counter(treatment, decimal-leading-zero);
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--primary-soft);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    transition: color 0.4s var(--ease);
}

.theme-showcase .treatment-card:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.theme-showcase .treatment-card:hover p { color: rgba(255, 255, 255, 0.85); }
.theme-showcase .treatment-card:hover .card-link { color: var(--accent); }
.theme-showcase .treatment-card:hover .card-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.theme-showcase .treatment-card:hover::after { color: rgba(255, 255, 255, 0.22); }
.theme-showcase .treatment-card:hover::before { opacity: 0; }
.theme-showcase .card-link { color: var(--primary); }
.theme-showcase .treatment-card .card-link { transition: color 0.4s var(--ease); }

.theme-showcase .feature-card { border-top: 4px solid var(--accent); }

/* Doctor photo with a yellow offset block */
.theme-showcase .split .doctor-photo { box-shadow: 18px 18px 0 var(--accent); }
.theme-showcase .doctor-quals { color: var(--primary); }

/* Home gallery: one large photo beside two smaller ones */
@media (min-width: 561px) {
    .theme-showcase.page-home .gallery-3 { grid-template-columns: 1.55fr 1fr; }
    .theme-showcase.page-home .gallery-3 > :first-child { display: flex; grid-row: span 2; flex-direction: column; }
    .theme-showcase.page-home .gallery-3 > :first-child .tile-media { flex: 1; aspect-ratio: auto; min-height: 300px; }
}

.theme-showcase .steps li { border-top-color: var(--primary); }
.theme-showcase .step-num { color: var(--primary); }

/* ---------- Inner pages: dark banner with a blue glow ---------- */
.theme-showcase .page-hero {
    background:
        radial-gradient(55% 140% at 88% 0%, color-mix(in srgb, var(--primary) 60%, transparent), transparent 70%),
        var(--night);
    color: #fff;
}

.theme-showcase .page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 3.8rem); }
.theme-showcase .page-hero .lead { color: rgba(255, 255, 255, 0.82); }
.theme-showcase .page-hero .eyebrow { color: var(--accent); }

/* ---------- Booking band: yellow ---------- */
.theme-showcase .cta-band { background: var(--accent); color: var(--ink); }
.theme-showcase .cta-band p { opacity: 1; }
.theme-showcase .cta-band .btn-accent { background: var(--ink); color: #fff; box-shadow: none; }
.theme-showcase .cta-band .btn-accent:hover { background: var(--primary); }

/* ---------- Phones and tablets ---------- */
@media (max-width: 900px) {
    .theme-showcase .section-head:not(.narrow .section-head) { grid-template-columns: 1fr; }
    .theme-showcase .section-head > .lead { grid-column: 1; grid-row: auto; margin-top: 12px; }
    .slide-bg::after {
        background:
            linear-gradient(180deg, rgba(8, 15, 35, 0.6) 0%, transparent 26%),
            linear-gradient(0deg, rgba(8, 15, 35, 0.92) 0%, rgba(8, 15, 35, 0.55) 55%, rgba(8, 15, 35, 0.2) 100%);
    }
}

@media (max-width: 820px) {
    /* Leave room for the sticky Call / WhatsApp bar */
    .hero-showcase { height: max(540px, calc(100svh - var(--demo-h) - 68px)); }
}

@media (max-width: 640px) {
    :root { --overlap: 40px; }
    body:has(.demo-bar) { --demo-h: 48px; }
    .slider-dot-label { display: none; }
    .slider-dot { padding-block: 14px; } /* larger tap area */
    .slider-bar { width: 34px; }
    .slider-prev, .slider-next { display: none; }
    .slider-btn { width: 44px; height: 44px; }
    .hero-showcase > .slider-ui { bottom: calc(var(--overlap) + 12px); align-items: center; }
    .slide-copy { padding-bottom: calc(var(--overlap) + 84px); }
    .slide-copy .hero-actions { margin-bottom: 12px; }
    .slide-avatar { width: 64px; height: 64px; }
    .theme-showcase .split .doctor-photo { box-shadow: 10px 10px 0 var(--accent); }
    .theme-showcase .treatment-card::after { font-size: 2rem; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* Slow zoom on the photo, and the words rise in, each time a slide arrives */
    .js .slide.is-active .slide-img { animation: slide-zoom 9s var(--ease) both; }
    .js .slide.is-active .slide-copy > * { animation: rise 0.9s var(--ease) 0.25s both; }
    .js .slide.is-active .slide-copy > :nth-child(2) { animation-delay: 0.35s; }
    .js .slide.is-active .slide-copy > :nth-child(3) { animation-delay: 0.45s; }
    .js .slide.is-active .slide-copy > :nth-child(4) { animation-delay: 0.55s; }
    .js .slide.is-active .slide-copy > :nth-child(5) { animation-delay: 0.65s; }
}

@keyframes slide-zoom { from { scale: 1.1; } }
