/* =========================================================
   Evra Clinic — design tokens
   ========================================================= */
:root {
  /* Brand (sampled from the Evra logo artwork) */
  --green-950: #0F2418;
  --green-900: #163823;
  --green-700: #1F4A2E;   /* primary brand */
  --green-600: #2A6340;
  --green-500: #3C7F55;
  --green-200: #CFE6D7;
  --green-100: #E7F2EA;
  --green-50:  #F3F8F4;
  --mint-glow: #A9DCBB;

  /* Semantic */
  --color-bg: #FFFFFF;
  --color-bg-soft: var(--green-50);
  --color-surface: #FFFFFF;
  --color-text: #13221A;
  --color-text-muted: #4A5D51;   /* 7.2:1 on white */
  --color-primary: var(--green-700);
  --color-on-primary: #FFFFFF;
  --color-border: #DCE7DF;
  --color-error: #B42318;
  --color-focus: #2A6340;

  /* Type */
  --font-display: "Archivo", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;

  /* Spacing (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(15 36 24 / .06), 0 2px 8px rgb(15 36 24 / .05);
  --shadow-md: 0 8px 30px rgb(15 36 24 / .08);
  --shadow-lg: 0 24px 60px rgb(15 36 24 / .14);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 700ms;

  --header-h: 76px;
  --gutter: 16px;

  /* z-index scale */
  --z-header: 40;
  --z-menu: 50;
  --z-float: 60;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

/* RTL / Arabic typography */
html[lang="ar"] {
  --font-display: "Noto Kufi Arabic", "Archivo", sans-serif;
  --font-body: "Noto Kufi Arabic", "Figtree", sans-serif;
  --font-accent: "Noto Kufi Arabic", serif;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--color-primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }

/* =========================================================
   Buttons & pills
   ========================================================= */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 24px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; touch-action: manipulation; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease,
              border-color var(--dur-fast) ease, transform var(--dur-fast) ease, box-shadow var(--dur) ease;
}
html[lang="ar"] .btn { letter-spacing: 0; }
.btn:active { transform: scale(.97); }
.btn-sm { --btn-h: 42px; padding: 0 18px; font-size: .8rem; }
.btn-lg { --btn-h: 60px; padding: 0 34px; font-size: .95rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: 0 10px 24px -10px rgb(31 74 46 / .6); }
.btn-primary:hover { background: var(--green-900); }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: rgb(31 74 46 / .25); }
.btn-ghost:hover { border-color: var(--color-primary); background: rgb(255 255 255 / .6); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--green-100); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 0 14px;
  border: 1.5px solid rgb(31 74 46 / .35); border-radius: var(--radius-sm);
  background: rgb(255 255 255 / .7); color: var(--color-primary);
  font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.pill:hover { border-color: var(--color-primary); background: #fff; }
.pill .ic { width: 17px; height: 17px; }
.pill .ic-arrow { width: 14px; height: 14px; stroke-width: 2.2; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: rgb(255 255 255 / 0);
  transition: background-color var(--dur) ease, box-shadow var(--dur) ease;
}
.site-header.is-scrolled {
  background: rgb(255 255 255 / .97);
  box-shadow: 0 1px 0 var(--color-border);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s-5); }

.brand { display: inline-flex; padding: 4px; margin-inline-start: -4px; }
.logo-mark {
  display: block; width: 104px; height: auto; aspect-ratio: 700 / 342;
}

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: clamp(16px, 3vw, 44px); }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--color-primary);
}
html[lang="ar"] .main-nav a { letter-spacing: 0; font-size: .9rem; }
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 8px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.main-nav a:hover::after, .main-nav a[aria-current="true"]::after { transform: scaleX(1); }
.main-nav .nav-mobile-cta { display: none; color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: 0; }

.lang { position: relative; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 168px;
  background: #fff; border: 1px solid var(--color-border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: var(--z-menu);
}
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none;
  font-size: .95rem; cursor: pointer; text-align: start;
}
.lang-menu button:hover { background: var(--green-50); }
.lang-menu button[aria-checked="true"] { color: var(--color-primary); font-weight: 600; }
.lang-menu button[aria-checked="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }

.menu-toggle {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  border: 1.5px solid rgb(31 74 46 / .35); border-radius: var(--radius-sm); background: #fff;
  color: var(--color-primary); cursor: pointer;
}
.menu-toggle .ic { width: 22px; height: 22px; }

@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav + .header-actions { margin-inline-start: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg);
    padding: var(--s-4) var(--gutter) var(--s-6);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li + li { border-top: 1px solid var(--color-border); }
  .main-nav a { min-height: 56px; font-size: .95rem; width: 100%; }
  .main-nav a::after { display: none; }
  .main-nav .nav-mobile-cta { display: flex; width: 100%; min-height: 54px; margin-top: var(--s-4); justify-content: center; letter-spacing: .04em; }
  .site-header.menu-open { background: #fff; }
}
@media (max-width: 520px) {
  .pill-loc { display: none; }
  .logo-mark { width: 92px; }
}

/* =========================================================
   Hero — inspired by the reference: oversized split type around a floating 3D tooth
   ========================================================= */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + var(--s-5));
  padding-bottom: var(--s-7);
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(38% 46% at 50% 54%, rgb(110 190 140 / .55), transparent 70%),
    radial-gradient(60% 60% at 50% 50%, rgb(169 220 187 / .45), transparent 75%),
    linear-gradient(#fff, #fff);
}

.hero-grid {
  --tooth-w: clamp(250px, 29vw, 430px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--tooth-w) minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  column-gap: 0;
  align-items: center;
  min-height: min(calc(100svh - var(--header-h) - 150px), 700px);
}
.hero-title { display: contents; }
.hl {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.1vw, 7.4rem);
  line-height: .9;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: var(--color-primary);
  position: relative; z-index: 1;
}
html[lang="fr"] .hl { font-size: clamp(2.3rem, 6.1vw, 6.4rem); }
html[lang="ar"] .hl { text-transform: none; letter-spacing: 0; line-height: 1.25; font-weight: 600; font-size: clamp(2.4rem, 5.8vw, 6rem); }

.hl-1 { grid-column: 1; grid-row: 1; text-align: center; align-self: end; padding-inline-end: 6%; }
.hl-2 { grid-column: 1; grid-row: 2; text-align: end; margin-inline-end: calc(var(--tooth-w) * -.12); }
.hl-3 { grid-column: 3; grid-row: 2; text-align: start; margin-inline-start: calc(var(--tooth-w) * -.12); }
.hl-4 { grid-column: 3; grid-row: 3; text-align: end; align-self: start; }

.hero-tooth { grid-column: 2; grid-row: 1 / span 4; align-self: stretch; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.tooth { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgb(31 74 46 / .18)); }
.tooth-body { transform-origin: 50% 50%; animation: float 6s ease-in-out infinite; }
.tooth-shadow { transform-origin: 200px 528px; animation: shadow 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.86); opacity: .7; } }

.hero-lead {
  grid-column: 1; grid-row: 3; align-self: start;
  max-width: 34ch; margin-top: var(--s-5);
  font-size: .98rem; color: var(--color-text-muted);
}
.hero-ctas {
  grid-column: 2 / 4; grid-row: 4; justify-self: end; align-self: end; position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: var(--s-5);
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4);
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgb(31 74 46 / .15);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat dd { order: -1; }
.stat dd { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.02em; color: var(--color-primary); }
.stat dt { font-size: .9rem; color: var(--color-text-muted); max-width: 22ch; }

@media (max-width: 1023px) {
  .hero { padding-top: calc(var(--header-h) + var(--s-3)); }
  .hero-glow {
    background:
      radial-gradient(circle at 50% 26%, rgb(110 190 140 / .5), transparent 42%),
      radial-gradient(120% 60% at 50% 30%, rgb(169 220 187 / .35), transparent 70%),
      linear-gradient(#fff, #fff);
  }
  .hero-grid {
    --tooth-w: min(62vw, 300px);
    grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; text-align: center;
  }
  .hl, .hl-1, .hl-2, .hl-3, .hl-4 {
    grid-column: 1; grid-row: auto; text-align: center; margin: 0; padding: 0;
    font-size: clamp(2.5rem, 12.5vw, 5rem);
  }
  html[lang="fr"] .hl { font-size: clamp(2.1rem, 10.5vw, 4.4rem); }
  html[lang="ar"] .hl { font-size: clamp(2.3rem, 11vw, 4.4rem); }
  .hero-tooth { grid-column: 1; grid-row: auto; order: -1; width: var(--tooth-w); justify-self: center; margin-bottom: var(--s-2); }
  .hero-lead { grid-column: 1; grid-row: auto; justify-self: center; text-align: center; margin-top: var(--s-5); }
  .hero-ctas { grid-column: 1; grid-row: auto; justify-self: stretch; justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-5); }
}
@media (max-width: 520px) {
  .hero-ctas .btn { width: 100%; }
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-soft { background: var(--color-bg-soft); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head-split { max-width: none; display: grid; gap: var(--s-4); align-items: end; }
@media (min-width: 900px) { .section-head-split { grid-template-columns: 1.1fr .9fr; gap: var(--s-8); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s-4);
  font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .85rem; }

.h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -.03em;
  color: var(--green-900); text-wrap: balance;
}
.h2 em, .h2 :is(em) {
  font-family: var(--font-accent); font-style: italic; font-weight: 500;
  letter-spacing: -.01em; color: var(--green-600); font-size: 1.08em;
}
html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.35; }
html[lang="ar"] .h2 em { font-style: normal; font-size: 1em; }

.lead { margin-top: var(--s-4); font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--color-text-muted); max-width: 60ch; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), clip-path 1100ms var(--ease-out); }
.reveal[data-reveal="scale"] { transform: scale(.92); }
.reveal[data-reveal="left"] { transform: translateX(-40px); }
.reveal[data-reveal="right"] { transform: translateX(40px); }
.reveal[data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(14% 10% 14% 10% round var(--radius-lg)); }
.reveal[data-reveal="clip"] img { scale: 1.18; transition: scale 1400ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.reveal[data-reveal="clip"].is-in img { scale: 1; }
.no-js .reveal { opacity: 1; transform: none; clip-path: none; }

.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .lead { margin-inline: auto; }

/* scroll progress bar */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-600), var(--mint-glow)); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .scroll-progress span { transform-origin: right; }

/* =========================================================
   Our Services
   ========================================================= */
.svc-stage {
  position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1;
  display: grid; place-items: center; overflow: hidden; border-radius: 36px; perspective: 1000px;
  background:
    radial-gradient(circle at 50% 42%, #fff 0, rgb(255 255 255 / 0) 46%),
    radial-gradient(circle at 50% 100%, rgb(169 220 187 / .7), transparent 60%),
    var(--green-100);
  box-shadow: inset 0 0 0 1px rgb(31 74 46 / .06);
}
.svc-stage::before {
  content: ""; position: absolute; inset: 11%; border-radius: 50%;
  border: 1px dashed rgb(31 74 46 / .18); animation: spin 60s linear infinite;
}
.svc-num {
  position: absolute; top: 18px; inset-inline-start: 26px; z-index: 1;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 6vw, 5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgb(31 74 46 / .28);
}
.svc-3d {
  width: 84%; transform-style: preserve-3d; will-change: transform;
  transform: rotateY(calc(var(--sp, 0) * 28deg)) rotateX(calc(var(--sp, 0) * -8deg)) translateY(calc(var(--sp, 0) * -18px));
}
.ill { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 26px 30px rgb(31 74 46 / .18)); }

.svc-kicker { font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .1em; color: var(--color-text-muted); }
.svc-kicker span { color: var(--green-600); font-size: 1.1rem; }
.svc-title { margin-top: 10px; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.05; letter-spacing: -.03em; color: var(--green-900); }
.svc-tag { margin-top: 8px; font-family: var(--font-accent); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.25; color: var(--green-600); }
html[lang="ar"] .svc-title { letter-spacing: 0; line-height: 1.35; }
html[lang="ar"] .svc-tag { font-style: normal; font-size: 1.15rem; }
.svc-desc { margin-top: var(--s-4); font-size: 1.05rem; color: var(--color-text-muted); max-width: 60ch; }
.svc-cols { display: grid; gap: var(--s-6); margin-top: var(--s-6); }
@media (min-width: 640px) { .svc-cols { grid-template-columns: 1fr 1fr; } }
.svc-cols h4 { margin-bottom: 14px; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }
html[lang="ar"] .svc-cols h4 { letter-spacing: 0; font-size: .9rem; }
.svc-ideal, .svc-steps { display: grid; gap: 12px; font-size: .97rem; line-height: 1.45; }
.svc-ideal li, .svc-steps li { display: flex; gap: 12px; align-items: flex-start; }
.svc-ideal li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4A2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.svc-steps { counter-reset: st; }
.svc-steps li { counter-increment: st; }
.svc-steps li::before {
  content: counter(st); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-size: .75rem; font-weight: 700; font-family: var(--font-display);
}
.svc-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: var(--s-6);
  background: var(--color-border); border: 1px solid var(--color-border); border-radius: 18px; overflow: hidden;
}
.svc-facts > div { background: #fff; padding: 16px 18px; }
.svc-facts dt { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--color-text-muted); }
.svc-facts dt .ic { width: 16px; height: 16px; color: var(--green-600); }
.svc-facts dd { margin-top: 6px; font-weight: 600; font-size: .98rem; line-height: 1.35; color: var(--green-900); }
/* --- illustration motion --- */
.ill { will-change: transform; animation: illBob 5s ease-in-out infinite; }
@keyframes illBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.spk { transform-box: fill-box; transform-origin: center; animation: twinkle 2.8s ease-in-out infinite; }
.spk-2 { animation-delay: -.9s; } .spk-3 { animation-delay: -1.8s; }
@keyframes twinkle { 0%, 100% { transform: scale(.5) rotate(0deg); opacity: .35; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
.ill-orbit { animation: orbit 14s linear infinite; }
@keyframes orbit { to { stroke-dashoffset: -560; } }

.wh-tint { animation: whTint 6s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes whTint {
  0%, 12% { transform: translateX(0); opacity: .55; }
  50%, 82% { transform: translateX(420px); opacity: .55; }
  84% { transform: translateX(420px); opacity: 0; }
  85% { transform: translateX(0); opacity: 0; }
  100% { transform: translateX(0); opacity: .55; }
}
.wh-shine { animation: whShine 6s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes whShine { 0%, 12% { transform: translateX(0); } 50%, 100% { transform: translateX(640px); } }

.imp-threads { animation: threads 1.4s linear infinite; }
@keyframes threads { to { transform: translateY(13px); } }
.imp-crown { animation: dropIn 5s cubic-bezier(.22, 1, .36, 1) infinite; --from: -70px; }
.cr-cap { animation: dropIn 5s cubic-bezier(.22, 1, .36, 1) infinite; --from: -150px; }
@keyframes dropIn {
  0% { transform: translateY(var(--from)); opacity: 0; }
  12% { opacity: 1; }
  42%, 86% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(calc(var(--from) * .3)); opacity: 0; }
}
.veneer { animation: veneerIn 5.5s cubic-bezier(.22, 1, .36, 1) infinite; }
@keyframes veneerIn {
  0% { transform: translate(220px, -50px) rotate(12deg); opacity: 0; }
  10% { opacity: 1; }
  42%, 86% { transform: none; opacity: 1; }
  100% { transform: translate(0, -30px); opacity: 0; }
}
.rc-pulp { fill: #7FC69A; animation: rcPulp 5s ease-in-out infinite; }
@keyframes rcPulp { 0%, 15% { fill: #E58A7B; } 55%, 85% { fill: #7FC69A; } 100% { fill: #E58A7B; } }
.rc-canal { fill: none; stroke: #E58A7B; stroke-width: 10; stroke-linecap: round; opacity: .75; }
.rc-fill { fill: none; stroke: #2A6340; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: rcFill 5s ease-in-out infinite; }
@keyframes rcFill { 0%, 15% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }

.anim-scope:not(.in-view) .ill, .anim-scope:not(.in-view) .ill * { animation-play-state: paused; }
/* grid cards stay still (cheap to scroll past) and come alive on hover / focus */
.svc-card:not(:hover):not(:focus-visible) .ill * { animation: none; }

/* =========================================================
   Before / After — compact, "After" on the left
   ========================================================= */
.results .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.ba-grid {
  display: grid; gap: clamp(16px, 2.5vw, 28px); max-width: 860px; margin-inline: auto;
  transform-origin: 50% 0; scale: var(--ss, 1);
}
@media (min-width: 640px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba-card figcaption { margin-top: 14px; font-weight: 600; font-size: .95rem; color: var(--green-900); text-align: center; }

.ba {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); background: var(--green-100); box-shadow: var(--shadow-lg);
  user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.ba.is-dragging { cursor: grabbing; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); will-change: clip-path; }
.ba-tag {
  position: absolute; bottom: 14px; z-index: 3; padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; pointer-events: none;
  transition: opacity 250ms ease;
}
html[lang="ar"] .ba-tag { letter-spacing: 0; font-size: .82rem; }
.ba-tag-after { left: 14px; background: var(--color-primary); color: #fff; opacity: var(--ta, 1); }
.ba-tag-before { right: 14px; background: rgb(255 255 255 / .94); color: var(--green-900); opacity: var(--tb, 1); }
.ba-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; translate: -50% 0; z-index: 2;
  background: rgb(255 255 255 / .95); box-shadow: 0 0 14px rgb(0 0 0 / .25); pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; translate: -50% -50%;
  display: grid; place-items: center; border-radius: 50%;
  background: rgb(255 255 255 / .96); color: var(--color-primary);
  box-shadow: 0 10px 30px rgb(15 36 24 / .3), 0 0 0 6px rgb(255 255 255 / .3);
  transition: scale 220ms var(--ease-out), box-shadow 220ms ease;
}
.ba-knob::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #fff; animation: ping 2.2s var(--ease-out) infinite; }
.ba.touched .ba-knob::after { display: none; }
.ba.is-dragging .ba-knob { scale: 1.1; box-shadow: 0 14px 34px rgb(15 36 24 / .35), 0 0 0 10px rgb(255 255 255 / .35); }
.ba-knob .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.ba-hint-chip {
  position: absolute; left: 50%; top: 14px; translate: -50% 0; z-index: 3;
  padding: 7px 13px; border-radius: var(--radius-pill); white-space: nowrap;
  background: rgb(15 36 24 / .72); color: #fff; font-size: .8rem; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: opacity 400ms ease, translate 400ms var(--ease-out); pointer-events: none;
}
.ba.touched .ba-hint-chip { opacity: 0; translate: -50% -10px; }
.ba-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 4px; }

/* =========================================================
   Journey timeline
   ========================================================= */
.timeline { display: grid; gap: var(--s-5); counter-reset: step; }
.timeline li { position: relative; padding-inline-start: 36px; }
.timeline li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--color-primary);
}
.timeline li::after {
  content: ""; position: absolute; inset-inline-start: 6px; top: 26px; bottom: calc(var(--s-5) * -1 + 4px); width: 2px; background: var(--green-200);
}
.timeline li:last-child::after { display: none; }
.t-day { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }
html[lang="ar"] .t-day { letter-spacing: 0; }
.timeline h3 { margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--green-900); }
.timeline p { margin-top: 6px; color: var(--color-text-muted); font-size: .95rem; }

@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(6, 1fr); gap: var(--s-5); }
  .timeline li { padding-inline-start: 0; padding-top: 40px; }
  .timeline li::before { top: 0; }
  .timeline li::after { top: 6px; bottom: auto; inset-inline-start: 22px; inset-inline-end: calc(var(--s-5) * -1); width: auto; height: 2px; }
  .timeline li:last-child::after { display: block; inset-inline-end: 0; }
}

/* =========================================================
   Clinic gallery
   ========================================================= */
.gallery { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); }
.g { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--green-100); aspect-ratio: 4 / 3; }
.g-a { grid-column: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.g:hover img { transform: scale(1.04); }
.g figcaption {
  position: absolute; inset-inline-start: 12px; top: 12px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgb(255 255 255 / .92); color: var(--green-900); font-size: .82rem; font-weight: 600;
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(200px, 18vw)); gap: var(--s-4); }
  .g { aspect-ratio: auto; }
  .g-a { grid-column: span 2; grid-row: span 2; }
}

/* =========================================================
   Quote form
   ========================================================= */
.quote-section { background: var(--green-900); color: #fff; position: relative; overflow: hidden; }
.quote-section::before {
  content: ""; position: absolute; width: 900px; height: 900px; inset-inline-start: -320px; top: -280px;
  background: radial-gradient(closest-side, rgb(169 220 187 / .18), transparent); pointer-events: none;
}
.quote-grid { position: relative; display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1000px) { .quote-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-9); } }
.quote-section .h2 { color: #fff; }
.quote-section .h2 em { color: var(--mint-glow); }
.quote-section .lead { color: rgb(255 255 255 / .8); }
.eyebrow-light { color: var(--mint-glow); }
.quote-points { display: grid; gap: 14px; margin-top: var(--s-6); }
.quote-points li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.quote-points .ic { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: rgb(255 255 255 / .1); color: var(--mint-glow); stroke-width: 2.5; }
.wa-inline {
  display: inline-flex; align-items: center; gap: 10px; margin-top: var(--s-6);
  min-height: 48px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1.5px solid rgb(255 255 255 / .3); text-decoration: none; font-weight: 600;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.wa-inline:hover { border-color: #fff; background: rgb(255 255 255 / .06); }
.wa-inline .ic { width: 22px; height: 22px; }

.quote-form {
  position: relative; display: grid; gap: var(--s-4);
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg);
  background: #fff; color: var(--color-text); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .45);
}
.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-weight: 600; font-size: .92rem; color: var(--green-900); }
.req { color: var(--color-error); }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--color-border); border-radius: 12px; background: #fff; font-size: 1rem;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9CCBF; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgb(42 99 64 / .18);
}
html[lang="ar"] #f-phone { text-align: right; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select-wrap .ic { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--color-text-muted); }
.hint { font-size: .85rem; color: var(--color-text-muted); }
.err { display: none; font-size: .875rem; font-weight: 500; color: var(--color-error); }
.field.has-error .err { display: flex; gap: 6px; align-items: center; }
.field.has-error .err::before { content: "!"; display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--color-error); color: #fff; font-size: .72rem; font-weight: 700; }
.field.has-error input:not([type="checkbox"]), .field.has-error textarea { border-color: var(--color-error); }

.file {
  display: flex; align-items: center; gap: 14px; padding: 14px; cursor: pointer;
  border: 1.5px dashed #B9CCBF; border-radius: 12px; background: var(--green-50);
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.file:hover { border-color: var(--color-primary); background: var(--green-100); }
#f-photo:focus-visible + .err, .field:has(#f-photo:focus-visible) .file { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.file-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--color-primary); flex: none; }
.file-text { display: grid; font-size: .92rem; min-width: 0; }
.file-text strong { color: var(--green-900); }
.file-name { color: var(--color-text-muted); overflow-wrap: anywhere; }

.field-check { grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--color-primary); cursor: pointer; }
.field-check label { font-weight: 500; font-size: .92rem; color: var(--color-text); cursor: pointer; }
.field-check .err { grid-column: 2; }

.form-summary {
  padding: 12px 16px; border-radius: 12px; background: #FEF3F2; color: var(--color-error);
  border: 1px solid #FECDCA; font-weight: 600; font-size: .92rem;
}
.form-summary ul { margin-top: 6px; display: grid; gap: 2px; font-weight: 500; }
.form-summary a { color: inherit; }

.submit-btn { margin-top: var(--s-2); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; animation: spin 700ms linear infinite; }
.submit-btn[aria-busy="true"] { opacity: .8; cursor: progress; }
.submit-btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  padding: var(--s-6); text-align: center; border-radius: inherit; background: #fff;
}
.form-success[hidden] { display: none; }
.success-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-100); color: var(--color-primary); }
.success-ic .ic { width: 30px; height: 30px; stroke-width: 2.4; }
.form-success h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--green-900); }
.form-success p { color: var(--color-text-muted); max-width: 32ch; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-grid { display: grid; gap: var(--s-5); }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: var(--s-9); } }
.faq-list { border-top: 1px solid var(--color-border); }
.faq-list details { border-bottom: 1px solid var(--color-border); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 72px; padding-block: var(--s-4); cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--green-900);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { width: 22px; height: 22px; color: var(--color-primary); transition: transform var(--dur) var(--ease-out); }
.faq-list details[open] summary .ic { transform: rotate(180deg); }
.faq-list details p { padding-bottom: var(--s-5); color: var(--color-text-muted); max-width: 62ch; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--green-950); color: rgb(255 255 255 / .82); padding-top: var(--s-9); }
.footer-grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; } }
.footer-logo { width: 150px; height: auto; margin-bottom: var(--s-4); }
.footer-brand p { max-width: 34ch; }
.footer-h { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-4); }
html[lang="ar"] .footer-h { letter-spacing: 0; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer a { text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; transition: color var(--dur-fast) ease; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.footer-contact .ic { width: 18px; height: 18px; color: var(--mint-glow); }
.footer-bottom { margin-top: var(--s-8); padding-block: var(--s-5); border-top: 1px solid rgb(255 255 255 / .12); font-size: .875rem; color: rgb(255 255 255 / .7); }

/* =========================================================
   WhatsApp float
   ========================================================= */
.wa-float {
  position: fixed; z-index: var(--z-float);
  inset-inline-end: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--color-primary); color: #fff; box-shadow: 0 12px 30px -8px rgb(15 36 24 / .55);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) ease;
}
.wa-float:hover { transform: scale(1.06); background: var(--green-900); }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green-500);
  animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }


/* =========================================================
   About
   ========================================================= */
.about-grid { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 1000px) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }
.about-media { position: relative; padding-bottom: 16%; padding-inline-end: 16%; }
.about-img { overflow: hidden; border-radius: var(--radius-lg); }
.about-img img { width: 100%; object-fit: cover; }
.about-img-main img { aspect-ratio: 4 / 5; }
.about-img-small { position: absolute; inset-inline-end: 0; bottom: 0; width: 50%; border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.about-img-small img { aspect-ratio: 1; }
.about-badge {
  position: absolute; top: 28px; inset-inline-start: 20px;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-pill);
  background: #fff; color: var(--green-900); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-md);
}
.about-badge .ic { width: 18px; height: 18px; color: var(--green-600); }
.about-p { margin-top: var(--s-4); color: var(--color-text-muted); max-width: 60ch; }
.values { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
@media (min-width: 560px) { .values { grid-template-columns: 1fr 1fr; } }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values .inc-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; }
.values h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--green-900); }
.values p { margin-top: 4px; font-size: .92rem; color: var(--color-text-muted); }
.counters {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-4);
  margin-top: clamp(56px, 7vw, 96px); padding-top: var(--s-6); border-top: 1px solid var(--color-border);
}
@media (min-width: 900px) { .counters { grid-template-columns: repeat(4, 1fr); } }
.count-num { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.8rem, 5.5vw, 4.6rem); line-height: 1; letter-spacing: -.03em; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.count-label { display: block; margin-top: 8px; color: var(--color-text-muted); }

/* =========================================================
   Booking extras
   ========================================================= */
.btn-ic { width: 20px; height: 20px; }
.submit-btn[aria-busy="true"] .btn-ic { display: none; }

/* =========================================================
   Pinned hero — the 3D tooth turns as you scroll
   ========================================================= */
.hero { --hp: 0; --hs: 0; --dir: 1; padding: 0; overflow: clip; }
[dir="rtl"] .hero { --dir: -1; }
.hero-pin { position: relative; padding-top: calc(var(--header-h) + var(--s-3)); padding-bottom: var(--s-6); overflow: hidden; isolation: isolate; }
.hero-glow { transform: scale(calc(1 + var(--hp) * .35)); will-change: transform; }
.hero-tooth { position: relative; }
.tooth-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-tooth.is-3d .tooth { display: none; }
.hero-tooth::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 1%; height: 24px; z-index: -1;
  background: radial-gradient(closest-side, rgb(31 74 46 / .26), transparent);
}

@media (min-width: 1024px) {
  .hero { height: 300vh; }
  .hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: var(--s-5); }
  .hero-grid { min-height: 0; height: calc(100svh - var(--header-h) - 64px); }
  .hl-1, .hl-2 { translate: calc(var(--hs) * -24vw * var(--dir)) 0; }
  .hl-3, .hl-4 { translate: calc(var(--hs) * 24vw * var(--dir)) 0; }
  .hl { opacity: calc(1 - var(--hs) * 1.25); will-change: translate, opacity; }
  .hero-lead, .hero-ctas { opacity: calc(1 - var(--hs) * 2.2); translate: 0 calc(var(--hs) * -36px); }
  .hero.is-past .hero-ctas, .hero.is-past .hero-lead { pointer-events: none; visibility: hidden; }
  .hero-tooth { scale: calc(1 + var(--hs) * .14); }
}
@media (max-width: 1023px) {
  .hero-tooth { aspect-ratio: 400 / 540; }
  .hero-callouts, .scroll-cue { display: none; }
}

.hero-callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hc {
  position: absolute; display: flex; gap: 12px; align-items: flex-start; max-width: 300px;
  padding: 16px 18px; border-radius: 18px; border: 1px solid rgb(31 74 46 / .08);
  background: rgb(255 255 255 / .94);
  box-shadow: var(--shadow-md); will-change: opacity, translate;
  opacity: var(--o, 0); translate: 0 calc((1 - var(--o, 0)) * 26px); scale: calc(.94 + var(--o, 0) * .06);
}
.hc strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--green-900); }
.hc p { margin-top: 2px; font-size: .9rem; line-height: 1.45; color: var(--color-text-muted); }
.hc-dot { flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 6px rgb(60 127 85 / .18); }
.hc-1 { inset-inline-start: max(var(--gutter), 7vw); top: 30%; }
.hc-2 { inset-inline-end: max(var(--gutter), 7vw); top: 24%; }
.hc-3 { inset-inline-start: max(var(--gutter), 9vw); top: 60%; }

.scroll-cue {
  position: absolute; inset-inline-start: max(var(--gutter), calc(50vw - 660px + var(--gutter))); bottom: 22px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green-600); text-decoration: none;
  opacity: calc(1 - var(--hp) * 6);
}
.scroll-cue-line { width: 1.5px; height: 38px; background: var(--green-600); transform-origin: top; animation: cue 2s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.stats-strip { padding-block: var(--s-6) 0; }
.stats-strip .stats { margin-top: 0; padding-top: 0; border-top: 0; }

/* section headings rise out of a mask */
.section-head.reveal .h2 { clip-path: inset(0 0 100% 0); translate: 0 32px; transition: clip-path 1100ms var(--ease-out) 120ms, translate 1100ms var(--ease-out) 120ms; }
.section-head.reveal.is-in .h2 { clip-path: inset(-12% -4% -24% -4%); translate: 0 0; }

[data-scroll-scale] { will-change: scale; }
[data-parallax] { translate: 0 var(--py, 0px); will-change: translate; }
.g img[data-parallax] { scale: 1.12; }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* =========================================================
   Services — compact cards
   ========================================================= */
.svc-grid { display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } .svc-grid-6 { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 26px; background: #fff; border: 1px solid var(--color-border);
  color: inherit; text-decoration: none;
  transition: translate 450ms var(--ease-out), box-shadow 450ms ease, border-color 300ms ease, opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.svc-card:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card-stage {
  position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; overflow: hidden; perspective: 700px;
  background: radial-gradient(circle at 50% 38%, #fff 0, var(--green-100) 72%);
}
.svc-card-stage .ill { width: 74%; filter: drop-shadow(0 16px 18px rgb(31 74 46 / .16)); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 500ms var(--ease-out); }
.svc-card-num { position: absolute; top: 14px; inset-inline-start: 18px; font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgb(31 74 46 / .3); }
.svc-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 22px 22px; }
.svc-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; color: var(--green-900); }
.svc-card-tag { flex: 1; font-size: .93rem; line-height: 1.45; color: var(--color-text-muted); }
.svc-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: .9rem; color: var(--green-700); }
.ic-go { width: 16px; height: 16px; stroke-width: 2.2; transform: rotate(-90deg); transition: transform 300ms var(--ease-out); }
.svc-card:hover .ic-go, .sp-all:hover .ic-go { transform: rotate(-90deg) scale(1.2); }
[dir="rtl"] .ic-go { transform: rotate(180deg); }
[dir="rtl"] .svc-card:hover .ic-go { transform: rotate(180deg) scale(1.2); }
.svc-card-cta { justify-content: flex-end; gap: 12px; padding: 28px; background: var(--green-700); border-color: var(--green-700); color: #fff; }
.svc-card-cta .svc-card-title { font-size: 1.35rem; color: #fff; }
.svc-card-cta p { color: rgb(255 255 255 / .82); }
.svc-cta-ic { width: 44px; height: 44px; margin-bottom: auto; color: var(--mint-glow); }
.svc-card-cta .btn { align-self: flex-start; margin-top: 6px; }

/* =========================================================
   Marquee band — moves with scroll
   ========================================================= */
.marquee { overflow: hidden; padding-block: clamp(28px, 5vw, 60px); border-block: 1px solid var(--color-border); background: #fff; }
.marquee-row { white-space: nowrap; }
.marquee-row + .marquee-row { margin-top: 6px; }
.marquee-track {
  display: inline-flex; align-items: center; gap: clamp(18px, 3vw, 40px); will-change: transform;
  transform: translate3d(var(--mx, 0px), 0, 0);
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 6vw, 5.4rem); line-height: 1.12; letter-spacing: -.03em;
  text-transform: uppercase; color: var(--green-900);
}
.marquee-row-alt .marquee-track { color: transparent; -webkit-text-stroke: 1.5px var(--green-600); }
html[lang="ar"] .marquee-track { text-transform: none; letter-spacing: 0; }
.mq-star { flex: none; width: .45em; height: .45em; fill: var(--green-600); }

/* =========================================================
   How it works — line draws with scroll
   ========================================================= */
.process-wrap { position: relative; --pr: 0; }
.process-steps { position: relative; display: grid; gap: var(--s-6); }
.process-track { position: absolute; background: var(--green-200); border-radius: 2px; }
.process-fill { position: absolute; inset: 0; background: var(--color-primary); border-radius: inherit; }
.pstep { position: relative; }
.pstep-dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--green-200); color: var(--green-600);
  transition: background-color 450ms ease, color 450ms ease, border-color 450ms ease, scale 450ms var(--ease-out);
}
.pstep-dot .ic { width: 22px; height: 22px; }
.pstep.on .pstep-dot { background: var(--color-primary); border-color: var(--color-primary); color: #fff; scale: 1.08; }
.pstep-num { display: block; margin-top: 16px; font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .12em; color: var(--green-600); }
.pstep h3 { margin-top: 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--green-900); }
.pstep p { margin-top: 6px; font-size: .95rem; color: var(--color-text-muted); max-width: 32ch; }
@media (min-width: 900px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); text-align: center; }
  .pstep-dot { margin-inline: auto; }
  .pstep p { margin-inline: auto; }
  .process-track { top: 27px; height: 3px; left: 12.5%; right: 12.5%; }
  .process-fill { transform-origin: left; transform: scaleX(var(--pr)); }
  [dir="rtl"] .process-fill { transform-origin: right; }
}
@media (max-width: 899px) {
  .pstep { padding-inline-start: 76px; min-height: 56px; }
  .pstep-dot { position: absolute; inset-inline-start: 0; top: 0; }
  .pstep-num { margin-top: 0; }
  .process-track { inset-inline-start: 27px; top: 28px; bottom: 28px; width: 3px; }
  .process-fill { transform-origin: top; transform: scaleY(var(--pr)); }
}
.timeline li::before { transition: background-color 400ms ease; }
.timeline li.on::before { background: var(--color-primary); }

/* =========================================================
   Visit / contact
   ========================================================= */
.visit-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1000px) { .visit-grid { grid-template-columns: 1fr 1.1fr; gap: var(--s-9); } }
.visit .section-head { margin-bottom: var(--s-5); }
.visit-info { margin-bottom: var(--s-6); border-top: 1px solid var(--color-border); }
.visit-info > div { display: grid; gap: 4px 16px; padding-block: 16px; border-bottom: 1px solid var(--color-border); }
@media (min-width: 560px) { .visit-info > div { grid-template-columns: 210px 1fr; } }
.visit-info dt { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--green-900); }
.visit-info dt .ic { width: 18px; height: 18px; color: var(--green-600); }
.visit-info dd { color: var(--color-text-muted); }
.visit-info dd a { color: var(--green-700); font-weight: 600; }
.map-frame { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: var(--green-100); box-shadow: var(--shadow-lg); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }

.footer-social { display: flex; gap: 10px; margin-top: var(--s-5); }
.site-footer .footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .2); transition: background-color var(--dur) ease, border-color var(--dur) ease;
}
.site-footer .footer-social a:hover { background: rgb(255 255 255 / .1); border-color: #fff; text-decoration: none; }
.footer-social .ic { width: 20px; height: 20px; }

/* =========================================================
   Service detail pages
   ========================================================= */
.sp-hero { position: relative; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(56px, 8vw, 110px); overflow: clip; isolation: isolate; }
.sp-hero-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .sp-hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--s-8); } }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--color-text-muted); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 8px; opacity: .5; }
.breadcrumb a { color: var(--green-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-hero .svc-kicker { margin-top: var(--s-5); }
.sp-title { margin-top: 8px; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; letter-spacing: -.035em; color: var(--green-900); text-wrap: balance; }
html[lang="ar"] .sp-title { letter-spacing: 0; line-height: 1.3; }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: var(--s-6); }
.sp-details-grid { display: grid; gap: var(--s-8); }
@media (min-width: 960px) { .sp-details-grid { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }
.sp-h { margin-bottom: var(--s-5); font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.02em; color: var(--green-900); }
.sp-ideal .svc-facts { margin-top: var(--s-7); }
.sp-steps-box { position: relative; --pr: 0; }
.sp-steps { display: grid; gap: var(--s-6); }
.sp-steps li { position: relative; display: flex; gap: 20px; align-items: flex-start; }
.sp-step-n {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 2px solid var(--green-200); font-family: var(--font-display); font-weight: 600; color: var(--green-600);
  transition: background-color 450ms ease, color 450ms ease, border-color 450ms ease;
}
.sp-steps li.on .sp-step-n { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.sp-steps li p { padding-top: 11px; font-size: 1.05rem; }
.sp-steps-track { position: absolute; inset-inline-start: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--green-200); }
.sp-steps-fill { position: absolute; inset: 0; background: var(--color-primary); transform-origin: top; transform: scaleY(var(--pr)); }
.sp-all { align-self: end; justify-self: end; }
.cta-band { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 130px); background: var(--green-900); color: #fff; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: -40% 10% auto; height: 120%; background: radial-gradient(closest-side, rgb(169 220 187 / .2), transparent); pointer-events: none; }
.cta-inner { position: relative; max-width: 760px; margin-inline: auto; }
.cta-band .h2 { color: #fff; }
.cta-band .h2 em { color: var(--mint-glow); }
.cta-band .lead { margin-inline: auto; color: rgb(255 255 255 / .8); }
.cta-band .sp-actions { justify-content: center; }
.cta-band .wa-inline { margin-top: 0; color: #fff; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal[data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .reveal[data-reveal="clip"] img { scale: 1; }
  .wa-float::before, .ba-knob::after, .wh-tint, .wh-shine { display: none; }
  .svc-3d, .hero-tooth, .hl, [data-parallax], [data-scroll-scale] { transform: none; translate: none; rotate: none; scale: none; filter: none; }
  .hero { height: auto; }
  .hero-pin { position: relative; height: auto; }
  .hero-callouts { display: none; }
  .section-head.reveal .h2 { clip-path: none; translate: none; }
}

/* storefront photo: keep the signage (name + phone) in view and the caption off it */
.g-e img { object-position: 50% 0; }
.g-e figcaption { top: auto; bottom: 12px; }
