/* =====================================================================
   Hayat International Hospital — design system
   Brand: logo teal #12aebd · black #010101 · white
          secondary #82c4d4 · #f0b536 · #d6512a · grey #6e6b72
   Motif: the HiH mark is built from rounded capsules → pill buttons,
          capsule image frames, vertical "pill" decorations.
   Fonts are self-hosted (assets/fonts). Logical properties → RTL & LTR.
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
    --brand: #12aebd;
    --brand-600: #0e95a2;
    --brand-700: #0a6f79;      /* brand text on light: 5.6:1 */
    --brand-800: #07505a;
    --brand-50: #eef9fb;
    --brand-100: #d3eff2;
    --sky: #82c4d4;
    --amber: #f0b536;
    --coral: #d6512a;
    --coral-700: #b03f1c;
    --grey: #6e6b72;

    --bg: #ffffff;
    --bg-2: #f3fafb;
    --surface: #ffffff;
    --surface-2: #f7fbfc;
    --ink: #0e1a1d;
    --ink-2: #33444a;
    --muted: #5d6b72;
    --line: #e1ecee;
    --brand-text: var(--brand-700); /* teal used for text: dark teal on light, light teal on dark */
    --link: var(--brand-text);
    --on-brand: #ffffff;
    --shadow-sm: 0 1px 2px rgb(9 43 48 / .06), 0 2px 8px rgb(9 43 48 / .05);
    --shadow: 0 6px 24px rgb(9 43 48 / .08), 0 2px 6px rgb(9 43 48 / .05);
    --shadow-lg: 0 24px 60px rgb(9 43 48 / .14);

    --radius: 22px;
    --radius-sm: 14px;
    --pill: 999px;
    --container: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 76px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font: "Barlow", "Plex Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #091315; --bg-2: #0d1b1e; --surface: #112327; --surface-2: #142a2f;
        --ink: #e7f3f5; --ink-2: #c3d5d9; --muted: #93a8ae; --line: #1f3a40; --brand-text: #5fd3de; --link: #5fd3de;
        --brand-50: #0f2a2f; --brand-100: #15373d;
        --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow: 0 8px 24px rgb(0 0 0 / .35); --shadow-lg: 0 24px 60px rgb(0 0 0 / .5);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #091315; --bg-2: #0d1b1e; --surface: #112327; --surface-2: #142a2f;
    --ink: #e7f3f5; --ink-2: #c3d5d9; --muted: #93a8ae; --line: #1f3a40; --brand-text: #5fd3de; --link: #5fd3de;
    --brand-50: #0f2a2f; --brand-100: #15373d;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow: 0 8px 24px rgb(0 0 0 / .35); --shadow-lg: 0 24px 60px rgb(0 0 0 / .5);
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-100); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--brand-700); color: #fff; padding: 10px 18px; border-radius: var(--pill); }
.skip:focus { top: 12px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
[dir="ltr"] .flip { transform: scaleX(-1); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; justify-content: center; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 62ch; }
kbd { font: 600 .72rem/1 var(--font); padding: 4px 7px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 860px; }
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section-top-tight { padding-top: clamp(28px, 4vw, 48px); }
.section-tint { background: var(--bg-2); }
.stack { display: grid; gap: 18px; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; } .split-faq { grid-template-columns: .8fr 1.2fr; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 8px; border-radius: var(--pill); background: var(--brand); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { margin-bottom: .25em; }
.section-head p { margin: 0; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn { --b: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 22px; border-radius: var(--pill); border: 2px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.1; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn i { font-size: 1.2em; }
.btn-lg { min-height: 56px; padding-inline: 28px; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-700); color: #fff; box-shadow: 0 8px 22px rgb(10 111 121 / .28); }
.btn-primary:hover { background: var(--brand-800); transform: translateY(-2px); box-shadow: 0 12px 28px rgb(10 111 121 / .34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-text); }
.btn-soft { background: var(--brand-50); color: var(--brand-text); border-color: var(--brand-100); }
.btn-soft:hover { background: var(--brand-100); }
.btn-light { background: #fff; color: var(--coral-700); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-emergency { background: var(--coral); color: #fff; padding-inline: 16px; }
.btn-emergency:hover { background: var(--coral-700); }
.btn-emergency b { font-family: "Barlow", sans-serif; letter-spacing: .04em; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 600; text-decoration: none !important; transition: border-color .2s, color .2s, background .2s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand-text); }
.icon-btn i { font-size: 1.25rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--link); }
.link-arrow i { transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(-4px); }
[dir="ltr"] .link-arrow:hover i { transform: scaleX(-1) translateX(-4px); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--pill); background: var(--brand-50); color: var(--brand-text); font-size: .82rem; font-weight: 700; border: 1px solid var(--brand-100); text-decoration: none !important; }
.chip-support { background: #fff5e0; color: #8a5a00; border-color: #f7dfa5; }
.chip-administrative { background: #f1f0f3; color: var(--grey); border-color: #e1dfe5; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: grid; gap: 3px; line-height: 1.3; }
.brand-text strong { font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.brand-text small { font-family: "Barlow", sans-serif; font-weight: 700; font-size: .6rem; line-height: 1; letter-spacing: .16em; color: var(--brand); }
.main-nav { margin-inline-start: auto; }
.main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav button { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 9px 13px; border-radius: var(--pill); color: var(--ink-2); font-weight: 600; font-size: .98rem; background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.main-nav a:hover, .main-nav button:hover { background: var(--brand-50); color: var(--brand-text); }
.main-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-text); box-shadow: inset 0 -3px 0 var(--brand); }
.has-menu { position: relative; }
.menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease); }
.has-menu.is-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; width: 100%; border-radius: 10px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.search-trigger { padding-inline: 14px; color: var(--muted); }
.search-trigger-text { display: none; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: clamp(7em, 11vw, 16em); }
.burger { display: none; }
.lang-btn { font-size: .92rem; }
.search-trigger kbd { display: none; }
@media (max-width: 1366px) { .main-nav { display: none; } .burger { display: inline-flex; } .header-actions { margin-inline-start: auto; } }
@media (min-width: 1367px) and (max-width: 1800px) { .header-actions [data-theme-toggle], .btn-emergency span { display: none; } }
@media (min-width: 2300px) { .search-trigger-text, .search-trigger kbd { display: inline; } }
@media (max-width: 1100px) { .header-actions [data-theme-toggle], .btn-emergency span { display: none; } }
@media (max-width: 900px) { .header-actions .hide-sm { display: none; } }
@media (max-width: 720px) { .hide-sm, .search-trigger kbd, .btn-emergency span, .brand-text small, [data-theme-toggle] { display: none; } .brand-text strong { font-size: .98rem; } .header-actions { gap: 6px; } }
@media (max-width: 560px) { .header-actions .lang-btn { display: none; } .btn-emergency { padding-inline: 12px; gap: 6px; } .header-row { gap: 10px; } }
@media (max-width: 420px) { .brand-text { display: none; } }
.drawer-lang { display: inline-flex; align-self: flex-start; }

.drawer { position: fixed; inset: 0; z-index: 80; background: rgb(4 20 23 / .45); backdrop-filter: blur(3px); }
.drawer[hidden] { display: none; }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(88vw, 360px); background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; animation: slideIn .3s var(--ease); }
[dir="rtl"] .drawer-panel { animation-name: slideInRtl; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer nav { display: grid; gap: 2px; margin-bottom: 6px; }
.drawer nav a { padding: 12px 14px; border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.drawer nav a[aria-current="page"], .drawer nav a:hover { background: var(--brand-50); color: var(--brand-text); }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes slideInRtl { from { transform: translateX(-100%); } }

/* ---------- Pill motif ---------- */
.pills-deco { position: absolute; inset-inline-end: 4%; bottom: -10px; display: flex; gap: 14px; align-items: flex-end; pointer-events: none; opacity: .9; }
.pills-deco i { width: 26px; border-radius: var(--pill); background: var(--brand-100); animation: breathe 5s var(--ease) infinite; transform-origin: bottom; }
.pills-deco i:nth-child(1) { height: 70px; animation-delay: -.4s; }
.pills-deco i:nth-child(2) { height: 120px; animation-delay: -1.2s; }
.pills-deco i:nth-child(3) { height: 90px; animation-delay: -2s; background: var(--brand); opacity: .35; }
.pills-deco i:nth-child(4) { height: 150px; animation-delay: -2.8s; }
.pills-deco i:nth-child(5) { height: 80px; animation-delay: -3.6s; }
.pills-deco i:nth-child(6) { height: 110px; animation-delay: -4.2s; }
.pills-mini { display: inline-flex; gap: 6px; align-items: flex-end; }
.pills-mini i { width: 10px; border-radius: var(--pill); background: var(--brand); }
.pills-mini i:nth-child(1) { height: 22px; opacity: .45; }
.pills-mini i:nth-child(2) { height: 34px; }
.pills-mini i:nth-child(3) { height: 26px; opacity: .7; }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.72); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(28px, 5vw, 64px); overflow-x: clip; background:
    radial-gradient(60% 70% at 85% 10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(40% 50% at 0% 90%, color-mix(in srgb, var(--sky) 18%, transparent), transparent 70%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-outline { position: absolute; width: 220px; inset-inline-start: -40px; top: 20px; stroke: var(--brand-100); stroke-width: 2.4; }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; min-height: 560px; } }
.display { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.12; letter-spacing: -.02em; }
.display::after { content: ""; display: block; width: 84px; height: 12px; border-radius: var(--pill); margin-top: 18px; background: linear-gradient(90deg, var(--brand) 60%, var(--amber) 60% 78%, var(--coral) 78%); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-search { margin-top: 22px; display: flex; align-items: center; gap: 12px; width: min(100%, 520px); padding: 12px 18px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); color: var(--muted); box-shadow: var(--shadow-sm); cursor: pointer; text-align: start; transition: box-shadow .2s, border-color .2s; }
.hero-search:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.hero-search span { flex: 1; }
.hero-search i { font-size: 1.3rem; color: var(--brand); }
@media (hover: none) { .hero-search kbd, .search-box kbd { display: none; } }

.hero-visual { position: relative; height: clamp(360px, 48vw, 540px); }
.capsules { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 2vw, 22px); }
.capsule { margin: 0; width: clamp(96px, 12vw, 160px); border-radius: var(--pill); overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid var(--surface); background: var(--brand-100); animation: floatY 7s ease-in-out infinite; }
.capsule img { width: 100%; height: 100%; object-fit: cover; }
.capsule-1 { height: 66%; margin-bottom: 4%; animation-delay: -1s; }
.capsule-2 { height: 84%; animation-delay: -3s; }
.capsule-3 { height: 74%; margin-bottom: 10%; animation-delay: -5s; }
.capsule-dot { position: absolute; width: clamp(56px, 6vw, 80px); aspect-ratio: 1; border-radius: 50%; background: var(--brand); top: 0; left: 50%; transform: translateX(-50%); box-shadow: 0 10px 30px rgb(18 174 189 / .45); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: floatY 6s ease-in-out infinite; }
.float-card i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-50); color: var(--brand-text); font-size: 1.3rem; }
.float-card span { display: grid; line-height: 1.2; }
.float-card b { font-family: "Barlow", sans-serif; font-size: 1.2rem; }
.float-card small { color: var(--muted); font-size: .8rem; }
.float-a { inset-inline-start: 0; top: 30%; animation-delay: -2s; }
.float-b { inset-inline-end: 0; bottom: 12%; }
.float-b i { background: #fff3da; color: #9a6700; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stats-bar { position: relative; margin: clamp(28px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(50%); z-index: 2; }
.stats-bar > div { padding: 20px 24px; border-inline-start: 1px solid var(--line); }
.stats-bar > div:nth-child(odd) { border-inline-start: 0; }
.stats-bar > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.stats-bar dd { margin: 0; font-family: "Barlow", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--brand-text); line-height: 1.1; }
.stats-bar dt { color: var(--muted); font-size: .92rem; }
.stats-bar > div { display: flex; flex-direction: column; }
.stats-bar dd { order: -1; } /* number above its label */
@media (min-width: 760px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } .stats-bar > div:nth-child(n) { border-top: 0; border-inline-start: 1px solid var(--line); } .stats-bar > div:first-child { border-inline-start: 0; } }
.hero + .section { padding-top: 150px; }
@media (min-width: 760px) { .hero + .section { padding-top: clamp(110px, 12vw, 150px); } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.dept-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.dept-media { aspect-ratio: 16/10; overflow: hidden; background: var(--brand-50); }
.dept-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dept-card:hover .dept-media img { transform: scale(1.06); }
/* icon sits on the image edge: media is 16:10 of the card width → 62.5% of width */
.dept-icon { display: grid; place-items: center; position: absolute; inset-inline-start: 20px; top: 0; margin-top: calc(62.5% - 30px); width: 60px; height: 60px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.6rem; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.dept-body { display: grid; gap: 6px; padding: 38px 22px 22px; }
.dept-body strong { font-size: 1.15rem; }
.dept-body .muted { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dept-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: .86rem; color: var(--brand-text); font-weight: 600; }

.service-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.service-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-50); color: var(--brand-text); font-size: 1.5rem; }
.service-body { display: grid; flex: 1; line-height: 1.4; }
.service-body strong { font-weight: 600; }
.service-go { color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.service-card:hover .service-go { color: var(--brand-text); transform: translateX(-4px); }
[dir="ltr"] .service-card:hover .service-go { transform: scaleX(-1) translateX(-4px); }

.doctor-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.doctor-photo { display: block; aspect-ratio: 4/5; overflow: hidden; background: linear-gradient(180deg, var(--brand-50), var(--brand-100)); border-radius: 0 0 120px 120px / 0 0 46px 46px; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.doctor-card:hover .doctor-photo img { transform: scale(1.05); }
.doctor-body { padding: 18px 20px 20px; display: grid; gap: 6px; flex: 1; align-content: start; }
.doctor-body h3 { margin: 4px 0 0; }
.doctor-body h3 a { color: var(--ink); }
.doctor-body .chip { justify-self: start; }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .scroller { grid-auto-columns: calc((100% - 60px) / 4); } }
.scroller-nav { display: flex; align-items: center; gap: 8px; }

/* ---------- Booking CTA / steps ---------- */
.booking-cta { display: grid; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 34px; background: linear-gradient(135deg, var(--brand-700), var(--brand) 120%); color: #fff; overflow: hidden; position: relative; }
.booking-cta h2, .booking-cta .eyebrow { color: #fff; }
.booking-cta .eyebrow::before { background: var(--amber); }
.booking-cta .muted { color: rgb(255 255 255 / .85); }
.booking-cta .btn-primary { background: #fff; color: var(--brand-800); }
@media (min-width: 900px) { .booking-cta { grid-template-columns: 1fr 1fr; } }
.steps-visual { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: s; }
.steps-visual li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); font-weight: 600; }
.step-pill { flex: none; display: grid; place-items: center; width: 34px; height: 54px; border-radius: var(--pill); background: #fff; color: var(--brand-text); font-size: 1.15rem; }
.steps-vertical { grid-template-columns: 1fr; margin-top: 20px; }
.steps-vertical li { background: var(--surface); border-color: var(--line); color: var(--ink); }
.steps-vertical .step-pill { background: var(--brand-50); }

/* ---------- Values / emergency ---------- */
.values { display: grid; gap: 14px; margin-top: 20px; }
.value { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.value p { margin: 0; }
.value-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-50); color: var(--brand-text); font-size: 1.35rem; }
.value-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value-card .value-icon { margin-bottom: 14px; }
.emergency-card { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 40px); border-radius: 30px; color: #fff; background: linear-gradient(150deg, var(--coral), #b9361a); box-shadow: 0 20px 50px rgb(214 81 42 / .3); }
.emergency-card h2 { color: #fff; }
.emergency-card p { color: rgb(255 255 255 / .92); }
.emergency-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 26px solid rgb(255 255 255 / .1); inset-inline-end: -50px; bottom: -60px; }
.emergency-compact { padding: 22px; border-radius: var(--radius); }
.emergency-compact p { font-weight: 600; }
.pulse { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--coral); font-size: 1.7rem; margin-bottom: 16px; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: ping 2.4s var(--ease) infinite; }
.pulse::after { animation-delay: 1.2s; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(2); opacity: 0; } }

/* ---------- Reviews ---------- */
.review { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.review footer { color: var(--muted); font-weight: 600; }
.stars-static { color: var(--amber); margin-bottom: 8px; letter-spacing: 2px; }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 12px; }
.accordion details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.accordion details[open] { border-color: var(--brand-100); box-shadow: var(--shadow); }
.accordion summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 600; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--brand-text); transition: transform .3s var(--ease), background .3s; }
.accordion details[open] summary i { transform: rotate(45deg); background: var(--brand); color: #fff; }
.accordion .answer { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- Page hero / detail ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 76px) 0 clamp(34px, 5vw, 56px); background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero h1 { display: flex; align-items: center; gap: 14px; margin-bottom: .3em; }
.hero-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--brand); color: #fff; font-size: 1.6rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs i { font-size: .8rem; opacity: .7; }
.detail-hero { padding: clamp(32px, 5vw, 64px) 0; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.detail-hero-grid, .doctor-hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .detail-hero-grid { grid-template-columns: 1.1fr .9fr; } .doctor-hero-grid { grid-template-columns: .75fr 1.25fr; } }
.detail-hero .chip { margin-bottom: 14px; }
.detail-media { margin: 0; aspect-ratio: 4/3; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--brand-50); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.doctor-portrait { margin: 0; aspect-ratio: 4/5; border-radius: 200px 200px 34px 34px; overflow: hidden; background: linear-gradient(180deg, var(--brand-50), var(--brand-100)); box-shadow: var(--shadow-lg); border: 6px solid var(--surface); max-width: 420px; }
.doctor-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-weight: 500; margin: 0 0 20px; }
.meta-row i { color: var(--brand); }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.facts > div { padding: 12px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.facts-center { justify-content: center; }
.detail-layout { display: grid; gap: clamp(28px, 4vw, 48px); padding-block: clamp(36px, 5vw, 64px); }
@media (min-width: 980px) { .detail-layout { grid-template-columns: 1fr 340px; } }
.detail-main { display: grid; gap: clamp(32px, 4vw, 48px); min-width: 0; }
.detail-side { display: grid; gap: 20px; align-content: start; }
@media (min-width: 980px) { .detail-side { position: sticky; top: calc(var(--header-h) + 20px); } }
.side-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.side-card h2 { font-size: 1.15rem; }
.side-call { text-align: center; background: var(--brand-50); border-color: var(--brand-100); }
.side-call i { font-size: 2rem; color: var(--brand-text); }
.side-call p { margin: 6px 0 0; color: var(--muted); }
.hotline-big { font: 700 2.6rem/1.1 "Barlow", sans-serif; color: var(--brand-text); letter-spacing: .04em; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mini-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.mini-list a:hover { background: var(--brand-50); }
.mini-list img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--brand-50); }
.mini-list span { display: grid; line-height: 1.35; }
.mini-list small { color: var(--muted); }
.block h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.prose { color: var(--ink-2); max-width: 75ch; }
.feature { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.feature h3 { margin: 0 0 4px; font-size: 1.02rem; }
.feature p { margin: 0; }
.feature-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #fff; font-size: 1.3rem; }
.staff-list { display: grid; gap: 14px; }
.staff { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.staff img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid var(--brand-100); }
.staff h3 { margin: 6px 0 4px; }
.staff p { margin: 0; }
.staff-head { background: var(--brand-50); border-color: var(--brand-100); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 19px; top: 10px; bottom: 10px; width: 3px; border-radius: var(--pill); background: var(--brand-100); }
.timeline li { position: relative; display: flex; gap: 16px; padding: 10px 0; }
.timeline-n { flex: none; z-index: 1; display: grid; place-items: center; width: 41px; height: 41px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); color: var(--brand-text); font: 700 .95rem "Barlow", sans-serif; }
.timeline h3 { margin: 6px 0 2px; font-size: 1.02rem; }
.timeline p { margin: 0; }
.pill-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none !important; }
.pill-link:hover { border-color: var(--brand); color: var(--brand-text); }
.check-list { margin: 0; padding-inline-start: 1.2em; }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.toolbar-stack { flex-direction: column; align-items: stretch; }
.toolbar-stack > * { min-width: 0; max-width: 100%; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.toolbar .tabs { margin: 0; }
.tabs-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; cursor: pointer; transition: .2s; }
.tab:hover { border-color: var(--brand); }
.tab[aria-selected="true"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.tab-n { font-size: .78rem; padding: 1px 8px; border-radius: var(--pill); background: var(--brand-50); color: var(--brand-text); }
.tab[aria-selected="true"] .tab-n { background: rgb(255 255 255 / .2); color: #fff; }
.search-field { position: relative; display: flex; align-items: center; min-width: min(100%, 320px); }
.search-field i { position: absolute; inset-inline-start: 18px; color: var(--muted); font-size: 1.2rem; pointer-events: none; }
.search-field input { width: 100%; height: 50px; padding-inline: 48px 18px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.search-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.search-field-lg input { height: 58px; font-size: 1.05rem; box-shadow: var(--shadow-sm); }
.search-field-lg { margin-bottom: 16px; }
[hidden] { display: none !important; }
.is-filtered-out { display: none !important; }

.services-layout { display: grid; gap: 28px; }
@media (min-width: 980px) { .services-layout { grid-template-columns: 300px 1fr; } .services-index { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.services-index nav { display: grid; gap: 2px; margin-top: 14px; max-height: 60vh; overflow-y: auto; }
.services-index nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; font-size: .95rem; text-decoration: none; }
.services-index nav a:hover { background: var(--brand-50); color: var(--brand-text); }
.services-index .tab-n { margin-inline-start: auto; }
@media (max-width: 979px) { .services-index nav { display: none; } }
.service-group { margin-bottom: 40px; }
.service-group h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 1.35rem; }
.service-group h2 .link-arrow { margin-inline-start: auto; font-size: .9rem; }
.group-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #fff; font-size: 1.3rem; }

/* ---------- Gallery / lightbox ---------- */
.masonry { columns: 3 220px; column-gap: 14px; }
.masonry-lg { columns: 3 280px; }
.masonry-item { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid; cursor: zoom-in; background: var(--brand-50); position: relative; }
.masonry-item button { display: block; padding: 0; border: 0; width: 100%; cursor: zoom-in; background: none; }
.masonry-item img { width: 100%; transition: transform .5s var(--ease); }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-item figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 16px 12px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgb(4 30 34 / .8)); }
.facility { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.facility button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4/3; overflow: hidden; }
.facility img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.facility:hover img { transform: scale(1.05); }
.facility figcaption { display: grid; padding: 16px 18px; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgb(3 15 17 / .9); padding: 20px; animation: fade .25s; }
.lightbox img { max-height: 86vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox .icon-btn { position: absolute; top: 18px; inset-inline-end: 18px; background: rgb(255 255 255 / .1); color: #fff; border-color: rgb(255 255 255 / .2); }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { inset-inline-start: 18px; inset-inline-end: auto; }
.lightbox .lb-next { inset-inline-end: 18px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-weight: 600; font-size: .95rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field [aria-invalid="true"] { border-color: var(--coral); }
.field-error { color: var(--coral-700); font-size: .88rem; font-weight: 600; }
:root[data-theme="dark"] .field-error { color: #ff9c7d; }
.alert { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; }
.alert-error { background: #fdeee9; color: #8f2d12; border: 1px solid #f6cdbf; }
.alert-ok { background: #e8f8ee; color: #1d6b3a; border: 1px solid #c5ebd3; }
.form-msg { min-height: 1.2em; font-weight: 600; color: var(--brand-text); }
.form-card h2 { margin-bottom: 20px; }
.contact-layout { display: grid; gap: 28px; }
@media (min-width: 980px) { .contact-layout { grid-template-columns: 360px 1fr; align-items: start; } }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.contact-card > i { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--brand-50); color: var(--brand-text); font-size: 1.5rem; }
.contact-card span { display: grid; }
.contact-card small { color: var(--muted); }
.contact-hot { background: var(--coral); color: #fff; border-color: var(--coral); }
.contact-hot > i { background: rgb(255 255 255 / .18); color: #fff; }
.contact-hot small { color: rgb(255 255 255 / .85); }
.contact-hot b { font: 700 1.8rem "Barlow", sans-serif; letter-spacing: .05em; }

.segmented { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: var(--pill); background: var(--bg-2); border: 1px solid var(--line); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-block; padding: 9px 18px; border-radius: var(--pill); cursor: pointer; font-weight: 600; color: var(--ink-2); }
.segmented input:checked + span { background: var(--brand-700); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--brand); }

/* ---------- Booking wizard ---------- */
.booking-layout { display: grid; gap: 28px; }
@media (min-width: 1000px) { .booking-layout { grid-template-columns: 1fr 320px; align-items: start; } .booking-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.wizard { padding: clamp(20px, 3vw, 34px); border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.wizard-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 28px; padding: 0; }
.wizard-steps li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .86rem; font-weight: 600; color: var(--muted); position: relative; }
.wizard-steps li span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); font-family: "Barlow", sans-serif; z-index: 1; transition: .3s; }
.wizard-steps li::before { content: ""; position: absolute; top: 19px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); }
.wizard-steps li:last-child::before { display: none; }
.wizard-steps li.is-done span, .wizard-steps li.is-current span { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.wizard-steps li.is-done::before { background: var(--brand); }
.wizard-steps li.is-current { color: var(--ink); }
.step { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.step legend { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; padding: 0; }
.wizard.is-enhanced .step { display: none; }
.wizard.is-enhanced .step.is-active { display: block; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choice-card { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; transition: .2s; }
.choice-card > i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--brand-50); color: var(--brand-text); font-size: 1.3rem; }
.choice-card img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--brand-50); }
.choice-card small { display: block; color: var(--muted); font-weight: 500; }
.choice:hover .choice-card { border-color: var(--brand-100); }
.choice input:checked + .choice-card { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.choice input:focus-visible + .choice-card { outline: 3px solid var(--brand); outline-offset: 2px; }
.calendar { display: grid; gap: 18px; max-width: 640px; }
@media (min-width: 1100px) { .calendar { max-width: none; grid-template-columns: 1fr 1fr; gap: 28px; } }
.cal-month h3 { font-size: 1rem; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .78rem; color: var(--muted); font-weight: 700; }
.cal-day { position: relative; height: 46px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: 600 1rem "Barlow", sans-serif; cursor: pointer; transition: .15s; }
.cal-day:hover:not(:disabled) { border-color: var(--brand); }
.cal-day:disabled { cursor: not-allowed; background: var(--bg-2); color: var(--muted); opacity: .55; }
.cal-day small { position: absolute; bottom: 3px; font-size: .56rem; font-weight: 700; }
.cal-day[aria-pressed="true"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.cal-day.is-today::after { content: ""; position: absolute; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.slots { margin-top: 18px; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { padding: 9px 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); font: 600 .98rem "Barlow", sans-serif; cursor: pointer; }
.slot[aria-pressed="true"] { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--brand-50); color: var(--brand-800); font-weight: 500; }
:root[data-theme="dark"] .note { color: var(--ink); }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.summary { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px dashed var(--brand-100); margin-bottom: 18px; }
.summary h3 { font-size: 1rem; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.booking-done { text-align: center; padding: clamp(30px, 5vw, 56px); border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.done-mark { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 2.6rem; box-shadow: 0 0 0 12px var(--brand-50); animation: pop .5s var(--ease); }
.booking-done .lead { margin-inline: auto; }
.ref { font-family: "Barlow", sans-serif; letter-spacing: .08em; color: var(--brand-text); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ---------- About ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; }
.stat-grid > div { display: flex; flex-direction: column; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat-grid dd { margin: 0; font: 700 clamp(1.8rem, 3vw, 2.4rem)/1.1 "Barlow", sans-serif; color: var(--brand-text); }
.stat-grid dt { color: var(--muted); font-size: .92rem; }
.pillar { padding: clamp(24px, 3vw, 36px); border-radius: 30px; background: var(--surface); border: 1px solid var(--line); }
.pillar-icon { display: grid; place-items: center; width: 56px; height: 90px; border-radius: var(--pill); background: var(--brand); color: #fff; font-size: 1.6rem; margin-bottom: 18px; }
.pillar p { color: var(--ink-2); margin: 0; }

/* ---------- Misc ---------- */
.empty-state { display: grid; justify-items: center; gap: 12px; padding: 56px 20px; text-align: center; border-radius: var(--radius); background: var(--bg-2); border: 1px dashed var(--line); color: var(--muted); }
.empty-icon { font-size: 2rem; color: var(--brand); }
.empty-state p { margin: 0; font-weight: 600; }
.job-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job h2, .post h2, .event h2 { font-size: 1.2rem; }
.post { padding: 0; overflow: hidden; }
.post img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-body { padding: 20px; }
.event { display: flex; gap: 20px; }
.event-date { flex: none; display: grid; place-items: center; align-content: center; width: 78px; height: 96px; border-radius: var(--pill); background: var(--brand); color: #fff; }
.event-date b { font: 700 1.8rem/1 "Barlow", sans-serif; }
.error-page { padding-block: clamp(60px, 10vw, 120px); }
.error-code { display: inline-flex; align-items: flex-end; gap: 14px; font: 700 clamp(4rem, 12vw, 7rem)/1 "Barlow", sans-serif; color: var(--brand); margin-bottom: 10px; }
.debug { text-align: start; direction: ltr; white-space: pre-wrap; padding: 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: .85rem; margin-top: 24px; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: calc(100vw - 32px); }
dialog::backdrop { background: rgb(3 18 21 / .5); backdrop-filter: blur(4px); }
.search-dialog { width: min(680px, 100%); margin-top: 10vh; }
.search-dialog[open] { animation: dropIn .25s var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
.search-box { display: flex; align-items: center; gap: 12px; padding: 8px 18px; border-radius: 22px 22px 0 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.search-box i { font-size: 1.4rem; color: var(--brand); }
.search-box input { flex: 1; height: 56px; border: 0; background: none; font-size: 1.1rem; outline: none; }
.search-results { max-height: 60vh; overflow-y: auto; padding: 10px; border-radius: 0 0 22px 22px; background: var(--surface); box-shadow: var(--shadow-lg); }
.search-empty { padding: 24px; text-align: center; color: var(--muted); margin: 0; }
.search-group h3 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 12px 10px 6px; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--ink); text-decoration: none !important; }
.search-item:hover, .search-item.is-active { background: var(--brand-50); }
.search-item img, .search-item .si-icon { flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: top; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-text); font-size: 1.2rem; }
.search-item span { display: grid; line-height: 1.35; min-width: 0; }
.search-item small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item mark { background: color-mix(in srgb, var(--amber) 40%, transparent); color: inherit; border-radius: 3px; }
.modal { width: min(480px, 100%); }
.modal[open] { animation: dropIn .25s var(--ease); }
.modal-body { position: relative; padding: 28px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.stars { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars legend { font-weight: 600; margin-bottom: 6px; width: 100%; }
.stars input { position: absolute; opacity: 0; }
.stars label { font-size: 2rem; color: var(--line); cursor: pointer; transition: color .15s, transform .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--amber); }
.stars input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 6px; }
[dir="rtl"] .stars { flex-direction: row-reverse; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: #0a1a1d; color: #b8cbd0; padding-top: clamp(56px, 7vw, 88px); margin-top: clamp(40px, 6vw, 80px); }
.site-footer .pills-deco { top: 0; bottom: auto; opacity: .08; }
.site-footer .pills-deco i { background: var(--brand); transform-origin: top; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); padding-bottom: 40px; }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer nav, .site-footer .footer-grid > div:last-child { display: grid; align-content: start; gap: 8px; }
.site-footer a, .site-footer .link-btn { color: #b8cbd0; }
.site-footer a:hover, .site-footer .link-btn:hover { color: #fff; }
.brand-light { color: #fff; }
.brand-light img { filter: brightness(0) invert(1); }
.footer-brand p { margin: 16px 0; max-width: 38ch; }
.hotline { display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 12px; border-radius: var(--pill); background: var(--coral); color: #fff !important; text-decoration: none !important; }
.hotline i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgb(255 255 255 / .2); font-size: 1.3rem; }
.hotline span { display: grid; line-height: 1.2; }
.hotline b { font: 700 1.6rem "Barlow", sans-serif; letter-spacing: .05em; }
.footer-address { display: flex; gap: 8px; margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .88rem; }

/* ---------- Accreditation (JCI gold seal) ----------
   Gold derived from the brand secondary #f0b536. The seal artwork itself is
   never recoloured or distorted (JCI usage rules) — only framed and lit. */
:root { --gold: #f0b536; --gold-ink: #7a5300; --gold-50: #fff8e6; --gold-100: #fbe7b3; }
:root[data-theme="dark"] { --gold-ink: #f6cf72; --gold-50: #1f1a0c; --gold-100: #4a3a12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gold-ink: #f6cf72; --gold-50: #1f1a0c; --gold-100: #4a3a12; } }

.seal { position: relative; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: #fff; flex: none; }
.seal img { width: 100%; height: 100%; object-fit: contain; }
.seal::after { content: ""; position: absolute; inset: -30%; background: linear-gradient(115deg, transparent 42%, rgb(255 255 255 / .7) 50%, transparent 58%); transform: translateX(-130%); animation: sealShine 6s ease-in-out infinite; pointer-events: none; }
@keyframes sealShine { 0%, 65% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

.header-seal { display: inline-flex; align-items: center; gap: 8px; padding-block: 4px; padding-inline: 4px 12px; border-radius: var(--pill); background: var(--gold-50); border: 1px solid var(--gold-100); color: var(--gold-ink); font-size: .8rem; font-weight: 700; text-decoration: none !important; flex: none; }
.header-seal img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
@media (max-width: 2099px) { .header-seal span { display: none; } .header-seal { padding: 3px; } }
@media (max-width: 900px) { .header-seal { display: none; } }

.eyebrow-gold { gap: 10px; padding-block: 5px; padding-inline: 6px 16px; border-radius: var(--pill); background: var(--gold-50); border: 1px solid var(--gold-100); color: var(--gold-ink) !important; letter-spacing: .02em; text-transform: none; text-decoration: none !important; transition: box-shadow .2s; }
.eyebrow-gold::before { display: none; }
.eyebrow-gold img { width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.eyebrow-gold:hover { box-shadow: 0 6px 18px rgb(240 181 54 / .3); }
.eyebrow-gold-text { color: var(--gold-ink) !important; }
.eyebrow-gold-text::before { background: var(--gold); }

/* JCI seal at the centre of the hero (replaces the brand dot): dark disc + gold ring makes the gold seal pop */
.seal-center { position: absolute; top: 0; left: 0; right: 0; margin-inline: auto; z-index: 3; display: block; width: clamp(104px, 11vw, 144px); aspect-ratio: 1; padding: 10px; border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #17393f, #061214 72%);
    box-shadow: 0 0 0 3px var(--gold), 0 0 0 8px #061214, 0 0 0 9px rgb(240 181 54 / .35), 0 18px 50px rgb(240 181 54 / .38);
    animation: floatY 6.5s ease-in-out infinite; transition: box-shadow .3s; }
.seal-center:hover { box-shadow: 0 0 0 3px var(--gold), 0 0 0 8px #061214, 0 0 0 9px rgb(240 181 54 / .6), 0 18px 60px rgb(240 181 54 / .6); }
.seal-center .seal { display: block; width: 100%; aspect-ratio: 1; background: transparent; }
.seal-center .seal img { display: block; width: 100%; height: 100%; }

.trust-section { background: linear-gradient(135deg, var(--gold-50), var(--bg) 60%); }
.trust { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; justify-items: center; text-align: center; }
@media (min-width: 760px) { .trust { grid-template-columns: auto 1fr; justify-items: start; text-align: start; } }
.trust + .trust { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--gold-100); }
.seal-lg { width: clamp(140px, 16vw, 190px); aspect-ratio: 1; box-shadow: 0 0 0 10px var(--gold-50), 0 0 0 11px var(--gold-100), 0 24px 60px rgb(240 181 54 / .35); }
.trust > * { min-width: 0; max-width: 100%; }
.trust-copy { overflow-wrap: anywhere; }
.trust-copy h2, .trust-copy h3 { margin-bottom: .35em; }
.trust-copy h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.trust-copy .lead { margin-inline: auto; }
@media (min-width: 760px) { .trust-copy .lead { margin-inline: 0; } }
.trust-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0; justify-content: center; }
@media (min-width: 760px) { .trust-points { justify-content: flex-start; } }
.trust-points li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--gold-100); font-weight: 600; }
.trust-points i { color: var(--gold); font-size: 1.2rem; }

/* Technology highlight band (home) */
.tech-section { background: linear-gradient(135deg, var(--brand-50), var(--bg) 65%); }
.tech-band { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .tech-band { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.tech-media { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.tech-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tech-copy h2 { margin-bottom: .35em; }
.tech-copy .eyebrow i { margin-inline-end: 4px; }
.tech-points { list-style: none; display: grid; gap: 10px; padding: 0; margin: 18px 0 24px; }
@media (min-width: 600px) { .tech-points { grid-template-columns: 1fr 1fr; } }
.tech-points li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--brand-100); font-weight: 600; }
.tech-points i { color: var(--brand-text); font-size: 1.15rem; flex: none; }

.btn-gold { background: var(--gold); color: #3d2a00; box-shadow: 0 8px 22px rgb(240 181 54 / .35); }
.btn-gold:hover { background: #e0a320; transform: translateY(-2px); }
.btn-row-public { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; justify-content: center; }
@media (min-width: 760px) { .btn-row-public { justify-content: flex-start; } }
.trust-copy .btn-gold { margin-top: 4px; white-space: normal; max-width: 100%; text-align: center; height: auto; min-height: 48px; }

.footer-seal { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-block: 6px; padding-inline: 6px 18px; border-radius: var(--pill); background: rgb(240 181 54 / .1); border: 1px solid rgb(240 181 54 / .25); color: #fff !important; text-decoration: none !important; }
.footer-seal img { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.footer-seal span { display: grid; line-height: 1.3; }
.footer-seal small { color: var(--gold); font-weight: 700; }

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
@media print {
    .site-header, .site-footer, .drawer, dialog, .hero-visual, .pills-deco { display: none !important; }
    body { color: #000; background: #fff; }
}

/* ================================================================ Patient portal */
.account-btn .zmdi { font-size: 1.35rem; }
.auth-section { background: radial-gradient(900px 400px at 50% -10%, var(--brand-50), transparent 70%); }
.auth-wrap { display: grid; place-items: center; }
.auth-card { width: min(100%, 520px); padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-card h1 { margin: 10px 0 6px; font-size: clamp(1.5rem, 3vw, 2rem); }
.auth-card .small { margin-top: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand-700); flex: none; }
.consent { margin: 4px 0 18px; font-size: .93rem; }
.alert-warn { background: var(--gold-50); color: var(--gold-ink); border: 1px solid var(--gold-100); }
.chip-ok { background: #e8f8ee; color: #1d6b3a; border-color: #c5ebd3; }
.is-locked input[readonly] { background: var(--surface-2); color: var(--muted); }

.portal-head { padding-block: 28px 0; background: linear-gradient(180deg, var(--brand-50), transparent); border-bottom: 1px solid var(--line); }
.portal-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.portal-hello { display: flex; align-items: center; gap: 16px; }
.portal-hello h1 { margin: 2px 0 4px; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.portal-hello .chip { margin-inline-start: 8px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-700); color: #fff; font-weight: 700; flex: none; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent); }
.portal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.portal-actions form { margin: 0; }
.portal-tabs { margin: 22px auto 0; padding-bottom: 14px; flex-wrap: nowrap; overflow-x: auto; }
.portal-body { padding-block: 28px 60px; }
.portal-h { font-size: 1.2rem; margin: 28px 0 14px; }
.verify-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--gold-50); border: 1px solid var(--gold-100); color: var(--gold-ink); margin-bottom: 18px; }
.verify-banner .zmdi { font-size: 1.8rem; }
.verify-banner p { margin: 4px 0 0; }

.portal-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.portal-stat { display: grid; gap: 2px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none !important; }
.portal-stat .zmdi { font-size: 1.5rem; color: var(--brand-text); }
.portal-stat b { font-size: 1.5rem; }
.portal-stat span { color: var(--muted); font-size: .9rem; }
.portal-stat-cta { background: var(--brand-700); border-color: var(--brand-700); color: #fff; transition: transform .2s; }
.portal-stat-cta:hover { transform: translateY(-2px); }
.portal-stat-cta .zmdi, .portal-stat-cta span { color: rgb(255 255 255 / .85); }
.portal-stat-cta b { font-size: 1.15rem; }
@media (max-width: 640px) { .portal-stats { grid-template-columns: 1fr 1fr; } .portal-stat-cta { grid-column: 1 / -1; } }

.appt-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px; margin-bottom: 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--brand); }
.appt-card.status-pending { border-inline-start-color: var(--gold); }
.appt-card.status-cancelled, .appt-card.status-no_show { border-inline-start-color: var(--coral); opacity: .8; }
.appt-card.status-completed { border-inline-start-color: #2e9d5b; }
.appt-date { display: grid; justify-items: center; min-width: 74px; padding: 8px; border-radius: 12px; background: var(--brand-50); color: var(--brand-text); line-height: 1.2; }
.appt-date b { font-size: 1.6rem; }
.appt-date span, .appt-date small { font-size: .78rem; }
.appt-info h3 { margin: 0 0 2px; font-size: 1.05rem; }
.appt-info p { margin: 2px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-st-pending { background: var(--gold-50); color: var(--gold-ink); border-color: var(--gold-100); }
.chip-st-completed { background: #e8f8ee; color: #1d6b3a; border-color: #c5ebd3; }
.chip-st-cancelled, .chip-st-no_show { background: #fdeee9; color: #8f2d12; border-color: #f6cdbf; }
.appt-cancel summary { list-style: none; }
.appt-cancel summary::-webkit-details-marker { display: none; }
.appt-cancel[open] { grid-column: 1 / -1; }
.appt-cancel form { margin-top: 12px; }
@media (max-width: 600px) { .appt-card { grid-template-columns: auto 1fr; } .appt-cancel { grid-column: 1 / -1; } }

.result-list { display: grid; gap: 10px; }
.result-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.result-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand-text); font-size: 1.5rem; }
.result-info { flex: 1 1 200px; }
.result-info h3 { margin: 0; font-size: 1rem; }
.result-info p { margin: 2px 0 0; }
.result-actions { display: flex; gap: 8px; }

.portal-card { padding: 20px; margin-bottom: 18px; border: 1px solid var(--line); }
fieldset.portal-card legend { padding-inline: 8px; font-weight: 700; color: var(--brand-text); }
.portal-form + .portal-card { margin-top: 28px; }
.portal-card .portal-h { margin-top: 0; }

:root[data-theme="dark"] .chip-ok, :root[data-theme="dark"] .chip-st-completed { background: #0f2a1b; color: #8fe0ae; border-color: #1f4d33; }
:root[data-theme="dark"] .chip-st-cancelled, :root[data-theme="dark"] .chip-st-no_show { background: #2d1510; color: #ffb39c; border-color: #5a2a1d; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .chip-ok, :root:not([data-theme="light"]) .chip-st-completed { background: #0f2a1b; color: #8fe0ae; border-color: #1f4d33; }
    :root:not([data-theme="light"]) .chip-st-cancelled, :root:not([data-theme="light"]) .chip-st-no_show { background: #2d1510; color: #ffb39c; border-color: #5a2a1d; }
}

/* WhatsApp: floating chat button + contact card */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 30px; box-shadow: 0 8px 24px rgb(0 0 0 / .22); transition: transform .2s ease, box-shadow .2s ease; }
.wa-float:hover, .wa-float:focus-visible { transform: scale(1.08); box-shadow: 0 10px 28px rgb(37 211 102 / .45); color: #fff; }
@media (max-width: 600px) { .wa-float { width: 50px; height: 50px; font-size: 27px; right: 14px; bottom: 14px; } }
@media print { .wa-float { display: none; } }
.contact-wa > i { color: #25d366; }
.footer-wa .zmdi { color: #25d366; }
