/* =========================================================
   ASJ Eye Hospital — Stylesheet
   Signature idea: an "aperture / focus-ring" motif — circular
   masks and a drawing focus-ring — echoes the optics the
   hospital is built around (an eye, a lens, coming into focus).
   ========================================================= */

:root {
    /* Brand palette — derived from the ASJ logo */
    --ink:        #0b2343;   /* deep navy — headings, dark sections */
    --primary:    #0f5987;   /* primary blue — buttons, links */
    --sky:        #3a99ca;   /* accent blue — icons, highlights */
    --sky-light:  #5db4d0;   /* secondary accent */
    --mist:       #eef5f6;   /* pale section backgrounds */
    --paper:      #ffffff;
    --gold:       #e3a23c;   /* warm human accent — used sparingly (focus ring, key CTA) */
    --gold-dark:  #c9862a;
    --gold-deep:  #a66c1a;   /* focus-ring only — clears 3:1 non-text contrast on both white and mist */

    --text:       #1c2b3a;
    --text-soft:  #52697a;
    --border:     #dbe7ea;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 10px rgba(11, 35, 67, 0.06);
    --shadow-md: 0 12px 32px rgba(11, 35, 67, 0.10);
    --shadow-lg: 0 24px 60px rgba(11, 35, 67, 0.16);

    --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    /* The mobile off-canvas nav sits off-screen via `transform:
       translateX(100%)` on a fixed element — transforms count toward the
       scrollable overflow region even when the element is invisible, which
       otherwise lets the whole page scroll sideways enough to shift every
       other (in-flow) element left along with it (confirmed with
       Playwright: without this, window.scrollBy(500, 0) actually moves the
       page on every route).
       This goes on <html> only, not <body>: putting it on body as well
       breaks `.site-header`'s `position: sticky` (confirmed — the header
       stopped sticking with both set). html-only stops real horizontal
       scrolling and leaves sticky working; `document.documentElement.
       scrollWidth` still misreports the old doubled value as a browser
       quirk, but `scrollX` genuinely cannot move past 0 — that's what
       actually matters for the user. */
    overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 4vw + 1rem, 3.8rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.7rem); }
h3 { font-size: 1.3rem; }
p { color: var(--text-soft); }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
    padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
    /* gold-deep, not the brand gold/gold-dark used elsewhere: those sit at
       ~2.2–2.8:1 against white/mist sections, under the 3:1 WCAG minimum
       for a non-text focus indicator. */
    outline: 2.5px solid var(--gold-deep);
    outline-offset: 3px;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
    /* --primary, not --sky: at this weight/size --sky sits at ~3.2:1 on
       white, under the 4.5:1 WCAG AA minimum for text. */
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 0 3px rgba(227,162,60,0.25);
}
.eyebrow--light { color: var(--sky-light); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
    border: 1.5px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-dark); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gold); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #cfe3ee; font-size: 0.82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding-block: 9px; gap: 12px; flex-wrap: wrap; }
.topbar__item { display: flex; align-items: center; gap: 8px; }
.topbar__item--right { display: flex; align-items: center; gap: 14px; }
.topbar a:hover { color: var(--gold); }
.topbar__divider { opacity: 0.35; }
.lang-switch { display: inline-flex; align-items: center; gap: 5px; }
.lang-switch a { opacity: 0.6; font-weight: 600; }
.lang-switch a.is-active { opacity: 1; color: var(--gold); }
.lang-switch span[aria-hidden] { opacity: 0.35; }

.lang-pending-notice {
    background: var(--sky-light); color: var(--ink); text-align: center;
    font-size: 0.82rem; font-weight: 600; padding: 8px 16px;
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
    transition: box-shadow .25s ease;
}

/* Anchor-link targets (the "Book Appointment" section, service cards) sit
   right under the sticky header unless given breathing room — otherwise
   jumping to #book or #<service-slug> lands the heading half-hidden behind
   it. 100px comfortably clears the header at every width we've measured
   (~77-89px) plus a little air. */
#book, .service-card { scroll-margin-top: 100px; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--mist); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.brand__name em { font-style: normal; color: var(--primary); }
.brand__tag { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); font-weight: 600; }

.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__list a {
    display: block; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
    color: var(--text); transition: background .2s ease, color .2s ease;
}
.nav__list a:hover, .nav__list a.is-active { background: var(--mist); color: var(--primary); }

.site-header__actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; background: var(--mist); border: none; border-radius: 10px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); margin-inline: auto; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; background: linear-gradient(180deg, var(--mist) 0%, #ffffff 78%);
    overflow: hidden;
}
.hero__inner {
    display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px;
    padding-block: 72px 88px;
}
.hero__eyebrow-row { margin-bottom: 18px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--sky); }
.hero__lede { font-size: 1.12rem; max-width: 46ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__trust-item { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.hero__trust-item i { color: var(--sky); font-size: 1.1rem; }

.hero__art { position: relative; display: flex; align-items: center; justify-content: center; }
.aperture {
    position: relative; width: min(420px, 90%); aspect-ratio: 1/1;
}
.aperture__ring {
    position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg);
}
.aperture__ring circle {
    fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round;
    stroke-dasharray: 691; stroke-dashoffset: 691;
    animation: draw-ring 1.8s cubic-bezier(.2,.8,.2,1) 0.3s forwards;
}
.aperture__ring circle.ring--sky { stroke: var(--sky); stroke-width: 1.5; opacity: 0.55; stroke-dasharray: 628; stroke-dashoffset: 628; animation-delay: 0.6s; animation-duration: 2.2s; }
@keyframes draw-ring { to { stroke-dashoffset: 0; } }
.aperture__photo {
    position: absolute; inset: 22px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg);
}
.aperture__photo img { width: 100%; height: 100%; object-fit: cover; }
/* The logo is a square mark with text running edge-to-edge — at 100% fill,
   the circular mask above would clip the corners (and the text near them).
   Scaling to ~72% keeps the whole square inside the circle's inscribed
   safe area (a square inscribed in a circle is ~70.7% of the circle's
   bounding box), so nothing gets cut off. */
.aperture__photo.aperture__photo--logo {
    display: flex; align-items: center; justify-content: center; background: #fff;
}
.aperture__photo.aperture__photo--logo img { width: 72%; height: 72%; object-fit: contain; }
.aperture__badge {
    position: absolute; bottom: 6%; left: -8%; background: #fff; border-radius: var(--radius-md);
    padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px;
    max-width: 230px;
}
.aperture__badge i { color: var(--gold); font-size: 1.4rem; }
.aperture__badge strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1rem; }
.aperture__badge span { font-size: 0.78rem; color: var(--text-soft); }

/* ---------- Section basics ---------- */
.section { padding-block: 88px; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #cfe3ee; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #a9c3d4; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---------- Why choose / stats strip ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 30px 26px; transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card__icon {
    width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--mist); color: var(--primary); font-size: 1.35rem; margin-bottom: 18px;
    border: 2px solid transparent; transition: border-color .25s ease;
}
.value-card:hover .value-card__icon { border-color: var(--gold); }
.value-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.value-card p { font-size: 0.92rem; margin: 0; }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 32px 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card__icon {
    position: relative; width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--sky)); color: #fff; font-size: 1.4rem; margin-bottom: 20px;
}
.service-card__icon::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--gold);
    opacity: 0; transform: scale(0.8); transition: opacity .3s ease, transform .3s ease;
}
.service-card:hover .service-card__icon::after { opacity: 1; transform: scale(1); }
.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { font-size: 0.92rem; margin-bottom: 18px; }
.service-card__link { font-weight: 700; font-size: 0.88rem; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }
.service-card__link i { transition: transform .2s ease; }
.service-card:hover .service-card__link i { transform: translateX(4px); }

.services-more-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.services-more-list li {
    display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px 18px;
}
.services-more-list i { color: var(--sky); font-size: 1.1rem; width: 24px; text-align: center; }
.services-more-list strong { display: block; color: var(--ink); font-size: 0.95rem; }
.services-more-list span { font-size: 0.85rem; }

/* ---------- About / story split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__photo {
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
    aspect-ratio: 4/3.1;
}
.split__photo img { width: 100%; height: 100%; object-fit: cover; }
.split__photo-accent {
    position: absolute; width: 130px; height: 130px; border-radius: 50%;
    border: 2.5px solid var(--gold); z-index: -1;
}
.split__photo-accent--tl { top: -24px; left: -24px; }
.split__photo-accent--br { bottom: -24px; right: -24px; border-color: var(--sky); }
.split__body p { margin-bottom: 16px; }
.check-list { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.check-list i { color: var(--gold); margin-top: 3px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 18px; }
.gallery-grid figure { border-radius: var(--radius-md); overflow: hidden; margin: 0; position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid figure:nth-child(4) { grid-column: span 2; }
.gallery-grid figcaption {
    position: absolute; inset: auto 0 0 0; padding: 14px 16px; font-size: 0.82rem; font-weight: 600; color: #fff;
    background: linear-gradient(0deg, rgba(11,35,67,0.85), transparent);
}

/* ---------- Doctors ---------- */
.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doctor-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); transition: box-shadow .25s ease, transform .25s ease; }
.doctor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.doctor-card__photo { aspect-ratio: 1/1; overflow: hidden; }
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card__body { padding: 22px 22px 26px; }
.doctor-card__body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.doctor-card__role { color: var(--primary); font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; display: block; }
.doctor-card__body p { font-size: 0.9rem; margin: 0; }
.doctor-note {
    background: var(--mist); border: 1px dashed var(--sky-light); border-radius: var(--radius-sm);
    padding: 18px 22px; margin-top: 32px; font-size: 0.9rem; color: var(--text-soft);
}

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--ink), var(--primary)); color: #fff; position: relative; overflow: hidden; }
.cta-banner::after {
    content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.08); right: -180px; top: -180px;
}
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 56px; flex-wrap: wrap; position: relative; }
.cta-banner h2 { color: #fff; margin-top: 10px; max-width: 20ch; }
.cta-banner p { color: #bcd4e2; margin-top: 10px; max-width: 46ch; }
.cta-banner__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a9c3d4; padding-top: 72px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-family: var(--font-body); letter-spacing: 0.02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { color: #a9c3d4; font-size: 0.92rem; margin: 16px 0 20px; max-width: 32ch; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; }
.footer-contact i { margin-top: 4px; color: var(--sky-light); }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__name em { color: var(--sky-light); }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.social-links a:hover { background: var(--gold); color: var(--ink); }
.site-footer__bottom { display: flex; justify-content: space-between; padding-block: 22px; font-size: 0.85rem; flex-wrap: wrap; gap: 10px; }
.site-footer__legal a:hover { color: var(--gold); }

.back-to-top {
    position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
    background: var(--ink); color: #fff; border: none; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, background .2s ease; z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--ink); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
    background: linear-gradient(120deg, var(--ink), var(--primary));
    color: #fff; padding-block: 64px 74px; position: relative; overflow: hidden;
}
.page-header::after {
    content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.09); right: -120px; bottom: -160px;
}
.page-header .eyebrow { color: var(--sky-light); }
.page-header h1 { color: #fff; margin-top: 12px; }
.page-header p { color: #bcd4e2; margin-top: 14px; max-width: 56ch; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: #9db8c9; margin-bottom: 6px; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.contact-info-card {
    background: var(--mist); border-radius: var(--radius-lg); padding: 36px 32px;
}
.contact-info-item { display: flex; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item i {
    width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.05rem; box-shadow: var(--shadow-sm);
}
.contact-info-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { font-size: 0.92rem; }
.contact-info-item p + p { margin-top: 4px; }
.contact-info-item a:hover { color: var(--primary); }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--ink); margin-bottom: 8px; }
.field-optional { font-weight: 500; color: var(--text-soft); text-transform: none; letter-spacing: normal; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--mist); transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; margin-top: 14px; }
.form-alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 600; font-size: 0.92rem; }
.form-alert--success { background: #e7f6ec; color: #1f7a41; border: 1px solid #bfe6cb; }
.form-alert--error { background: #fdeceb; color: #b3261e; border: 1px solid #f7c8c4; }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 56px; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-block: 22px; background: none; border: none; text-align: left; font-family: var(--font-display);
    font-size: 1.08rem; font-weight: 600; color: var(--ink);
}
.faq-question i { color: var(--sky); transition: transform .25s ease; flex-shrink: 0; }
.faq-item.is-open .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding-bottom: 22px; margin: 0; }

/* ---------- Blog post body ---------- */
.blog-post-body p { margin-bottom: 20px; font-size: 1.02rem; }
.blog-post-body h2 { font-size: 1.4rem; margin-top: 36px; margin-bottom: 14px; }
.blog-post-body em { color: var(--text-soft); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .doctor-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .split, .contact-grid { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
}

@media (max-width: 880px) {
    .topbar__item:first-child { display: none; }
    .nav {
        /* Explicit height, not inset's implicit top+bottom sizing: measured
           in Chromium 141 that `inset: 74px 0 0 0` on a fixed element here
           resolves to a ~40px box instead of filling to the viewport
           bottom — a real, reproducible engine quirk, not a stale-browser
           artifact. calc() sidesteps it entirely. */
        position: fixed; top: 74px; right: 0; left: 0; height: calc(100vh - 74px);
        background: #fff; padding: 20px 24px; transform: translateX(100%);
        visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; overflow-y: auto; z-index: 99;
    }
    /* visibility (not just the transform) keeps the closed-off-canvas menu's
       links out of tab order — otherwise they stay focusable while invisible. */
    .nav.is-open { transform: translateX(0); visibility: visible; transition: transform .3s ease; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav__list a { padding: 14px 18px; font-size: 1.05rem; }
    .nav-toggle { display: flex; }
    .site-header__actions .btn--primary span { display: none; }
    .hero__inner { grid-template-columns: 1fr; padding-block: 44px 56px; }
    .hero__art { order: -1; margin-bottom: 12px; }
    .aperture { width: min(320px, 80%); }
    .value-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .services-more-list { grid-template-columns: 1fr; }
    .doctor-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
    .gallery-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .gallery-grid figure:nth-child(4) { grid-column: span 1; }
    .form-grid { grid-template-columns: 1fr; }
    .cta-banner__inner { flex-direction: column; align-items: flex-start; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
    .section { padding-block: 60px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .aperture__badge { position: static; margin-top: 18px; max-width: 100%; }
}
