/* =========================================================================
   CLEOPATRA CLINIC â€” Laravel application layer
   Additions for server-rendered pages, filters, booking wizard and admin UI
   hooks. Loaded after style.css so these rules can refine the original system.
   ========================================================================= */

/* ---------- Generic helpers used by the Blade views -------------------- */
.booking-time-parts { display:flex; align-items:center; gap:8px; max-width:380px; }
.hero[data-approved-clinic="true"] h1 { font-size:clamp(32px,4vw,64px); line-height:1.2; }
.hero[data-approved-clinic="true"] .hero-copy .lead { font-size:clamp(16px,1.5vw,21px); }
.booking-time-parts select, .booking-time-parts input { flex:1; min-width:0; text-align:center; }
.booking-time-parts input { max-width:85px; }
.map-frame:has(iframe) iframe { position:absolute; inset:0; }
.site-header--hero { margin-bottom:calc(-1 * var(--site-header-height, var(--header-h))); }
.site-header--hero:not(.is-solid) {
    background:rgba(10,22,38,.46);
    backdrop-filter:blur(8px) saturate(120%);
    -webkit-backdrop-filter:blur(8px) saturate(120%);
}
.hero .hero-cta .btn-ghost[data-wa] {
    --btn-bg:rgba(10,22,38,.82);
    --btn-fg:var(--gold-400);
    border-color:var(--gold-500);
}
.hero .hero-cta .btn-ghost[data-wa]:hover,
.hero .hero-cta .btn-ghost[data-wa]:focus-visible {
    background:var(--gold-400);
    color:var(--navy-950);
}
.specialty { display:flex; flex-direction:column; min-width:0; }
.specialty .visual { width:100%; height:auto; aspect-ratio:16 / 11; flex:none; min-width:0; }
.specialty .body { flex:1; min-width:0; overflow-wrap:anywhere; }
.specialty.light { background:#fff; border-color:var(--line-ink); }
.specialty.light .body h3 { color:var(--ink); }
.specialty.light .body p { color:var(--muted); }
.department-title { display:flex; align-items:center; gap:14px; min-width:0; }
.department-title :is(h2,h3) { min-width:0; overflow-wrap:anywhere; }
.department-icon-badge { display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px; padding:8px; flex:none; border-radius:14px; background:#f3ead5; color:#86601f; border:1px solid #dfcca3; }
.department-icon-badge .glyph { display:block; width:100%; height:100%; object-fit:contain; }
.department-icon-badge--intro { display:flex; width:64px; height:64px; margin-bottom:22px; }
.department-protocols.dark .empty-state { background:#142338; border-color:#36465c; color:#dbe4ef; }
.department-protocols.dark .info-card { background:#142338; border-color:#36465c; }
.department-protocols.dark .info-card p, .department-protocols.dark .section-heading .lead { color:#c3cedc; }
[hidden] { display: none !important; }

.mini-heading {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-600);
}

.muted-copy { color: var(--muted); font-size: 15px; }

.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading h2 { font-size: var(--step-3); margin-top: 14px; }
.section-heading .lead { margin-top: 14px; color: var(--muted); }
.dark .section-heading .lead { color: var(--muted-d); }

.results-note {
    margin-top: 22px;
    color: var(--muted);
    font-size: 15px;
}
.results-note b { color: var(--ink); font-weight: 500; }
.results-note a { color: var(--gold-600); text-decoration: underline; text-underline-offset: 3px; }
.results-note--dark { color: var(--muted-d); }
.results-note--dark b { color: #fff; }

.empty-state {
    grid-column: 1 / -1;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--line-ink);
    border-radius: var(--r-md);
    background: #fff;
    text-align: center;
    display: grid;
    gap: 14px;
    justify-items: center;
}
.empty-state h2 { font-size: var(--step-2); }
.empty-state p { max-width: 54ch; color: var(--muted); }
.empty-state .hero-cta { justify-content: center; }
.empty-state--dark { background: rgba(255,255,255,.03); border-color: var(--line); }
.empty-state--dark h2 { color: #fff; }
.empty-state--dark p { color: var(--muted-d); }
.empty-state--dark .textlink { color: var(--gold-400); }

.info-card {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--line-ink);
    border-radius: var(--r-md);
    background: #fff;
    transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.info-card:hover { transform: translateY(-4px); border-color: var(--gold-500); box-shadow: var(--shadow-1); }
.info-card h3 { font-size: var(--step-1); }
.info-card p { color: var(--muted); font-size: 15px; }
.info-card .textlink { margin-top: 4px; justify-self: start; }
.dark .info-card { background: rgba(255,255,255,.03); border-color: var(--line); }
.dark .info-card h3 { color: #fff; }
.dark .info-card p { color: var(--muted-d); }
.dark .info-card .textlink { color: var(--gold-400); }

/* ---------- Filter / search bars -------------------------------------- */
.filter-bar {
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line-ink);
    border-radius: var(--r-md);
    background: #fff;
    box-shadow: var(--shadow-1);
}
.filter-bar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.filter-bar-head .eyebrow { margin: 0; }
.filter-count {
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line-ink);
    border-radius: var(--r-pill);
    font-size: 12.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    background: transparent;
    transition: all var(--dur-2) var(--ease-out);
}
.filter-chip:hover { color: var(--ink); border-color: var(--gold-500); }
.filter-chip.is-active { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); font-weight: 600; }

.filter-bar--dark {
    background: rgba(255,255,255,.04);
    border-color: var(--line);
    box-shadow: none;
}
.filter-bar--dark .filter-bar-head .eyebrow { color: var(--gold-400); }
.filter-bar--dark .filter-count { color: var(--muted-d); }
.filter-bar--dark .field > label { color: var(--muted-d); }

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}
.search-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 2px; }
.search-actions .textlink { color: var(--muted-d); }
.filter-bar--dark .search-actions .btn { white-space: nowrap; }

/* ---------- Treatment index ------------------------------------------- */
.treat-list { display: grid; gap: 22px; }
.treat-list .treat-row + .treat-row { margin-top: 0; }
.treat-media { background-color: var(--navy-900); }
.treat-body h2 a:hover { color: var(--gold-600); }
.treat-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.treat-body .chips .chip b { color: var(--ink); font-weight: 500; }

.tick-list li::before {
    content: "âœ“" !important;
    top: .05em !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: var(--gold-600);
    font-size: 14px;
}
.step-list { padding-inline-start: 22px !important; }
.step-list li { margin-bottom: 8px; color: #2c3440; }
.suitable-note {
    margin-top: 22px;
    padding: 16px 18px;
    border-inline-start: 2px solid var(--gold-500);
    background: rgba(198,161,91,.08);
    color: var(--muted);
    font-size: 15px;
}
.suitable-note b { color: var(--ink); font-weight: 500; }

/* ---------- Doctor profile -------------------------------------------- */
.profile-facts {
    display: grid;
    gap: 0;
    margin-top: 26px;
    border-top: 1px solid var(--line-soft);
}
.profile-facts .fact {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
}
.profile-facts .k {
    font-size: 11.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px;
}
.profile-facts .v { color: var(--ink); }
.profile-facts .v a { color: var(--gold-600); text-decoration: underline; text-underline-offset: 3px; }

.avail--light { margin-top: 20px; color: var(--success); }
.avail--light .dot { background: var(--success); box-shadow: 0 0 0 4px rgba(46,125,91,.16); }

.doc-card { display:flex; flex-direction:column; min-width:0; }
.doc-card .portrait { flex:none; }
.doc-card .body { display:flex; flex-direction:column; flex:1; min-width:0; }
.doc-card-actions { display:grid; grid-template-columns:1fr; gap:12px; margin-top:auto; padding-top:20px; }
[data-site-section].section .doc-card-actions .btn,
.doc-card-actions .btn {
    width:100%; min-width:0; min-height:52px; padding:12px 16px;
    border-radius:12px; font-size:17px; font-weight:700; line-height:1.6;
    letter-spacing:0; white-space:normal; text-align:center; box-shadow:none;
}
.doc-card-actions .btn-ghost { background:transparent; color:var(--gold-400); border-color:var(--gold-500); }

.doc-card--light { background: #fff; border-color: var(--line-ink); }
.doc-card--light .body h3 { color: var(--ink); }
.doc-card--light .body .role { color: var(--gold-600); }
.doc-card--light .textlink { color: var(--ink); }

/* ---------- Facilities ------------------------------------------------ */
.facility-card {
    border: 1px solid var(--line-ink);
    border-radius: var(--r-md);
    overflow: hidden;
    background: #fff;
}
.facility-card .visual { aspect-ratio: 4 / 3; position: relative; }
.facility-card h3 {
    padding: 18px 20px;
    font-size: 1.15rem;
    line-height: 1.25;
}

/* ---------- About values ---------------------------------------------- */
.value-card--dark {
    background: rgba(255,255,255,.03);
    border-color: var(--line);
    color: var(--ivory);
}
.value-card--dark .ic { color: var(--gold-400); }
.value-card--dark h3 { color: #fff; }
.value-card--dark p { color: var(--muted-d); }

/* ---------- Pagination ------------------------------------------------ */
.pagination-wrap { margin-top: 42px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.page-link {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--muted-d);
    font-size: 14px;
    transition: all var(--dur-2) var(--ease-out);
}
.page-link:hover { border-color: var(--gold-500); color: #fff; }
.page-link.is-active {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--navy-950);
    font-weight: 600;
}
.page-link.is-disabled { opacity: .4; cursor: not-allowed; }
.page-link.is-gap { border-color: transparent; color: var(--muted-d); }

/* ---------- Booking wizard -------------------------------------------- */
.booking-wizard { align-items: start; }
.booking-section { padding-block:28px; }
.booking-wizard { grid-template-columns:210px minmax(0,1fr); gap:30px; }
.booking-wizard form { min-width:0; }
.booking-wizard .wpanel { scroll-margin-top:calc(var(--site-header-height, var(--header-h)) + 16px); }
.booking-wizard [data-treatment-wrap] { scroll-margin-top:calc(var(--site-header-height, var(--header-h)) + 16px); }
.booking-wizard .wpanel h2 { font-size:clamp(23px,2.2vw,30px); }
.booking-wizard .wpanel .sub { margin-bottom:16px; font-size:15px; }
.booking-wizard .wstep { padding-block:14px; gap:12px; }
.booking-wizard .field { gap:5px; margin-bottom:12px; }
.booking-wizard .field input, .booking-wizard .field select { padding:10px 12px; min-height:44px; }
.booking-select-field select { width:100%; max-width:100%; min-width:0; font-size:16px; text-overflow:ellipsis; }
.booking-select-field select:disabled { opacity:.65; cursor:not-allowed; }
.simple-booking-section { background:var(--sand); padding:36px 0 48px; }
.simple-booking-wrap { max-width:760px; }
.simple-booking-heading { margin-bottom:20px; text-align:center; }
.simple-booking-heading h1 { font-size:clamp(26px,3vw,36px); line-height:1.4; }
.simple-booking-heading p { color:var(--muted); margin-top:8px; font-size:15px; }
.simple-booking-card { background:var(--ivory,#fff); padding:28px; border:1px solid var(--line-ink); border-radius:16px; }
.simple-booking-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.simple-booking-card .field { min-width:0; margin-bottom:16px; gap:6px; }
.simple-booking-card .field label { font-size:14px; }
.simple-booking-card input, .simple-booking-card select, .simple-booking-card textarea { width:100%; min-width:0; max-width:100%; font-size:16px; padding:11px 12px; min-height:46px; }
.simple-booking-card input[type=date], .simple-booking-card input[type=time] { min-inline-size:0; }
.booking-optional { color:var(--muted); font-size:12px; font-weight:400; margin-inline-start:6px; }
.booking-optional-notes { margin-bottom:16px; }
.booking-optional-notes summary { cursor:pointer; font-size:14px; color:var(--muted); padding-block:6px; }
.booking-optional-notes .field { margin-top:8px; }
.simple-booking-submit { width:100%; min-height:48px; }
.simple-booking-note { color:var(--muted); font-size:12px; text-align:center; margin-top:10px; }
.simple-booking-direct { border-bottom:1px solid var(--line-ink); margin-bottom:20px; padding-bottom:20px; text-align:center; }
.simple-booking-direct p { color:var(--muted); font-size:13px; margin-bottom:10px; }
.simple-booking-direct .btn { width:100%; min-height:46px; }
.footer-social-links { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:22px; padding-block:4px; }
.footer-social-links [data-social] {
    --social-rgb:198,161,91;
    position:relative; display:inline-flex; justify-content:center; align-items:center;
    width:52px; height:52px; flex:0 0 52px; border:1px solid rgba(var(--social-rgb),.3); border-radius:16px;
    color:rgb(var(--social-rgb));
    background:linear-gradient(145deg,rgba(255,255,255,.055),transparent 65%),rgba(var(--social-rgb),.09);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 5px 12px rgba(0,0,0,.12);
    transition:transform .2s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.footer-social-links [data-social=facebook] { --social-rgb:122,170,255; }
.footer-social-links [data-social=instagram] { --social-rgb:242,159,188; background:linear-gradient(145deg,rgba(151,86,208,.19),rgba(231,105,139,.1) 55%,rgba(232,170,88,.13)); }
.footer-social-links [data-social=tiktok] { --social-rgb:226,239,243; }
.footer-social-links [data-social=whatsapp] { --social-rgb:97,218,156; }
.footer-social-links svg { width:24px; height:24px; flex:none; }
.footer-social-links [data-social=tiktok] svg { filter:drop-shadow(-1px -1px 0 rgba(37,244,238,.35)) drop-shadow(1px 1px 0 rgba(254,44,85,.4)); }
.footer-social-links a:hover, .footer-social-links a:focus-visible {
    color:rgb(var(--social-rgb)); border-color:rgba(var(--social-rgb),.75);
    background-color:rgba(var(--social-rgb),.18); transform:translateY(-3px);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 8px 20px rgba(0,0,0,.2);
}
.footer-social-links a:focus-visible { outline:2px solid rgb(var(--social-rgb)); outline-offset:4px; }
.footer-social-links a:active { transform:translateY(0) scale(.95); }
.footer-social-links .footer-social-pending { opacity:.82; }
.footer-credit {
    display:flex; align-items:center; justify-content:center;
    margin-top:22px; padding-top:14px;
    border-top:1px solid rgba(198,161,91,.12);
    color:#aeb9c8; font-size:12px; line-height:1.8; text-align:center;
}
.footer-credit-link {
    position:relative; display:inline-flex; align-items:center; justify-content:center;
    gap:9px; min-height:44px; max-width:100%; padding:8px 12px;
    color:inherit; border-radius:10px; text-decoration:none; isolation:isolate; overflow:hidden;
    box-shadow:inset 0 0 0 1px rgba(198,161,91,.06);
    transition:color .35s ease, background-color .35s ease, transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.footer-credit-link::before {
    content:""; position:absolute; inset:-50% -20%; z-index:-1; pointer-events:none;
    background:linear-gradient(110deg,transparent 35%,rgba(198,161,91,.04) 43%,rgba(248,221,167,.15) 50%,rgba(198,161,91,.04) 57%,transparent 65%);
    transform:translateX(-110%); animation:footer-credit-sweep 7.5s ease-in-out infinite;
}
.footer-credit-link::after {
    content:""; position:absolute; inset-inline:12px; bottom:3px; height:1px;
    background:linear-gradient(90deg,transparent,var(--gold-400),transparent);
    opacity:.35; transform:scaleX(.22);
    transition:transform .5s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.footer-credit-mark { width:17px; height:17px; color:var(--gold-400); flex:none; transition:transform .45s cubic-bezier(.2,.8,.2,1); }
.footer-credit-name { color:var(--gold-400); font-weight:600; overflow-wrap:anywhere; }
.footer-credit-copy { display:grid; align-items:center; min-width:0; overflow:hidden; padding-block:2px; }
.footer-credit-signature, .footer-credit-invitation {
    grid-area:1 / 1; transition:opacity .28s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.footer-credit-signature { opacity:1; transform:translateY(0); }
.footer-credit-invitation { opacity:0; transform:translateY(110%); color:#e5d5b4; }
.footer-credit-invitation strong { color:var(--gold-400); font-weight:600; }
.footer-credit-arrow { display:inline-block; margin-inline-start:5px; color:var(--gold-400); }
.footer-credit-link:is(:hover,:focus-visible,:active) .footer-credit-signature { opacity:0; transform:translateY(-110%); }
.footer-credit-link:is(:hover,:focus-visible,:active) .footer-credit-invitation { opacity:1; transform:translateY(0); }
.footer-credit-link:hover, .footer-credit-link:focus-visible {
    color:#fff; background:rgba(198,161,91,.06); transform:translateY(-3px);
    box-shadow:inset 0 0 0 1px rgba(198,161,91,.23),0 6px 22px rgba(198,161,91,.08);
}
.footer-credit-link:hover::after, .footer-credit-link:focus-visible::after { transform:scaleX(1); opacity:1; }
.footer-credit-link:hover .footer-credit-mark, .footer-credit-link:focus-visible .footer-credit-mark {
    transform:rotate(-8deg) scale(1.12); animation:footer-credit-mark .65s ease both;
}
.footer-credit-link:focus-visible { outline:2px solid var(--gold-400); outline-offset:3px; }
.footer-credit-link:active { transform:translateY(0) scale(.97); transition-duration:.12s; }
@supports (background-clip:text) or (-webkit-background-clip:text) {
    .footer-credit-name {
        background:linear-gradient(110deg,var(--gold-400) 35%,#fff1cd 48%,#fff 50%,#fff1cd 52%,var(--gold-400) 65%);
        background-size:250% 100%; background-position:100% 50%;
        -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
        animation:footer-credit-letter-shine 7.5s ease-in-out infinite;
    }
}
@keyframes footer-credit-sweep {
    0%,8% { transform:translateX(-110%); }
    32%,100% { transform:translateX(110%); }
}
@keyframes footer-credit-letter-shine {
    0%,8% { background-position:100% 50%; }
    32%,100% { background-position:0% 50%; }
}
@keyframes footer-credit-mark {
    0% { transform:rotate(0) scale(1); }
    45% { transform:rotate(-14deg) scale(1.2); }
    75% { transform:rotate(-5deg) scale(1.08); }
    100% { transform:rotate(-8deg) scale(1.12); }
}
@media(max-width:600px) { .footer-credit { padding-bottom:44px; } }
@media(prefers-reduced-motion:reduce) {
    .footer-credit-link, .footer-credit-link::before, .footer-credit-link::after,
    .footer-credit-mark, .footer-credit-name, .footer-credit-signature,
    .footer-credit-invitation { transition:none; animation:none !important; }
    .footer-credit-link::before { display:none; }
    .footer-credit-name { background:none; -webkit-text-fill-color:currentColor; }
    .footer-credit-link:hover, .footer-credit-link:focus-visible, .footer-credit-link:active,
    .footer-credit-link:hover .footer-credit-mark, .footer-credit-link:focus-visible .footer-credit-mark { transform:none; }
}
@media(prefers-reduced-motion:reduce) { .footer-social-links [data-social] { transition:none; } .footer-social-links a:hover, .footer-social-links a:active { transform:none; } }
.booking-doctor-context { font-size:14px; margin-bottom:16px; color:var(--muted); }
@media(max-width:540px) {
    .simple-booking-section { padding-block:24px 32px; }
    .simple-booking-card { padding:18px; }
    .simple-booking-grid:not(.simple-booking-appointment) { grid-template-columns:1fr; gap:0; }
    .simple-booking-appointment { gap:10px; }
}
.social-links { display:flex; flex-wrap:wrap; gap:10px; margin-block:24px; }
.social-links a { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border:1px solid currentColor; border-radius:8px; font-size:14px; min-height:44px; }
.social-links svg { flex-shrink:0; }
.social-links a:hover { color:var(--gold-500); }
.social-links a:focus-visible { outline:2px solid var(--gold-500); outline-offset:3px; }
.booking-wizard .form-grid-2 { gap:0 18px; }
.booking-wizard .choice-label { margin-bottom:8px; }
.booking-wizard [data-treatment-wrap], .booking-wizard [data-panel="1"] > .choice-label,
.booking-wizard [data-panel="1"] > .field { margin-top:16px !important; }
.booking-wizard .opt-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.booking-wizard .opt-card { padding:12px; gap:4px; }
.booking-wizard .opt-card b { font-size:17px; padding-inline-end:24px; }
.booking-wizard .opt-card > span:not(.check):not(.opt-ic) { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:12px; }
.booking-wizard .opt-ic { width:24px; height:24px; margin:0; }
.booking-wizard .opt-ic svg, .booking-wizard .opt-ic img { width:24px; height:24px; }
.booking-wizard .opt-card .check { width:18px; height:18px; top:10px; inset-inline-end:10px; }
.booking-wizard .date-cell { padding:6px 4px; }
.booking-wizard .date-cell .dd { font-size:18px; }
.booking-wizard .summary-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; background:var(--line-ink); }
.booking-wizard .summary-list .r { display:grid; gap:3px; padding:8px 12px; background:white; border:0; min-width:0; }
.booking-wizard .summary-list .k { width:auto; font-size:11px; letter-spacing:.04em; }
.booking-wizard .summary-list .v { font-size:14px; }
.booking-wizard .mini-heading { margin-block:8px; }
.booking-wizard .booking-whatsapp-note { margin-block:12px 0; padding:10px 12px; font-size:12px; }
.booking-wizard .booking-nav { margin-top:16px; }
.booking-wizard .booking-nav .btn { min-height:44px; padding:11px 22px; }
@media(max-width:900px) {
    .booking-wizard { grid-template-columns:1fr; gap:16px; }
    .booking-wizard .wizard-steps { position:static; grid-auto-flow:column; grid-auto-columns:1fr; }
    .booking-wizard .wstep { padding:8px; border-inline-start:0; border-bottom:2px solid var(--line-soft); }
    .booking-wizard .wstep.is-active { border-bottom-color:var(--gold-500); }
    .booking-wizard .wstep > span > span { display:none; }
    .booking-wizard .wstep b { font-size:12px; }
}
@media(max-width:540px) {
    .booking-section { padding-block:18px; }
    .booking-wizard .opt-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .booking-wizard .wstep { gap:6px; padding:6px 2px; }
    .booking-wizard .wstep .num { width:24px; height:24px; }
    .booking-wizard .form-grid-2 { grid-template-columns:1fr; }
}
.booking-assurance {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid var(--line-ink);
    border-radius: var(--r-md);
    background: #fff;
}
.booking-assurance .eyebrow { font-size: 10.5px; }
.mini-list { display: grid; gap: 10px; margin-top: 14px; }
.mini-list li {
    position: relative;
    padding-inline-start: 18px;
    font-size: 13.5px;
    color: var(--muted);
}
.mini-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .72em;
    width: 8px;
    height: 1px;
    background: var(--gold-500);
}

.choice-label {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}
.choice-hint { margin: -6px 0 14px; font-size: 13px; color: var(--muted); }

.opt-ic {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: var(--gold-600);
    margin-bottom: 4px;
}
.opt-ic svg, .opt-ic img { width: 30px; height: 30px; }

.opt-grid--compact { gap: 10px; }
.choice-option--compact { padding: 15px 16px; gap: 4px; }
.choice-option--compact b { font-size: 17px; }
.choice-option--compact span { font-size: 12.5px; }
.choice-option--compact .check { top: 12px; inset-inline-end: 12px; width: 19px; height: 19px; font-size: 11px; }
.choice-option--compact b { padding-inline-end: 26px; }

.choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

/* Radio-controlled date and slot labels */
.date-cell, .slot { position: relative; }
.date-cell .mon { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.date-cell[aria-pressed="true"], .date-cell:has(input:checked) {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--ivory);
}
.date-cell[aria-pressed="true"] .dw, .date-cell:has(input:checked) .dw,
.date-cell[aria-pressed="true"] .mon, .date-cell:has(input:checked) .mon { color: var(--gold-300); }
.slot { display: flex; align-items: center; justify-content: center; }
.slot[aria-pressed="true"], .slot:has(input:checked) {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--ivory);
}
.slot.is-disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slot.is-disabled:hover { border-color: var(--line-ink); }

.choice-error {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--danger);
}

.hp-field {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.booking-error-summary {
    margin-bottom: 26px;
    display: grid;
    gap: 4px;
}
.booking-error-summary span { font-size: 14px; }

.booking-whatsapp-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(31,168,85,.28);
    border-radius: var(--r-sm);
    background: rgba(31,168,85,.07);
    font-size: 13.5px;
    color: var(--muted);
}
.booking-whatsapp-note svg { width: 20px; height: 20px; color: #1FA855; flex: none; margin-top: 1px; }

.booking-nav { align-items: center; }
.booking-nav [data-submit] { gap: 10px; }
.booking-nav [data-submit] svg { width: 18px; height: 18px; }

/* ---------- Forms / success state ------------------------------------- */
.form-success {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    margin-bottom: 24px;
    border: 1px solid rgba(46,125,91,.3);
    border-radius: var(--r-md);
    background: rgba(46,125,91,.07);
}
.form-success .seal {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(46,125,91,.12);
    color: var(--success);
}
.form-success .seal svg { width: 24px; height: 24px; }
.form-success b { display: block; font-weight: 500; }
.form-success p { margin: 6px 0 8px; font-size: 14px; color: var(--muted); }

.map-link {
    position: absolute;
    top: 14px;
    inset-inline-end: 16px;
    z-index: 2;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: rgba(5,12,24,.72);
    color: var(--ivory);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.map-link:hover { border-color: var(--gold-500); color: var(--gold-300); }

/* ---------- Responsive refinements ------------------------------------ */
@media (max-width: 980px) {
    .search-row { grid-template-columns: 1fr 1fr; }
    .search-actions { grid-column: 1 / -1; }
    .profile-facts .fact { grid-template-columns: 120px minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .filter-bar-head { align-items: flex-start; }
    .search-row { grid-template-columns: 1fr; }
    .search-actions { width: 100%; justify-content: flex-start; }
    .profile-facts .fact { grid-template-columns: 1fr; gap: 3px; }
    .booking-assurance { margin-top: 8px; }
    .pagination { gap: 6px; }
    .page-link { min-width: 40px; min-height: 40px; }
    .treat-media { min-height: 240px; }
    .form-success { flex-direction: column; }
    .date-cell { padding: 9px 3px; }
    .date-cell .dd { font-size: 17px; }
    .date-cell .mon { font-size: 9px; }
}

.lang-toggle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(247,244,236,.7);
    text-decoration: none;
    transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}

.lang-toggle a:hover { color: #fff; }

.lang-toggle a[aria-pressed="true"] {
    background: var(--gold-500);
    color: var(--navy-950);
    font-weight: 600;
}

/* Keep content visible when JavaScript is unavailable (reveal animations need JS). */
html:not(.js) [data-reveal] { opacity: 1; transform: none; }


/* ==========================================================================
   Floating WhatsApp action button
   ========================================================================== */
.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    max-width: calc(100vw - 32px);
    height: 58px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #b8862b 0%, #d4af37 55%, #c79a2f 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(10, 22, 38, 0.28), 0 3px 8px rgba(10, 22, 38, 0.18);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
    animation: wa-float-pulse 3.6s ease-in-out infinite;
}

.wa-float svg {
    display: block;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    fill: currentColor;
}

.wa-float-label {
    font-family: "Jost", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.wa-float:hover,
.wa-float:focus-visible {
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.05);
    box-shadow: 0 18px 36px rgba(10, 22, 38, 0.34), 0 5px 12px rgba(10, 22, 38, 0.2);
}

.wa-float:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

[dir="rtl"] .wa-float {
    right: auto;
    left: 24px;
}

[dir="rtl"] .wa-float-label {
    letter-spacing: 0;
    text-transform: none;
    font-size: 13px;
}

@keyframes wa-float-pulse {
    0%, 100% { box-shadow: 0 12px 28px rgba(10, 22, 38, 0.28), 0 0 0 0 rgba(212, 175, 55, 0.34); }
    50% { box-shadow: 0 12px 28px rgba(10, 22, 38, 0.28), 0 0 0 12px rgba(212, 175, 55, 0); }
}

@media (max-width: 640px) {
    .wa-float {
        right: 18px;
        bottom: 18px;
        width: 58px;
        height: 58px;
        padding: 0;
        border-radius: 50%;
    }

    .wa-float-label { display: none; }

    [dir="rtl"] .wa-float {
        right: auto;
        left: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float { animation: none; transition: none; }
}

/* ==========================================================================
   Arabic (RTL) typography
   ========================================================================== */
[dir="rtl"] {
    --font-body: "Tajawal", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Cairo", "Tajawal", "Segoe UI", system-ui, sans-serif;
}

[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] blockquote {
    letter-spacing: 0;
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .footer-grid h4,
[dir="rtl"] .marquee span,
[dir="rtl"] .brand-text span {
    letter-spacing: 0;
    text-transform: none;
}

.content-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.choice-error:focus { outline:2px solid currentColor; }
@media (max-width:480px) { .date-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .slot-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Keep desktop navigation and actions in one row; use the drawer on narrower screens. */
.header-inner { max-width:1600px; flex-wrap:nowrap; }
.nav { flex-wrap:nowrap; }
.nav a, .header-actions .btn { white-space:nowrap; }
.header-actions { margin-inline-start:auto; }
html[lang="en"] .brand-text span { letter-spacing:.18em; }
html[lang="en"] .nav a { padding-inline:9px; letter-spacing:.04em; }
html[lang="en"] .header-actions .btn { padding-inline:20px; letter-spacing:.06em; }
@media (min-width:1400px) {
    .site-header.is-compact .header-inner { gap:12px; }
    .site-header.is-compact .brand { gap:10px; }
    .site-header.is-compact .brand-text { width:180px; }
    .site-header.is-compact .brand-text span { white-space:normal; line-height:1.5; letter-spacing:.08em; }
    .site-header.is-compact .brand-text b { font-size:19px; letter-spacing:.1em; }
    .site-header.is-compact .nav { gap:0; }
    .site-header.is-compact .nav a { padding-inline:7px; font-size:13px; letter-spacing:0; text-transform:none; }
    .site-header.is-compact .header-actions { gap:8px; }
    .site-header.is-compact .header-actions .btn { padding-inline:14px; font-size:13px; letter-spacing:0; text-transform:none; }
}
@media (max-width:1399px) {
    .site-header .nav { display:none; }
    .header-actions .btn-desktop { display:none; }
    .burger { display:inline-flex; }
}
@media (max-width:560px) {
    .header-inner { gap:10px; }
    .header-actions { gap:6px; }
    .site-header .brand-text span { max-width:150px; line-height:1.4; }
}
html:not(.js) .header-inner { flex-wrap:wrap; }
html:not(.js) .site-header .nav { width:100%; order:3; }
.wizard > *, .form-card, .bpanel { min-width:0; }
.opt-card, .wstep, .summary-list { overflow-wrap:anywhere; }
@media (min-width:961px) { .wizard { grid-template-columns:minmax(0,300px) minmax(0,1fr); } }

.drawer { visibility:hidden; }
.drawer.is-open { visibility:visible; }
html:not(.js) .nav { display:flex; flex-wrap:wrap; }
html:not(.js) .burger { display:none; }
.choice-option:focus-within, .date-cell:focus-within, .slot:focus-within { outline:2px solid var(--gold-600); outline-offset:2px; }


@media (max-width:380px) {
    .site-header .brand { gap:8px; }
    .site-header .brand img { width:36px; height:36px; }
    .site-header .brand-text b { font-size:14px; }
    .site-header .brand-text span { display:none; }
}

:root { --livewire-progress-bar-color:var(--gold-500); }
@media (prefers-reduced-motion:no-preference) {
    #main { animation:clinic-page-enter 160ms ease-out; }
    [data-reveal] { transition-duration:350ms; }
}
@keyframes clinic-page-enter { from { opacity:.65; } to { opacity:1; } }

/* Saved request and automatic WhatsApp handoff. */
.receipt-page { padding:calc(var(--header-h) + 56px) 0 56px; background:var(--paper); color:var(--ink); min-height:80vh; }
.receipt-wrap { max-width:1160px; }
.receipt-heading { text-align:center; max-width:680px; margin:0 auto 36px; }
.receipt-check { display:grid; place-items:center; width:64px; height:64px; margin:0 auto 18px; border-radius:50%; background:#e7f1eb; color:#28734f; box-shadow:0 0 0 8px #edf4ed; }
.receipt-check svg { width:32px; height:32px; }
.receipt-heading .eyebrow { color:var(--gold-700); }
.receipt-heading h1 { font-size:clamp(30px,4vw,48px); line-height:1.4; margin:8px 0; }
.receipt-heading p { color:var(--muted); font-size:16px; line-height:1.9; }
.receipt-grid { display:grid; grid-template-columns:1.05fr 1fr; gap:24px; align-items:start; }
.receipt-card { min-width:0; padding:32px; border:1px solid var(--line-ink); border-radius:20px; background:#fff; box-shadow:0 12px 40px #0b142008; }
.receipt-card h2 { font-size:23px; line-height:1.6; margin-bottom:20px; }
.receipt-handoff { border-top:3px solid var(--gold-500); }
.receipt-pill { display:inline-block; padding:6px 12px; margin-bottom:18px; background:#f7f0e2; color:#796025; font-size:12px; border-radius:30px; }
.receipt-steps { list-style:none; padding:0; margin:0 0 28px; display:grid; gap:20px; }
.receipt-steps li { display:flex; gap:12px; align-items:start; }
.receipt-steps li > span { display:grid; place-items:center; flex:none; width:28px; height:28px; border:1px solid var(--line); border-radius:50%; color:var(--gold-700); font-size:13px; }
.receipt-steps p { font-size:15px; line-height:1.8; margin:0; }
.receipt-whatsapp { display:flex; width:100%; gap:14px; background:#21794f; border-color:#21794f; color:#fff; letter-spacing:0; }
.receipt-whatsapp:hover { background:#19613e; color:#fff; }
.receipt-help, .receipt-contact { font-size:13px; line-height:1.9; color:var(--muted); margin-top:14px; }
.receipt-opening { color:#21794f; font-size:13px; margin-top:10px; }
.receipt-contact { border-top:1px solid var(--line-ink); padding-top:18px; display:grid; gap:8px; }
.receipt-contact a { color:var(--ink); }
.receipt-reference { display:grid; gap:6px; padding:16px; background:var(--paper); border:1px dashed var(--line); border-radius:10px; margin-bottom:14px; font-size:12px; color:var(--muted); }
.receipt-reference strong { color:var(--ink); font-size:15px; letter-spacing:.03em; overflow-wrap:anywhere; text-align:start; }
.receipt-details dl { margin:0; }
.receipt-details dl > div { display:grid; grid-template-columns:minmax(90px,.7fr) minmax(0,1fr); gap:14px; padding:12px 0; border-bottom:1px solid #0b14200a; font-size:14px; }
.receipt-details dt { color:var(--muted); }
.receipt-details dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.receipt-home { display:block; text-align:center; margin-top:28px; color:var(--muted); font-size:14px; text-decoration:underline; text-underline-offset:5px; }
@media(max-width:760px) { .receipt-grid { grid-template-columns:1fr; } .receipt-card { padding:22px; } .receipt-page { padding-top:calc(var(--header-h) + 32px); } }

/* Administrator-authored pages and articles. */
.article-reading.section { padding-block:clamp(28px,4vw,60px); }
.article-container { max-width:980px; }
.article-content { background:#fff; border-radius:20px; padding:clamp(22px,4vw,52px); box-shadow:0 8px 40px rgba(10,22,38,.05); }
.article-meta { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px 24px; padding-bottom:22px; margin-bottom:28px; border-bottom:1px solid #eee9df; color:var(--muted); font-size:14px; }
.article-meta time { display:inline-flex; align-items:center; gap:9px; }
.article-meta svg { width:19px; height:19px; flex:none; color:var(--gold-600); }
.article-department { color:#775314; font-weight:600; text-underline-offset:5px; overflow-wrap:anywhere; }
.article-department:hover { text-decoration:underline; }
.article-department:focus-visible { outline:2px solid var(--gold-500); outline-offset:5px; }
.article-copy.prose { max-width:none; font-size:clamp(16px,1.2vw,18px); line-height:1.95; overflow-wrap:anywhere; }
.article-copy > :first-child { margin-top:0; }
.article-copy > :last-child { margin-bottom:0; }
.article-copy p { margin-block:0 20px; }
.article-copy :is(h2,h3,h4) { color:var(--ink); line-height:1.6; }
.article-copy :is(ul,ol) { padding-inline-start:24px; margin-block:20px; }
.article-copy img { display:block; max-width:100%; height:auto; border-radius:12px; margin-block:24px; }
.article-copy blockquote { margin:24px 0; padding:12px 20px; border-inline-start:3px solid var(--gold-500); color:var(--muted); background:#faf7f0; }
.article-copy table { display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; margin-block:24px; }
.article-copy :is(th,td) { padding:10px 14px; border:1px solid #e5e2da; }
.article-toc { padding:20px; margin-bottom:28px; background:#faf7f0; border-radius:12px; line-height:1.9; }
.article-toc ul { padding-inline-start:20px; margin-top:10px; }
.article-toc a, .editorial-details a { color:#775314; text-decoration:underline; text-underline-offset:4px; }
.article-copy :is(h2,h3) { scroll-margin-top:calc(var(--site-header-height,var(--header-h)) + 24px); }
.editorial-details { border-top:1px solid #eee9df; margin-top:28px; padding-top:22px; font-size:15px; line-height:1.9; color:var(--muted); }
.editorial-details > div { margin-top:20px; }
.editorial-details h3 { color:var(--ink); font-size:19px; margin-bottom:10px; }
.editorial-details p { white-space:pre-line; }
.editorial-details li { margin-bottom:8px; }
.editorial-faq details { padding-block:12px; border-bottom:1px solid #eee9df; }
.editorial-faq summary { cursor:pointer; color:var(--ink); font-weight:600; }
@media(max-width:600px) { .article-meta { margin-bottom:22px; padding-bottom:18px; } .article-content { border-radius:14px; } }
/* Local treatment filtering: keep the filter bar stable and show activity without hiding results. */
.hero-slide { background:var(--navy-950); }
.hero-slide video, .hero-slide .hero-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-slide::after { pointer-events:none; }
.hero-slide.is-active { z-index:1; }
.hero-slide.is-error video { display:none; }
.hero-controls { position:relative; z-index:5; display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-inline-start:auto; max-width:100%; }
.hero-controls .hero-dots { margin-inline-start:0; gap:6px; flex-wrap:wrap; }
.hero-controls .hero-dots button { width:24px; height:24px; background:transparent; position:relative; }
.hero-controls .hero-dots button::after { content:""; position:absolute; inset:10px 2px; background:rgba(247,244,236,.4); border-radius:3px; }
.hero-controls .hero-dots button[aria-selected="true"] { background:transparent; transform:none; }
.hero-controls .hero-dots button[aria-selected="true"]::after { background:var(--gold-500); }
.hero-media-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:9px 13px; border:1px solid rgba(255,255,255,.45); border-radius:24px; color:#fff; background:rgba(5,12,24,.65); font:inherit; font-size:12px; cursor:pointer; }
.hero-media-button[hidden], .hero-controls [hidden] { display:none !important; }
.hero-media-button:hover { border-color:var(--gold-400); color:var(--gold-400); }
.hero-controls button:focus-visible { outline:2px solid var(--gold-400); outline-offset:3px; }
.page-hero[data-hero] > .hero-controls { position:absolute; bottom:18px; inset-inline-end:var(--gutter); max-width:calc(100% - 2 * var(--gutter)); }
.page-hero.has-media-controls { padding-bottom:90px; }
@media(max-width:600px) { .hero-meta .hero-controls { flex-basis:100%; margin-inline-start:0; } .hero > .wrap { padding-bottom:220px; } .hero-media-button { min-height:44px; } }
@media(prefers-reduced-motion:reduce) { .hero-slide { transition:none; } }
.treatment-directory { overflow-anchor: none; }
.treatment-directory .treatment-loading { min-height: 1.5em; margin-top: 12px; font-size: 13px; color: var(--muted); }
.treatment-directory .treat-list { transition: opacity .15s ease; }
.treatment-directory .treat-list.is-loading { opacity: .5; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .treatment-directory .treat-list { transition: none; } }

.cms-block h2 { margin-bottom:28px; }
.cms-block .prose { max-width:none; }
.cms-block-image { display:block; width:100%; max-height:560px; object-fit:cover; border-radius:18px; margin-bottom:28px; }
.cms-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin-top:28px; }
.cms-card { min-width:0; background:#fff; color:var(--ink); border:1px solid var(--line-ink); border-radius:16px; overflow:hidden; }
.cms-card > a { display:block; }
.cms-card img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; }
.cms-card > div { padding:24px; }
.cms-card h3 { margin-bottom:12px; overflow-wrap:anywhere; }
.cms-card p { color:var(--muted); margin-bottom:16px; }
.cms-card .prose { font-size:16px; }
.cms-faq { max-width:900px; margin-inline:auto; }
.cms-faq details { border-bottom:1px solid var(--line-ink); padding:22px 0; }
.cms-faq summary { cursor:pointer; font-weight:600; }
.cms-faq .prose { margin-top:16px; }
.cms-filter { display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.cms-filter select { min-width:220px; max-width:100%; padding:12px; border:1px solid var(--line-ink); border-radius:8px; background:#fff; color:var(--ink); }
.site-header.is-collapsed .nav { display:none; }
.site-header.is-collapsed .burger { display:inline-flex; }
.site-header.is-collapsed .btn-desktop { display:none; }
.site-header .brand-text { min-width:0; }
.site-header .brand-text b { max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:900px) { .cms-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .cms-cards { grid-template-columns:1fr; } .cms-filter select { min-width:0; flex:1; } .site-header .brand-text b { max-width:165px; } }
@media(max-width:380px) { .site-header .brand-text b { max-width:112px; } }
@media(max-width:600px) {
    .site-header .brand { flex-shrink:1; min-width:0; }
    .site-header .brand-text { flex:1; min-width:0; }
    .site-header .brand-text b, .site-header .brand-text span { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}

.dept-block .department-title { justify-content:center; flex-wrap:wrap; text-align:center; }
.dept-block .department-heading {
    color:var(--gold-400);
    font-size:clamp(26px, 2vw + 12px, 40px);
    font-weight:700;
    line-height:1.7;
    overflow-wrap:anywhere;
    margin:0;
}
.dept-block .dept-actions {
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
    margin-top:24px;
    width:100%;
}
[data-site-section].section .dept-block .dept-actions .btn {
    width:100%;
    min-width:0;
    min-height:50px;
    padding:12px 16px;
    border-radius:12px;
    font-size:17px;
    line-height:1.6;
    letter-spacing:0;
    white-space:normal;
    text-align:center;
    box-shadow:none;
}
.dept-block .dept-actions .btn-ghost { background:transparent; border-color:var(--gold-500); color:var(--gold-400); }
@media (max-width:600px) {
    .dept-block .dept-actions { grid-template-columns:1fr; }
}

.ba-compare { user-select:none; -webkit-user-select:none; }
.ba-compare img { pointer-events:none; -webkit-user-drag:none; }

/* Clear section labels and comfortable calls to action. */
[data-site-section].section .eyebrow {
    padding:0;
    max-width:100%;
    font-size:clamp(18px, 1.2rem + .35vw, 24px);
    font-weight:700;
    line-height:1.65;
    color:#775314;
    background:none;
    border:0;
    border-radius:0;
    box-shadow:none;
}
[data-site-section].section .eyebrow:empty { display:none; }
[data-site-section].section .eyebrow::before,
[data-site-section].section .eyebrow::after { display:none; }
[data-site-section].section.dark .eyebrow,
[data-site-section] .cta-band .eyebrow {
    color:#f3d590;
    background:none;
    border:0;
    box-shadow:none;
}
[data-site-section].section .textlink {
    min-height:50px;
    padding:8px 0;
    max-width:100%;
    justify-content:flex-start;
    font-size:clamp(17px, 1rem + .25vw, 21px);
    font-weight:700;
    line-height:1.6;
    color:#694a12;
    background:none;
    border:0;
    border-radius:0;
    box-shadow:none;
    transition:background-color .2s, box-shadow .2s;
}
[data-site-section].section.dark .textlink {
    color:#f3d590;
    background:none;
    border:0;
    box-shadow:none;
}
[data-site-section].section .textlink:hover {
    background:none;
    color:var(--gold-600);
    box-shadow:none;
}
[data-site-section].section .btn {
    min-height:52px;
    padding:12px 26px;
    font-size:clamp(17px, 1rem + .15vw, 20px);
    font-weight:700;
    line-height:1.6;
    box-shadow:0 6px 18px rgba(0,0,0,.18);
}
[data-site-section].section :is(.textlink, .btn):focus-visible {
    outline:3px solid #c69b45;
    outline-offset:4px;
}

/* Section names repeat the dashboard copy as a large decorative backdrop. */
[data-site-section].section:has(.section-name) {
    padding-block:clamp(32px, 4vw, 64px);
}
[data-site-section="section-2"] .split > div > h2 { text-align:center; }
[data-site-section].section .eyebrow.section-name {
    position:relative;
    isolation:isolate;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    width:100%;
    min-height:0;
    overflow:hidden;
    padding:16px 0;
    margin-block:0 12px;
    border:0;
    border-radius:0;
    background:none;
    box-shadow:none;
    color:var(--gold-600);
    font-size:clamp(32px, 3vw + 12px, 52px);
    line-height:1.7;
    letter-spacing:0;
    overflow-wrap:anywhere;
}
[data-site-section].section .eyebrow.section-name::after { content:none; display:none; }
[data-site-section].section.dark .eyebrow.section-name,
[data-site-section] .cta-band .eyebrow.section-name { color:var(--gold-400); }
[data-site-section].section :has(> .section-name) {
    margin-inline:auto;
    min-width:0;
}
[data-site-section].section :has(> .section-name) > :is(h2, .lead),
[data-site-section].section .cta-band .inner { text-align:center; }
[data-site-section].section .od-row:has(.section-name) {
    flex-direction:column;
    align-items:center !important;
}
[data-site-section].section .od-row:has(.section-name) > :has(> .section-name) {
    width:100%;
    max-width:800px !important;
}
@media (max-width:600px) {
    [data-site-section].section .eyebrow.section-name { min-height:0; padding-block:16px; font-size:30px; }
}

/* Keep the stats in their own row so long slide copy cannot overlap them. */
.hero { grid-template-rows:1fr auto; }
.hero > .wrap { padding-block:calc(var(--site-header-height, var(--header-h)) + 40px) 40px; }
.hero-meta { position:relative; inset:auto; }
.hero .hero-cta { margin-top:28px; gap:12px; }
.hero .hero-cta .btn { min-height:52px; padding:14px 24px; font-size:16px; line-height:1.5; }
/* Let short mobile screens grow with their content instead of overlaying the stats. */
@media (max-width:860px) {
    .hero { display:block; min-height:calc(100svh - var(--header-h)); }
    .hero > .wrap { padding-block:64px 32px; }
    .site-header--hero ~ main .hero > .wrap { padding-block-start:calc(var(--site-header-height, var(--header-h)) + 40px); }
    .hero h1 { line-height:1.16; }
    .hero-meta { position:relative; inset:auto; margin-top:0; }
    .hero-meta > .wrap { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 18px; padding-block:24px; }
    .hero-meta .stat { min-width:0; }
    .hero-meta .stat span { overflow-wrap:anywhere; letter-spacing:0; line-height:1.7; }
    .hero-meta .sep { display:none; }
    .hero-meta .hero-controls { grid-column:1 / -1; margin-inline-start:0; }
    body.home-hero-visible .wa-float { opacity:0; visibility:hidden; pointer-events:none; }
}
@media (max-width:480px) {
    .hero-cta { flex-direction:column; align-items:stretch; margin-top:28px; }
    .hero-cta .btn { width:100%; min-width:0; white-space:normal; text-align:center; }
}

/* Editorial home features and shared department protocol cards. */
.home-results.section { padding-block:clamp(40px,5vw,76px); background:linear-gradient(120deg,#0c1b2d,#162b3c); color:#fff; }
.home-results-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:32px; }
.home-results-heading > div { max-width:720px; }
.home-results.section .eyebrow { color:#dec17e; font-size:16px; margin-bottom:10px; }
.home-results-heading h2 { color:#fff; font-size:clamp(28px,3vw,42px); line-height:1.5; }
.home-results-heading .lead { color:#c4d0db; margin-top:12px; font-size:18px; line-height:1.8; }
.home-results-heading .btn { flex-shrink:0; box-shadow:none; }
.ba-card { border:0; border-radius:18px; box-shadow:0 8px 28px rgba(9,23,37,.08); }
.ba-card .caption { padding:22px; gap:8px; background:#fff; color:var(--ink); }
.ba-card .caption b { font-size:21px; line-height:1.5; }
.ba-card .caption span { font-size:14px; line-height:1.8; }
.ba-tag { padding:6px 13px; font-size:12px; letter-spacing:0; border-radius:20px; background:rgba(10,22,38,.85); line-height:1.6; }
.ba-tag.after { background:#f1dfb1; color:#28313d; }
.ba-compare .handle { background:#fff; box-shadow:0 0 4px rgba(0,0,0,.2); }
.ba-compare .handle::after { background:#fff; border:0; box-shadow:0 3px 15px rgba(0,0,0,.22); }
.ba-compare .handle::before { color:#263a4d; font-size:20px; }
.ba-compare:focus-visible { outline:3px solid var(--gold-500); outline-offset:-4px; }
@media(max-width:800px) {
    .home-results-heading { align-items:flex-start; flex-direction:column; }
    .home-results-heading .btn { min-height:46px; font-size:16px; }
}
.facial-feature.section, .medical-blog-feature.section { padding-block:clamp(40px,6vw,88px); }
.facial-feature { background:var(--sand); }
.facial-feature-layout { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); align-items:center; gap:clamp(28px,5vw,80px); }
.facial-feature-copy h2 { font-size:clamp(28px,2.6vw,42px); line-height:1.55; text-wrap:balance; }
.facial-feature-copy .lead { margin-block:20px; font-size:clamp(17px,1.2vw,20px); line-height:1.95; }
.facial-feature-note { padding-inline-start:20px; border-inline-start:2px solid var(--gold-500); color:var(--muted); line-height:1.9; font-size:17px; }
.facial-feature-copy .btn { margin-top:28px; }
.facial-feature-media { aspect-ratio:4/5; max-height:560px; overflow:hidden; border-radius:100px 20px 20px 20px; }
.facial-feature-media img, .medical-blog-media img, .protocol-card-media img { display:block; width:100%; height:100%; object-fit:cover; }
.medical-blog-panel { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.8fr); background:var(--navy-900,#0a1626); border-radius:24px; overflow:hidden; color:#fff; }
.medical-blog-copy { padding:clamp(28px,4vw,64px); align-self:center; }
.medical-blog-copy h2 { font-size:clamp(27px,2.5vw,40px); line-height:1.55; text-wrap:balance; }
.medical-blog-copy .lead { margin-block:18px 28px; color:#c3cedc; font-size:19px; line-height:1.8; }
.medical-blog-copy .btn { gap:16px; }
.medical-blog-media { min-height:320px; }
.department-protocols .grid-3 { gap:44px 30px; align-items:stretch; }
.protocol-card { display:flex; flex-direction:column; min-width:0; border:0; background:none; box-shadow:none; }
.protocol-card-media { display:block; aspect-ratio:3/2; overflow:hidden; border-radius:16px; background:#17283d; }
.protocol-card-body { display:flex; flex:1; flex-direction:column; align-items:flex-start; padding:22px 0 0; gap:12px; }
.protocol-card h3 { font-size:clamp(21px,1.6vw,27px); line-height:1.6; margin:0; }
.protocol-card p { margin:0; color:#c3cedc; font-size:16px; line-height:1.9; }
.protocol-card .protocol-duration { color:var(--gold-400); font-size:14px; }
.protocol-card .textlink { margin-top:auto; padding-block:12px; font-size:17px; }
.protocol-card a:hover { color:var(--gold-400); }
.protocol-card a:focus-visible { outline:2px solid var(--gold-400); outline-offset:5px; }
.treatment-consultation-note { display:flex; align-items:flex-start; gap:10px; margin-top:20px; max-width:640px; color:var(--muted); font-size:14px; line-height:1.85; }
.treatment-consultation-note svg { width:19px; height:19px; flex:none; margin-top:4px; color:var(--gold-600); }
.treatment-consultation-note p { margin:0; }
.related-services.section { padding-block:clamp(36px,5vw,72px); background:var(--sand); }
.related-services .section-heading { max-width:720px; margin-bottom:32px; }
.related-services .section-heading h2 { font-size:clamp(28px,2.7vw,42px); line-height:1.5; }
.related-services .section-heading .eyebrow { font-size:16px; margin-bottom:10px; }
.related-services .section-heading .lead { margin-top:14px; font-size:18px; line-height:1.9; }
.related-services .grid-3 { align-items:stretch; gap:32px; }
.related-services .protocol-card h3 { font-size:clamp(20px,1.5vw,25px); }
.related-services .protocol-card p { color:var(--muted); }
.related-services .protocol-duration { color:var(--gold-700); }
.related-services .protocol-card a:hover { color:var(--gold-700); }
@media (max-width:800px) {
    .facial-feature-layout, .medical-blog-panel { grid-template-columns:minmax(0,1fr); }
    .facial-feature-media { aspect-ratio:4/3; max-height:400px; border-radius:40px 16px 16px 16px; }
    .medical-blog-media { min-height:0; aspect-ratio:16/9; }
    .protocol-card-body { padding-top:18px; }
}
.footer-bottom .legal .tracking-preferences {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.customer-reviews {
    padding-block: clamp(44px, 5vw, 68px); scroll-margin-top: 110px;
    background: var(--reviews-background, #0b1625); color: var(--reviews-text, #f7f4ec);
    border-block: 1px solid var(--reviews-border, #39404a);
}
.customer-reviews .reviews-heading { max-width: none; margin: 0 0 30px; text-align: start; }
.customer-reviews.section .eyebrow.reviews-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 0; border: 0; border-radius: 0;
    background: none; color: var(--reviews-accent); font-size: 15px; font-weight: 500; letter-spacing: .04em;
}
.customer-reviews.section .eyebrow.reviews-eyebrow::before { display: block; order: 0; content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.customer-reviews.section .eyebrow.reviews-eyebrow::after { display: none; }
.customer-reviews .reviews-heading h2 { margin-top: 10px; font-size: clamp(28px, 3vw, 38px); line-height: 1.5; color: var(--reviews-text); }
.customer-reviews .reviews-heading .lead { max-width: 680px; margin-top: 8px; color: var(--reviews-muted); font-size: 16px; line-height: 1.9; }
.customer-reviews .quote-track {
    --reviews-visible: var(--reviews-columns, 1);
    display: grid; grid-auto-flow: column; grid-template-columns: none;
    grid-auto-columns: calc((100% - (var(--reviews-visible) - 1) * 22px) / var(--reviews-visible));
    gap: 22px; overflow-x: auto; overflow-y: hidden; padding: 2px 0 12px; align-items: stretch;
    scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    cursor: grab; border-radius: 16px;
}
.customer-reviews .quote-track::-webkit-scrollbar { display: none; }
.customer-reviews .quote-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.customer-reviews .quote {
    position: relative; isolation: isolate; min-width: 0; min-height: 400px; margin: 0; padding: clamp(28px, 4vw, 52px);
    display: grid; direction: ltr; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr; column-gap: 36px; row-gap: 12px; scroll-snap-align: start;
    border: 1px solid var(--reviews-border); border-radius: 10px;
    background: var(--reviews-card); box-shadow: none;
}
.customer-reviews .review-copy { grid-area: 2 / 1; min-width: 0; }
.customer-reviews .review-art { grid-area: 1 / 2 / 5 / 3; position: relative; width: 100%; max-width: 370px; aspect-ratio: 1; align-self: center; justify-self: end; }
.customer-reviews .review-hospital-logo {
    position: absolute; top: -4%; left: 0; width: 78%; height: 94%; object-fit: contain;
    transform: rotate(-18deg); transform-origin: 50% 70%;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,.15)); pointer-events: none;
}
.customer-reviews .review-rating-circle {
    position: absolute; right: 0; bottom: 0; width: 68%; aspect-ratio: 1;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px;
    border: 1px solid var(--reviews-accent); border-radius: 50%;
    background: var(--reviews-background); box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.customer-reviews .review-rating-value { direction: ltr; color: var(--reviews-text); font-size: clamp(32px, 4vw, 48px); line-height: 1; font-weight: 500; }
.customer-reviews .review-rating-value small { color: var(--reviews-muted); font-size: 16px; font-weight: 400; }
.customer-reviews .review-quote-mark {
    display: block; height: 76px; margin-bottom: 12px; text-align: start;
    font: 120px/1 Georgia, serif; color: var(--reviews-accent); pointer-events: none;
}
.customer-reviews .quote .stars { direction: ltr; color: var(--reviews-stars); font-size: clamp(17px, 2.2vw, 28px); letter-spacing: 2px; line-height: 1.5; white-space: nowrap; }
.customer-reviews .quote blockquote {
    min-height: 48px; margin: 0; padding: 0; white-space: pre-line; overflow-wrap: anywhere;
    font-family: var(--font-body); font-size: clamp(22px, 2.4vw, 32px); font-weight: 400; font-style: normal;
    line-height: 1.9; letter-spacing: normal; text-align: start; color: var(--reviews-text);
}
.customer-reviews .quote .who { grid-area: 3 / 1; margin: 0; padding: 0; border: 0; gap: 12px; }
.customer-reviews .quote .who::before { content: ''; width: 24px; height: 1px; flex-shrink: 0; background: var(--reviews-accent); }
.customer-reviews .quote .who b { min-width: 0; overflow-wrap: anywhere; color: var(--reviews-muted); font-size: 15px; font-weight: 500; line-height: 1.7; }
.customer-reviews .reviews-controls { display: flex; align-items: center; gap: 24px; margin-top: 16px; color: var(--reviews-accent); }
.customer-reviews .reviews-controls[hidden] { display: none; }
.customer-reviews .reviews-arrows { display: flex; gap: 8px; }
.customer-reviews .reviews-arrow {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--reviews-border); border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
.customer-reviews .reviews-arrow:hover:not(:disabled) { background: var(--reviews-accent); color: var(--reviews-background); }
.customer-reviews .reviews-arrow:disabled { opacity: .3; cursor: default; }
.customer-reviews .reviews-arrow svg { width: 20px; height: 20px; }
[dir="rtl"] .customer-reviews .reviews-arrow svg { transform: rotate(180deg); }
.customer-reviews .reviews-dots { display: flex; align-items: center; justify-content: center; flex: 1; gap: 8px; flex-wrap: wrap; }
.customer-reviews .reviews-dots button { width: 24px; height: 30px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.customer-reviews .reviews-dots button::after { content: ''; display: block; width: 6px; height: 6px; margin: auto; border-radius: 10px; background: currentColor; opacity: .3; }
.customer-reviews .reviews-dots button[aria-current="true"]::after { width: 24px; opacity: 1; }
.customer-reviews .reviews-position { direction: ltr; min-width: 40px; text-align: end; font-size: 13px; color: var(--reviews-muted); font-variant-numeric: tabular-nums; }
.customer-reviews :is(.quote-track, .reviews-arrow, .reviews-dots button):focus-visible { outline: 2px solid var(--reviews-accent); outline-offset: 3px; }
@media (max-width: 960px) {
    .customer-reviews .quote-track { --reviews-visible: 1; }
}
@media (max-width: 600px) {
    .customer-reviews .quote-track { --reviews-visible: 1; }
    .customer-reviews .reviews-heading { margin-bottom: 26px; }
    .customer-reviews .quote { min-height: 0; padding: 24px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 20px; }
    .customer-reviews .review-art { grid-area: 1 / 1; width: 230px; max-width: 100%; justify-self: center; }
    .customer-reviews .review-copy { grid-area: 2 / 1; padding-top: 0; }
    .customer-reviews .quote .who { grid-area: 3 / 1; }
    .customer-reviews .review-quote-mark { height: 48px; margin-bottom: 8px; font-size: 84px; }
    .customer-reviews .quote blockquote { min-height: 0; font-size: 22px; }
    .customer-reviews .quote .stars { font-size: 20px; }
}
