/* ==========================================================================
   NOOR DENTAL STUDIO
   One stylesheet, no framework, no build step. Palette is warm bone and
   travertine rather than clinical white; Arabic is the source language and
   gets its own faces, scale and leading. Layout uses logical properties, so
   RTL is the same code rather than an override sheet.
   ========================================================================== */

/* ---------- tokens ---------------------------------------------------------
   Re-skinning the site is this block. Nothing below hardcodes a colour. */
:root {
  /* ground */
  --bone: #f7f2ea;
  --bone-2: #efe7db;
  --bone-3: #e5dbcc;
  --paper: #fdfbf7;

  /* ink */
  --ink: #14191c;
  --ink-2: #2c353a;
  --ink-soft: #5c686d;
  --ink-faint: #8b959a;

  /* accents */
  --enamel: #8ea9ae;         /* the cool one, enamel, water, glass */
  --enamel-deep: #46656c;
  --enamel-ink: #223438;
  --brass: #c0a06a;          /* the warm one, hairlines, small marks */
  --brass-soft: #ded0b4;

  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 22%, transparent);

  /* type */
  --f-display: "Fraunces", "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --lh-tight: 1.06;
  --lh-body: 1.62;
  --track-display: -0.022em;
  --track-eyebrow: 0.16em;

  /* fluid scale, 375px to 1440px */
  --t-eyebrow: 0.72rem;
  --t-small: clamp(0.82rem, 0.78rem + 0.15vw, 0.9rem);
  --t-body: clamp(0.98rem, 0.94rem + 0.25vw, 1.08rem);
  --t-lead: clamp(1.12rem, 1rem + 0.6vw, 1.42rem);
  --t-h4: clamp(1.06rem, 0.98rem + 0.4vw, 1.22rem);
  --t-h3: clamp(1.4rem, 1.2rem + 0.9vw, 1.95rem);
  --t-h2: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  --t-h1: clamp(2.6rem, 1.6rem + 4.6vw, 5.6rem);
  --t-mega: clamp(3.4rem, 1.6rem + 8vw, 9rem);

  /* rhythm */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --shell: 1340px;
  --rhythm: 1;
  --sect: calc(clamp(4.5rem, 9vw, 9.5rem) * var(--rhythm));
  --r-sm: 3px;
  --r: 6px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Shape language. This is the half of brand identity that colour-only
     theming misses: geometry, weight of rules, whether shadows exist at all.
     A theme sets these and the site stops looking like the same site. */
  --border-w: 1px;
  --r-btn: var(--r-pill);
  --r-card: var(--r-lg);
  --r-img: var(--r-lg);
  --eyebrow-w: 1.6rem;
  --eyebrow-h: 1px;
  --eyebrow-case: uppercase;
  --eyebrow-color: var(--brass);
  --w-display: 300;
  --w-display-ar: 500;
  --grain: 0.32;
  /* Text that sits on a photographic scrim is always light, whatever the
     theme's ground is. A dark theme has to point this at its own light ink. */
  --fg-on-dark: var(--paper);
  /* the r g b triplet the cinematic hero scrim is mixed from */
  --scrim: 8 10 12;

  --shadow-sm: 0 1px 2px rgb(20 25 28 / 0.05), 0 6px 18px -12px rgb(20 25 28 / 0.18);
  --shadow: 0 2px 6px rgb(20 25 28 / 0.05), 0 26px 56px -30px rgb(20 25 28 / 0.3);
  --shadow-lg: 0 40px 90px -45px rgb(20 25 28 / 0.42);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

/* Arabic swaps the faces and loosens the rhythm. Arabic needs more leading and
   zero tracking; applying Latin tracking to Arabic is the classic tell. */
html[lang="ar"] {
  --f-display: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --lh-tight: 1.28;
  --lh-body: 1.92;
  --track-display: 0;
  --track-eyebrow: 0.05em;
  --t-h1: clamp(2.1rem, 1.3rem + 3.7vw, 4.4rem);
  --t-mega: clamp(2.6rem, 1.4rem + 6vw, 6.6rem);
  --t-h2: clamp(1.75rem, 1.35rem + 2vw, 2.9rem);
}

/* ---------- reset --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 6rem;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* A whisper of grain. Flat bone reads like unstyled default white on cheap
   panels; the grain makes it read as paper. 1.1 KB, no request. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: var(--grain);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
video,
svg { display: block; max-width: 100%; height: auto; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--enamel-deep);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--brass-soft); color: var(--ink); }

.skip {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: -100%;
  translate: -50% 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.4rem;
  border-radius: var(--r-btn);
  font-size: var(--t-small);
}
.skip:focus { inset-block-start: 0.8rem; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- layout -------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: 1680px; }
.shell--narrow { max-width: 860px; }

.sect { padding-block: var(--sect); }
.sect--tight { padding-block: calc(var(--sect) * 0.6); }
.sect--paper { background: var(--paper); }
.sect--bone2 { background: var(--bone-2); }
.sect--ink { background: var(--ink); color: var(--bone); }
.sect--ink { --line: color-mix(in srgb, var(--bone) 16%, transparent); }
.sect--ink .eyebrow { color: var(--brass); }
.sect--ink .lead,
.sect--ink p { color: color-mix(in srgb, var(--bone) 74%, transparent); }

/* ---------- type ---------------------------------------------------------- */
.eyebrow {
  font-family: var(--f-body);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: var(--eyebrow-case);
  color: var(--enamel-deep);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-block-end: 1.4rem;
}
html[lang="ar"] .eyebrow { text-transform: none; font-weight: 600; }
.eyebrow::before {
  content: "";
  width: var(--eyebrow-w);
  height: var(--eyebrow-h);
  background: var(--eyebrow-color);
  flex: none;
}

.d1, .d2, .d3, .d4 {
  font-family: var(--f-display);
  font-weight: var(--w-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  text-wrap: balance;
}
html[lang="ar"] :is(.d1, .d2, .d3, .d4) { font-weight: var(--w-display-ar); }

.d1 { font-size: var(--t-h1); }
.d2 { font-size: var(--t-h2); }
.d3 { font-size: var(--t-h3); }
.d4 {
  font-size: var(--t-h4);
  font-family: var(--f-body);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}

.mega {
  font-family: var(--f-display);
  font-weight: var(--w-display);
  font-size: var(--t-mega);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
html[lang="ar"] .mega { font-weight: var(--w-display-ar); letter-spacing: 0; line-height: 1.22; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 300;
  text-wrap: pretty;
  max-width: 46ch;
}
html[lang="ar"] .lead { font-weight: 400; line-height: 1.78; max-width: 44ch; }

.prose p { color: var(--ink-soft); max-width: 62ch; text-wrap: pretty; }
.prose p + p { margin-block-start: 1.1em; }
.prose strong { color: var(--ink); font-weight: 500; }

.muted { color: var(--ink-soft); }
.small { font-size: var(--t-small); }
.italic-serif { font-family: var(--f-display); font-style: italic; font-weight: 300; }
html[lang="ar"] .italic-serif { font-style: normal; }

/* Numerals: Arabic copy reads better with proportional Latin digits for
   prices, but tabular alignment inside tables and stats. */
.tnum { font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }

/* ---------- buttons ------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--r-btn);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: var(--border-w) solid transparent;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease), translate 0.3s var(--ease);
}
/* The wipe reads as intent rather than decoration: it fills from the reading
   edge, so it runs left-to-right in English and right-to-left in Arabic. */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--enamel-deep);
  transform-origin: inline-start;
  scale: 0 1;
  transition: scale 0.55s var(--ease-out);
}
.btn:hover::after,
.btn:focus-visible::after { scale: 1 1; }
.btn:hover { color: var(--paper); }
.btn:active { translate: 0 1px; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: transparent; }

.btn--on-dark { --btn-bg: var(--bone); --btn-fg: var(--ink); }
.btn--on-dark.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  border-color: color-mix(in srgb, var(--bone) 34%, transparent);
}
.btn--lg { padding: 1.15rem 2.1rem; font-size: calc(var(--t-small) + 0.04rem); }
.btn--sm { padding: 0.62rem 1.2rem; }
.btn--block { width: 100%; }
@media (max-width: 940px) { .btn--sm { padding: 0.95rem 1.7rem; } }

/* Inline text link with an underline that draws in from the reading edge. */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-small);
  font-weight: 500;
  padding-block-end: 3px;
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-position: inline-start 100%;
  background-size: 0 1px;
  transition: background-size 0.45s var(--ease-out), color 0.3s var(--ease);
}
.tlink:hover { background-size: 100% 1px; color: var(--enamel-deep); }
.tlink .arrow { transition: translate 0.35s var(--ease); }
.tlink:hover .arrow { translate: 0.25rem 0; }
[dir="rtl"] .tlink:hover .arrow { translate: -0.25rem 0; }
[dir="rtl"] .arrow { scale: -1 1; }

/* ---------- header -------------------------------------------------------- */
.head {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease), translate 0.45s var(--ease);
  border-block-end: var(--border-w) solid transparent;
}
/* A scrim in the page's own ground colour, only while the header floats over
   the hero. On a light theme it is an invisible haze over a bright photograph;
   on a dark theme it is what stops cream nav links vanishing into a highlight.
   Either way it comes from --bone, so it follows the theme without a flag. */
.head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 9rem;
  pointer-events: none;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--bone) 62%, transparent),
    transparent);
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}
.head.is-stuck::before { opacity: 0; }

.head__in {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 5.2rem;
}
.head.is-stuck {
  background: color-mix(in srgb, var(--bone) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-block-end-color: var(--line);
}
.head.is-stuck .head__in { min-height: 4.2rem; }
.head.is-hidden { translate: 0 -100%; }
/* Over the hero the header is on a dark image, so it inverts until stuck. */
.head--over:not(.is-stuck) { color: var(--fg-on-dark); }
/* Layouts whose hero is flat ground rather than a photograph: the header
   carries its own background from the start instead of floating. */
.head--solid {
  background: color-mix(in srgb, var(--bone) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-block-end: var(--border-w) solid var(--line);
}
.head--solid::before { display: none; }
.head--over:not(.is-stuck) .brand__sub { color: color-mix(in srgb, var(--fg-on-dark) 70%, transparent); }
.head--over:not(.is-stuck) .nav__a::after { background: var(--brass); }
.head--over:not(.is-stuck) .icon-btn { border-color: color-mix(in srgb, var(--fg-on-dark) 30%, transparent); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  margin-inline-end: auto;
}
.brand__mark { width: 2.3rem; height: 2.3rem; flex: none; }
.brand__mark path,
.brand__mark circle { transition: fill 0.4s var(--ease); }
.brand__name {
  font-family: var(--f-display);
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
html[lang="ar"] .brand__name { font-size: 1.24rem; }
.brand__sub {
  display: block;
  font-family: var(--f-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-block-start: 2px;
}
html[lang="ar"] .brand__sub { letter-spacing: 0.06em; text-transform: none; font-size: 0.66rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__a {
  position: relative;
  font-size: var(--t-small);
  font-weight: 500;
  padding-block: 0.4rem;
  white-space: nowrap;
}
.nav__a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  scale: 0 1;
  transform-origin: inline-start;
  transition: scale 0.4s var(--ease-out);
}
.nav__a:hover::after,
.nav__a[aria-current="page"]::after { scale: 1 1; }

.head__tools { display: flex; align-items: center; gap: 0.6rem; flex: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--r-btn);
  font-size: var(--t-small);
  font-weight: 500;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn svg { width: 1rem; height: 1rem; flex: none; }
.lang-name { font-weight: 500; }

/* flex, not grid: auto grid rows stretch to fill the button, which spreads the
   three bars too far apart for the close-X transform to line up */
.burger {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--r-btn);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 1.05rem;
  height: 1px;
  background: currentColor;
  transition: translate 0.3s var(--ease), rotate 0.3s var(--ease), opacity 0.2s;
}
.burger span + span { margin-block-start: 5px; }
body.nav-open .burger span:nth-child(1) { translate: 0 6px; rotate: 45deg; }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { translate: 0 -6px; rotate: -45deg; }

/* mobile drawer */
@media (max-width: 940px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    inset-block-start: 0;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    background: var(--bone);
    padding: var(--gutter);
    clip-path: circle(0% at var(--burger-x, 90%) 2.6rem);
    transition: clip-path 0.65s var(--ease-out);
    pointer-events: none;
  }
  body.nav-open .nav { clip-path: circle(150% at var(--burger-x, 90%) 2.6rem); pointer-events: auto; }
  .nav__a {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    font-weight: 300;
    padding-block: 0.55rem;
    opacity: 0;
    translate: 0 0.8rem;
    transition: opacity 0.4s var(--ease) var(--d, 0s), translate 0.5s var(--ease) var(--d, 0s);
  }
  html[lang="ar"] .nav__a { font-weight: 500; }
  body.nav-open .nav__a { opacity: 1; translate: 0 0; }
  .nav__a::after { display: none; }
  .head--over:not(.is-stuck) .nav { color: var(--ink); }
  .nav__cta { margin-block-start: 1.4rem; }
}
body.nav-open { overflow: hidden; }
/* The drawer is a sibling of the brand and the tools inside the header, so it
   would otherwise paint over the logo. Lift both above it while it is open. */
body.nav-open .brand,
body.nav-open .head__tools { position: relative; z-index: 2; }

/* ---------- hero ---------------------------------------------------------- */
/* The hero is LIGHT. The photograph is bone travertine flooded with Gulf
   daylight; the usual dark-scrim-and-white-type move would destroy the only
   reason it is worth using. So the headline is ink, sitting on the flat stone
   wall, with a soft bone wash under it from the reading edge for contrast.
   Measured: ink #14191c on the washed plate is ~12:1. */
.hero {
  position: relative;
  min-height: min(100svh, 62rem);
  display: grid;
  align-items: end;
  color: var(--ink);
  background: var(--bone-2);
  isolation: isolate;
  overflow: clip;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slow drift. The image is scaled past the frame so the movement never
     exposes an edge, and it is one transform, cheap to composite. */
  animation: drift 26s var(--ease) infinite alternate;
}
@keyframes drift {
  from { scale: 1.06; translate: 0 0; }
  to { scale: 1.14; translate: -1.2% -1.4%; }
}
/* Two washes, both light, both directional: one from the reading edge so the
   headline always has ground under it, one up from the base so the CTA row and
   the rule read cleanly. Mirrors for RTL. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to var(--to-end, right),
      color-mix(in srgb, var(--bone) 93%, transparent) 0%,
      color-mix(in srgb, var(--bone) 74%, transparent) 38%,
      transparent 76%),
    linear-gradient(to top,
      color-mix(in srgb, var(--bone) 80%, transparent) 0%,
      color-mix(in srgb, var(--bone) 30%, transparent) 26%,
      transparent 52%);
}
[dir="rtl"] .hero__media::after { --to-end: left; }

.hero__in { padding-block: clamp(7rem, 15vh, 10rem) clamp(3rem, 8vh, 5rem); position: relative; }
.hero h1 { max-width: 19ch; }
html[lang="ar"] .hero h1 { max-width: 23ch; }
.hero__lead {
  color: var(--ink-2);
  margin-block-start: 1.6rem;
  max-width: 42ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-block-start: 2.4rem;
}
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin-block-start: clamp(3rem, 7vh, 5rem);
  padding-block-start: 1.6rem;
  border-block-start: var(--border-w) solid var(--line-strong);
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.hero__foot b { font-weight: 500; color: var(--ink); }

.scrollcue {
  position: absolute;
  inset-block-end: 1.4rem;
  inset-inline-end: var(--gutter);
  writing-mode: vertical-rl;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
html[lang="ar"] .scrollcue { letter-spacing: 0.04em; text-transform: none; font-size: 0.7rem; }
.scrollcue::after {
  content: "";
  width: 1px;
  height: 3.2rem;
  background: linear-gradient(to bottom, var(--brass), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue { 0%, 100% { scale: 1 0.3; opacity: 0.4; } 50% { scale: 1 1; opacity: 1; } }
@media (max-width: 760px) { .scrollcue { display: none; } }

/* ---------- hero: split ---------------------------------------------------
   Two panels, no overlay. The type sits on flat ground, which is a completely
   different reading experience from type over a photograph. */
.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: min(100svh, 60rem);
  background: var(--bone-2);
}
.hero--split .hero__panel {
  display: grid;
  align-items: center;
  padding-block: clamp(7rem, 14vh, 10rem) clamp(3rem, 7vh, 5rem);
  padding-inline: var(--gutter) clamp(1.5rem, 4vw, 4rem);
}
.hero--split .hero__panel-in { max-width: 34rem; margin-inline-start: auto; }
[dir="ltr"] .hero--split .hero__panel-in { margin-inline: 0 auto; }
.hero--split .hero__shot { position: relative; overflow: hidden; }
.hero--split .hero__shot img { width: 100%; height: 100%; object-fit: cover; }
.hero--split h1 { max-width: 14ch; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr));
  gap: 1.2rem;
  margin-block-start: clamp(2rem, 5vh, 3rem);
  padding-block-start: 1.6rem;
  border-block-start: var(--border-w) solid var(--line);
}
.hero__stats dt {
  font-family: var(--f-display);
  font-weight: var(--w-display);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  line-height: 1;
}
html[lang="ar"] .hero__stats dt { font-weight: var(--w-display-ar); }
.hero__stats dd { font-size: var(--t-small); color: var(--ink-soft); margin-block-start: 0.3rem; }
@media (max-width: 900px) {
  .hero--split { grid-template-columns: 1fr; min-height: 0; }
  .hero--split .hero__panel { padding-inline: var(--gutter); }
  .hero--split .hero__panel-in { margin-inline: 0; max-width: none; }
  .hero--split .hero__shot { aspect-ratio: 4 / 3; }
}

/* ---------- hero: editorial -----------------------------------------------
   Type first, photography demoted to a band underneath. */
/* Grid rows rather than stacked blocks: the type takes what it needs and the
   photograph band is pinned to the bottom of the first screen, so an editorial
   hero still opens with an image instead of a wall of text. */
.hero--editorial {
  display: grid;
  grid-template-rows: 1fr auto;
  /* exactly one screen: any taller and the photograph band drops below the
     fold, which is what made this layout open as a wall of text */
  min-height: 100svh;
  background: var(--bone);
  padding-block-start: clamp(6rem, 12vh, 8rem);
}
.hero__center {
  display: grid;
  align-content: center;
  text-align: center;
  padding-block-end: clamp(2rem, 5vw, 3.5rem);
}
/* This layout has to fit a headline AND a photograph band into one screen, so
   its display size is smaller than the full-bleed hero's and the hours strip
   moves out of the way. On phones the hero is not height-bound, so it returns. */
.hero--editorial .mega { font-size: clamp(2.1rem, 1rem + 3.5vw, 4.3rem); }
html[lang="ar"] .hero--editorial .mega { font-size: clamp(1.9rem, 0.9rem + 3.1vw, 3.8rem); }
.hero--editorial .hero__foot { display: none; }
.hero--editorial .hero__cta { margin-block-start: 1.8rem; }
@media (max-width: 700px) {
  .hero--editorial .hero__foot { display: flex; margin-block-start: 2rem; }
}
.hero__center .eyebrow { justify-content: center; }
.hero__center h1 { margin-inline: auto; max-width: 16ch; }
html[lang="ar"] .hero__center h1 { max-width: 20ch; }
.hero__center .lead { margin-inline: auto; max-width: 52ch; }
.hero__center .hero__cta { justify-content: center; }
.hero__center .hero__foot { justify-content: center; border-block-start: 0; }
.hero__band { overflow: hidden; }
.hero__band img {
  width: 100%;
  height: clamp(190px, 34vh, 400px);
  object-fit: cover;
  object-position: center 42%;
}
@media (max-width: 700px) {
  .hero--editorial { min-height: 0; }
  .hero__band img { height: clamp(170px, 28vh, 240px); }
}

/* ---------- hero: cinematic ----------------------------------------------- */
.hero--cine { color: var(--fg-on-dark); text-align: center; }
.hero--cine .hero__media::after {
  background:
    linear-gradient(to bottom, rgb(var(--scrim) / 0.58) 0%, rgb(var(--scrim) / 0.34) 40%, rgb(var(--scrim) / 0.8) 100%);
}
.hero--cine .hero__in { display: grid; justify-items: center; }
.hero--cine .eyebrow { justify-content: center; color: var(--brass-soft); }
.hero--cine .eyebrow::before { background: var(--brass-soft); }
.hero--cine h1 { max-width: 18ch; }
.hero--cine .hero__lead {
  color: color-mix(in srgb, var(--fg-on-dark) 84%, transparent);
  margin-inline: auto;
}
.hero--cine .hero__cta { justify-content: center; }
.hero--cine .hero__foot {
  justify-content: center;
  border-block-start-color: color-mix(in srgb, var(--fg-on-dark) 24%, transparent);
  color: color-mix(in srgb, var(--fg-on-dark) 78%, transparent);
}
.hero--cine .hero__foot b { color: var(--fg-on-dark); }
.hero--cine .scrollcue { color: color-mix(in srgb, var(--fg-on-dark) 60%, transparent); }
.hero--cine .tlink { background-image: linear-gradient(var(--brass-soft), var(--brass-soft)); }

/* ---------- services: list rows ------------------------------------------- */
.svclist { border-block-start: var(--border-w) solid var(--line); }
.svclist__i {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 16rem);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.6rem, 3.5vw, 2.6rem);
  border-block-end: var(--border-w) solid var(--line);
  transition: background-color 0.4s var(--ease);
}
.svclist__i:hover { background: color-mix(in srgb, var(--enamel) 8%, transparent); }
.svclist__n {
  font-family: var(--f-display);
  font-weight: var(--w-display);
  font-size: 0.95rem;
  color: var(--brass);
  padding-block-start: 0.35rem;
}
.svclist__body p {
  color: var(--ink-soft);
  font-size: var(--t-small);
  margin-block-start: 0.6rem;
  max-width: 62ch;
}
.svclist__facts { display: flex; gap: 1.6rem; padding-block-start: 0.4rem; }
.svclist__facts dt {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: var(--eyebrow-case);
  color: var(--ink-faint);
  margin-block-end: 0.25rem;
}
html[lang="ar"] .svclist__facts dt { letter-spacing: 0; text-transform: none; font-size: 0.74rem; }
.svclist__facts dd { font-size: var(--t-small); font-weight: 500; }
@media (max-width: 860px) {
  .svclist__i { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .svclist__facts { grid-column: 2; }
}

/* ---------- services: numbered index -------------------------------------- */
.svcindex { border-block-start: var(--border-w) solid var(--line-strong); }
.svcindex__i { border-block-end: var(--border-w) solid var(--line); }
.svcindex__i a {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto 2rem;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: baseline;
  padding-block: clamp(1.1rem, 2.6vw, 1.9rem);
  transition: padding-inline 0.4s var(--ease), color 0.4s var(--ease);
}
.svcindex__i a:hover { padding-inline-start: 0.8rem; color: var(--enamel-deep); }
.svcindex__n { font-size: 0.8rem; color: var(--brass); font-weight: 500; }
.svcindex__t {
  font-family: var(--f-display);
  font-weight: var(--w-display);
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: var(--track-display);
}
html[lang="ar"] .svcindex__t { font-weight: var(--w-display-ar); letter-spacing: 0; }
.svcindex__m { font-size: var(--t-small); color: var(--ink-faint); }
.svcindex__go { color: var(--ink-faint); transition: translate 0.35s var(--ease); }
.svcindex__i a:hover .svcindex__go { translate: 0.3rem 0; }
[dir="rtl"] .svcindex__i a:hover .svcindex__go { translate: -0.3rem 0; }
@media (max-width: 700px) {
  .svcindex__i a { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
  .svcindex__m { display: none; }
}

/* ---------- reviews: static grid and pull quote --------------------------- */
.revgrid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
/* two classes on purpose: .quote's fixed marquee width is defined later in the
   file, so a single class here would lose on source order */
.quote.quote--flat { width: auto; }

.pull { text-align: center; }
.pull__stars { justify-content: center; color: var(--brass); margin-block-end: 1.8rem; }
.pull__q {
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem);
  line-height: 1.3;
  text-wrap: balance;
}
html[lang="ar"] .pull__q { line-height: 1.6; }
.pull__by {
  margin-block-start: 1.8rem;
  font-size: var(--t-small);
  color: color-mix(in srgb, var(--bone) 62%, transparent);
}

/* ---------- why: grid ------------------------------------------------------ */
.whygrid {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.whygrid__i { border-block-start: calc(var(--border-w) * 2) solid var(--brass); padding-block-start: 1.1rem; }
.whygrid__n { font-size: 0.78rem; color: var(--brass); font-weight: 500; }
.whygrid__i h3 { margin-block: 0.7rem 0.5rem; }
.whygrid__i p { font-size: var(--t-small); color: var(--ink-soft); }

.intro-stack { text-align: center; }
.intro-stack .eyebrow { justify-content: center; }
.intro-stack .prose p { margin-inline: auto; }
.intro-stack .tlink { justify-content: center; }

/* page hero for inner pages */
.phero {
  position: relative;
  padding-block: clamp(9rem, 20vh, 14rem) clamp(3rem, 7vh, 5rem);
  background: var(--ink);
  color: var(--bone);
  isolation: isolate;
  overflow: clip;
}
.phero--img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  opacity: 0.42;
}
.phero .eyebrow { color: var(--brass); }
.phero .lead { color: color-mix(in srgb, var(--bone) 76%, transparent); }
.phero__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
}
@media (max-width: 860px) { .phero__grid { grid-template-columns: 1fr; } }

.crumbs {
  display: flex;
  gap: 0.5rem;
  font-size: var(--t-small);
  color: color-mix(in srgb, var(--bone) 60%, transparent);
  margin-block-end: 1.2rem;
}
.crumbs a:hover { color: var(--brass); }

/* ---------- section heads ------------------------------------------------- */
.shead {
  display: grid;
  gap: clamp(1.2rem, 3vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: end;
  margin-block-end: clamp(2.5rem, 5vw, 4.5rem);
}
.shead--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.shead--center .eyebrow { justify-content: center; }
.shead--center .lead { max-width: 52ch; }
.shead--stack { grid-template-columns: 1fr; }
@media (max-width: 860px) { .shead { grid-template-columns: 1fr; align-items: start; } }

/* ---------- trust band ---------------------------------------------------- */
.trust {
  border-block-end: var(--border-w) solid var(--line);
  background: var(--paper);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust__i {
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1rem, 2vw, 2rem);
  border-inline-start: var(--border-w) solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.trust__i:first-child { border-inline-start: 0; padding-inline-start: 0; }
.trust__n {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}
html[lang="ar"] .trust__n { font-weight: 500; letter-spacing: 0; }
.trust__n sup {
  font-family: var(--f-body);
  font-size: 0.9rem;
  color: var(--brass);
  font-weight: 500;
  align-self: flex-start;
  margin-block-start: 0.2em;
}
.trust__l { font-size: var(--t-small); color: var(--ink-soft); }
@media (max-width: 800px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__i:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .trust__i:nth-child(n+3) { border-block-start: var(--border-w) solid var(--line); }
}

/* ---------- treatment cards ---------------------------------------------- */
.cards {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  /* auto-fill, not auto-fit: a clinic that features one treatment should get
     one card the size of a card, not one card stretched across the viewport */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.5s var(--ease), box-shadow 0.6s var(--ease),
              translate 0.6s var(--ease);
}
.card:hover { border-color: var(--brass-soft); box-shadow: var(--shadow); translate: 0 -4px; }
.card__fig {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bone-2);
}
.card__fig img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s var(--ease-out); }
.card:hover .card__fig img { scale: 1.055; }
.card__n {
  position: absolute;
  inset-block-start: 0.9rem;
  inset-inline-start: 0.9rem;
  z-index: 2;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-radius: var(--r-btn);
  padding: 0.28rem 0.7rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}
html[lang="ar"] .card__n { letter-spacing: 0; font-size: 0.74rem; }
.card__body {
  padding: clamp(1.2rem, 2.4vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.card__body p { color: var(--ink-soft); font-size: var(--t-small); flex: 1; }
.card__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-block-start: 0.9rem;
  margin-block-start: 0.3rem;
  border-block-start: var(--border-w) solid var(--line);
  font-size: var(--t-small);
}
.card__price { color: var(--enamel-deep); font-weight: 500; }
.card__price span { color: var(--ink-faint); font-weight: 400; }
.card > a.card__hit { position: absolute; inset: 0; z-index: 3; }

/* Icon tile, the alternative to a photo, used where imagery would be filler */
.tile {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--paper);
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.tile:hover { border-color: var(--brass-soft); }
.tile__ic {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--r-btn);
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--enamel) 22%, transparent);
  color: var(--enamel-deep);
  margin-block-end: 0.5rem;
}
.tile__ic svg { width: 1.25rem; height: 1.25rem; }
.tile p { color: var(--ink-soft); font-size: var(--t-small); }

/* ---------- sticky sequence (why us) ------------------------------------- */
.seq {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}
.seq__side { position: sticky; top: 7.5rem; }
.seq__fig {
  border-radius: var(--r-img);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bone-3);
  position: relative;
}
.seq__fig img { width: 100%; height: 100%; object-fit: cover; }
.seq__list { display: flex; flex-direction: column; }
.seq__i {
  padding-block: clamp(1.6rem, 3.5vw, 2.6rem);
  border-block-start: var(--border-w) solid var(--line);
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.4rem 1.4rem;
  align-items: baseline;
}
.seq__i:last-child { border-block-end: var(--border-w) solid var(--line); }
.seq__k {
  font-family: var(--f-display);
  font-size: 0.95rem;
  color: var(--brass);
  font-weight: 500;
}
.seq__i p { grid-column: 2; color: var(--ink-soft); margin-block-start: 0.55rem; }
@media (max-width: 900px) {
  .seq { grid-template-columns: 1fr; }
  .seq__side { position: static; }
  .seq__fig { aspect-ratio: 16 / 10; }
  .seq__i { grid-template-columns: 2.4rem 1fr; }
}

/* ---------- before / after slider ---------------------------------------- */
.ba {
  position: relative;
  border-radius: var(--r-img);
  overflow: hidden;
  background: var(--bone-2);
  aspect-ratio: 3 / 2;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  --pos: 50%;
}
.ba__layer { position: absolute; inset: 0; }
/* Only the media fills the layer. A bare `> *` here also caught the corner
   labels and blew them up to the size of the frame. */
.ba__layer > img,
.ba__layer > picture,
.ba__layer > video { width: 100%; height: 100%; object-fit: cover; }
/* The clip is driven by one custom property, so dragging touches no layout. */
.ba__layer--after { clip-path: inset(0 0 0 var(--pos)); }
[dir="rtl"] .ba__layer--after { clip-path: inset(0 var(--pos) 0 0); }
.ba__handle {
  position: absolute;
  inset-block: 0;
  left: var(--pos);
  width: 2px;
  background: var(--paper);
  translate: -1px 0;
  box-shadow: 0 0 0 1px rgb(20 25 28 / 0.14);
  z-index: 3;
}
[dir="rtl"] .ba__handle { left: auto; right: var(--pos); translate: 1px 0; }
.ba__grip {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  translate: -50% -50%;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: var(--r-btn);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: scale 0.3s var(--ease);
}
.ba:hover .ba__grip { scale: 1.08; }
.ba__grip svg { width: 1.1rem; height: 1.1rem; }
.ba__tag {
  position: absolute;
  inset-block-end: 0.9rem;
  z-index: 4;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  color: var(--paper);
  backdrop-filter: blur(6px);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-btn);
}
html[lang="ar"] .ba__tag { letter-spacing: 0; text-transform: none; font-size: 0.74rem; }
.ba__tag--b { inset-inline-start: 0.9rem; }
.ba__tag--a { inset-inline-end: 0.9rem; background: color-mix(in srgb, var(--enamel-deep) 88%, transparent); }
.ba:focus-visible { outline-offset: 4px; }

/* ---------- price / transparency ----------------------------------------- */
.ptable { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.ptable caption { text-align: start; color: var(--ink-faint); padding-block-end: 1rem; }
.ptable th,
.ptable td {
  text-align: start;
  padding: 1.05rem 1rem;
  border-block-end: var(--border-w) solid var(--line);
  vertical-align: baseline;
}
.ptable thead th {
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  border-block-end-color: var(--line-strong);
}
html[lang="ar"] .ptable thead th { letter-spacing: 0; text-transform: none; font-size: 0.76rem; }
.ptable tbody th { font-weight: 500; }
.ptable td:last-child { text-align: end; white-space: nowrap; font-weight: 500; color: var(--enamel-deep); }
.ptable tbody tr { transition: background-color 0.3s var(--ease); }
.ptable tbody tr:hover { background: color-mix(in srgb, var(--enamel) 8%, transparent); }
.table-wrap { overflow-x: auto; }

.pgrid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
}
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr; } }

.paylist { display: flex; flex-direction: column; gap: 0.9rem; margin-block-start: 1.8rem; }
.paylist li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.paylist svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--enamel-deep); margin-block-start: 0.2rem; }
.sect--ink .paylist svg { color: var(--brass); }

/* ---------- chips (payment methods, insurers) ---------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-block-start: 0.9rem; }
.chips span {
  font-size: var(--t-small);
  padding: 0.4rem 0.9rem;
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--r-btn);
  color: inherit;
}
.sect--ink .chips span { border-color: color-mix(in srgb, var(--bone) 26%, transparent); }

/* ---------- FAQ ---------------------------------------------------------- */
.faq { max-width: 62rem; }
.faq__i { border-block-start: var(--border-w) solid var(--line); }
.faq__i:last-child { border-block-end: var(--border-w) solid var(--line); }
.faq__i summary {
  list-style: none;
  cursor: pointer;
  padding-block: clamp(1.1rem, 2.2vw, 1.5rem);
  padding-inline-end: 2.5rem;
  position: relative;
  font-size: var(--t-h4);
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i summary:hover { color: var(--brass); }
/* the marker is two bars; the vertical one folds away when the row is open */
.faq__i summary::before,
.faq__i summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 0.4rem;
  inset-block-start: 50%;
  width: 0.85rem;
  height: 1.5px;
  background: currentColor;
  opacity: 0.55;
  transition: rotate 0.35s var(--ease), opacity 0.3s var(--ease);
}
.faq__i summary::after { rotate: 90deg; }
.faq__i[open] summary::after { rotate: 0deg; opacity: 0; }
.faq__i[open] summary { color: var(--brass); }
.faq__i p {
  padding-block-end: clamp(1.1rem, 2.2vw, 1.6rem);
  padding-inline-end: 2.5rem;
  max-width: 68ch;
}

/* ---------- testimonials ------------------------------------------------- */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6rem, #000 calc(100% - 6rem), transparent);
}
.marquee__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.6rem);
  width: max-content;
  animation: slide 62s linear infinite;
}
/* RTL lays the track out from the right edge leftwards, so it has to travel
   the other way. Reversing the animation is not the same thing: that starts
   the track at -50%, which parks it off-screen for most of the cycle. */
[dir="rtl"] .marquee__track { animation-name: slide-rtl; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes slide { to { translate: -50% 0; } }
@keyframes slide-rtl { to { translate: 50% 0; } }

.quote {
  width: min(26rem, 78vw);
  flex: none;
  background: var(--paper);
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote__stars { display: flex; gap: 0.15rem; color: var(--brass); }
.quote__stars svg { width: 0.9rem; height: 0.9rem; }
.quote p {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-2);
  flex: 1;
}
html[lang="ar"] .quote p { font-weight: 400; line-height: 1.85; font-size: 1rem; }
.quote footer {
  font-size: var(--t-small);
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.quote__av {
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-btn);
  background: linear-gradient(140deg, var(--enamel), var(--brass-soft));
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--paper);
  flex: none;
}

/* ---------- tour strip --------------------------------------------------- */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(24rem, 76vw);
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block-end: 1rem;
  scrollbar-width: thin;
}
.strip > figure { scroll-snap-align: start; }
.strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}
.strip figcaption {
  font-size: var(--t-small);
  color: var(--ink-faint);
  padding-block-start: 0.7rem;
}

/* ---------- split feature ------------------------------------------------ */
.split {
  display: grid;
  gap: clamp(1.8rem, 5vw, 5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: center;
}
.split__fig {
  border-radius: var(--r-img);
  overflow: hidden;
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--bone-3);
}
.split__fig img { width: 100%; height: 100%; object-fit: cover; } }

.stat-chip {
  position: absolute;
  inset-block-end: 1.1rem;
  inset-inline-start: 1.1rem;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-radius: var(--r);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.stat-chip b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
}
html[lang="ar"] .stat-chip b { font-weight: 500; }
.stat-chip span { font-size: var(--t-small); color: var(--ink-soft); }

/* ---------- services page ------------------------------------------------ */
.svc-nav {
  position: sticky;
  top: 4.4rem;
  z-index: 40;
  background: color-mix(in srgb, var(--bone) 92%, transparent);
  backdrop-filter: blur(12px);
  border-block-end: var(--border-w) solid var(--line);
}
.svc-nav ul {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0.8rem;
}
.svc-nav ul::-webkit-scrollbar { display: none; }
.svc-nav a {
  white-space: nowrap;
  font-size: var(--t-small);
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-btn);
  color: var(--ink-soft);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.svc-nav a:hover { background: var(--bone-3); color: var(--ink); }
.svc-nav a.is-active { background: var(--ink); color: var(--paper); }

.svc {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  padding-block: clamp(3rem, 6vw, 5.5rem);
  border-block-start: var(--border-w) solid var(--line);
  scroll-margin-block-start: 8rem;
}
.svc__num {
  font-family: var(--f-display);
  font-size: 0.9rem;
  color: var(--brass);
  font-weight: 500;
  margin-block-end: 0.8rem;
}
.svc__facts {
  display: grid;
  /* min() so the track can go below 8rem on a narrow phone instead of forcing
     the grid wider than the viewport */
  grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr));
  gap: 1rem 1.4rem;
  margin-block-start: 2rem;
  padding-block-start: 1.6rem;
  border-block-start: var(--border-w) solid var(--line);
}
.svc__facts dt {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-block-end: 0.3rem;
}
html[lang="ar"] .svc__facts dt { letter-spacing: 0; text-transform: none; font-size: 0.76rem; }
.svc__facts dd { font-size: var(--t-small); font-weight: 500; }
.svc__list { display: flex; flex-direction: column; gap: 0.7rem; margin-block-start: 1.4rem; }
.svc__list li {
  display: flex;
  gap: 0.7rem;
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.svc__list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
  margin-block-start: 0.62em;
}
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }

/* ---------- filter bar --------------------------------------------------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1.2rem;
  border-block: var(--border-w) solid var(--line);
  margin-block-end: clamp(2rem, 4vw, 3rem);
}
.chip {
  font-size: var(--t-small);
  padding: 0.5rem 1.05rem;
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--r-btn);
  color: var(--ink-soft);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter__count { margin-inline-start: auto; font-size: var(--t-small); color: var(--ink-faint); }

/* case index */
.cases {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
}
.case {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.3rem, 2.6vw, 2rem);
  background: var(--bone);
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-card);
  transition: border-color 0.5s var(--ease), box-shadow 0.6s var(--ease), translate 0.5s var(--ease);
}
.case:hover { border-color: var(--brass-soft); box-shadow: var(--shadow-sm); translate: 0 -3px; }
.case[hidden] { display: none; }
.case__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.case__n { font-family: var(--f-display); font-size: 0.95rem; font-weight: 500; color: var(--brass); }
.case__tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--enamel-deep);
  background: color-mix(in srgb, var(--enamel) 18%, transparent);
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-btn);
}
html[lang="ar"] .case__tag { letter-spacing: 0; text-transform: none; font-size: 0.76rem; }
.case > p { font-size: var(--t-small); color: var(--ink-soft); flex: 1; }
.case__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding-block-start: 1rem;
  border-block-start: var(--border-w) solid var(--line);
}
.case__facts dt {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-block-end: 0.25rem;
}
html[lang="ar"] .case__facts dt { letter-spacing: 0; text-transform: none; font-size: 0.72rem; }
.case__facts dd { font-size: var(--t-small); font-weight: 500; }

/* ---------- team --------------------------------------------------------- */
.team {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.person__fig {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-img);
  overflow: hidden;
  background: linear-gradient(160deg, var(--bone-2), var(--bone-3));
  position: relative;
  display: grid;
  place-items: center;
}
.person__fig img { width: 100%; height: 100%; object-fit: cover; }
/* No commissioned portraits yet, a monogram plate stands in. Honest, and it
   looks deliberate rather than like a broken image. */
.person__mono {
  font-family: var(--f-display);
  font-size: clamp(3rem, 8vw, 4.6rem);
  font-weight: 300;
  color: color-mix(in srgb, var(--ink) 28%, transparent);
  letter-spacing: 0.02em;
}
.person__body { padding-block-start: 1.1rem; }
.person__role {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin-block-end: 0.45rem;
}
html[lang="ar"] .person__role { letter-spacing: 0; text-transform: none; font-size: 0.78rem; }
.person__body p { font-size: var(--t-small); color: var(--ink-soft); margin-block-start: 0.5rem; }
.person__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-block-start: 0.9rem; }
.person__tags span {
  font-size: 0.7rem;
  padding: 0.22rem 0.6rem;
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-btn);
  color: var(--ink-soft);
}

/* ---------- contact ------------------------------------------------------ */
.cgrid {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
}
@media (max-width: 900px) { .cgrid { grid-template-columns: 1fr; } }

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: var(--t-small); font-weight: 500; }
.field label .req { color: var(--brass); }
.field :is(input, select, textarea) {
  padding: 0.9rem 1.05rem;
  background: var(--paper);
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--r);
  font-size: var(--t-small);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--enamel-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--enamel) 30%, transparent);
}
.field textarea { resize: vertical; min-height: 7rem; }
/* A select sizes to its widest option by default, so two selects side by side
   end up different widths and the custom chevron drifts off the control. */
.field select { appearance: none; background-image: none; width: 100%; }
.select-wrap { position: relative; display: block; }
.select-wrap::after {
  content: "";
  position: absolute;
  inset-inline-end: 1rem;
  inset-block-start: 50%;
  width: 0.5rem;
  height: 0.5rem;
  /* physical borders on purpose: logical ones flip in RTL and the chevron
     ends up pointing sideways instead of down */
  border-right: calc(var(--border-w) * 1.5) solid var(--ink-faint);
  border-bottom: calc(var(--border-w) * 1.5) solid var(--ink-faint);
  rotate: 45deg;
  translate: 0 -70%;
  pointer-events: none;
}
.field__err { font-size: var(--t-small); color: #a4453b; min-height: 0; }
.field.is-bad :is(input, select, textarea) { border-color: #a4453b; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }

.note {
  display: flex;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  background: color-mix(in srgb, var(--enamel) 12%, transparent);
  border: var(--border-w) solid color-mix(in srgb, var(--enamel) 34%, transparent);
  border-radius: var(--r);
  font-size: var(--t-small);
  color: var(--ink-2);
}
.note svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--enamel-deep); margin-block-start: 0.2rem; }
.note--warn {
  background: color-mix(in srgb, var(--brass) 15%, transparent);
  border-color: color-mix(in srgb, var(--brass) 45%, transparent);
}
.note--warn svg { color: #8a6b2c; }

.hours { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.hours th,
.hours td { padding: 0.75rem 0; border-block-end: var(--border-w) solid var(--line); text-align: start; }
.hours th { font-weight: 400; color: var(--ink-soft); }
/* A time range is two numbers around a hyphen. Left to itself, bidi reorders
   that inside an RTL paragraph and the opening and closing times swap. */
.hours td { text-align: end; font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.hours tr.is-today th,
.hours tr.is-today td { color: var(--enamel-deep); }
.hours tr.is-today th::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--enamel-deep);
  margin-inline-start: 0.5rem;
  vertical-align: middle;
}

.contact-list { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-list dt {
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-block-end: 0.3rem;
}
html[lang="ar"] .contact-list dt { letter-spacing: 0; text-transform: none; font-size: 0.76rem; }
.contact-list dd a:hover { color: var(--enamel-deep); }

.map {
  border: var(--border-w) solid var(--line);
  border-radius: var(--r-img);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  /* A quiet plate stands in until the visitor asks for the real map, so the
     page doesn't call Google on every visit for a picture most people never
     look at. */
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--enamel) 16%, transparent), transparent 62%),
    linear-gradient(160deg, var(--bone-2), var(--paper));
}
.map iframe { grid-area: 1 / 1; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }

/* ---------- CTA band ---------------------------------------------------- */
.cta {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  padding-block: clamp(4rem, 9vw, 8rem);
  overflow: clip;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-start: 50%;
  translate: -50% 0;
  width: min(70rem, 130%);
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--enamel) 28%, transparent), transparent 62%);
}
.cta .lead { margin-inline: auto; color: color-mix(in srgb, var(--bone) 76%, transparent); }
.cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-block-start: 2.4rem;
}
.cta__fine {
  font-size: var(--t-small);
  color: color-mix(in srgb, var(--bone) 52%, transparent);
  margin-block-start: 1.6rem;
}

/* ---------- footer ------------------------------------------------------- */
.foot {
  background: var(--ink);
  color: color-mix(in srgb, var(--bone) 72%, transparent);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  font-size: var(--t-small);
  border-block-start: var(--border-w) solid color-mix(in srgb, var(--bone) 12%, transparent);
}
.foot a:hover { color: var(--brass); }
.foot__grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; } }
.foot h3 {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin-block-end: 1.1rem;
}
html[lang="ar"] .foot h3 { letter-spacing: 0; text-transform: none; font-size: 0.78rem; }
.foot ul { display: flex; flex-direction: column; gap: 0.6rem; }
.foot .brand__name { color: var(--bone); }
.foot__note { max-width: 34ch; margin-block-start: 1rem; }
.foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  padding-block-start: 1.5rem;
  border-block-start: var(--border-w) solid color-mix(in srgb, var(--bone) 12%, transparent);
  color: color-mix(in srgb, var(--bone) 48%, transparent);
}
.socials { display: flex; gap: 0.5rem; }
.socials a {
  width: 2.2rem;
  height: 2.2rem;
  border: var(--border-w) solid color-mix(in srgb, var(--bone) 20%, transparent);
  border-radius: var(--r-btn);
  display: grid;
  place-items: center;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.socials a:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.socials svg { width: 1rem; height: 1rem; }

/* Floating controls: WhatsApp (how Gulf patients actually book) and back to top. */
.fabs {
  position: fixed;
  inset-block-end: 1.2rem;
  inset-inline-end: 1.2rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
[dir="rtl"] .fabs { align-items: flex-start; }

.totop {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: var(--r-btn);
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border: var(--border-w) solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  translate: 0 0.6rem;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), translate 0.4s var(--ease),
              background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.totop.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.totop:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.totop svg { width: 1.05rem; height: 1.05rem; }

.wa {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.15rem;
  background: #1f7a4d;
  color: #fff;
  border-radius: var(--r-btn);
  box-shadow: var(--shadow);
  font-size: var(--t-small);
  font-weight: 500;
  transition: translate 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.wa:hover { translate: 0 -3px; box-shadow: var(--shadow-lg); }
.wa svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 560px) {
  .wa span { display: none; }
  .wa { padding: 0.85rem; }
}

/* ---------- reveal -------------------------------------------------------
   Gated behind .has-js, which the inline boot script in every <head> adds
   before first paint. Without JavaScript, a crawler, a text browser, a
   blocked script, the page is simply fully visible. Content is never left at
   opacity 0 waiting for a script that may not run. */
.has-js [data-reveal] {
  opacity: 0;
  translate: 0 1.4rem;
  transition: opacity 0.85s var(--ease-out) var(--rd, 0s),
              translate 0.95s var(--ease-out) var(--rd, 0s);
}
.has-js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.has-js [data-reveal="fade"] { translate: none; }
/* Line-by-line for display headings: each child rides up from behind a mask. */
.has-js [data-reveal="lines"] { opacity: 1; translate: none; }
.has-js [data-reveal="lines"] .ln { display: block; overflow: hidden; }
.has-js [data-reveal="lines"] .ln > span {
  display: block;
  translate: 0 105%;
  transition: translate 1s var(--ease-out) var(--rd, 0s);
}
.has-js [data-reveal="lines"].is-in .ln > span { translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .has-js [data-reveal] { opacity: 1; translate: none; }
  .has-js [data-reveal="lines"] .ln > span { translate: none; }
  .hero__media img,
  .hero__media video { animation: none; scale: 1.02; }
  .marquee__track { animation: none; }
}

/* ---------- print -------------------------------------------------------- */
@media print {
  .head, .wa, .cta, .scrollcue, body::before { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; color: #000; }
  .hero__media { display: none; }
}
