:root {
  --ink: #163b56;          /* navy */
  --ink-2: #3d5e75;
  --muted: #58738a;
  --paper: #ffffff;
  --off: #f2f8fc;
  --sky: #bce3f8;
  --sky-2: #e3f3fd;
  --accent: #bce3f8;
  --line: rgba(22,59,86, 0.12);
  --ok: #1f7a4d;
  --err: #b3261e;
  --wa: #25d366;
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --ease-soft: cubic-bezier(0.25, 0, 0.25, 1);
  --max: 1560px;           /* wide screens: the page uses the width, the text keeps readable measures */
  --gutter: clamp(16px, 4.5vw, 88px);
  --logo-ink: var(--sky);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* display face for headings and numbers (same as the dashboard): Readex Pro covers Arabic and Latin */
  --display: "Readex Pro", "Geist", system-ui, sans-serif;
}
html[lang="ar"] { --font: Tajawal, "Segoe UI", Tahoma, sans-serif; --display: "Readex Pro", Tajawal, "Segoe UI", Tahoma, 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: var(--paper);
  font-size: clamp(17px, 15.4px + .24vw, 20px); line-height: 1.6; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, .h3 { margin: 0; font-weight: 600; font-family: var(--display); }
h1 { font-size: clamp(2.6rem, 1.2rem + 5vw, 6.2rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 1rem + 2.6vw, 4rem); letter-spacing: -0.03em; line-height: 1.12; }
h3, .h3 { font-size: clamp(1.25rem, .8rem + 1vw, 2rem); letter-spacing: -0.015em; line-height: 1.25; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; font-weight: 600; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 168px) 0; }
.section-tight { padding-top: 24px; }
.section.off { background: var(--off); }
.tag { font-size: clamp(14px, 12.4px + .2vw, 16px); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
html[lang="ar"] .tag { letter-spacing: 0; font-size: clamp(16px, 14.4px + .2vw, 18px); }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.05rem, .8rem + .7vw, 1.5rem); max-width: 56ch; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #1675b9; outline-offset: 3px; border-radius: 6px; }
.ic { flex: none; }
html[dir="rtl"] .link-arrow .ic, html[dir="rtl"] .btn .ic-flip, html[dir="rtl"] .info-book > .ic:last-child, html[dir="rtl"] .stat-card .btn .ic { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: #fff; color: var(--ink); cursor: pointer; font-weight: 500; font-size: 17px; white-space: nowrap;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { min-height: 58px; padding: 0 28px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-accent { background: var(--sky); color: var(--ink); }
.btn-accent:hover { background: #a5d8f5; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #185f96; }
.btn-outline { background: transparent; border-color: rgba(22,59,86,.35); }
.btn-outline:hover { background: var(--off); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[hidden] { display: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.over-hero { position: fixed; inset: 0 0 auto; background: transparent; color: #fff; --logo-ink: var(--ink); }
.site-header.over-hero .logo-mark { color: #fff; }
.site-header.over-hero.is-scrolled { background: rgba(255,255,255,.94); color: var(--ink); --logo-ink: var(--sky); }
.site-header.over-hero.is-scrolled .logo-mark { color: var(--ink); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; color: var(--ink); }
.logo-text { display: grid; line-height: 1.15; }
.logo-text strong { font-size: 17px; font-weight: 600; font-family: var(--display); }
.logo-text small { font-size: 13px; opacity: .75; }
.nav { display: none; gap: 28px; margin-inline-start: 24px; }
.nav a { font-size: 16px; font-weight: 500; opacity: .85; padding: 6px 0; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover, .nav a[aria-current] { opacity: 1; border-bottom-color: currentColor; }
.header-right { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: 3px; opacity: .9; }
.lang-btn { border: 0; background: transparent; color: inherit; border-radius: 999px; min-width: 38px; min-height: 32px; padding: 0 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.lang-btn[data-lang="ar"] { font-family: Tajawal, sans-serif; font-size: 16px; }
.lang-btn.is-on { background: var(--ink); color: #fff; }
.over-hero:not(.is-scrolled) .lang-btn.is-on { background: #fff; color: var(--ink); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 10px; }
.header-book { display: none; }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .header-book { display: inline-flex; }
}
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 40px 28px; }
.drawer[hidden] { display: none; }
.drawer nav { display: grid; }
.drawer nav a { font-size: 2rem; font-weight: 600; padding: 10px 0; opacity: 0; transform: translateY(24px); animation: rise .4s var(--ease) forwards; }
.drawer nav a:nth-child(2) { animation-delay: .05s; }
.drawer nav a:nth-child(3) { animation-delay: .1s; }
.drawer .btn { align-self: flex-start; }
.drawer-info { display: flex; gap: 10px; align-items: center; opacity: .8; font-size: 16px; }
.drawer-close { position: absolute; top: 18px; inset-inline-end: 18px; width: 48px; height: 48px; background: none; border: 0; color: #fff; cursor: pointer; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; color: #fff; display: grid; align-items: end; overflow: hidden; background: #e7f4fc; }
.hero-media { position: absolute; inset: 0 0 -10%; will-change: transform; }
/* hero photo: the eye at the slit lamp, always on the side opposite the text:
   mirrored in Arabic (text on the right), as shot in French/English (text on the left). */
.hero-img { position: absolute; inset: 0; }
html[dir="rtl"] .hero-img { transform: scaleX(-1); }
/* wide screens: the photo takes the side opposite the text and fades into the dark background under the words */
@media (min-width: 1025px), (min-width: 721px) and (orientation: landscape) {
  .hero-img { left: auto; right: 0; width: 72%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 24%, #000 50%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 24%, #000 50%); }
  html[dir="rtl"] .hero-img { right: auto; left: 0; }
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 45%; transform: scale(1.15); animation: zoomOut 2s cubic-bezier(.12,.23,.5,1) forwards; filter: brightness(1.06) saturate(1.04); }
@keyframes zoomOut { to { transform: scale(1); } }
/* lighter veil (brighter photo); darker only behind the text, at the bottom and on the text side */
/* the photo is dark on the text side already; the veil only deepens it behind the words, the eye stays clear */
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,59,86,.55) 0%, rgba(22,59,86,.1) 40%, rgba(22,59,86,0) 65%), linear-gradient(90deg, rgba(22,59,86,.55) 0%, rgba(22,59,86,.25) 40%, transparent 60%); }
html[dir="rtl"] .hero-media::after { background: linear-gradient(0deg, rgba(22,59,86,.55) 0%, rgba(22,59,86,.1) 40%, rgba(22,59,86,0) 65%), linear-gradient(-90deg, rgba(22,59,86,.55) 0%, rgba(22,59,86,.25) 40%, transparent 60%); }
/* phones and portrait tablets: the photo sits in the top part (the eye in view) and fades into the dark background behind the text */
@media (max-width: 720px), (max-width: 1024px) and (orientation: portrait) {
  .hero-media { inset: 0 0 auto; height: 60%; }
  .hero-media img { object-position: 76% 45%; }
  .hero-media::after, html[dir="rtl"] .hero-media::after { background: linear-gradient(180deg, rgba(22,59,86,.45) 0%, rgba(22,59,86,0) 26%, rgba(22,59,86,0) 50%, #e7f4fc 100%); }
}
.hero-copy { position: relative; z-index: 1; padding: 160px 0 64px; animation: fadeUp 1.2s var(--ease-soft) both; text-shadow: 0 1px 2px rgba(22,59,86,.3), 0 2px 22px rgba(22,59,86,.5); }
.hero-copy .btn { text-shadow: none; }
.kicker { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; margin-bottom: 18px; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 17px; }
.hero-line { display: inline-block; background: rgba(255,255,255,.16); padding: 0 .18em; border-radius: 8px; backdrop-filter: blur(8px); margin-top: .08em; }
.hero-bottom { display: grid; grid-template-columns: minmax(240px, 440px) 1fr auto; gap: 28px; align-items: center; margin-top: 36px; }
.hero-rule { height: 1px; background: rgba(255,255,255,.5); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } }

/* ---------- info strip ---------- */
.info-strip { background: var(--ink); color: #fff; }
.info-grid { display: grid; grid-template-columns: 1fr 1.3fr .9fr 1.2fr; }
.info-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px 18px; text-align: start; }
.info-grid .info-item + .info-item { border-inline-start: 1px solid rgba(255,255,255,.14); }
.info-item .ic { margin-top: 3px; opacity: .85; }
.info-label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-bottom: 2px; }
html[lang="ar"] .info-label { letter-spacing: 0; font-size: 14px; }
.info-item p { font-size: 16px; }
.info-book { background: var(--sky); color: var(--ink); border: 0; cursor: pointer; font: inherit; align-items: center; transition: background .3s; }
.info-book:hover { background: #a5d8f5; }
.info-book > div { flex: 1; }
.info-book .info-label { opacity: 1; font-weight: 600; }
.js-phone { display: inline-flex; gap: 6px; align-items: center; }
.info-grid .js-phone .ic { display: none; }

/* ---------- about ---------- */
.h2-wide { max-width: 26ch; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr .9fr; gap: 20px; margin-top: 64px; align-items: stretch; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.about-text { display: flex; flex-direction: column; gap: 20px; color: var(--ink-2); }
.shot-sm { flex: 1; }
.shot-sm img { min-height: 200px; }
.stat-card { background: var(--sky); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.stat-card p { color: var(--ink-2); }
.stat-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- services accordion ---------- */
.service-list { display: grid; margin-top: 56px; border-top: 1px solid var(--line); }
.service { --thumb: 132px; --thumb-h: 84px; --svc-gap: 20px; border-bottom: 1px solid var(--line); }
.service-head { width: 100%; display: grid; grid-template-columns: var(--thumb) 44px 1fr auto; gap: var(--svc-gap); align-items: center; background: none; border: 0; text-align: start; padding: 20px 0; cursor: pointer; }
.service-head img { width: var(--thumb); height: var(--thumb-h); object-fit: cover; border-radius: var(--radius-sm); transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft); }
.service-head:hover img { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 14px 28px -12px rgba(22,59,86,.45); }
.service-head h3 { transition: transform .4s var(--ease-soft); }
.service-head:hover h3 { transform: translateX(4px); }
html[dir="rtl"] .service-head:hover h3 { transform: translateX(-4px); }
.num { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--display); }
.plus { width: 22px; height: 22px; position: relative; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; left: 50%; top: 50%; transition: transform .3s var(--ease), opacity .3s; }
.plus::before { width: 16px; height: 1.6px; transform: translate(-50%,-50%); }
.plus::after { width: 1.6px; height: 16px; transform: translate(-50%,-50%); }
.service.is-open .plus::after, details[open] .plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.service-body { display: none; padding: 0 0 26px; padding-inline-start: calc(var(--thumb) + 44px + 2 * var(--svc-gap)); max-width: calc(var(--thumb) + 44px + 2 * var(--svc-gap) + 62ch); }
.service-body p { margin-bottom: 14px; color: var(--ink-2); }
.service.is-open .service-body { display: block; animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--off); border-radius: var(--radius); padding: clamp(26px, 2.2vw, 40px); display: grid; gap: 10px; align-content: start; transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft); }
.step:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(22,59,86,.4); }
.step p { color: var(--ink-2); }
.step-n { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; margin-bottom: 8px; font-family: var(--display); font-size: 1.05em; }

/* ---------- banner ---------- */
.banner { background: var(--ink); color: #fff; overflow: hidden; }
.banner-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding: clamp(56px, 8vw, 96px) 0; }
.banner-copy { display: grid; gap: 20px; }
.banner-copy p { opacity: .85; max-width: 50ch; }
.banner-img { margin: 0; border-radius: var(--radius); overflow: hidden; max-height: 440px; }
.banner-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq-grid > div:first-child { display: grid; gap: 18px; align-content: start; }
.faq-grid > div:first-child .btn { justify-self: start; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: clamp(17.5px, 15.5px + .3vw, 21px); min-height: 44px; }
summary::-webkit-details-marker { display: none; }
details p { margin-top: 10px; color: var(--ink-2); }

/* ---------- map / contact ---------- */
.map-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; margin-top: 48px; }
.page-contact .map-grid { margin-top: 0; }
.map-card { background: var(--off); border-radius: var(--radius); padding: 18px 14px 28px; display: grid; gap: 4px; align-content: start; }
.map-card .info-item { padding: 16px 14px; }
.map-card .info-label { color: var(--muted); opacity: 1; }
.map-card .btn-row { padding: 12px 14px 0; }
.map-frame { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--off) center/60px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2358738a' stroke-width='1.5'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- inner pages ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 40px; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 18px; }
.crumbs a { border-bottom: 1px solid currentColor; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22,59,86,.08); }
.card img.cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.card-body p { color: var(--ink-2); font-size: 16px; }
.card-body .link-arrow { justify-self: start; margin-top: 6px; font-size: 16px; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-img { margin: 0; border-radius: var(--radius); overflow: hidden; position: sticky; top: 100px; }
.detail-img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.detail-body { display: grid; gap: 18px; }
.detail-body > p { color: var(--ink-2); }
.detail-body .btn-row { margin-top: 8px; }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-inline-start: 34px; }
.checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--sky) center/13px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163b56' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.other-svc { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.other-svc .info-label { color: var(--muted); opacity: 1; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; }
.chips a:hover { background: var(--off); }
.page-404 { text-align: center; padding: 120px 0; }
.page-404 .lede, .page-404 .btn-row { margin-inline: auto; justify-content: center; }
.page-404 .lede { margin-bottom: 28px; }
.big404 { font-family: var(--display); font-size: clamp(6rem, 20vw, 12rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--sky); }

/* ---------- footer ---------- */
.site-footer { background: var(--off); padding: 64px 0 110px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 40px; }
.footer-grid .info-label { color: var(--muted); opacity: 1; margin-bottom: 6px; }
.footer-grid > div { display: grid; gap: 4px; align-content: start; }
.logo-footer { margin-bottom: 14px; }
.footer-note { color: var(--muted); font-size: 14px; max-width: 42ch; }
.footer-nav { display: grid; gap: 8px; align-content: start; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- floating buttons ---------- */
.fab { position: fixed; z-index: 50; bottom: 20px; border: 0; cursor: pointer; box-shadow: 0 10px 30px rgba(22,59,86,.28); transition: transform .3s var(--ease), opacity .3s; }
.fab:hover { transform: translateY(-3px); }
.fab-book { inset-inline-end: 20px; display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; }
body.bot-open .fab { opacity: 0; pointer-events: none; }

/* ---------- chatbot ---------- */
.bot {
  position: fixed; z-index: 70; inset-inline-end: 20px; bottom: 20px; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100svh - 40px));
  background: #fff; border-radius: 22px; box-shadow: 0 24px 70px rgba(22,59,86,.3); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s var(--ease), transform .25s var(--ease); font-size: 16px;
}
.bot.open { opacity: 1; transform: none; }
.bot[hidden] { display: none; }
.bot-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: var(--ink); color: #fff; }
.bot-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sky); color: var(--ink); display: grid; place-items: center; flex: none; }
.bot-titles { flex: 1; min-width: 0; }
.bot-titles h2 { font-size: 16px; letter-spacing: 0; line-height: 1.3; }
.bot-titles p { font-size: 13px; opacity: .8; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex: none; }
.bot-icon-btn { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.bot-icon-btn:hover { background: rgba(255,255,255,.12); }
.bot-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--off); overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.msg-bot { background: #fff; align-self: flex-start; border-end-start-radius: 6px; box-shadow: 0 1px 2px rgba(22,59,86,.06); }
.msg-me { background: var(--ink); color: #fff; align-self: flex-end; border-end-end-radius: 6px; unicode-bidi: plaintext; }
.msg.muted { background: transparent; box-shadow: none; color: var(--muted); font-style: italic; padding: 4px 6px; }
.msg.success { background: #e7f5ec; color: #14532d; }
.msg.error { background: #fdecea; color: var(--err); }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; transform: translateY(-2px); } }
.summary { display: grid; gap: 6px; min-width: 75%; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.sum-row:last-child { border: 0; padding: 0; }
.sum-k { color: var(--muted); }
.sum-v { text-align: end; }
.bot-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: var(--off); max-height: 42%; overflow-y: auto; }
.bot-quick:empty { display: none; }
.chip { border: 1px solid rgba(22,59,86,.25); background: #fff; color: var(--ink); border-radius: 999px; min-height: 40px; padding: 0 14px; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; transition: background .2s, border-color .2s; }
.chip:hover { background: var(--sky-2); border-color: var(--sky); }
.chip-time { min-width: 72px; justify-content: center; font-variant-numeric: tabular-nums; }
.chip-primary { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.chip-primary:hover { background: #185f96; }
.chip-ghost { background: transparent; }
.bot-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.bot-input { flex: 1; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; background: var(--off); font-size: 16px; }
.bot-input:disabled { opacity: .5; }
html[dir="rtl"] .bot-input[type="tel"] { text-align: right; }
.bot-send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
html[dir="rtl"] .bot-send svg { transform: scaleX(-1); }
.bot-send:disabled { opacity: .35; cursor: default; }
.bot-privacy { font-size: 12px; color: var(--muted); text-align: center; padding: 0 12px 10px; background: #fff; }

/* ---------- reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); transition-delay: var(--reveal-delay, 0ms); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 999px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-grid .info-item:nth-child(3) { border-inline-start: 0; }
  .info-grid .info-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { grid-column: 1 / -1; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero-rule { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; gap: 10px; }
  .logo-text small { display: none; }
  .logo-mark { width: 36px; height: 36px; }
  .lang-btn { min-width: 34px; padding: 0 8px; }
  .hero-copy { padding: 120px 0 40px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid .info-item { border-inline-start: 0 !important; }
  .info-grid .info-item + .info-item { border-top: 1px solid rgba(255,255,255,.14); }
  .info-item { padding: 16px 4px; }
  .info-book { margin: 0 -16px; padding: 18px 20px; }
  .about-grid, .steps, .faq-grid, .map-grid, .banner-inner, .detail, .card-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-grid { margin-top: 40px; }
  .shot img { min-height: 260px; }
  .service { --thumb: 84px; --thumb-h: 64px; --svc-gap: 14px; }
  .service-head { grid-template-columns: var(--thumb) 1fr auto; padding: 16px 0; }
  .service-head .num { display: none; }
  .service-body { padding-inline-start: 0; }
  .banner-img { max-height: 280px; }
  .detail-img { position: static; }
  .map-frame, .map-frame iframe { min-height: 320px; }
  .fab-book span { display: none; }
  .fab-book { width: 58px; padding: 0; justify-content: center; }
  .bot { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  .btn { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   v2 polish: images, touch targets, privacy page, states
   ========================================================== */
/* <picture> wrappers stay out of layout: the <img> keeps its sizing rules */
picture { display: contents; }
/* <source> is not display:none by default: inside a grid it took a cell (the service thumbnails were squeezed into the 44px column) */
picture > source { display: none; }

/* 44px touch targets */
.lang-btn { min-height: 40px; min-width: 40px; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; }
.link-arrow { border-bottom: 0; padding-bottom: 0; min-height: 44px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.js-phone { min-height: 44px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; }
.bot-privacy a { text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 6px 2px; }

/* floating buttons hide while the hero's booking button is visible (no overlap on phones) */
.fab { transition: transform .3s var(--ease), opacity .3s var(--ease), visibility 0s linear 0s; }
body.cta-in-view .fab { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; transition: transform .3s var(--ease), opacity .3s var(--ease), visibility 0s linear .3s; }

/* chatbot success message: a drawn check mark instead of an emoji */
.msg.success { position: relative; padding-inline-start: 40px; }
.msg.success::before {
  content: ""; position: absolute; inset-inline-start: 12px; top: 12px; width: 20px; height: 20px; border-radius: 50%;
  background: #1f7a4d center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* privacy page */
.prose { max-width: 72ch; display: grid; gap: 14px; }
.prose h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -.01em; margin-top: 18px; }
.prose p { color: var(--ink-2); }
.prose .checklist { margin: 0; }
.prose .updated { margin-top: 24px; font-size: 15px; }
.logo { min-height: 44px; }
.hours-line { margin-bottom: 6px; }
.hours-line strong { font-weight: 600; }
.info-item p + p { margin-top: 2px; }
.drawer-info > div { display: grid; gap: 2px; }
/* breadcrumb link: 44px touch target without changing the line height */
.crumbs a { display: inline-block; padding: 13px 0; margin: -13px 0; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ==========================================================
   v3: full-width screens, tablets, phones
   ========================================================== */
/* tablets: one column where two or three columns were cramped */
@media (max-width: 999px) {
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-grid > div:first-child { max-width: 60ch; }
  .map-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
}
@media (min-width: 721px) and (max-width: 999px) {
  /* steps read as a list: number beside the text */
  .step { grid-template-columns: 56px 1fr; column-gap: 22px; align-items: start; }
  .step-n { grid-row: span 2; margin: 0; }
  .step h3 { align-self: center; }
  /* address / hours / phone side by side above the map */
  .map-card { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .map-card .btn-row { grid-column: 1 / -1; }
  .map-frame, .map-frame iframe { min-height: 400px; }
  .banner-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .service { --thumb: 112px; --thumb-h: 76px; }
}
/* portrait tablets: the hero is tall, give the text room under the photo */
@media (min-width: 721px) and (max-width: 1024px) and (orientation: portrait) {
  .hero { min-height: min(100svh, 1100px); }
  .hero-media { height: 58%; }
  .hero-copy { padding: 140px 0 56px; }
  .hero-bottom { grid-template-columns: minmax(0, 560px) auto; align-items: end; }
  .hero-bottom .hero-rule { display: none; }
}
/* large screens: bigger type, controls and images so the page fills the screen */
@media (min-width: 1200px) {
  .service { --thumb: 156px; --thumb-h: 100px; --svc-gap: 24px; }
  .hero-bottom { grid-template-columns: minmax(260px, 500px) 1fr auto; }
}
@media (min-width: 1440px) {
  .header-inner { min-height: 88px; gap: 32px; }
  .logo-mark { width: 46px; height: 46px; }
  .logo-text strong { font-size: 19px; }
  .logo-text small { font-size: 14.5px; }
  .nav { gap: 36px; margin-inline-start: 40px; }
  .nav a { font-size: 17.5px; }
  .btn { min-height: 56px; padding: 0 28px; font-size: 18px; }
  .btn-lg { min-height: 64px; padding: 0 34px; font-size: 19px; }
  .btn-sm { min-height: 46px; padding: 0 20px; font-size: 16px; }
  .lang-btn { min-width: 44px; min-height: 42px; font-size: 15px; }
  .lang-btn[data-lang="ar"] { font-size: 17px; }
  .hero-copy { padding: 200px 0 96px; }
  .kicker { font-size: 17px; }
  html[lang="ar"] .kicker { font-size: 19px; }
  .hero-bottom { grid-template-columns: minmax(280px, 580px) 1fr auto; gap: 40px; margin-top: 44px; }
  .info-item { padding: 30px 26px; gap: 18px; }
  .info-item p { font-size: 18px; }
  .info-label { font-size: 14px; }
  html[lang="ar"] .info-label { font-size: 15.5px; }
  .about-grid { gap: 28px; margin-top: 80px; }
  .shot img { min-height: 480px; }
  .shot-sm img { min-height: 270px; }
  .stat-card { padding: 44px; gap: 18px; }
  .service { --thumb: 184px; --thumb-h: 116px; --svc-gap: 28px; }
  .service-head { padding: 26px 0; }
  .service-list, .steps { margin-top: 72px; }
  .steps { gap: 28px; }
  .step-n { width: 56px; height: 56px; }
  .banner-inner { gap: 88px; }
  .banner-img { max-height: 580px; }
  .faq-grid { gap: 110px; }
  details { padding: 24px 0; }
  .map-grid { gap: 28px; margin-top: 64px; }
  .map-card { padding: 26px 20px 34px; }
  .map-frame, .map-frame iframe { min-height: 560px; }
  .page-hero h1 { font-size: clamp(2.4rem, 1rem + 4vw, 5.6rem); }
  .card-grid { gap: 28px; }
  .card-body { padding: 32px; gap: 12px; }
  .card-body p, .card-body .link-arrow { font-size: 17.5px; }
  .detail { gap: 88px; }
  .site-footer { font-size: 17px; padding-top: 88px; }
  .footer-grid { gap: 64px; }
  .footer-note, .footer-bottom { font-size: 15px; }
  .chips a { font-size: 16.5px; padding: 8px 20px; }
  .fab { bottom: 28px; }
  .fab-book { inset-inline-end: 28px; min-height: 64px; font-size: 17px; padding: 0 26px 0 22px; }
  .bot { inset-inline-end: 28px; bottom: 28px; width: min(440px, calc(100vw - 24px)); height: min(740px, calc(100svh - 56px)); font-size: 17px; }
  .bot-titles h2 { font-size: 17px; }
  .chip { min-height: 44px; font-size: 16px; padding: 0 16px; }
}
@media (min-width: 1800px) {
  .shot img { min-height: 540px; }
  .service { --thumb: 208px; --thumb-h: 130px; }
}

/* ==========================================================
   v4: live panel — the number with the doctor now
   ========================================================== */
.live { background: var(--off); padding: clamp(56px, 6vw, 112px) 0; }
.live-contact { background: #fff; padding-top: 0; }
.live-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.live-copy { display: grid; gap: 16px; align-content: center; }
.live-copy .lede, .live-sub { color: var(--ink-2); max-width: 46ch; }
.live-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: live-ping 2.2s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes live-ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

.live-board {
  background: #fff; border-radius: var(--radius); padding: clamp(24px, 2.6vw, 44px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px 32px; align-items: center;
  box-shadow: 0 1px 2px rgba(22,59,86,.05), 0 24px 60px -30px rgba(22,59,86,.35);
}
.live-now { display: grid; justify-items: center; gap: 6px; text-align: center; grid-row: span 2; }
.live-label { font-size: 15px; color: var(--muted); }
.live-num {
  font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1;
  font-size: clamp(3.4rem, 2.2rem + 4vw, 6.4rem); letter-spacing: -.03em;
  width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: 0 0 0 10px var(--sky-2);
}
.live-num.is-new { animation: live-pop .7s cubic-bezier(.34,1.4,.64,1); }
@keyframes live-pop { from { transform: scale(.82); } to { transform: none; } }
.live-board[data-phase="closed"] .live-num, .live-board[data-phase="finished"] .live-num, .live-board[data-phase="empty"] .live-num { background: var(--off); color: var(--muted); box-shadow: 0 0 0 10px var(--off); }
.live-state { font-weight: 600; max-width: 22ch; font-size: 16px; line-height: 1.4; margin-top: 8px; }
.live-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.live-stats > div { background: var(--off); border-radius: var(--radius-sm); padding: 14px 18px; }
.live-stats dt { font-size: 14px; color: var(--muted); }
.live-stats dd { margin: 2px 0 0; font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.live-mine { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; align-items: center; }
.live-mine label { font-weight: 600; }
.live-mine input {
  min-height: 52px; width: 100%; max-width: 180px; border: 1px solid rgba(22,59,86,.25); border-radius: 999px; padding: 0 20px;
  font-family: var(--display); font-size: 20px; background: #fff; font-variant-numeric: tabular-nums;
}
.live-mine input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(188,227,248,.6); }
.live-mine-out { grid-column: 1 / -1; min-height: 1.5em; color: var(--ink-2); font-size: 16px; }
.live-mine-out:empty { min-height: 0; }
.live-mine-out.is-now { color: var(--ok); font-weight: 700; }
.live-mine-out.is-soon { color: #8a520a; font-weight: 600; }
.live-mine-out.is-passed { color: var(--err); }
.live-updated { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

@media (max-width: 999px) {
  .live-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .live-board { grid-template-columns: 1fr; padding: 22px 18px; gap: 18px; }
  .live-now { grid-row: auto; }
  .live-mine { grid-template-columns: 1fr; }
  .live-mine input { max-width: none; }
}
@media (min-width: 1440px) {
  .live-label, .live-state, .live-mine-out { font-size: 17.5px; }
  .live-stats dt { font-size: 15.5px; }
}
.live-mine input::-webkit-outer-spin-button, .live-mine input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.live-mine input { -moz-appearance: textfield; appearance: textfield; }
#live { scroll-margin-top: 88px; }
/* hero headline: longer sentence with the doctor's name, sized to stay on 2–3 lines */
.hero h1 { font-size: clamp(2.15rem, .9rem + 4.1vw, 5.6rem); text-wrap: balance; max-width: 16ch; }
html[lang="ar"] .hero h1 { max-width: 14ch; }
.hero-line { font-size: .86em; }
@media (min-width: 721px) { html[lang="ar"] .hero h1 { max-width: 19ch; } }
