/* M.E.V. Specialist Hospital — site styles
   Brand colours come from the logo: indigo #413d94 and magenta #ac518c.
   Type: Poppins for headings, Mulish for body text. */

:root {
    --paper: #fbf9f6;
    --paper-2: #f3efe9;
    --ink: #1b1838;
    --ink-2: #26224d;
    --muted: #605d75;
    --line: #e5e0d8;
    --indigo: #413d94;
    --indigo-dark: #322e7a;
    --magenta: #ac518c;
    --magenta-soft: #f4e6ef;
    --danger: #c23545;

    --heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --body: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 18px;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--heading); font-weight: 600; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 200;
    background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--magenta); color: #fff; }

/* ---------- Type ---------- */

.display, .title, .page-title, .band__quote, .footer__line {
    font-family: var(--heading);
    letter-spacing: -.03em;
    line-height: 1.1;
}
.display em, .title em, .page-title em, .band__quote em, .footer__line em { font-style: normal; color: var(--magenta); }

.display { font-size: clamp(2.6rem, 6.2vw, 4.8rem); font-weight: 600; margin-bottom: 26px; }
.page-title { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 600; margin-bottom: 20px; }
.title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 600; margin-bottom: 22px; }
.title--sm { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 14px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
    font-family: var(--heading); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--indigo);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--magenta); }
.eyebrow--light { color: #e5c3da; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }

.link {
    font-family: var(--heading); font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--indigo);
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
    padding-bottom: 2px; transition: background-size .4s var(--ease);
}
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.link--light { color: #fff; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
    font-family: var(--heading); font-size: .95rem; font-weight: 500; text-decoration: none; cursor: pointer;
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--indigo); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--magenta-soft); }
.btn--accent { background: var(--magenta); color: #fff; box-shadow: 0 14px 30px -12px rgba(172, 81, 140, .7); }
.btn--accent:hover { background: #973f79; }
.btn--glass { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(10px); }
.btn--glass:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn__arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Header ---------- */

.header {
    position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
    display: flex; align-items: center;
    transition: background-color .35s, box-shadow .35s, transform .45s var(--ease);
}
.header.is-solid { background: rgba(251, 249, 246, .92); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { width: 34px; }
.brand__name { font-family: var(--heading); font-size: 1.25rem; font-weight: 600; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.brand__name span { display: block; margin-top: 4px; font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); }
.brand__badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__name span { color: #e5c3da; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
    position: relative; font-family: var(--heading); font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--ink);
    padding: 4px 0;
}
.nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
    background: var(--magenta); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-current { color: var(--indigo); }

/* Home: light header over the photo hero, until the page scrolls */
.page-home .header:not(.is-solid) .brand__name,
.page-home .header:not(.is-solid) .nav a:not(.btn) { color: #fff; }
.page-home .header:not(.is-solid) .brand__name span { color: #f0b6dc; }
.page-home .header:not(.is-solid) .brand__logo { filter: brightness(0) invert(1); }
.page-home .header:not(.is-solid) .nav a.is-current { color: #fff; }
.page-home .header:not(.is-solid) .nav__cta { background: #fff; color: var(--ink); }
.page-home .header:not(.is-solid) .nav-toggle span { background: #fff; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Home hero ---------- */

.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: max(680px, 100svh); display: flex; flex-direction: column; justify-content: flex-end;
    padding: calc(var(--header-h) + 48px) 0 0; color: #fff; background: var(--ink);
}

/* Slides cross-fade; the active one slowly zooms (Ken Burns) */
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }

.hero__shade {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(20, 17, 52, .92) 0%, rgba(30, 26, 74, .72) 38%, rgba(65, 61, 148, .18) 70%, rgba(20, 17, 52, .25) 100%),
        linear-gradient(0deg, rgba(20, 17, 52, .85) 0%, rgba(20, 17, 52, 0) 38%),
        radial-gradient(900px 500px at 0% 100%, rgba(172, 81, 140, .45), transparent 70%);
}
.hero__mark { position: absolute; z-index: -1; left: -90px; bottom: -110px; width: 420px; opacity: .07; filter: brightness(0) invert(1); pointer-events: none; }

.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: end; padding-bottom: 56px; }
.hero__copy { max-width: 680px; }
.hero .display { color: #fff; text-shadow: 0 2px 30px rgba(10, 8, 30, .3); }
.hero .display em { color: #f0b6dc; }
.hero .lead { color: rgba(255, 255, 255, .86); font-size: 1.18rem; max-width: 36em; }
.hero .kicker {
    display: inline-flex; padding: 8px 16px; border-radius: 999px; color: #fff;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px);
}

.hero__card {
    display: grid; gap: 10px; padding: 26px; border-radius: 20px; color: #fff;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24);
    backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.hero__card-label { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: #8ff0b8; }
.hero__card strong { font-family: var(--heading); font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.hero__card ul { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); display: grid; gap: 8px; font-size: .95rem; color: rgba(255, 255, 255, .88); }
.hero__card li { display: flex; align-items: center; gap: 10px; }
.hero__card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f0b6dc; }
.hero__card-link { margin-top: 6px; font-family: var(--heading); font-size: .9rem; font-weight: 500; color: #fff; text-decoration: none; }
.hero__card-link span { display: inline-block; transition: transform .3s var(--ease); }
.hero__card-link:hover span { transform: translateX(4px); }

.hero__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 104px; }
.hero__dots { display: flex; gap: 16px; flex: 1; max-width: 760px; }
.hero__dot { flex: 1; display: grid; gap: 10px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .6); text-align: left; cursor: pointer; font: inherit; }
.hero__dot-bar { display: block; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero__dot-bar i { display: block; height: 100%; width: 0; background: #fff; }
.hero__dot.is-active { color: #fff; }
.hero__dot.is-active .hero__dot-bar i { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__dot.is-active .hero__dot-bar i { animation-play-state: paused; }
.hero__dot-label { font-family: var(--heading); font-size: .78rem; font-weight: 500; letter-spacing: .04em; }
@keyframes progress { to { width: 100%; } }

.hero__scroll { position: relative; width: 28px; height: 44px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 20px; flex: none; }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

.kicker { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--muted); margin-bottom: 24px; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2fa866; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 70%, 100% { transform: scale(2.8); opacity: 0; } }

.display .line, .page-title .line { display: block; overflow: hidden; padding-bottom: .1em; }
.display .line > span, .page-title .line > span { display: inline-block; }

.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Facts card overlapping the bottom of the hero */
.facts-wrap { position: relative; z-index: 2; margin-top: -64px; }
.facts {
    display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
    background: #fff; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(27, 24, 56, .35);
}
.facts > div { padding: 28px 28px 30px; position: relative; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts > div::before { content: ""; position: absolute; left: 28px; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--magenta); }
.facts > div:nth-child(even)::before { background: var(--indigo); }
.facts dt { font-family: var(--heading); font-size: 1.3rem; font-weight: 600; line-height: 1.25; margin-bottom: 4px; letter-spacing: -.02em; }
.facts dd { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Inner page hero ---------- */

.page-hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + 64px) 0 72px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero__bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(700px 420px at 92% -10%, rgba(172, 81, 140, .18), transparent 70%),
        radial-gradient(600px 400px at -5% 110%, rgba(65, 61, 148, .14), transparent 70%),
        radial-gradient(rgba(65, 61, 148, .12) 1px, transparent 1.2px) 0 0 / 22px 22px,
        linear-gradient(180deg, #f6f2fb 0%, var(--paper) 100%);
}
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 0%, rgba(251, 249, 246, .6) 45%, transparent 100%); }
.page-hero__mark { position: absolute; right: 4%; top: 50%; width: 300px; transform: translateY(-50%) rotate(-8deg); opacity: .06; }
.page-hero--photo .page-hero__mark { right: auto; left: 38%; }
.page-hero__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: end; }
.page-hero--photo .page-hero__grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
.page-hero__copy { max-width: 760px; }
.page-hero__photo { margin: 0; aspect-ratio: 5 / 4; border-radius: var(--radius) var(--radius) var(--radius) 160px; overflow: hidden; }
.page-hero__photo picture { height: 100%; }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.breadcrumb { display: flex; gap: 10px; margin-bottom: 22px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.breadcrumb a { text-decoration: none; color: var(--indigo); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Ticker ---------- */

.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: var(--paper-2); }
.ticker__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: ticker 45s linear infinite; }
.ticker span { font-family: var(--heading); font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.7rem); letter-spacing: -.02em; white-space: nowrap; color: var(--ink-2); }
.ticker i { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); flex: none; }
.ticker i:nth-of-type(even) { background: var(--indigo); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 10vw, 130px) 0; }
.section--tight { padding: clamp(56px, 7vw, 90px) 0; }
.section--paper {
    position: relative; isolation: isolate;
    background:
        radial-gradient(800px 380px at 100% 0%, rgba(172, 81, 140, .08), transparent 70%),
        radial-gradient(700px 360px at 0% 100%, rgba(65, 61, 148, .08), transparent 70%),
        radial-gradient(rgba(27, 24, 56, .07) 1px, transparent 1.2px) 0 0 / 24px 24px,
        var(--paper-2);
}

/* Full-bleed background photo for a section (sits behind its content) */
.bg-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.bg-photo picture { position: absolute; inset: -8% 0; }
.bg-photo img { width: 100%; height: 100%; object-fit: cover; }

.section--photo { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.section--photo::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(20, 17, 52, .94) 0%, rgba(30, 26, 74, .82) 45%, rgba(65, 61, 148, .55) 100%);
}
.section--photo .title { color: #fff; }
.section--photo .title em { color: #f0b6dc; }
.section--photo p { color: rgba(255, 255, 255, .82); }

.steps--glass li {
    padding: 22px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(14px);
}
.steps--glass li > span { background: #fff; color: var(--magenta); }
.steps--glass strong { color: #fff; }
.steps--glass p { color: rgba(255, 255, 255, .78); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head--split .title { margin-bottom: 0; }

/* ---------- About (home teaser) ---------- */

.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.about__media { position: relative; padding-bottom: 90px; }
.about figure { margin: 0; }
.about figure img { width: 100%; border-radius: var(--radius); }
.about figcaption, .gallery figcaption { margin-top: 10px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.about__main { width: 88%; }
.about__inset { position: absolute; right: 0; bottom: 0; width: 56%; padding: 10px 10px 0; background: var(--paper); border-radius: calc(var(--radius) + 6px); }
.about__copy > p { color: var(--muted); }
.about__copy .btn { margin-top: 12px; }

/* ---------- Services (home preview) ---------- */

.services { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.services__stage { position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.services__img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.services__img.is-active { opacity: 1; transform: none; }
.services__img img { width: 100%; height: 100%; object-fit: cover; }

.services__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service__num { font-family: var(--heading); font-size: .9rem; font-weight: 500; color: var(--muted); padding-top: 6px; transition: color .4s; }
.service h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 6px; transition: transform .5s var(--ease); }
.service h3 a { text-decoration: none; transition: color .4s; }
.service p { margin: 0; color: var(--muted); max-width: 32em; }
.service.is-active h3 { transform: translateX(6px); }
.service.is-active h3 a { color: var(--indigo); }
.service.is-active .service__num { color: var(--magenta); }
.service__thumb { display: none; }

/* ---------- Services page ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 40px; }
.chips a {
    padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
    font-family: var(--heading); font-size: .88rem; font-weight: 500; text-decoration: none;
    transition: border-color .3s, color .3s, background-color .3s;
}
.chips a:hover { border-color: var(--indigo); color: var(--indigo); }

.service-rows { display: grid; gap: clamp(64px, 9vw, 120px); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.service-row:nth-child(even) .service-row__photo { order: 2; }
.service-row__photo { margin: 0; aspect-ratio: 4 / 4.4; border-radius: var(--radius); overflow: hidden; }
.service-row__photo picture { height: 100%; }
.service-row__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-row:hover .service-row__photo img { transform: scale(1.04); }
.service-row__num { display: block; font-family: var(--heading); font-weight: 500; color: var(--magenta); margin-bottom: 10px; }

.checklist { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.checklist li { position: relative; padding-left: 28px; font-weight: 600; font-size: .98rem; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--magenta-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ac518c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- About page ---------- */

.prose-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); }
.prose p { font-size: 1.1rem; color: var(--muted); }
.prose p:first-child { font-size: 1.25rem; color: var(--ink); }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv__item { padding: clamp(28px, 4vw, 48px); background: var(--paper); border-radius: var(--radius); border-top: 3px solid var(--indigo); }
.mv__item + .mv__item { border-top-color: var(--magenta); }
.mv__text { margin: 0; font-family: var(--heading); font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 500; line-height: 1.5; letter-spacing: -.01em; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item { margin: 0; }
.gallery__item picture { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item img[src*="laboratory"] { object-position: center 15%; }

/* ---------- Vision band ---------- */

.band { position: relative; isolation: isolate; overflow: hidden; background: var(--indigo); color: #fff; padding: clamp(90px, 12vw, 150px) 0; }
.band--photo { padding: clamp(110px, 14vw, 190px) 0; }
.band--photo::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(49, 45, 120, .95) 0%, rgba(65, 61, 148, .82) 50%, rgba(172, 81, 140, .55) 100%);
}
.band__mark { position: absolute; right: -60px; top: 50%; width: min(460px, 60vw); margin-top: -260px; opacity: .1; filter: brightness(0) invert(1); pointer-events: none; }
.band__inner { position: relative; }
.band__quote { margin: 0; max-width: 21em; font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 500; line-height: 1.3; }
.band__quote em { color: #f2c4e2; }

/* ---------- Values ---------- */

.values { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.values__head { position: sticky; top: calc(var(--header-h) + 32px); }
.values__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.values__list li { padding: 28px 0; border-top: 1px solid var(--line); }
.values__num { display: block; font-family: var(--heading); font-size: .85rem; font-weight: 500; color: var(--magenta); margin-bottom: 8px; }
.values__list h3 { font-size: 1.2rem; margin-bottom: 8px; letter-spacing: -.01em; }
.values__list p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Steps ---------- */

.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split-cta .btn { margin-top: 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.steps li > span {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    font-family: var(--heading); font-weight: 600; font-size: 1.05rem;
}
.steps strong { display: block; font-family: var(--heading); font-weight: 600; }
.steps p { margin: 2px 0 0; font-size: .97rem; }
.steps--light li { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps--light li > span { background: var(--magenta-soft); color: var(--magenta); }
.steps--light p { color: var(--muted); }

/* ---------- Appointment page ---------- */

.appointment { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.appointment__intro { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.appointment__note { padding: 20px 22px; border-radius: var(--radius); background: #fbe9eb; color: #6f1f2a; font-size: .97rem; }
.appointment__note strong { display: block; font-family: var(--heading); margin-bottom: 4px; }
.appointment__note p { margin: 0; }
.appointment__note a { font-weight: 700; color: inherit; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 60px -40px rgba(27, 24, 56, .3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 20px; }
.field label { font-family: var(--heading); font-size: .86rem; font-weight: 500; margin-bottom: 8px; }
.optional { font-family: var(--body); font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: inherit;
    padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfc8bd; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(65, 61, 148, .12); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin-top: 6px; font-size: .85rem; color: var(--danger); }
.form__privacy { margin: 14px 0 0; text-align: center; font-size: .84rem; color: var(--muted); }

.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 22px; font-size: .95rem; font-weight: 600; }
.alert--success { background: #e6f4ec; color: #1d6b42; }
.alert--error { background: #fbe9eb; color: #a42a39; }

/* ---------- Contact page ---------- */

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: stretch; }
.contact__list { margin: 0; }
.contact__list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact__list > div:last-child { border-bottom: 1px solid var(--line); }
.contact__list dt { font-family: var(--heading); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact__list dd { margin: 0; }
.contact__list dd strong { font-family: var(--heading); font-weight: 500; font-size: .95rem; }
.contact__list dd a:not(.link) { font-weight: 700; color: var(--indigo); text-decoration: none; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact__map { min-height: 480px; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.contact__map iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* ---------- Closing CTA ---------- */

.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(80px, 10vw, 130px) 0; }
.cta::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(600px 400px at 100% 0%, rgba(172, 81, 140, .55), transparent 70%),
        linear-gradient(90deg, rgba(20, 17, 52, .95) 0%, rgba(27, 24, 56, .85) 50%, rgba(27, 24, 56, .55) 100%);
}
.cta__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta .title { color: #fff; margin: 0 0 12px; }
.cta__text { margin: 0; max-width: 32em; color: rgba(255, 255, 255, .8); }
.cta__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: #b9b5d6; padding: 80px 0 32px; font-size: .95rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #f2c4e2; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__line { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; color: #fff; }
.footer__line em { color: #f2c4e2; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0; }
.footer h4 { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8d89b3; margin-bottom: 14px; }
.footer__cols p { margin: 0; line-height: 1.9; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer__bottom p { margin: 0; }
.footer .link { color: #fff; }

/* ---------- Motion ---------- */

/* Page entrance (runs once fonts are ready) */
.js [data-hero] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .line > span[data-hero] { opacity: 1; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js [data-hero-photo] { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js [data-hero-photo] img { transform: scale(1.18); transition: transform 2s var(--ease); }

.is-loaded [data-hero] { opacity: 1; transform: none; }
.js.is-loaded .line > span[data-hero] { transform: none; }
.is-loaded [data-hero-photo] { clip-path: inset(0 0 0 0); }
.is-loaded [data-hero-photo] img { transform: none; }

.is-loaded .kicker, .is-loaded .breadcrumb { transition-delay: .1s; }
.is-loaded .line:nth-child(1) > span { transition-delay: .2s; }
.is-loaded .line:nth-child(2) > span { transition-delay: .32s; }
.is-loaded .lead { transition-delay: .5s; }
.is-loaded .hero__actions { transition-delay: .62s; }
.is-loaded [data-hero-photo] { transition-delay: .15s; }
.is-loaded .hero__card { transition-delay: 1s; }

/* Scroll reveals */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
/* The mask sits on the children: an element that clips itself away never counts as "intersecting" */
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-visible > * { clip-path: inset(0 0 0 0); }

[data-parallax] { will-change: transform; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
    .facts { grid-template-columns: repeat(2, 1fr); }
    .facts > div:nth-child(3) { border-left: 0; }
    .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .values__list { grid-template-columns: 1fr; }
    .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1240px) {
    .nav { gap: 24px; }
    .nav a:not(.btn) { font-size: .88rem; }
}

@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 20px 24px; background: var(--paper); box-shadow: 0 20px 30px -20px rgba(27, 24, 56, .25);
        clip-path: inset(0 0 100% 0); visibility: hidden;
        transition: clip-path .45s var(--ease), visibility 0s .45s;
    }
    .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
    .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
    .nav a:not(.btn)::after { display: none; }
    .nav__cta { margin-top: 20px; }
    .header:has(.nav.is-open) { background: var(--paper); }
    .page-home .header:has(.nav.is-open) .brand__name { color: var(--ink); }
    .page-home .header:has(.nav.is-open) .brand__name span { color: var(--magenta); }
    .page-home .header:has(.nav.is-open) .brand__logo { filter: none; }
    .page-home .header:has(.nav.is-open) .nav a:not(.btn) { color: var(--ink); }
    .page-home .header:has(.nav.is-open) .nav__cta { background: var(--ink); color: #fff; }
    .page-home .header:has(.nav.is-open) .nav-toggle span { background: var(--ink); }
}

@media (max-width: 860px) {
    :root { --header-h: 68px; }

    .hero { padding-top: calc(var(--header-h) + 40px); min-height: max(640px, 100svh); }
    .hero__shade {
        background:
            linear-gradient(0deg, rgba(20, 17, 52, .95) 0%, rgba(20, 17, 52, .7) 45%, rgba(20, 17, 52, .25) 75%, rgba(20, 17, 52, .45) 100%),
            radial-gradient(500px 400px at 0% 100%, rgba(172, 81, 140, .4), transparent 70%);
    }
    .hero__inner { grid-template-columns: 1fr; padding-bottom: 32px; }
    .hero__card { display: none; }
    .hero__bottom { padding-bottom: 92px; }
    .hero__dot-label { display: none; }
    .hero__scroll { display: none; }
    .page-hero { padding: calc(var(--header-h) + 40px) 0 48px; }
    .page-hero--photo .page-hero__grid, .about, .services, .values, .appointment, .contact,
    .split-cta, .prose-split, .mv, .service-row { grid-template-columns: 1fr; }
    .service-row:nth-child(even) .service-row__photo { order: 0; }
    .service-row__photo { aspect-ratio: 16 / 11; }
    .about__media { padding-bottom: 0; }
    .about__main { width: 100%; }
    .about .about__inset { position: relative; width: 72%; margin: -56px 0 0 auto; }

    .services__stage { display: none; }
    .service { grid-template-columns: 40px 1fr; }
    .service__thumb { display: block; grid-column: 2; margin-top: 16px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; }
    .service__thumb img { width: 100%; height: 100%; object-fit: cover; }
    .service.is-active h3 { transform: none; }

    .values__head, .appointment__intro { position: static; }
    .gallery { grid-template-columns: 1fr; }
    .contact__map, .contact__map iframe { min-height: 340px; }
}

@media (max-width: 560px) {
    .container { width: calc(100% - 32px); }
    .facts-wrap { margin-top: -56px; }
    .facts > div { padding: 22px 18px; }
    .facts > div::before { left: 18px; }
    .facts dt { font-size: 1.05rem; }
    .hero .lead { font-size: 1.05rem; }
    .hero__actions .btn { width: 100%; }
    .form__row, .checklist { grid-template-columns: 1fr; gap: 0 0; }
    .checklist { gap: 10px; }
    .contact__list > div { grid-template-columns: 1fr; gap: 4px; }
    .footer__cols { grid-template-columns: 1fr; }
}

/* ---------- Photo-rich sections ---------- */

.center-link { margin: 40px 0 0; text-align: center; }
.section-head__aside { max-width: 26em; margin: 0; }

/* Services page: main photo with an overlapping second photo */
.service-row__media { position: relative; padding: 0 0 48px 0; }
.service-row__inset {
    position: absolute; right: -24px; bottom: 0; width: 42%; margin: 0;
    aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
    border: 6px solid var(--paper); box-shadow: 0 24px 40px -24px rgba(27, 24, 56, .45);
}
.service-row__inset picture { height: 100%; }
.service-row__inset img { width: 100%; height: 100%; object-fit: cover; }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row:nth-child(even) .service-row__inset { right: auto; left: -24px; }

/* About: people */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.person__photo { margin: 0 0 18px; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.person__photo picture { height: 100%; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.person:hover .person__photo img { transform: scale(1.05); }
.person h3 { font-size: 1.15rem; margin-bottom: 6px; }
.person p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Home: why choose us */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.why__collage { position: relative; aspect-ratio: 1 / 1.02; }
.why__collage figure { position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden; }
.why__collage picture { height: 100%; }
.why__collage img { width: 100%; height: 100%; object-fit: cover; }
.why__a { left: 0; top: 0; width: 70%; height: 62%; }
.why__b { right: 0; top: 14%; width: 38%; height: 46%; border: 6px solid var(--paper); }
.why__c { left: 14%; bottom: 0; width: 58%; height: 40%; border: 6px solid var(--paper); }
.reasons { list-style: none; margin: 8px 0 0; padding: 0; }
.reasons li { display: grid; gap: 2px; padding: 18px 0 18px 40px; border-top: 1px solid var(--line); position: relative; }
.reasons li::before {
    content: ""; position: absolute; left: 0; top: 21px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--magenta-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ac518c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.reasons strong { font-family: var(--heading); font-weight: 600; }
.reasons span { color: var(--muted); }

/* Home: mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.mosaic__item { display: block; border-radius: 16px; overflow: hidden; position: relative; }
.mosaic__item picture { height: 100%; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic__item:hover img { transform: scale(1.06); }
.mosaic__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(27, 24, 56, .35)); opacity: 0; transition: opacity .4s; }
.mosaic__item:hover::after { opacity: 1; }
.mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic__item:nth-child(4) { grid-row: span 2; }
.mosaic__item:nth-child(6) { grid-column: span 2; }

/* Gallery page */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters__btn {
    padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
    font-family: var(--heading); font-size: .88rem; font-weight: 500; color: var(--ink);
    transition: background-color .3s, color .3s, border-color .3s;
}
.filters__btn:hover { border-color: var(--indigo); color: var(--indigo); }
.filters__btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.masonry { columns: 3 300px; column-gap: 20px; }
.masonry__item { break-inside: avoid; margin: 0 0 20px; }
.masonry__item.is-hidden { display: none; }
.masonry__open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; overflow: hidden; }
.masonry__open img { width: 100%; transition: transform 1s var(--ease); }
.masonry__open:hover img { transform: scale(1.04); }
.masonry__zoom {
    position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255, 255, 255, .92);
    opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease);
}
.masonry__zoom svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.masonry__open:hover .masonry__zoom, .masonry__open:focus-visible .masonry__zoom { opacity: 1; transform: none; }
.masonry__item figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px 0; font-size: .92rem; font-weight: 600; }
.masonry__item figcaption small { font-family: var(--heading); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--magenta); white-space: nowrap; padding-top: 3px; }
.gallery-note { margin: 24px 0 0; font-size: .88rem; color: var(--muted); }

.lightbox {
    position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 12px;
    padding: 24px; background: rgba(17, 15, 38, .94); opacity: 0; transition: opacity .3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; border-radius: 12px; transform: scale(.96); transition: transform .4s var(--ease); }
.lightbox.is-open .lightbox__figure img { transform: none; }
.lightbox__figure figcaption { color: #fff; font-family: var(--heading); font-weight: 500; }
.lightbox__nav, .lightbox__close {
    width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: transparent;
    color: #fff; font-size: 1.4rem; cursor: pointer; transition: background-color .3s;
}
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255, 255, 255, .12); }
.lightbox__close { position: absolute; top: 20px; right: 20px; font-size: 1.8rem; line-height: 1; }
body.has-lightbox { overflow: hidden; }

@media (max-width: 1024px) {
    .people { grid-template-columns: repeat(2, 1fr); }
    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .mosaic__item:nth-child(n) { grid-column: auto; grid-row: auto; }
    .mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 860px) {
    .why { grid-template-columns: 1fr; }
    .service-row:nth-child(even) .service-row__media { order: 0; }
    .service-row__inset, .service-row:nth-child(even) .service-row__inset { right: 12px; left: auto; width: 38%; }
    .lightbox { grid-template-columns: 1fr; padding: 72px 12px 24px; }
    .lightbox__nav { position: absolute; bottom: 24px; }
    .lightbox__nav--prev { left: calc(50% - 64px); }
    .lightbox__nav--next { right: calc(50% - 64px); }
    .lightbox__figure img { max-height: calc(100vh - 200px); }
}

@media (max-width: 560px) {
    .people { grid-template-columns: 1fr 1fr; gap: 16px; }
    .person p { display: none; }
    .masonry { columns: 2 140px; column-gap: 12px; }
    .masonry__item { margin-bottom: 12px; }
    .masonry__item figcaption small { display: none; }
}

/* ==========================================================================
   Clinics, interactions and finishing touches
   ========================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Background pattern: small medical crosses, used on light hero areas */
:root {
    --pattern-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M20 16h4v4h4v4h-4v4h-4v-4h-4v-4h4z' fill='%23413d94' fill-opacity='.07'/%3E%3C/svg%3E");
}
.page-hero__bg {
    background:
        var(--pattern-cross) 0 0 / 44px 44px,
        linear-gradient(180deg, #f6f2fb 0%, var(--paper) 100%);
}
/* Slow-drifting colour glows behind inner page headers */
.page-hero__bg::before {
    content: ""; position: absolute; inset: -20%;
    background:
        radial-gradient(35% 45% at 85% 20%, rgba(172, 81, 140, .22), transparent 70%),
        radial-gradient(30% 40% at 10% 90%, rgba(65, 61, 148, .18), transparent 70%),
        radial-gradient(25% 30% at 55% 0%, rgba(120, 100, 200, .12), transparent 70%);
    animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(-4%, 3%, 0) rotate(4deg); }
    100% { transform: translate3d(3%, -2%, 0) rotate(-3deg); }
}

/* Cursor spotlight on interactive cards (position set by JS) */
[data-spotlight] { position: relative; isolation: isolate; }
[data-spotlight]::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(172, 81, 140, .1), transparent 60%);
    opacity: 0; transition: opacity .4s;
}
[data-spotlight]:hover::after { opacity: 1; }

/* Scroll progress, back-to-top, phone action bar */
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 150; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--indigo), var(--magenta)); }

.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 14px 30px -12px rgba(27, 24, 56, .6);
    opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease), background-color .3s;
}
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--magenta); }

.action-bar { display: none; }

/* Home: hero card photo */
.hero__card-photo { position: relative; margin: -12px -12px 4px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; }
.hero__card-photo picture { height: 100%; }
.hero__card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.hero__card:hover .hero__card-photo img { transform: scale(1.05); }
.hero__card-photo figcaption {
    position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
    background: rgba(20, 17, 52, .7); backdrop-filter: blur(6px); font-size: .74rem; font-weight: 600;
}

/* Home: specialist clinics teaser */
.clinics-teaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.today-card { margin-top: 28px; padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(27, 24, 56, .45); }
.today-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.today-card__head strong { font-family: var(--heading); font-weight: 600; }
.today-card__head > span:last-child { margin-left: auto; font-size: .85rem; color: var(--muted); }
.today-card ul { list-style: none; margin: 0 0 16px; padding: 0; }
.today-card li { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.today-card time { font-family: var(--heading); font-size: .85rem; font-weight: 500; color: var(--magenta); }
.today-card li span { font-weight: 700; }
.today-card li a { font-family: var(--heading); font-size: .8rem; font-weight: 500; text-decoration: none; color: var(--indigo); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; transition: background-color .3s, color .3s, border-color .3s; }
.today-card li a:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }

.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cat {
    display: grid; gap: 6px; align-content: start; padding: 24px; min-height: 170px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line); text-decoration: none; position: relative; overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.cat:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 30px 50px -30px rgba(27, 24, 56, .45); }
.cat__count { font-family: var(--heading); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--magenta); letter-spacing: -.03em; }
.cat strong { font-family: var(--heading); font-weight: 600; font-size: 1.05rem; }
.cat__list { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.cat__arrow { position: absolute; right: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.cat:hover .cat__arrow { background: var(--indigo); color: #fff; border-color: var(--indigo); transform: rotate(-45deg); }
.cat--all { background: var(--ink); border-color: var(--ink); color: #fff; justify-content: start; align-content: end; }
.cat--all strong { font-size: 1.2rem; }
.cat--all .cat__list { color: rgba(255, 255, 255, .7); }
.cat--all .cat__arrow { border-color: rgba(255, 255, 255, .3); }
.cat--all:hover .cat__arrow { background: var(--magenta); border-color: var(--magenta); }

/* Home: mosaic items are buttons that open the lightbox */
button.mosaic__item { padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; height: 100%; text-align: left; }
.mosaic__label {
    position: absolute; left: 14px; bottom: 14px; z-index: 1; padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); font-family: var(--heading); font-size: .8rem; font-weight: 500; color: var(--ink);
    transform: translateY(8px); opacity: 0; transition: opacity .35s, transform .35s var(--ease);
}
.mosaic__item:hover .mosaic__label, .mosaic__item:focus-visible .mosaic__label { opacity: 1; transform: none; }

/* About: facility tour */
.tour { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tour__item { margin: 0; }
.tour__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.tour__open picture { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.tour__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tour__open:hover img { transform: scale(1.06); }
.tour__open figcaption { margin-top: 10px; font-size: .9rem; font-weight: 700; }
.tour__item:first-child { grid-column: span 2; grid-row: span 2; }
.tour__item:first-child picture { aspect-ratio: auto; height: calc(100% - 34px); }
.tour__item:first-child .tour__open { height: 100%; }

/* Specialists: finder */
.finder__bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.finder__search { flex: 1 1 360px; position: relative; display: block; }
.finder__search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.finder__search input {
    width: 100%; padding: 16px 18px 16px 50px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
    font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.finder__search input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(65, 61, 148, .12); }

.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-family: var(--heading); font-size: .92rem; font-weight: 500; user-select: none; }
.toggle small { color: var(--muted); font-weight: 400; }
.toggle input { position: absolute; opacity: 0; }
.toggle__track { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--line); transition: background-color .3s; }
.toggle__track span { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .35s var(--ease); }
.toggle input:checked + .toggle__track { background: var(--magenta); }
.toggle input:checked + .toggle__track span { transform: translateX(20px); }
.toggle input:focus-visible + .toggle__track { outline: 2px solid var(--magenta); outline-offset: 3px; }

.filters__btn span { margin-left: 6px; font-size: .75rem; opacity: .6; }
.finder__count { margin: 0 0 20px; font-size: .9rem; font-weight: 600; color: var(--muted); }

.clinic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.clinic {
    display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.clinic:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 30px 50px -30px rgba(27, 24, 56, .4); }
.clinic.is-hidden { display: none; }
.clinic__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; min-height: 26px; }
.clinic__cat { font-family: var(--heading); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); }
.clinic__today { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: #e6f4ec; color: #1d6b42; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.clinic h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.clinic__role { margin: 2px 0 10px; font-size: .9rem; font-weight: 700; color: var(--magenta); }
.clinic__text { flex: 1; color: var(--muted); font-size: .95rem; }
.clinic__slots { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; padding: 0; }
.clinic__slots li { padding: 6px 12px; border-radius: 10px; background: var(--paper-2); font-size: .82rem; }
.clinic__slots strong { font-family: var(--heading); font-weight: 600; margin-right: 4px; }
.clinic__slots li.is-today { background: var(--magenta); color: #fff; }
.clinic__slots li.is-appt { background: var(--magenta-soft); color: var(--magenta); font-weight: 700; }
.clinic__book { align-self: start; font-family: var(--heading); font-size: .9rem; font-weight: 500; color: var(--indigo); text-decoration: none; }
.clinic__book span { display: inline-block; transition: transform .3s var(--ease); }
.clinic__book:hover span { transform: translateX(4px); }

.finder__empty { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.finder__empty p { margin: 6px 0 0; color: var(--muted); }

/* Specialists: timetable */
.timetable { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.timetable__day { padding: 20px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.timetable__day h3 { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid var(--line); }
.timetable__day h3 span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #fff; color: var(--magenta); }
.timetable__day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.timetable__day li { padding: 8px 0; }
.timetable__day time { display: block; font-family: var(--heading); font-size: .75rem; font-weight: 500; color: var(--magenta); }
.timetable__day a { font-weight: 700; font-size: .92rem; text-decoration: none; }
.timetable__day a:hover { color: var(--indigo); text-decoration: underline; }
.timetable__day.is-today { background: linear-gradient(160deg, var(--indigo), #5a3f8f 60%, var(--magenta)); border-color: transparent; color: #fff; box-shadow: 0 30px 50px -30px rgba(65, 61, 148, .7); }
.timetable__day.is-today h3 { border-color: rgba(255, 255, 255, .25); }
.timetable__day.is-today time { color: #f6c8e6; }
.timetable__day.is-today a:hover { color: #fff; }

.appt-only { margin-top: 24px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: 240px 1fr; gap: 8px 32px; align-items: center; }
.appt-only h3 { font-size: 1.1rem; }
.appt-only p { margin: 0; color: var(--muted); grid-column: 1; font-size: .92rem; }
.appt-only ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; grid-column: 2; grid-row: 1 / span 2; }
.appt-only a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--paper-2); font-family: var(--heading); font-size: .86rem; font-weight: 500; text-decoration: none; transition: background-color .3s, color .3s; }
.appt-only a:hover { background: var(--indigo); color: #fff; }

/* Booking form hint */
.field__hint { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.field__hint a { color: var(--indigo); font-weight: 700; }

@media (max-width: 1024px) {
    .clinic-grid { grid-template-columns: repeat(2, 1fr); }
    .timetable { grid-template-columns: repeat(3, 1fr); }
    .tour { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .clinics-teaser { grid-template-columns: 1fr; }
    .appt-only { grid-template-columns: 1fr; }
    .appt-only p, .appt-only ul { grid-column: auto; grid-row: auto; }
    .timetable { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
    .timetable__day { flex: 0 0 72%; scroll-snap-align: start; }

    /* Quick actions fixed to the bottom of the screen on phones */
    .action-bar {
        display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95;
        padding: 8px; border-radius: 999px; background: rgba(27, 24, 56, .92); backdrop-filter: blur(12px);
        box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); transform: translateY(140%); transition: transform .45s var(--ease);
    }
    .action-bar.is-visible { transform: none; }
    .action-bar a { display: grid; place-items: center; padding: 12px; border-radius: 999px; color: #fff; text-decoration: none; font-family: var(--heading); font-size: .9rem; font-weight: 500; }
    .action-bar__primary { background: var(--magenta); }
    .to-top { bottom: 88px; right: 16px; width: 42px; height: 42px; }
    .footer { padding-bottom: 100px; }
}

@media (max-width: 560px) {
    .clinic-grid, .cat-grid { grid-template-columns: 1fr; }
    .today-card li { grid-template-columns: 1fr auto; }
    .today-card time { grid-column: 1 / -1; }
    .tour__item:first-child { grid-column: span 2; grid-row: auto; }
    .tour__item:first-child picture { height: auto; aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    [data-parallax] { transform: none !important; }
}
