/* =========================================================
   Clinic website — public stylesheet (RTL + LTR via logical properties)
   ========================================================= */
:root {
  --blue: #0a5dc2;
  --blue-d: color-mix(in srgb, var(--blue) 82%, #000);
  --navy: #0b2a5b;
  --accent: #e2725b;
  --sky: #e9f2fd;
  --sky-2: #f4f8fd;
  --ink: #1b2533;
  --muted: #5a6a7e;
  --line: #dbe4ee;
  --ok: #1f8a5b;
  --warn: #a8650a;
  --err: #c0392b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 38, 74, .06), 0 6px 18px rgba(16, 38, 74, .07);
  --shadow-lg: 0 18px 50px rgba(11, 42, 91, .16);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(24px, 2.6vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, #fff); outline-offset: 2px; border-radius: 4px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.container { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 22px; }
.skip-link { position: absolute; inset-inline-start: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 999; border-radius: 6px; }
.skip-link:focus { inset-inline-start: 8px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 8px; border: 2px solid transparent; font: inherit; font-weight: 600; font-size: 15.5px; line-height: 1.3; cursor: pointer; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--sky); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--sky); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #18834a; }
.btn-danger { background: #fff; color: var(--err); border-color: #f0c4be; }
.btn-danger:hover { background: #fdecea; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow .ic { transition: transform .15s; }
[dir="rtl"] .link-arrow .ic { transform: scaleX(-1); }
.link-arrow:hover .ic { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .ic { transform: scaleX(-1) translateX(3px); }
.icon-btn { background: none; border: 0; width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--navy); cursor: pointer; }
.icon-btn:hover { background: var(--sky); }
.icon-btn .ic { width: 22px; height: 22px; }

/* ---------- Alert bar ---------- */
.alertbar { font-size: 14.5px; }
.alertbar-in { display: flex; align-items: center; gap: 10px; padding-block: 9px; }
.alertbar-in > span { flex: 1; }
.alertbar a { font-weight: 600; text-decoration: underline; color: inherit; }
.alert-warning { background: #fff4d6; color: #5c4300; }
.alert-info { background: var(--sky); color: var(--navy); }
.alert-danger { background: #fdecea; color: #7d1d12; }
.alert-success { background: #e6f6ee; color: #135c3b; }
.alertbar-close { background: none; border: 0; cursor: pointer; color: inherit; padding: 4px; border-radius: 6px; }
.alertbar-close:hover { background: rgba(0, 0, 0, .06); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(11, 42, 91, .12); }
.utility { background: var(--navy); color: #fff; font-size: 13.5px; }
.utility-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.utility a { color: rgba(255, 255, 255, .88); display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.utility a:hover { color: #fff; }
.u-start, .u-end { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.u-phone { font-weight: 600; color: #fff !important; }
.u-lang { border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 3px 12px !important; }
.mainbar { border-bottom: 1px solid var(--line); background: #fff; }
.mainbar-in { display: flex; align-items: center; gap: 22px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none !important; min-width: 0; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: contain; background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 17.5px; white-space: nowrap; }
.brand-text small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mainnav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.mainnav > a { color: var(--ink); font-weight: 500; padding: 10px 12px; border-radius: 6px; font-size: 15.5px; position: relative; white-space: nowrap; }
.mainnav > a:hover { color: var(--blue); text-decoration: none; background: var(--sky-2); }
.mainnav > a.active { color: var(--blue); }
.mainnav > a.active::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 3px; background: var(--blue); border-radius: 3px; }
.mainnav-extra { display: none; }
.mainbar-actions { display: flex; align-items: center; gap: 6px; }
.menu-toggle { display: none; }
.searchbar { background: var(--sky-2); border-top: 1px solid var(--line); padding-block: 14px; }
.searchbar form { display: flex; align-items: center; gap: 10px; }
.searchbar .ic { color: var(--muted); width: 22px; height: 22px; }
.searchbar input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font: inherit; background: #fff; }

/* ---------- Notices ---------- */
.flash-wrap { padding-top: 18px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius); margin-bottom: 12px; font-size: 15px; }
.notice .ic { margin-top: 3px; }
.notice-success { background: #e6f6ee; color: #135c3b; }
.notice-error { background: #fdecea; color: #7d1d12; }
.notice-info { background: var(--sky); color: var(--navy); }
.notice-warn { background: #fff4d6; color: #5c4300; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 30, 66, .92) 0%, rgba(8, 30, 66, .72) 45%, rgba(8, 30, 66, .25) 100%); }
[dir="rtl"] .hero-media::after { background: linear-gradient(270deg, rgba(8, 30, 66, .92) 0%, rgba(8, 30, 66, .72) 45%, rgba(8, 30, 66, .25) 100%); }
.hero-art { position: absolute; inset: 0; background: radial-gradient(1200px 500px at 85% 20%, color-mix(in srgb, var(--blue) 70%, transparent), transparent 60%), radial-gradient(700px 400px at 10% 110%, rgba(255, 255, 255, .08), transparent 60%), linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--navy) 60%, var(--blue))); }
[dir="rtl"] .hero-art { transform: scaleX(-1); }
.hero-art-mark { position: absolute; inset-inline-end: 8%; top: 50%; transform: translateY(-50%); width: min(380px, 34vw); opacity: .97; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .28)); }
.hero-art-ring { position: absolute; inset-inline-end: calc(6% - 40px); top: 50%; transform: translateY(-50%); width: min(500px, 45vw); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); }
.hero-in { position: relative; padding-block: 92px 128px; max-width: 1220px; }
.hero-copy { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p.lead { font-size: 19px; color: rgba(255, 255, 255, .9); margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { min-width: 190px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 14px; border-radius: 999px; font-size: 14px; margin-bottom: 18px; }
.hero-video-toggle { position: absolute; inset-inline-end: 22px; bottom: 90px; background: rgba(0, 0, 0, .35); color: #fff; border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer; font: inherit; font-size: 13px; }

/* Quick action cards that overlap the hero */
.quick { position: relative; margin-top: -64px; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.quick-item { display: flex; gap: 14px; align-items: center; padding: 22px 22px; color: var(--ink); border-inline-end: 1px solid var(--line); text-decoration: none !important; transition: background .15s; }
.quick-item:last-child { border-inline-end: 0; }
.quick-item:hover { background: var(--sky-2); }
.quick-item .qi-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--blue); flex: none; }
.quick-item .qi-icon .ic { width: 24px; height: 24px; }
.quick-item strong { display: block; color: var(--navy); font-size: 16px; }
.quick-item span { font-size: 13.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: 76px; }
.section-sm { padding-block: 48px; }
.section-alt { background: var(--sky-2); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 17.5px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.lang-ar .eyebrow { letter-spacing: 0; }
.section-foot { margin-top: 32px; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; transition: box-shadow .2s, border-color .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); border-color: #c9d7e7; }
.svc-card { display: flex; flex-direction: column; }
.svc-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.svc-icon .ic { width: 28px; height: 28px; }
.svc-card h3 { margin-bottom: 6px; }
.svc-card h3 a { color: var(--navy); }
.svc-card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.svc-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; }
.svc-toggle .ic { transition: transform .2s; }
.svc-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.svc-list { list-style: none; margin: 4px 0 8px; padding: 12px 0 0; border-top: 1px dashed var(--line); }
.svc-list li { padding: 5px 0; font-size: 15px; display: flex; gap: 8px; }
.svc-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 10px; flex: none; }
.card-foot { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Promo / help cards ---------- */
.promo-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 22px; }
.help-card { border-radius: var(--radius-lg); padding: 28px; }
.help-card h3 { font-size: 22px; }
.help-card ul { list-style: none; padding: 0; margin: 0; }
.help-card li { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.help-card li:last-child { border-bottom: 0; }
.help-card li a { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.help-primary { background: var(--blue); color: #fff; }
.help-primary h3, .help-primary a { color: #fff; }
.help-light { background: var(--sky); }
.help-light li { border-bottom-color: #cfdcec; }
.help-light h3 { color: var(--navy); }
.promo-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.promo-media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--sky), #fff); display: grid; place-items: center; color: var(--blue); }
.promo-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-media .ic { width: 54px; height: 54px; opacity: .85; }
.promo-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.promo-body h3 { font-size: 19px; }
.promo-body p { color: var(--muted); font-size: 15px; flex: 1; }

/* ---------- Why blocks ---------- */
.why-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 28px; }
.why-row:nth-child(even) .why-media { order: 2; }
.why-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: radial-gradient(420px 260px at 75% 20%, color-mix(in srgb, var(--blue) 75%, transparent), transparent), linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--navy) 55%, var(--blue))); display: grid; place-items: center; color: #fff; position: relative; }
.why-media.has-img { background: var(--sky); }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-media .ic { width: 84px; height: 84px; stroke-width: 1.4; position: relative; z-index: 1; }
.why-media:not(.has-img)::before { content: ""; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .22); }
.why-media:not(.has-img)::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .18); }
.why-row h2 { font-size: clamp(22px, 2.3vw, 30px); }
.why-row p { color: var(--muted); font-size: 17px; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; padding-block: 48px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.stat .ic { width: 30px; height: 30px; color: color-mix(in srgb, var(--blue) 40%, #fff); margin: 0 auto 8px; display: block; }
.stat strong { display: block; font-size: 40px; line-height: 1.1; }
.stat span { color: rgba(255, 255, 255, .8); font-size: 15px; }

/* ---------- Library ---------- */
.lib-intro { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--sky), #fff); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 30px; }
.lib-intro-icon { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue); box-shadow: var(--shadow); }
.lib-intro-icon .ic { width: 40px; height: 40px; }
.lib-intro h2 { margin-bottom: 4px; }
.lib-intro p { margin: 0; color: var(--muted); }
.art-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: box-shadow .2s; }
.art-card:hover { box-shadow: var(--shadow); }
.art-media { aspect-ratio: 16/9; background: linear-gradient(135deg, color-mix(in srgb, var(--navy) 85%, var(--blue)), var(--blue)); position: relative; display: grid; place-items: center; color: rgba(255, 255, 255, .9); }
.art-media img { width: 100%; height: 100%; object-fit: cover; }
.art-media .ic { width: 46px; height: 46px; }
.art-media .play { position: absolute; inset-inline-start: 14px; bottom: 14px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
.art-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.art-cat { font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.art-body h3 { font-size: 19px; }
.art-body h3 a { color: var(--navy); }
.art-body p { color: var(--muted); font-size: 15px; flex: 1; }
.art-meta { font-size: 13px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.quote-card .ic-q { color: color-mix(in srgb, var(--blue) 25%, #fff); width: 34px; height: 34px; }
.stars { color: #f2a33a; display: flex; gap: 2px; margin: 8px 0; }
.stars .ic { width: 17px; height: 17px; fill: currentColor; }
.quote-card p { font-size: 16px; }
.quote-card cite { font-style: normal; font-weight: 600; color: var(--navy); }

/* ---------- Location cards ---------- */
.loc-card { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.loc-map { aspect-ratio: 16/8; background: var(--sky); }
.loc-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc-body { padding: 24px 26px 26px; }
.loc-body h3 { display: flex; align-items: center; gap: 10px; }
.loc-line { display: flex; gap: 10px; margin-bottom: 10px; color: var(--ink); }
.loc-line .ic { color: var(--blue); margin-top: 4px; }
.hours { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 15px; }
.hours th, .hours td { text-align: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; color: var(--navy); width: 40%; }
.hours tr.today th, .hours tr.today td { color: var(--blue); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sky); color: var(--navy); }
.tag-ok { background: #e6f6ee; color: #135c3b; }
.tag-warn { background: #fff4d6; color: #5c4300; }
.tag-err { background: #fdecea; color: #7d1d12; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.period-box { background: #fff9e8; border: 1px solid #f3e1a8; border-radius: var(--radius); padding: 14px 16px; margin: 10px 0 16px; font-size: 15px; }
.period-box h4 { margin: 0 0 6px; font-size: 15.5px; color: #5c4300; display: flex; gap: 8px; align-items: center; }

/* ---------- Inner page header ---------- */
.page-hero { background: linear-gradient(135deg, var(--sky) 0%, #fff 75%); border-bottom: 1px solid var(--line); }
.page-hero-in { padding-block: 44px 40px; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 780px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 12px; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs .ic { width: 14px; height: 14px; }
[dir="rtl"] .crumbs .ic { transform: scaleX(-1); }

/* Split hero (appointments) */
.split-hero { background: var(--navy); color: #fff; }
.split-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 56px; }
.split-hero h1 { color: #fff; }
.split-hero p { color: rgba(255, 255, 255, .88); font-size: 18px; }
.split-hero .crumbs, .split-hero .crumbs a { color: rgba(255, 255, 255, .75); }
.split-hero-art { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: radial-gradient(400px 260px at 70% 30%, color-mix(in srgb, var(--blue) 80%, transparent), transparent), linear-gradient(135deg, color-mix(in srgb, var(--navy) 70%, var(--blue)), var(--navy)); display: grid; place-items: center; position: relative; }
.split-hero-art img.cover { width: 100%; height: 100%; object-fit: cover; }
.split-hero-art .mark { width: 46%; }
.split-hero-art .chip { position: absolute; background: #fff; color: var(--navy); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.split-hero-art .chip .ic { color: var(--blue); }
.split-hero-art .chip-1 { top: 14%; inset-inline-start: 8%; }
.split-hero-art .chip-2 { bottom: 14%; inset-inline-end: 8%; }

/* ---------- Content layout ---------- */
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; position: sticky; top: 140px; }
.aside-box + .aside-box { margin-top: 18px; position: static; }
.aside-box h3 { font-size: 18px; }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.aside-list li:last-child { border-bottom: 0; }
.aside-list a { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.aside-list a:hover { color: var(--blue); }
.aside-list .ic { color: var(--blue); }

.prose { font-size: 17px; }
.prose h2 { font-size: 26px; margin-top: 1.4em; }
.prose h3 { font-size: 21px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); margin-block: 1em; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-inline-start: 4px solid var(--blue); background: var(--sky-2); border-radius: 0 var(--radius) var(--radius) 0; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: #000; margin-bottom: 24px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lead-text { font-size: 19px; color: var(--muted); }

/* "Ways to book" list (CC London style) */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0 10px; }
.way { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; display: flex; flex-direction: column; }
.way .way-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--blue); margin-bottom: 12px; }
.way h3 { font-size: 18px; margin-bottom: 4px; }
.way p { color: var(--muted); font-size: 15px; flex: 1; }
.way .ph-list a { display: block; font-weight: 600; }

/* ---------- Booking wizard ---------- */
.wizard { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 130px; }
.wizard-head { background: var(--sky-2); border-bottom: 1px solid var(--line); padding: 18px 24px; }
.wizard-head h2 { font-size: 22px; margin: 0; }
.stepper { display: flex; gap: 0; list-style: none; margin: 14px 0 0; padding: 0; counter-reset: st; }
.stepper li { flex: 1; position: relative; font-size: 13px; color: var(--muted); text-align: center; padding-top: 34px; }
.stepper li::before { counter-increment: st; content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; color: var(--muted); z-index: 1; line-height: 24px; }
.stepper li::after { content: ""; position: absolute; top: 13px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); }
.stepper li:last-child::after { display: none; }
.stepper li.done::before { background: var(--blue); border-color: var(--blue); color: #fff; content: "✓"; }
.stepper li.done::after { background: var(--blue); }
.stepper li.current::before { border-color: var(--blue); color: var(--blue); }
.stepper li.current { color: var(--navy); font-weight: 600; }
.stepper li.done { cursor: pointer; }
.wizard-body { padding: 26px 24px 28px; }
.wstep h3 { font-size: 19px; margin-bottom: 4px; }
.wstep > p.hint { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 16px 18px; height: 100%; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover .choice-box { border-color: color-mix(in srgb, var(--blue) 50%, #fff); }
.choice input:checked + .choice-box { border-color: var(--blue); background: var(--sky-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 15%, transparent); }
.choice input:focus-visible + .choice-box { outline: 3px solid color-mix(in srgb, var(--blue) 55%, #fff); }
.choice-box strong { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 16.5px; }
.choice-box strong .ic { color: var(--blue); }
.choice-box small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.55; }
.choice-box .fee { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--blue); font-size: 14.5px; }
.choice-box .days { display: block; margin-top: 8px; font-size: 13.5px; color: var(--navy); }

.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.cal { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { color: var(--navy); font-size: 17px; }
.cal-head button { background: none; border: 1px solid var(--line); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.cal-head button:disabled { opacity: .35; cursor: default; }
[dir="rtl"] .cal-head button .ic { transform: scaleX(-1); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 15px; display: grid; place-items: center; color: #b3bfcc; cursor: default; position: relative; }
.cal-day.available { background: var(--sky); color: var(--navy); font-weight: 600; cursor: pointer; }
.cal-day.available:hover { background: color-mix(in srgb, var(--blue) 18%, #fff); }
.cal-day.full { color: #c58a2a; text-decoration: line-through; }
.cal-day.closed { color: #d58a80; }
.cal-day.today { outline: 1px dashed var(--blue); }
.cal-day.selected { background: var(--blue) !important; color: #fff !important; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-inline-end: 5px; }
.cal-legend .l-av { background: var(--sky); border: 1px solid #b9cfe9; }
.cal-legend .l-full { background: #fff4d6; }
.cal-legend .l-closed { background: #fdecea; }
.slots-head { font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.slots.sessions { grid-template-columns: 1fr; }
.slot .choice-box { padding: 10px 12px; text-align: center; }
.slot .choice-box strong { justify-content: center; font-size: 15px; }
.slot.is-full { opacity: .5; pointer-events: none; }
.sessions .slot .choice-box { text-align: start; padding: 14px 16px; }
.sessions .slot .choice-box strong { justify-content: flex-start; }
.slot-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.slot-meta b { color: var(--navy); }
.empty-box { border: 1px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); }
.empty-box .ic { width: 30px; height: 30px; display: block; margin: 0 auto 8px; color: #9fb3c8; }
.wnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
[dir="rtl"] .wnav .ic { transform: scaleX(-1); }
.summary { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.summary div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.summary div:last-child { border-bottom: 0; }
.summary dt, .summary .k { color: var(--muted); font-size: 14.5px; }
.summary .v { font-weight: 600; color: var(--navy); }
.loading { position: relative; min-height: 80px; }
.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--sky); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice-inline { font-size: 14px; color: #5c4300; background: #fff4d6; border-radius: 8px; padding: 8px 12px; margin-top: 10px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; color: var(--navy); }
.field label .req { color: var(--err); }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.input, .field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=number], .field input[type=search], .field select, .field textarea {
  width: 100%; border: 1px solid #c5d2e1; border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.radio-row { display: flex; gap: 18px; padding-top: 6px; }
.radio-row label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check-line input { margin-top: 5px; }
.hp { position: absolute !important; inset-inline-start: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: #fff; }

/* ---------- Confirmation / manage ---------- */
.done-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.done-top { background: linear-gradient(135deg, #e6f6ee, #fff); padding: 34px 28px 26px; text-align: center; border-bottom: 1px solid var(--line); }
.done-top .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; }
.done-top .ok .ic { width: 34px; height: 34px; }
.done-top.pending { background: linear-gradient(135deg, #fff4d6, #fff); }
.done-top.pending .ok { background: var(--warn); }
.done-top.cancelled { background: linear-gradient(135deg, #fdecea, #fff); }
.done-top.cancelled .ok { background: var(--err); }
.ref-code { display: inline-block; font-size: 30px; font-weight: 700; letter-spacing: .15em; background: #fff; border: 2px dashed var(--blue); color: var(--navy); border-radius: 12px; padding: 6px 20px; margin: 8px 0; direction: ltr; }
.queue-no { display: inline-flex; flex-direction: column; align-items: center; background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 26px; margin: 8px 6px; }
.queue-no b { font-size: 34px; line-height: 1.1; }
.queue-no span { font-size: 13px; opacity: .85; }
.done-body { padding: 26px 28px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 4px; font-weight: 600; font-size: 17px; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { transition: transform .2s; color: var(--blue); }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 4px 20px; color: var(--ink); }
.faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }

/* ---------- Doctor ---------- */
.doc-hero { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.doc-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--sky), #fff); display: grid; place-items: center; border: 1px solid var(--line); }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-photo .mark { width: 62%; }
.cred-list { list-style: none; padding: 0; margin: 18px 0 0; }
.cred-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cred-list li .ic { color: var(--blue); margin-top: 4px; }

/* ---------- Search, pagination, misc ---------- */
.result { padding: 18px 0; border-bottom: 1px solid var(--line); }
.result h3 { font-size: 19px; margin: 4px 0; }
.result p { color: var(--muted); margin: 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 34px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
.pager span.cur { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip-link { display: inline-flex; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 14.5px; background: #fff; }
.chip-link.on, .chip-link:hover { background: var(--navy); border-color: var(--navy); color: #fff; text-decoration: none; }
.lib-search { display: flex; gap: 8px; max-width: 520px; }
.lib-search input { flex: 1; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .ic { width: 46px; height: 46px; margin: 0 auto 12px; display: block; color: #9fb3c8; }
.big-404 { font-size: 110px; font-weight: 700; color: var(--sky); line-height: 1; -webkit-text-stroke: 2px var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); margin-top: 0; }
.footer-cta { background: var(--blue); color: #fff; }
.footer-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 30px; flex-wrap: wrap; }
.footer-cta h2 { color: #fff; font-size: 24px; margin-bottom: 4px; }
.footer-cta p { margin: 0; color: rgba(255, 255, 255, .88); }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer .btn-white { color: var(--navy); }
.site-footer .btn-white:hover { color: var(--navy); }
.site-footer .btn-ghost-light { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding-block: 52px 40px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.brand-light { color: #fff; margin-bottom: 14px; }
.brand-light small { color: rgba(255, 255, 255, .7); }
.footer-brand p { font-size: 14.5px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.socials a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; }
.socials a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.footer-branches .ph { display: block; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; padding-block: 18px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; }
.footer-bottom .sep { opacity: .35; }

.wa-float { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 60; background: #1f9d55; color: #fff !important; border-radius: 999px; padding: 12px 18px; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); text-decoration: none !important; }
.wa-float .ic { width: 22px; height: 22px; }
.wa-float:hover { background: #18834a; }
.to-top { position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top .ic { transform: rotate(180deg); }
.to-top.show { opacity: .85; pointer-events: auto; }

@media (min-width: 721px) { .brand { flex-shrink: 0; } }
body.nav-tight .mainnav > a { padding: 10px 7px; font-size: 15px; }
body.nav-tight .mainbar-in { gap: 14px; }

/* Compact (hamburger) navigation — used on small screens, or when the menu doesn't fit (body.nav-collapsed, set by site.js) */
body.nav-collapsed .menu-toggle { display: inline-grid; }
body.nav-collapsed .mainnav { position: fixed; inset: 0; top: var(--hdr, 118px); background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 22px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; margin: 0; z-index: 40; }
[dir="rtl"] body.nav-collapsed .mainnav { transform: translateX(-100%); }
body.nav-collapsed .mainnav.open { transform: none !important; }
body.nav-collapsed .mainnav > a { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
body.nav-collapsed .mainnav > a.active::after { display: none; }
body.nav-collapsed .mainnav-extra { display: flex; flex-direction: column; margin-top: 16px; }
body.nav-collapsed .mainnav-extra a { padding: 10px 6px; color: var(--muted); }
body.nav-collapsed .mainbar-actions { margin-inline-start: auto; }
@media (max-width: 1020px) { .mainbar-actions { margin-inline-start: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .mainnav > a { padding: 10px 8px; font-size: 15px; }
  .brand-text small { display: none; }
}
@media (max-width: 1020px) {
  .menu-toggle { display: inline-grid; }
  .mainnav { position: fixed; inset: 0; top: var(--hdr, 118px); background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 22px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; margin: 0; z-index: 40; }
  [dir="rtl"] .mainnav { transform: translateX(-100%); }
  .mainnav.open { transform: none !important; }
  .mainnav > a { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .mainnav > a.active::after { display: none; }
  .mainnav-extra { display: flex; flex-direction: column; margin-top: 16px; }
  .mainnav-extra a { padding: 10px 6px; color: var(--muted); }
  .grid-4, .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item:nth-child(2) { border-inline-end: 0; }
  .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .layout-aside { grid-template-columns: 1fr; }
  .aside-box { position: static; }
  .split-hero-in { grid-template-columns: 1fr; }
  .split-hero-art { display: none; }
  .doc-hero { grid-template-columns: 260px 1fr; gap: 30px; }
  .ways { grid-template-columns: 1fr; }
  .hero-art-mark, .hero-art-ring { opacity: .25; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .u-start a:not(.u-phone) { display: none; }
  .u-end a:not(.u-lang) { display: none; }
  .mainbar-in { min-height: 68px; gap: 10px; }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: 15.5px; white-space: normal; }
  .btn-appt span { display: none; }
  .btn-appt { padding: 10px 12px; }
  .hero-in { padding-block: 60px 110px; }
  .hero-ctas .btn { min-width: 0; flex: 1 1 100%; }
  .section { padding-block: 54px; }
  .grid-2, .grid-3, .grid-4, .promo-grid { grid-template-columns: 1fr; }
  .why-row { grid-template-columns: 1fr; gap: 20px; }
  .why-row:nth-child(even) .why-media { order: 0; }
  .lib-intro { grid-template-columns: 1fr; text-align: center; }
  .lib-intro-icon { margin: 0 auto; }
  .cal-wrap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .summary div { grid-template-columns: 1fr; gap: 2px; }
  .doc-hero { grid-template-columns: 1fr; }
  .doc-photo { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .to-top { display: none; }
  .wa-float { padding: 14px; }
  .stepper li { font-size: 0; }
  .wizard-body { padding: 20px 16px 22px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-item { padding: 16px 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .quick-item span { display: none; }
}

@media print {
  .site-header, .site-footer, .wa-float, .to-top, .alertbar, .done-actions, .btn { display: none !important; }
  body { font-size: 13pt; }
  .done-card { box-shadow: none; border: 1px solid #999; }
}
