/* ==========================================================
   Dr. Rami Nakhla — design system & components
   ========================================================== */

:root {
  /* Brand: Dr Rami Nakhla Clinics — logo charcoal + business-card blue */
  --ink: #231f20;
  --ink-2: #4b4749;
  --muted: #7d7a80;
  --charcoal: #231f20;
  --forest: #1b2a57;      /* deep navy: dark sections */
  --forest-2: #22346b;
  --forest-3: #2f4c9a;
  --brass: #3758b0;       /* brand blue: accents & primary buttons */
  --brass-2: #a9bcf2;     /* light blue: accents on dark backgrounds */
  --brass-soft: #e9eefb;
  --brass-dark: #2b4796;
  --sage: #eef2fa;
  --ivory: #f7f8fc;
  --paper: #ffffff;
  --white: #ffffff;
  --line: rgba(var(--ink-rgb), 0.1);
  --ink-rgb: 35, 31, 32;
  --forest-rgb: 27, 42, 87;
  --forest3-rgb: 47, 76, 154;
  --brass-rgb: 55, 88, 176;
  --brass2-rgb: 169, 188, 242;
  --ivory-rgb: 247, 248, 252;
  --paper-rgb: 255, 255, 255;
  --line-light: rgba(255, 255, 255, 0.12);

  /* Avenir as on the business card (built into Apple devices); Nunito Sans elsewhere */
  --f-display: "Avenir Next", "Avenir", "Nunito Sans", system-ui, sans-serif;
  --f-body: "Avenir Next", "Avenir", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Arabic: Muna for headings (as on the card), Naskh for running text */
  --f-ar: "Muna", "Noto Kufi Arabic", "Nunito Sans", system-ui, sans-serif;
  --f-ar-body: "Noto Naskh Arabic", "Muna", system-ui, sans-serif;

  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;
  --shadow-lg: 0 40px 80px -40px rgba(var(--forest-rgb), 0.45);
  --shadow: 0 20px 50px -28px rgba(var(--forest-rgb), 0.35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Never let the page shift sideways on phones (iOS Safari ignores overflow on <body> alone) */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html { overscroll-behavior-x: none; }
main, section, footer, .site-header, .topbar { max-width: 100vw; }
section { overflow-x: clip; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.7; color: var(--ink);
  background: var(--ivory); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--f-ar-body); font-size: 18px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; }
h1, h2, .serif { font-family: var(--f-display); font-optical-sizing: auto; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .serif {
  font-family: var(--f-ar); letter-spacing: 0; font-weight: 700; line-height: 1.4;
}
em { font-style: normal; }
html[lang="ar"] em { font-style: normal; }
::selection { background: var(--brass-soft); color: var(--forest); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

[data-icon] { display: inline-flex; }

/* ---------- Type helpers ---------- */
.kicker { display: block; font-size: 15px; font-weight: 700; color: var(--brass); margin-bottom: 14px; }
html[lang="ar"] .kicker { font-size: 16px; }
.h-xl { font-size: clamp(36px, 5vw, 64px); }
.h-lg { font-size: clamp(30px, 3.6vw, 46px); }
.h-md { font-size: clamp(28px, 3.2vw, 42px); }
.h-lg em, .h-xl em, .h-md em { color: var(--brass); }
.on-dark .h-lg em, .on-dark .h-xl em, .on-dark .h-md em, .cta em { color: var(--brass-2); }
.on-dark .kicker { color: var(--brass-2); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--muted); }
.on-dark { color: #fff; }
.on-dark .lede, .on-dark .muted { color: rgba(255,255,255,.7); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--forest); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s var(--ease);
  white-space: nowrap;
}
html[lang="ar"] .btn { font-family: var(--f-ar); font-size: 15.5px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(var(--forest-rgb), .55); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn-brass { --bg: var(--brass); --fg: #fff; }
.btn-brass:hover { --bg: var(--brass-dark); }
.btn-light { --bg: #fff; --fg: var(--forest); }
.btn-light:hover { --bg: var(--brass-soft); }
.btn-line { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); box-shadow: none; }
.btn-line-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.3); }
.btn-line-light:hover { border-color: #fff; box-shadow: none; }
.btn-sm { padding: 11px 20px; font-size: 14px; }

.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--forest);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px;
  transition: background-size .35s var(--ease), gap .3s var(--ease);
}
.link:hover { gap: 12px; }
.link svg { width: 16px; height: 16px; }
html[dir="rtl"] .link svg { transform: scaleX(-1); }
.on-dark .link { color: var(--brass-2); }

/* ---------- Logo (SVG masks so the colour follows the theme) ---------- */
.logo-mark, .logo-word, .logo-full, .signature {
  display: block; background: currentColor; flex-shrink: 0;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
}
.logo-mark { --src: url("../assets/brand/rn-mark.svg"); height: 42px; aspect-ratio: 2140 / 1858; }
.logo-word { --src: url("../assets/brand/rn-wordmark.svg"); height: 30px; aspect-ratio: 2906 / 570; }
.logo-full { --src: url("../assets/brand/rn-logo.svg"); height: 130px; aspect-ratio: 2906 / 2783; }
.signature { --src: url("../assets/brand/signature.png"); height: 72px; aspect-ratio: 1048 / 372; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  transition: background .35s, box-shadow .35s, height .35s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: rgba(var(--ivory-rgb), .86); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.site-header.solid::before, .site-header.scrolled::before { opacity: 1; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.header-row { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; color: var(--ink); }
.brand .logo-mark { color: var(--charcoal); }
.brand-divider { width: 1px; height: 30px; background: var(--line); }
@media (max-width: 520px) { .brand .logo-word { height: 24px; } .brand .logo-mark { height: 36px; } }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--brass); color: var(--brass); font: 800 17px var(--f-display);
}
.brand-name { display: block; font: 800 21px/1.1 var(--f-display); letter-spacing: -.01em; }
.brand-sub { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
html[lang="ar"] .brand-name { font-family: var(--f-ar); font-weight: 700; font-size: 19px; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 10px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: rgba(var(--ink-rgb), .05); }
.nav a[aria-current="page"] { color: var(--forest); font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brass); transform: translateX(-50%);
}
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  height: 42px; min-width: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; font: 600 14px var(--f-ar);
}
.lang-btn:hover { border-color: var(--ink); }
html[lang="ar"] .lang-btn { font-family: var(--f-body); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; place-items: center; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: grid; }
  .header-tools { margin-inline-start: auto; }
  .header-tools .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); padding: 16px 16px 120px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font: 800 30px/1.2 var(--f-display); padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  html[lang="ar"] .nav a { font-family: var(--f-ar); font-size: 24px; }
  .nav a:hover { background: none; }
  .nav a[aria-current="page"] { color: var(--brass); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .nav-book { display: flex !important; border-radius: 999px !important; margin-top: 28px; justify-content: center; font: 600 16px var(--f-body); border: 0; color: #fff; }
  .brand-sub { display: none; }
}
.nav .nav-book { display: none; }
body.menu-open { overflow: hidden; }

/* ---------- Top contact bar ---------- */
.topbar { background: var(--charcoal); color: rgba(255,255,255,.8); font-size: 13.5px; }
.topbar-row { display: flex; align-items: center; gap: 28px; height: 42px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.topbar-item svg { width: 15px; height: 15px; color: var(--brass-2); }
a.topbar-item:hover { color: #fff; }
.topbar-social { margin-inline-start: auto; display: flex; gap: 6px; }
.topbar-social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: rgba(255,255,255,.8); }
.topbar-social a:hover { background: rgba(255,255,255,.1); color: #fff; }
.topbar-social svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .topbar { display: none; } }

/* ---------- Home hero ---------- */
.hero2 { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero2-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: min(700px, calc(100vh - var(--header-h) - 42px)); }
.hero2-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 64px; padding-inline: max(32px, calc((100vw - var(--max)) / 2 + 32px)) 56px;
}
.hero2-tag { color: var(--brass); font-weight: 700; font-size: 16px; margin-bottom: 18px; }
.hero2-tag em { color: inherit; }
.hero2-name { font: 800 clamp(40px, 4.4vw, 62px)/1.05 var(--f-display); letter-spacing: -.02em; }
html[lang="ar"] .hero2-name { font-family: var(--f-ar); letter-spacing: 0; line-height: 1.3; }
.hero2-role { margin-top: 14px; font-size: clamp(19px, 1.8vw, 23px); font-weight: 600; color: var(--ink-2); }
html[lang="ar"] .hero2-role { font-family: var(--f-ar); font-weight: 600; }
.hero2-creds { margin-top: 8px; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; color: var(--brass); }
.hero2 .lede { margin: 24px 0 32px; max-width: 54ch; font-size: 17.5px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero2-actions { margin-top: 36px; max-width: 560px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); overflow: hidden; box-shadow: 0 10px 30px -22px rgba(var(--forest-rgb), .35); }
.act { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--ink); text-decoration: none; transition: background .2s; }
.act + .act { border-top: 1px solid var(--line); }
.act:hover, .act:focus-visible { background: var(--ivory); }
.act-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brass-soft); color: var(--brass); }
.act-ic svg { width: 19px; height: 19px; }
.act-call .act-ic { background: var(--brass); color: #fff; }
.act-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.act-txt b { font-size: 15px; font-weight: 700; line-height: 1.3; }
.act-txt small { font-size: 13px; color: var(--muted); line-height: 1.4; }
html[dir="rtl"] .act-txt small[dir="ltr"] { text-align: right; }
.act-go { color: var(--muted); display: inline-flex; transition: transform .25s var(--ease), color .2s; }
.act-go svg { width: 18px; height: 18px; }
html[dir="rtl"] .act-go svg { transform: scaleX(-1); }
.act:hover .act-go { color: var(--brass); transform: translateX(3px); }
html[dir="rtl"] .act:hover .act-go { transform: translateX(-3px); }
.hero2-photo { position: relative; overflow: hidden; background: var(--sage); min-height: 420px; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 6.5s ease-out;
}
.hero-slides img.is-active { opacity: 1; transform: scale(1); }
.hero2-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(var(--forest-rgb), .35)); pointer-events: none; }
.hero-dots { display: none !important; position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.hero-dots button[aria-selected="true"] { width: 24px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-slides img { transition: opacity .3s; transform: none !important; } }
.hero2-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  color: var(--charcoal); background: linear-gradient(180deg, var(--ivory), var(--sage));
}
.hero2-ph .logo-full { height: min(240px, 40%); }
.hero2-ph .signature { height: 58px; opacity: .75; }
@media (max-width: 980px) {
  .hero2-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero2-copy { padding: 40px 32px 48px; }
  .hero2-photo { min-height: 380px; }
}
@media (max-width: 640px) { .hero2-copy { padding: 32px 16px 40px; } .hero2-photo { min-height: 320px; } }

/* ---------- Credentials marquee ---------- */
.marquee { background: var(--forest); color: rgba(255,255,255,.85); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; font: 500 20px var(--f-display); white-space: nowrap; }
html[lang="ar"] .marquee-track span { font-family: var(--f-ar); font-size: 19px; }
.marquee-track span::after { content: "✦"; color: var(--brass-2); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: 128px 0; }
.section-sm { padding: 88px 0; }
@media (max-width: 760px) { .section { padding: 88px 0; } .section-sm { padding: 64px 0; } }
.bg-paper { background: var(--paper); }
.bg-forest { background: var(--forest); }
.bg-sage { background: var(--sage); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 64px; flex-wrap: wrap; }
.head > div { max-width: 680px; }
.head .lede { margin-top: 20px; }

/* ---------- Intro / about split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split-body p + p { margin-top: 20px; }
.split-body p { color: var(--ink-2); font-size: 18px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.quote {
  font: 400 clamp(26px, 3vw, 38px)/1.3 var(--f-display); color: var(--forest); letter-spacing: -.01em;
  padding-inline-start: 28px; border-inline-start: 2px solid var(--brass);
}
.quote em { color: var(--brass); }
html[lang="ar"] .quote { font-family: var(--f-ar); font-weight: 500; line-height: 1.6; }

/* ---------- Home About: text + two overlapping photos ---------- */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.duo-text > p { color: var(--ink-2); font-size: 17.5px; margin-top: 20px; }
.highlights { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.highlights li { display: flex; gap: 14px; align-items: flex-start; }
.hl-ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brass-soft); color: var(--brass); }
.hl-ic svg { width: 18px; height: 18px; }
.highlights b { display: block; font-size: 16.5px; font-weight: 800; }
.highlights small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.duo-foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 32px; }
.duo-foot .signature { height: 60px; }

.duo { position: relative; aspect-ratio: 1 / 1.02; }
.duo figure { position: absolute; margin: 0; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow-lg); background: var(--sage); }
.duo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.duo-a { top: 0; inset-inline-start: 18%; width: 82%; height: 74%; }
.duo-b { bottom: 0; inset-inline-start: 0; width: 56%; height: 46%; border: 6px solid var(--paper); }
.duo-badge {
  position: absolute; top: 58%; inset-inline-start: 0; z-index: 2; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--brass); color: #fff; box-shadow: var(--shadow);
}
.duo-badge strong { font: 800 30px/1 var(--f-display); }
.duo-badge span { font-size: 13px; line-height: 1.3; max-width: 9ch; opacity: .9; }

/* Scroll-in animation: big photo slides in from the side, small one rises up after it */
.duo .duo-a { opacity: 0; transform: translateX(60px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
html[dir="rtl"] .duo .duo-a { transform: translateX(-60px); }
.duo .duo-b { opacity: 0; transform: translateY(70px); transition: opacity 1s var(--ease) .3s, transform 1.2s var(--ease) .3s; }
.duo .duo-badge { opacity: 0; transform: translateY(-50%) scale(.85); transition: opacity .7s var(--ease) .7s, transform .7s var(--ease) .7s; }
.duo.in .duo-a, html[dir="rtl"] .duo.in .duo-a, .duo.in .duo-b { opacity: 1; transform: none; }
.duo.in .duo-badge { opacity: 1; transform: translateY(-50%); }
.duo.in img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .duo figure, .duo .duo-badge, .duo img { transition: none !important; opacity: 1 !important; transform: none !important; } .duo .duo-badge { transform: translateY(-50%) !important; } }
@media (max-width: 900px) { .duo-grid { grid-template-columns: 1fr; gap: 48px; } .duo { max-width: 520px; width: 100%; margin-inline: auto; } }
@media (max-width: 640px) {
  .duo-text > p { font-size: 15.5px; margin-top: 12px; }
  .highlights { gap: 12px; margin-top: 18px; }
  .hl-ic { width: 32px; height: 32px; } .hl-ic svg { width: 15px; height: 15px; }
  .highlights b { font-size: 14.5px; } .highlights small { font-size: 12.5px; }
  .duo-foot { margin-top: 22px; gap: 18px; } .duo-foot .signature { height: 46px; }
  .duo-grid { gap: 32px; }
  .duo figure { border-radius: 18px; } .duo-b { border-width: 4px; }
  .duo-badge { padding: 9px 12px; } .duo-badge strong { font-size: 22px; } .duo-badge span { font-size: 11.5px; }
}

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile {
  position: relative; grid-column: span 4; padding: 36px; border-radius: var(--r-lg); background: var(--paper);
  border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 280px; overflow: hidden;
  text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
a.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.tile.wide { grid-column: span 8; }
.tile.dark { background: var(--forest); color: #fff; border-color: transparent; }
.tile.dark p { color: rgba(255,255,255,.7); }
.tile.brass { background: var(--brass-soft); border-color: transparent; }
.tile .num { font: 400 15px var(--f-display); color: var(--brass); margin-bottom: auto; }
.tile .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--sage); color: var(--forest); margin-bottom: 28px; }
.tile.dark .ic { background: rgba(255,255,255,.08); color: var(--brass-2); }
.tile .ic svg { width: 26px; height: 26px; }
.tile h3 { font: 800 26px/1.15 var(--f-display); margin: 32px 0 12px; }
html[lang="ar"] .tile h3 { font-family: var(--f-ar); font-weight: 700; font-size: 22px; }
.tile p { color: var(--ink-2); font-size: 15.5px; }
.tile .go {
  position: absolute; top: 28px; inset-inline-end: 28px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s, transform .45s var(--ease);
}
.tile.dark .go { border-color: var(--line-light); }
.tile .go svg { width: 18px; height: 18px; }
html[dir="rtl"] .tile .go svg { transform: scaleX(-1); }
a.tile:hover .go { background: var(--brass); color: #fff; border-color: var(--brass); transform: rotate(-45deg); }
html[dir="rtl"] a.tile:hover .go { transform: rotate(45deg); }
@media (max-width: 980px) { .tile, .tile.wide { grid-column: span 6; } }
@media (max-width: 640px) { .tile, .tile.wide { grid-column: span 12; min-height: 0; padding: 28px; } }

/* ---------- Media cards ---------- */
.reel-row { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  --pad: max(32px, calc((100vw - var(--max)) / 2 + 32px)); padding: 4px var(--pad) 8px; scroll-padding-inline: var(--pad); }
.reel-row::-webkit-scrollbar { display: none; }
.reel-row .reel { flex: 0 0 290px; scroll-snap-align: start; }
@media (max-width: 640px) { .reel-row { --pad: 16px; } .reel-row .reel { flex-basis: 78vw; } }
.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.reel { position: relative; border-radius: var(--r); overflow: hidden; background: var(--forest-2); min-height: 500px; display: flex; flex-direction: column; }
.reel .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; border-radius: 0 !important; border: 0 !important; }
.reel-cover {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; color: #fff; text-decoration: none;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(var(--brass2-rgb), .30), transparent 60%),
    linear-gradient(175deg, var(--forest-3), var(--forest) 80%);
}
.reel-cover { position: relative; overflow: hidden; }
.reel-cover > * { position: relative; z-index: 1; }
.reel-cover .reel-thumb { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.reel-cover:has(.reel-thumb)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--forest-rgb), .55), rgba(var(--forest-rgb), 0) 35%, rgba(var(--forest-rgb), 0) 55%, rgba(var(--forest-rgb), .85)); }
.reel-cover:hover .reel-thumb { transform: scale(1.04); }
.reel-cover .play { z-index: 2; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(255,255,255,.12); }
.reel-cover .n, .reel-cover .cap { z-index: 2; }
.reel-cover .n { font: 300 40px/1 var(--f-display); color: var(--brass-2); }
.reel-top { display: flex; justify-content: space-between; align-items: flex-start; }
.reel-top .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75); padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.reel-top .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e07a5f; box-shadow: 0 0 0 3px rgba(224,122,95,.25); }
html[lang="ar"] .reel-top .tag { letter-spacing: 0; font-size: 13px; }
.reel-cover .mono { position: absolute; z-index: 0; left: 50%; top: 40%; transform: translate(-50%, -50%); height: 150px; color: rgba(var(--brass2-rgb), .12); pointer-events: none; }
.reel-cover .wave { display: flex; align-items: center; gap: 3px; height: 34px; margin-bottom: 18px; opacity: .55; }
.reel-cover .wave i { flex: 1; border-radius: 2px; background: var(--brass-2); transition: transform .4s var(--ease); transform-origin: center; }
.reel-cover:hover .wave i { transform: scaleY(1.25); }
.reel-cover:has(.reel-thumb) .mono, .reel-cover:has(.reel-thumb) .wave { display: none; }
.reel-cover:has(.reel-thumb) .reel-top .tag { background: rgba(var(--forest-rgb), .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.reel-cover .play {
  width: 76px; height: 76px; border-radius: 50%; align-self: center; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35); transition: transform .45s var(--ease), background .3s;
}
.reel-cover .play svg { width: 26px; height: 26px; margin-inline-start: 4px; }
.reel-cover:hover .play { transform: scale(1.1); background: var(--brass); border-color: var(--brass); }
.reel-cover .cap b { display: block; font-weight: 600; }
.reel-cover .cap small { color: rgba(255,255,255,.6); font-size: 13px; }
.round { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: transparent; border: 1px solid var(--line-light); color: #fff; transition: background .25s, color .25s; }
.round:hover { background: #fff; color: var(--forest); }
.round svg { width: 20px; height: 20px; }
html[dir="rtl"] .round svg { transform: scaleX(-1); }
.ctrls { display: flex; gap: 10px; }

/* Video player (opens over the page) */
.player { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(var(--forest-rgb), .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.player-box { position: relative; width: min(420px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: var(--r); background: #fff; }
.player-frame { min-height: 560px; position: relative; }
.player.has-video .player-box { width: min(400px, 100%); background: #000; }
.player.has-video .player-frame { min-height: 0; }
.player-frame video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: calc(100vh - 110px); background: #000; object-fit: contain; }
.player.has-video .player-link { background: var(--paper); }
.player-frame .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; border: 0 !important; border-radius: 0 !important; }
.player-loading { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px; border-radius: 50%; border: 3px solid var(--sage); border-top-color: var(--brass); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(var(--forest-rgb), .85); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.player-link { display: block; padding: 14px; text-align: center; font-weight: 600; font-size: 14px; color: var(--forest); text-decoration: none; border-top: 1px solid var(--line); }

/* ---------- Clinic cards ---------- */
.clinics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.clinic { position: relative; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
/* The whole card body is clickable: the card's link stretches over it */
.clinic:has(.clinic-body .link):hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.clinic-body .link::after { content: ""; position: absolute; inset: 0; }
.clinic:hover .clinic-body .link { gap: 12px; }
.clinic-map { aspect-ratio: 16/10; background: var(--sage); position: relative; }
.clinic-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); }
.clinic-body { position: relative; padding: 30px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.clinic-body h3 { font: 800 26px/1.2 var(--f-display); }
.clinic:has(.pill) .clinic-body h3 { padding-inline-end: 64px; }
html[lang="ar"] .clinic-body h3 { font-family: var(--f-ar); font-weight: 700; font-size: 22px; }
.clinic-body .link { margin-top: auto; align-self: flex-start; }
.clinic-body .muted { margin-bottom: 20px; }
.clinic.online { background: var(--forest); color: #fff; border-color: transparent; }
.clinic.online .muted { color: rgba(255,255,255,.65); }
.clinic.online .link { color: var(--brass-2); }
.clinic .pill { position: absolute; top: 22px; inset-inline-end: 22px; z-index: 1; }
.pill { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--brass); color: #fff; }
html[lang="ar"] .pill { letter-spacing: 0; font-size: 12.5px; }
.online-art { aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--brass-2); }
.online-art svg { width: 120px; height: 120px; opacity: .9; }
@media (max-width: 980px) { .clinics { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative; border-radius: 36px; overflow: hidden; background: var(--brass); color: #fff;
  padding: 88px 72px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: end;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(45% 80% at 100% 0%, rgba(255,255,255,.16), transparent 70%),
    radial-gradient(45% 70% at 0% 100%, rgba(var(--forest-rgb), .55), transparent 70%);
}
.cta > * { position: relative; }
.cta .kicker { color: rgba(255,255,255,.8); }
.cta .btn-brass { --bg: #fff; --fg: var(--brass); }
.cta .btn-brass:hover { --bg: var(--brass-soft); }
.cta .lede { color: rgba(255,255,255,.72); margin-top: 20px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; padding: 56px 28px; border-radius: 28px; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding: 72px 0 88px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::after {
  content: attr(data-mark); position: absolute; inset-inline-end: -2vw; bottom: -6vw; font: 300 28vw/1 var(--f-display);
  color: rgba(var(--brass-rgb), .08); pointer-events: none; letter-spacing: -.04em;
}
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-hero .lede { margin-top: 28px; }
.page-hero.has-photo { padding: 48px 0 56px; }
.ph-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.ph-photo { margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); background: var(--sage); }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
@media (max-width: 900px) { .ph-grid { grid-template-columns: 1fr; gap: 28px; } .ph-photo { order: -1; aspect-ratio: 16 / 11; } }

/* Photo strip that rises in one by one */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sage); opacity: 0; transform: translateY(50px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.gallery figure:nth-child(even) { margin-top: 40px; }
.gallery figure:nth-child(2) { transition-delay: .12s; } .gallery figure:nth-child(3) { transition-delay: .24s; } .gallery figure:nth-child(4) { transition-delay: .36s; }
.gallery.in figure { opacity: 1; transform: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .gallery figure { opacity: 1; transform: none; transition: none; } }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } .gallery figure { border-radius: 16px; } .gallery figure:nth-child(even) { margin-top: 24px; } }

/* ---------- About page ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cred { padding: 32px 28px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.cred .k { font: 400 34px/1 var(--f-display); color: var(--forest); margin-bottom: 14px; display: block; }
.cred p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .cred-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cred-grid { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .t-n { font: 300 44px/1 var(--f-display); color: var(--brass); }
.timeline h3 { font: 800 26px/1.2 var(--f-display); margin-bottom: 8px; }
html[lang="ar"] .timeline h3 { font-family: var(--f-ar); font-weight: 700; font-size: 22px; }
.timeline p { color: var(--ink-2); }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 12px; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.value h3 { font-size: 20px; font-weight: 700; letter-spacing: 0; margin: 20px 0 10px; }
.value p { color: rgba(255,255,255,.7); font-size: 15.5px; }
.value .ic { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(var(--brass2-rgb), .5); color: var(--brass-2); display: grid; place-items: center; }
.value .ic svg { width: 24px; height: 24px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Services page ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 80px 1fr 1.1fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc .n { font: 300 40px/1 var(--f-display); color: var(--brass); }
.svc h3 { font: 800 32px/1.15 var(--f-display); }
html[lang="ar"] .svc h3 { font-family: var(--f-ar); font-weight: 700; font-size: 26px; }
.svc p { color: var(--ink-2); }
.svc ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li { font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--sage); color: var(--forest); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; } }

.symptoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.symptom { display: flex; gap: 14px; align-items: center; padding: 20px 22px; border-radius: var(--r-sm); background: rgba(255,255,255,.06); border: 1px solid var(--line-light); color: #fff; font-weight: 500; }
.symptom::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass-2); flex-shrink: 0; }
.symptom.urgent::before { background: #e07a5f; box-shadow: 0 0 0 4px rgba(224,122,95,.2); }
@media (max-width: 860px) { .symptoms { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: start; }
.faq-layout .sticky { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 40px; } .faq-layout .sticky { position: static; } }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; gap: 24px; justify-content: space-between; align-items: center; padding: 28px 0; font-size: 19px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .pm { position: relative; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.faq-item .pm::before, .faq-item .pm::after { content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 1.5px; background: var(--ink); transform: translate(-50%,-50%); transition: transform .3s var(--ease), background .3s; }
.faq-item .pm::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item[open] .pm { background: var(--forest); border-color: var(--forest); }
.faq-item[open] .pm::before, .faq-item[open] .pm::after { background: #fff; }
.faq-item[open] .pm::after { transform: translate(-50%,-50%) rotate(0); }
.faq-item .ans { padding: 0 0 28px; color: var(--ink-2); max-width: 64ch; }
.faq-item .ans ol, .faq-item .ans ul { margin: 12px 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.faq-item .ans ol li::marker { color: var(--brass); font-weight: 700; }
.faq-item .ans ul.flags { list-style: none; padding: 0; }
.faq-item .ans ul.flags li { position: relative; padding-inline-start: 22px; }
.faq-item .ans ul.flags li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: #d9534f; box-shadow: 0 0 0 3px rgba(217,83,79,.18); }

.notice { margin-top: 32px; padding: 28px 32px; border-radius: var(--r); background: var(--brass-soft); }
.notice h3 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a6b3c; margin-bottom: 10px; }
.notice p { font-size: 15px; color: var(--ink-2); }
.notice p + p { margin-top: 10px; font-family: var(--f-ar); }
.notice .disc-ar { display: none; }

/* ---------- Booking page ---------- */
.book-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .book-grid { grid-template-columns: 1fr; } }
#book-form { scroll-margin-top: calc(var(--header-h) + 40px); }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 48px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .form-card { padding: 28px 20px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 16px var(--f-body); color: var(--ink); padding: 15px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--white); transition: border-color .2s, box-shadow .2s; appearance: none;
}
html[lang="ar"] .field input, html[lang="ar"] .field select, html[lang="ar"] .field textarea { font-family: var(--f-ar); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2374878a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; padding-inline-end: 44px; }
html[dir="rtl"] .field select { background-position: left 14px center; }
.field textarea { min-height: 120px; resize: vertical; }
.field select:disabled { background-color: var(--ivory); color: var(--ink-2); cursor: not-allowed; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(var(--brass-rgb), .15); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { position: relative; }
.seg input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 0; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; color: var(--ink); transition: border-color .2s, background .2s; }
.seg label::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex-shrink: 0; transition: border .2s; }
.seg input:checked + label { border-color: var(--forest); background: var(--sage); }
.seg input:checked + label::before { border: 5px solid var(--forest); }
.seg input:focus-visible + label { outline: 2px solid var(--brass); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); max-width: 40ch; line-height: 1.5; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--sage); color: var(--forest); font-weight: 600; font-size: 15px; }

.side-card { border-radius: var(--r-lg); padding: 36px; background: var(--forest); color: #fff; }
.side-card + .side-card { margin-top: 16px; }
.side-card.light { background: var(--brass-soft); color: var(--ink); }
.side-card h3 { font: 800 26px/1.2 var(--f-display); margin-bottom: 20px; }
html[lang="ar"] .side-card h3 { font-family: var(--f-ar); font-weight: 700; font-size: 22px; }
.chan { display: flex; align-items: center; gap: 14px; padding: 16px 0; text-decoration: none; border-top: 1px solid var(--line-light); }
.chan:first-of-type { border-top: 0; }
.chan .ic { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--brass-2); flex-shrink: 0; }
.chan .ic svg { width: 19px; height: 19px; }
.chan b { display: block; font-weight: 600; }
.chan small { color: rgba(255,255,255,.6); font-size: 13px; }
.chan:hover b { color: var(--brass-2); }
.side-card.light ol { margin: 0; padding-inline-start: 20px; color: var(--ink-2); font-size: 15.5px; }
.side-card.light li + li { margin-top: 10px; }

/* ---------- Quick-contact rail ---------- */
/* A slim tab attached to the left screen edge (both languages): "Contact us" + call / WhatsApp. */
.rail {
  position: fixed; z-index: 58; left: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; width: 48px; overflow: visible;
  border-radius: 0 14px 14px 0; box-shadow: 0 14px 34px -14px rgba(var(--forest-rgb), .55);
}
.rail-btn {
  position: relative; width: 48px; height: 48px; display: grid; place-items: center;
  color: #fff; background: var(--brass); border: 0; cursor: pointer; text-decoration: none; transition: background .2s;
}
.rail-btn + .rail-btn { border-top: 1px solid rgba(255,255,255,.18); }
.rail-btn:last-child { border-radius: 0 0 14px 0; }
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn:hover, .rail-btn:focus-visible { background: var(--brass-dark); }
.rail-sep { display: none; }
.rail-contact {
  height: auto; padding: 16px 0 14px; gap: 10px; display: flex; flex-direction: column; align-items: center;
  background: var(--forest); border-radius: 0 14px 0 0;
}
.rail-contact:hover, .rail-contact[aria-expanded="true"] { background: var(--forest-2); }
.rail-contact svg { width: 18px; height: 18px; color: var(--brass-2); }
.rail-contact .rail-label {
  position: static; transform: rotate(180deg); writing-mode: vertical-rl; opacity: 1; padding: 0; background: none; box-shadow: none;
  font: 600 13px/1 var(--f-body); letter-spacing: .02em; color: #fff;
}
html[lang="ar"] .rail-contact .rail-label { transform: none; font-family: var(--f-ar); font-size: 14px; }
.rail-contact .rail-label::before { display: none; }
/* Tooltips for the icon buttons (desktop hover) */
.rail-label {
  position: absolute; left: calc(100% + 12px); top: 50%; transform: translate(-6px, -50%);
  padding: 7px 14px; border-radius: 999px; background: var(--forest); color: #fff;
  font: 600 13.5px/1.2 var(--f-body); white-space: nowrap; pointer-events: none;
  box-shadow: 0 10px 24px -12px rgba(var(--forest-rgb), .6); opacity: 0; transition: opacity .2s, transform .25s var(--ease);
}
html[lang="ar"] .rail-label { font-family: var(--f-ar); }
.rail-label::before { content: ""; position: absolute; right: 100%; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-right-color: var(--forest); }
.rail-btn:not(.rail-contact):hover .rail-label, .rail-btn:not(.rail-contact):focus-visible .rail-label { opacity: 1; transform: translate(0, -50%); }

.qc {
  position: fixed; z-index: 59; left: 64px; top: 50%; transform: translateY(-50%); width: min(360px, calc(100vw - 100px));
  background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 40px 80px -30px rgba(var(--forest-rgb), .5), 0 0 0 1px var(--line);
  padding: 28px; animation: qc-in .35s var(--ease);
}
@keyframes qc-in { from { opacity: 0; transform: translate(-12px, -50%); } }
.qc-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.qc-title { font: 800 24px/1.2 var(--f-display); }
html[lang="ar"] .qc-title { font-family: var(--f-ar); font-weight: 700; font-size: 21px; }
.qc-sub { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.qc-close { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.qc-close:hover { background: var(--ivory); }
.qc-form { display: grid; gap: 14px; }
.qc-form .field input, .qc-form .field textarea { padding: 12px 14px; }
.qc-form .field textarea { min-height: 84px; }
.qc-form .btn { width: 100%; margin-top: 4px; }
.qc-form .form-status { margin-top: 0; }
.qc-direct { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.qc-direct a { flex: 1; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 999px; background: var(--sage); color: var(--forest); text-decoration: none; font-weight: 600; font-size: 14px; }
.qc-direct svg { width: 17px; height: 17px; }

/* Small screens: the quick-message panel becomes a bottom sheet */
@media (max-width: 1100px) {
  .rail-label:not(.rail-contact .rail-label) { display: none; }
  .qc { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; transform: none; max-height: calc(100vh - 40px); overflow-y: auto; }
  @keyframes qc-in { from { opacity: 0; transform: translateY(12px); } }
}
@media (min-width: 1101px) {
  /* keep page content clear of the rail on narrower desktops */
  body.has-rail .wrap { padding-left: max(32px, 72px - (100vw - var(--max)) / 2); }
}
body.menu-open .rail, body.menu-open .qc { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: rgba(255,255,255,.72); padding: 104px 0 32px; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer .brand { color: #fff; }
.footer .brand .logo-full { color: #fff; height: 120px; }
.footer .brand-sub { color: rgba(255,255,255,.45); display: block; }
.footer-motto { font: 800 28px/1.25 var(--f-display); color: #fff; margin-top: 32px; max-width: 14ch; }
.footer-motto em { color: var(--brass-2); }
html[lang="ar"] .footer-motto { font-family: var(--f-ar); font-style: normal; font-size: 24px; line-height: 1.6; }
.footer h4 { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 20px; }
html[lang="ar"] .footer h4 { letter-spacing: 0; font-size: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.socials a:hover { background: var(--brass); border-color: var(--brass); }
.socials svg { width: 18px; height: 18px; }
.footer-word { font: 900 clamp(64px, 13vw, 190px)/0.9 var(--f-display); color: rgba(255,255,255,.05); margin: 80px 0 0; letter-spacing: -.04em; white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; margin-top: 8px; border-top: 1px solid var(--line-light); font-size: 14px; color: rgba(255,255,255,.5); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- Colour themes (html[data-theme]) ---------- */
/* Forest: dark green with brass (the earlier palette) */
html[data-theme="forest"] {
  --ink: #102326; --ink-2: #3c5256; --muted: #74878a; --charcoal: #0e2b2e;
  --forest: #0e2b2e; --forest-2: #163b3f; --forest-3: #24555a;
  --brass: #b08d57; --brass-2: #c9a978; --brass-soft: #f1e8d9; --brass-dark: #9e7c48;
  --sage: #e3ebe7; --ivory: #f7f4ee; --paper: #fffdf9;
  --ink-rgb: 16, 35, 38; --forest-rgb: 14, 43, 46; --forest3-rgb: 36, 85, 90;
  --brass-rgb: 176, 141, 87; --brass2-rgb: 201, 169, 120; --ivory-rgb: 247, 244, 238; --paper-rgb: 255, 253, 249;
}
/* Clinical: hospital blue with medical green */
html[data-theme="clinical"] {
  --ink: #0f2537; --ink-2: #3d5468; --muted: #6f8496;
  --forest: #0b3a5f; --forest-2: #0f4c78; --forest-3: #1a6aa3;
  --brass: #12a383; --brass-2: #4fd1b0; --brass-soft: #e2f5ef; --brass-dark: #0d8a6e;
  --sage: #e5f0f9; --ivory: #f3f7fb; --paper: #ffffff;
  --ink-rgb: 15, 37, 55; --forest-rgb: 11, 58, 95; --forest3-rgb: 26, 106, 163;
  --brass-rgb: 18, 163, 131; --brass2-rgb: 79, 209, 176; --ivory-rgb: 243, 247, 251; --paper-rgb: 255, 255, 255;
}
/* Royal: deep navy with gold */
html[data-theme="royal"] {
  --ink: #141c2b; --ink-2: #414c60; --muted: #7a8397;
  --forest: #13233f; --forest-2: #1c3157; --forest-3: #2c4a7c;
  --brass: #c29b50; --brass-2: #dcbc7c; --brass-soft: #f4ecdc; --brass-dark: #a8833c;
  --sage: #e8ecf3; --ivory: #f6f5f1; --paper: #fffefb;
  --ink-rgb: 20, 28, 43; --forest-rgb: 19, 35, 63; --forest3-rgb: 44, 74, 124;
  --brass-rgb: 194, 155, 80; --brass2-rgb: 220, 188, 124; --ivory-rgb: 246, 245, 241; --paper-rgb: 255, 254, 251;
}
/* Sage: calm green with warm terracotta */
html[data-theme="sage"] {
  --ink: #17261f; --ink-2: #44564d; --muted: #7b8a82;
  --forest: #1f4d3f; --forest-2: #2a6150; --forest-3: #3d7d68;
  --brass: #c17f59; --brass-2: #e0a989; --brass-soft: #f7ebe2; --brass-dark: #a96a46;
  --sage: #e5efe8; --ivory: #f5f7f3; --paper: #ffffff;
  --ink-rgb: 23, 38, 31; --forest-rgb: 31, 77, 63; --forest3-rgb: 61, 125, 104;
  --brass-rgb: 193, 127, 89; --brass2-rgb: 224, 169, 137; --ivory-rgb: 245, 247, 243; --paper-rgb: 255, 255, 255;
}

/* Theme picker (preview tool — turn off with CONFIG.themePicker) */
.tp { position: fixed; z-index: 57; right: 16px; bottom: 16px; }
.tp-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 14px var(--f-body); box-shadow: var(--shadow);
}
html[lang="ar"] .tp-btn { font-family: var(--f-ar); }
.tp-btn .dots { display: flex; }
.tp-btn .dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--paper); margin-inline-start: -5px; }
.tp-btn .dots i:first-child { margin-inline-start: 0; }
.tp-panel {
  position: absolute; right: 0; bottom: 56px; width: 260px; padding: 12px; border-radius: var(--r); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 6px;
}
.tp-panel p { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 4px 8px; }
html[lang="ar"] .tp-panel p { letter-spacing: 0; font-size: 13px; }
.tp-opt { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-sm); border: 1px solid transparent; background: none; cursor: pointer; text-align: start; color: var(--ink); font: 600 14.5px var(--f-body); }
html[lang="ar"] .tp-opt { font-family: var(--f-ar); }
.tp-opt:hover { background: var(--ivory); }
.tp-opt[aria-pressed="true"] { border-color: var(--brass); background: var(--ivory); }
.tp-opt small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.tp-sw { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
@media (max-width: 1100px) { .tp { bottom: 84px; right: 12px; } .tp-btn span { display: none; } .tp-btn { padding: 0 12px; } }
body.menu-open .tp { display: none; }

/* ==========================================================
   Phones: compact sizing and smarter layouts
   ========================================================== */
@media (max-width: 980px) {
  /* Photo first, text on an overlapping sheet */
  .hero2-photo { order: -1; min-height: 0; height: auto; aspect-ratio: 4 / 3; margin: 0; border-radius: 0; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 15.5px; line-height: 1.6; }
  html[lang="ar"] body { font-size: 16.5px; }
  .brand .logo-mark { height: 32px; }
  .brand .logo-word { height: 21px; }
  .brand-divider { height: 24px; }
  .header-tools { gap: 2px; }
  .lang-btn { height: 40px; min-width: 40px; padding: 0 8px; border: 0; font-size: 15px; color: var(--brass); }
  .burger { width: 40px; height: 40px; border: 0; border-radius: 10px; }
  .burger span, .burger span::before, .burger span::after { width: 22px; height: 2px; background: var(--charcoal); }
  .burger span::before { top: -7px; } .burger span::after { top: 7px; }
  .burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .head { margin-bottom: 28px; gap: 16px; }
  .head .btn { display: none; }
  .h-xl { font-size: 32px; }
  .h-lg { font-size: 26px; }
  .h-md { font-size: 22px; }
  .kicker { font-size: 13px; margin-bottom: 8px; }
  .lede { font-size: 15.5px; }
  .head .lede, .page-hero .lede { margin-top: 12px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .split { gap: 16px; }
  .split-body p { font-size: 15.5px; }
  .split-body p + p { margin-top: 12px; }

  /* Hero */
  .hero2-photo { height: auto; aspect-ratio: 1 / 1; margin: 0; border-radius: 0; }
  .hero2-ph { gap: 12px; }
  .hero2-ph .logo-full { height: 52%; }
  .hero2-ph .signature { height: 32px; }
  .hero2-copy { padding: 28px 16px 28px; }
  .hero2-tag { font-size: 13px; margin-bottom: 8px; }
  .hero2-name { font-size: 32px; }
  .hero2-role { font-size: 16px; margin-top: 6px; }
  .hero2-creds { font-size: 11.5px; letter-spacing: .05em; margin-top: 8px; }
  .hero2 .lede { margin: 14px 0 20px; font-size: 15px; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-cta .btn { white-space: normal; text-align: center; line-height: 1.25; padding: 12px 10px; font-size: 13.5px; }
  .hero-cta .btn svg { display: none; }
  .hero2-actions { margin-top: 22px; border-radius: 16px; }
  .act { padding: 12px 14px; gap: 12px; }
  .act-ic { width: 36px; height: 36px; }
  .act-ic svg { width: 17px; height: 17px; }
  .act-txt b { font-size: 14.5px; }
  .act-txt small { font-size: 12.5px; }

  .marquee { padding: 12px 0; }
  .marquee-track span { font-size: 15px; gap: 18px; padding-inline-end: 18px; }

  /* Services: 2-up tiles */
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile, .tile.wide { grid-column: span 1; min-height: 0; padding: 16px; border-radius: 18px; }
  .tile.wide { grid-column: span 2; }
  .tile .ic { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 0; }
  .tile .ic svg { width: 20px; height: 20px; }
  .tile h3 { font-size: 15px; margin: 12px 0 4px; line-height: 1.25; }
  html[lang="ar"] .tile h3 { font-size: 15px; }
  .tile p { font-size: 12.5px; line-height: 1.45; }
  .tile .go { display: none; }

  /* Podcasts */
  .reel-row { gap: 12px; }
  .reel-row .reel { flex-basis: 64vw; }
  .reel { min-height: 380px; border-radius: 18px; }
  .reel-cover { padding: 18px; }
  .reel-cover .n { font-size: 30px; }
  .reel-cover .play { width: 58px; height: 58px; }
  .reel-cover .mono { height: 110px; }
  .round { width: 44px; height: 44px; }
  .reel-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .reel-grid .reel { min-height: 300px; }
  .reel-grid .reel-cover { padding: 14px; }
  .reel-grid .reel-cover .reel-top .tag { display: none; }
  .reel-grid .reel-cover .play { width: 48px; height: 48px; }
  .reel-grid .reel-cover .wave { display: none; }

  /* Clinics: swipeable cards */
  .clinics { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .clinics::-webkit-scrollbar { display: none; }
  .clinic { flex: 0 0 82%; scroll-snap-align: center; border-radius: 20px; }
  .clinic-body { padding: 20px; gap: 6px; }
  .clinic-body h3 { font-size: 19px; }
  html[lang="ar"] .clinic-body h3 { font-size: 18px; }
  .clinic-body .muted { margin-bottom: 10px; font-size: 14px; }
  .online-art { min-height: 120px; }
  .online-art svg { width: 84px; height: 84px; }

  /* FAQ */
  .faq-layout { gap: 20px; }
  .faq-item summary { font-size: 15.5px; padding: 16px 0; gap: 14px; }
  .faq-item .pm { width: 32px; height: 32px; }
  .faq-item .ans { font-size: 14.5px; padding-bottom: 18px; }
  .notice { padding: 18px; }

  /* CTA */
  .cta { padding: 32px 20px; border-radius: 22px; gap: 20px; }
  .cta .lede { margin-top: 10px; }
  .cta-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cta-actions .btn { white-space: normal; text-align: center; padding: 12px 10px; }
  .cta-actions .btn svg { display: none; }
  .cta-actions .btn:only-child { grid-column: span 2; white-space: nowrap; }

  /* Inner page headers */
  .page-hero { padding: 28px 0 32px; }
  .page-hero::after { font-size: 46vw; bottom: -10vw; }
  .crumbs { margin-bottom: 16px; font-size: 13px; }

  /* About */
  .quote { font-size: 21px; padding-inline-start: 16px; }
  .signature { height: 54px; }
  .cred-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cred { padding: 16px; border-radius: 16px; }
  .cred .k { font-size: 22px; margin-bottom: 6px; }
  .cred p { font-size: 13px; line-height: 1.45; }
  .timeline li { grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; }
  .timeline .t-n { font-size: 22px; }
  .timeline h3 { font-size: 17px; margin-bottom: 4px; }
  html[lang="ar"] .timeline h3 { font-size: 17px; }
  .timeline p { font-size: 14px; }
  .values { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .value:last-child { grid-column: span 2; }
  .value .ic { width: 42px; height: 42px; }
  .value h3 { font-size: 15.5px; margin: 12px 0 4px; }
  .value p { font-size: 13px; }

  /* Services page */
  .svc { padding: 22px 0; gap: 8px; }
  .svc .n { font-size: 22px; }
  .svc h3 { font-size: 20px; }
  html[lang="ar"] .svc h3 { font-size: 19px; }
  .svc p { font-size: 14.5px; }
  .svc ul { margin-top: 12px; gap: 6px; }
  .svc li { font-size: 12px; padding: 5px 10px; }
  .symptoms { grid-template-columns: 1fr 1fr; gap: 8px; }
  .symptom { padding: 12px; font-size: 13px; gap: 10px; border-radius: 12px; line-height: 1.35; }

  /* Booking */
  .form-card { padding: 20px 16px; border-radius: 20px; }
  .form-grid { gap: 14px; }
  .field input, .field select, .field textarea { padding: 12px 14px; font-size: 15px; }
  .seg label { padding: 12px; font-size: 14px; }
  .form-foot { margin-top: 18px; }
  .form-foot .btn { width: 100%; }
  .side-card { padding: 22px; border-radius: 20px; }
  .side-card h3 { font-size: 19px; margin-bottom: 10px; }
  .chan { padding: 12px 0; }

  /* Footer */
  .footer { padding: 48px 0 96px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-top > :first-child { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; }
  .footer .brand .logo-full { height: 86px; }
  .footer-motto { font-size: 18px; margin-top: 0; }
  .footer-top > :last-child { grid-column: 1 / -1; }
  .footer h4 { margin-bottom: 10px; }
  .footer ul { gap: 8px; font-size: 14px; }
  .footer-word { font-size: 54px; margin-top: 36px; }
  .footer-bottom { font-size: 12.5px; }

  /* Floating controls */
  /* No side contact tab on phones: calling and booking are in the hero rows and the menu */
  .rail, .qc { display: none !important; }
  .rail { width: 40px; top: auto; bottom: 22%; transform: none; overflow: hidden; }
  .rail-btn { width: 40px; height: 42px; }
  .rail-btn svg { width: 18px; height: 18px; }
  .rail .rail-contact { height: auto; padding: 12px 0 10px; gap: 8px; }
  .rail-contact .rail-label { font-size: 12px; }
  html[lang="ar"] .rail-contact .rail-label { font-size: 13px; }
  .rail .rail-btn[href="book.html"] { display: none; }
  .qc { padding: 20px; }
  .tp { display: none; }
}
