/* =====================================================================
   Dr. Ebrahim Taghavi — Dental clinic website
   Phase 1: front-end (HTML/CSS/JS + Three.js + GSAP)
   ===================================================================== */

/* ---------- Fonts (self-hosted Vazirmatn: Arabic + Latin + Latin-ext) ---------- */
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/vazirmatn-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/vazirmatn-arabic-500-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/vazirmatn-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/vazirmatn-arabic-800-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/vazirmatn-arabic-900-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/vazirmatn-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/vazirmatn-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/vazirmatn-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/vazirmatn-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/vazirmatn-latin-ext-900-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/vazirmatn-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/vazirmatn-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/vazirmatn-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/vazirmatn-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/vazirmatn-latin-900-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --font: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bg: #eef1f6;
  --ink: #0f1218;
  --ink-2: #2a3140;
  --muted: #5d6675;
  --line: rgba(15, 18, 24, .09);
  --blue-50: #eaf2fd;
  --blue-100: #d5e5fa;
  --blue-300: #8fb8ee;
  --blue-500: #2f6fe4;
  --blue-600: #1f5ccc;
  --blue-900: #0f2c5c;
  --dark: #0b0d12;
  --dark-2: #151821;
  --dark-3: #1d212c;
  --white: #ffffff;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --pad: clamp(18px, 3.2vw, 44px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(64px, 8vw, 120px);
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.7; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
::selection { background: var(--blue-500); color: #fff; }
[dir="ltr"] { letter-spacing: -.01em; }

.page { max-width: 1480px; margin: 0 auto; padding: clamp(10px, 1.4vw, 20px); }
.center { text-align: center; }

/* Typography */
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.125rem); max-width: 62ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700;
  color: var(--blue-600); margin-bottom: 14px; letter-spacing: .02em;
}
.kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker--light { color: var(--blue-300); }
.section-head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gap); align-items: end;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.section-head .lead { justify-self: end; }
.section-head--light .h2 { color: #fff; }
.section-head--light .lead { color: rgba(255, 255, 255, .7); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 14px; font-weight: 700; font-size: .95rem;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s; will-change: transform;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn--dark { background: var(--dark); color: #fff; box-shadow: 0 10px 30px -12px rgba(11, 13, 18, .6); }
.btn--dark:hover { transform: translateY(-2px); background: #1a1e28; box-shadow: 0 18px 36px -14px rgba(11, 13, 18, .7); }
.btn--ghost { background: rgba(255, 255, 255, .55); border-color: rgba(15, 18, 24, .12); color: var(--ink); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: #fff; transform: translateY(-2px); }
.btn--sm { padding: 11px 18px; font-size: .88rem; border-radius: 12px; }
.btn__arrow { transition: transform .3s var(--ease); }
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
.btn:hover .btn__arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: grid; place-content: center; gap: 18px;
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader__mark svg { fill: var(--dark); margin: 0 auto; animation: pulse 1.4s ease-in-out infinite; }
.preloader__bar { width: 120px; height: 3px; background: rgba(15, 18, 24, .1); border-radius: 3px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 40%; background: var(--dark); border-radius: 3px; animation: bar 1.2s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.92); opacity: .6; } }
@keyframes bar { 0% { transform: translateX(-150%); } 100% { transform: translateX(350%); } }
[dir="rtl"] .preloader__bar span { animation-name: bar-rtl; }
@keyframes bar-rtl { 0% { transform: translateX(150%); } 100% { transform: translateX(-350%); } }
body:not(.is-loading) .preloader { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 calc(var(--pad) + clamp(10px, 1.4vw, 20px));
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.is-stuck { background: rgba(238, 241, 246, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--dark); display: grid; place-items: center; flex: none; }
.brand__mark svg { fill: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text b { font-weight: 800; font-size: 1rem; }
.brand__text small { font-size: .7rem; color: var(--muted); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: .92rem; color: var(--ink-2); transition: background .25s, color .25s; }
.nav__links a:hover { background: rgba(255, 255, 255, .6); color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

/* language switcher */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(15, 18, 24, .1); font-weight: 700; font-size: .8rem; letter-spacing: .04em;
}
.lang__menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 150px; background: #fff; border-radius: 14px; padding: 6px;
  box-shadow: 0 20px 50px -20px rgba(11, 13, 18, .45), 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: .25s var(--ease); z-index: 5;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu li { padding: 9px 12px; border-radius: 9px; font-size: .9rem; cursor: pointer; }
.lang__menu li:hover, .lang__menu li.is-active { background: var(--blue-50); color: var(--blue-600); font-weight: 700; }

/* burger */
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--dark); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { bottom: 17px; }
.burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(180deg, #e6eef9 0%, #cfe0f5 45%, #b5cfee 100%);
  padding-top: var(--nav-h);
  min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero__body {
  position: relative; flex: 1; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center;
  padding: clamp(24px, 4vw, 56px) var(--pad) clamp(24px, 3vw, 40px);
  min-height: calc(100svh - var(--nav-h) - 60px);
}
.hero__watermark {
  position: absolute; inset-inline: 0; bottom: -6%; text-align: center; font-weight: 900; line-height: 1;
  font-size: clamp(9rem, 26vw, 24rem); color: rgba(255, 255, 255, .34); pointer-events: none; user-select: none; z-index: 0;
  letter-spacing: -.02em; white-space: nowrap;
}
[dir="ltr"] .hero__watermark { letter-spacing: -.05em; font-size: clamp(7rem, 19vw, 17rem); bottom: -4%; }

.hero__visual { position: absolute; inset: 0; z-index: 1; }
.assembly {
  position: absolute; left: 50%; top: 51%; transform: translate(-50%, -50%);
  height: min(90%, 700px); aspect-ratio: 0.343; pointer-events: none;
}
.assembly img { position: absolute; left: 50%; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 24px 40px rgba(15, 40, 80, .25)); will-change: transform; }
.assembly__screw { bottom: 0; width: 62.5%; transform: translateX(-50%); transform-origin: 50% 75%; }
.assembly__crown { top: 0; width: 100%; transform: translateX(-50%); z-index: 2; }
[dir] .assembly img { margin-left: 0; }
.assembly__ring {
  position: absolute; left: 50%; top: 46%; width: 230%; height: 13%;
  transform: translate(-50%, -50%) rotate(-4deg);
  border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 255, 255, .15) inset;
}
.hero__shadow {
  position: absolute; left: 50%; bottom: 6%; width: 32%; max-width: 380px; height: 28px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(15, 40, 80, .28), transparent 70%); filter: blur(6px); pointer-events: none;
}
.hero__hint {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); font-size: .75rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px; pointer-events: none; opacity: 0; transition: opacity .8s;
}
.hero__hint::before, .hero__hint::after { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .5; }
.hero.is-ready .hero__hint { opacity: 1; }

/* floating callouts */
.callout {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px -18px rgba(15, 40, 80, .45), 0 0 0 1px rgba(255, 255, 255, .7); pointer-events: none; z-index: 2;
  opacity: 0; transform: translateY(10px);
}
.hero.is-ready .callout { animation: callout-in .8s var(--ease) forwards; }
.hero.is-ready .callout--b { animation-delay: .25s; }
@keyframes callout-in { to { opacity: 1; transform: none; } }
.callout b { display: block; font-size: .82rem; line-height: 1.3; }
.callout small { display: block; font-size: .7rem; color: var(--muted); }
.callout__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 111, 228, .18); flex: none; }
.callout--a { top: 24%; left: 34%; }
.callout--b { top: 60%; right: 34%; }

.hero__col { position: relative; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 24px); }
.hero__col a, .hero__col button { pointer-events: auto; }
.hero__col--start { grid-column: 1; }
.hero__col--end { grid-column: 3; align-items: flex-end; text-align: end; }
.hero__title--end { font-size: clamp(2.2rem, 4.4vw, 4rem); }

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8); width: fit-content; color: var(--ink-2);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); }

.hero__title { font-size: clamp(2.6rem, 5.4vw, 5rem); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--light { font-weight: 300; }
[dir="ltr"] .hero__title { line-height: 1.02; letter-spacing: -.03em; }
.hero__sub { color: var(--ink-2); max-width: 42ch; font-size: clamp(.95rem, 1.1vw, 1.08rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stat-n { display: flex; align-items: baseline; gap: 2px; font-size: clamp(1.9rem, 2.6vw, 2.6rem); font-weight: 800; line-height: 1; }
.hero__stat-n i { font-style: normal; color: var(--blue-500); font-size: .7em; }
.hero__stat p, .hero__stats2 p { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.hero__stat { margin-top: 8px; }
.hero__stats2 { display: flex; gap: 32px; }
.hero__stats2 > div { text-align: end; }
.hero__stats2 .hero__stat-n { justify-content: flex-end; }

.hero__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: .82rem; color: var(--ink-2); }
.hero__meta b { font-weight: 700; }
.hero__open { display: inline-flex; align-items: center; gap: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
.hero__loc { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-2); }
.hero__socials { display: flex; gap: 8px; }
.hero__socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .7); color: var(--ink); transition: .3s var(--ease); }
.hero__socials a:first-child { background: var(--dark); color: #fff; }
.hero__socials a:hover { transform: translateY(-3px); background: var(--dark); color: #fff; }

/* marquee */
.marquee { position: relative; z-index: 2; border-top: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .28); overflow: hidden; height: 56px; display: flex; align-items: center; }
.marquee__track { display: flex; gap: 40px; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee__track span { display: inline-flex; align-items: center; gap: 40px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.marquee__track span::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: clamp(36px, 5vw, 70px) var(--pad); }
.stat { display: flex; align-items: center; gap: 18px; padding: 8px clamp(10px, 2vw, 28px); border-inline-start: 1px solid var(--line); }
.stat:first-child { border: 0; padding-inline-start: 0; }
.stat__n { display: flex; align-items: baseline; font-size: clamp(2.2rem, 3.3vw, 3.3rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat__n i { font-style: normal; color: var(--blue-500); font-size: .55em; }
.stat > div { min-width: 0; }
.stat b { display: block; font-size: .92rem; line-height: 1.35; }
.stat small { display: block; color: var(--muted); font-size: .8rem; }

/* ---------- SERVICES ---------- */
.services { background: var(--dark); color: #fff; border-radius: var(--r-xl); padding: var(--section) var(--pad); position: relative; overflow: hidden; }
.services::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 111, 228, .25), transparent 65%); top: -250px; inset-inline-end: -150px; pointer-events: none; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card {
  background: var(--dark-2); border-radius: var(--r-lg); padding: 14px 14px 22px; border: 1px solid rgba(255, 255, 255, .06);
  transition: transform .5s var(--ease), border-color .4s, background .4s; display: flex; flex-direction: column; gap: 10px;
  transform-style: preserve-3d;
}
.card:hover { transform: translateY(-6px); border-color: rgba(143, 184, 238, .35); background: var(--dark-3); }
.card__media { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag { position: absolute; top: 12px; inset-inline-start: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(11, 13, 18, .6); backdrop-filter: blur(8px); font-size: .7rem; font-weight: 700; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-top: 8px; padding: 0 6px; }
.card p { color: rgba(255, 255, 255, .62); font-size: .9rem; padding: 0 6px; flex: 1; }
.card__more { display: inline-flex; align-items: center; gap: 8px; padding: 0 6px; font-size: .85rem; font-weight: 700; color: var(--blue-300); margin-top: 6px; }
[dir="rtl"] .card__more svg { transform: scaleX(-1); }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: var(--section) var(--pad); }
.about__media { position: relative; }
.about__photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px rgba(15, 40, 80, .45); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__exp { position: absolute; top: 24px; inset-inline-end: -14px; background: var(--dark); color: #fff; border-radius: var(--r-md); padding: 14px 18px; display: flex; flex-direction: column; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.about__exp b { font-size: 2rem; line-height: 1; font-weight: 800; display: flex; align-items: baseline; direction: ltr; }
.about__exp b .count { font-size: inherit; }
.about__exp span { font-size: .75rem; opacity: .75; }
.about__quote { position: absolute; bottom: 24px; inset-inline-start: -14px; max-width: 70%; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); border-radius: var(--r-md); padding: 14px 18px; font-weight: 600; font-size: .9rem; box-shadow: 0 20px 40px -24px rgba(15, 40, 80, .4); }
.about__text { display: flex; flex-direction: column; gap: 16px; }
.about__role { color: var(--blue-600); font-weight: 700; margin-top: -8px; }
.creds { display: grid; gap: 10px; margin: 6px 0 12px; }
.creds li { position: relative; padding-inline-start: 30px; font-weight: 500; }
.creds li::before { content: ''; position: absolute; inset-inline-start: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-50); }
.creds li::after { content: ''; position: absolute; inset-inline-start: 7px; top: 9px; width: 5px; height: 9px; border: solid var(--blue-600); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.about .btn { width: fit-content; }

/* ---------- PROCESS ---------- */
.process { padding: var(--section) var(--pad); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.step { background: #fff; border-radius: var(--r-lg); padding: 26px 22px 28px; border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.step:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(15, 40, 80, .35); }
.step__n { display: block; font-size: 2.6rem; font-weight: 900; color: var(--blue-100); line-height: 1; margin-bottom: 18px; letter-spacing: -.03em; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- GALLERY ---------- */
.gallery { padding: var(--section) var(--pad); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: 32px; }
.ba figcaption { margin-top: 12px; font-weight: 600; font-size: .92rem; }
.ba__wrap { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; --pos: 50%; user-select: none; }
.ba__wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__label { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(11, 13, 18, .55); color: #fff; backdrop-filter: blur(6px); pointer-events: none; }
.ba__label--before { left: 12px; } .ba__label--after { right: 12px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.ba__handle span::before, .ba__handle span::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; border: solid var(--dark); border-width: 0 0 2px 2px; }
.ba__handle span::before { left: 11px; transform: translateY(-50%) rotate(45deg); }
.ba__handle span::after { right: 11px; transform: translateY(-50%) rotate(-135deg); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; direction: ltr; }

/* ---------- OFFER ---------- */
.offer { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: var(--section) var(--pad); }
.offer__text { display: flex; flex-direction: column; gap: 16px; }
.perks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.perks li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.offer__card { position: relative; background: linear-gradient(160deg, #dbe8fa, #b9d2f1); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.offer__smile { position: absolute; top: 26px; inset-inline-end: 28px; color: var(--dark); }
.offer__pct { display: flex; align-items: baseline; font-size: clamp(3.6rem, 6vw, 5.5rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.offer__pct i { font-style: normal; font-size: .5em; color: var(--blue-600); }
.offer__card b { font-size: 1.1rem; }
.offer__card p { color: var(--ink-2); font-size: .92rem; max-width: 36ch; }
.offer__card .btn { width: fit-content; margin-top: 12px; }

/* ---------- TESTIMONIALS ---------- */
.testimonials { padding: var(--section) var(--pad); }
.testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.testi { background: #fff; border-radius: var(--r-lg); padding: 28px 26px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.testi__stars { color: #f5b301; letter-spacing: 2px; font-size: .9rem; }
.testi p { flex: 1; color: var(--ink-2); font-size: .95rem; }
.testi footer { display: flex; align-items: center; gap: 12px; }
.testi__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-100); color: var(--blue-900); display: grid; place-items: center; font-weight: 800; }
.testi footer b { display: block; font-size: .92rem; }
.testi footer small { color: var(--muted); font-size: .78rem; }

/* ---------- BOOKING ---------- */
.booking {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: var(--section) var(--pad);
  background: radial-gradient(60% 80% at 80% 10%, rgba(47, 111, 228, .35), transparent 60%), linear-gradient(160deg, #0f1a2e, #0b0d12 70%);
  color: #fff; border-radius: var(--r-xl);
}
.booking__text { display: flex; flex-direction: column; gap: 16px; }
.booking .lead { color: rgba(255, 255, 255, .7); }
.booking__contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.booking__contacts a { display: flex; flex-direction: column; padding: 14px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); min-width: 200px; transition: background .3s; }
.booking__contacts a:hover { background: rgba(255, 255, 255, .12); }
.booking__contacts small { font-size: .75rem; color: rgba(255, 255, 255, .6); }
.booking__contacts b { font-size: 1.05rem; text-align: start; }
.form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; }
.form input, .form select { font: inherit; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #f7f9fc; outline: 0; transition: border-color .25s, box-shadow .25s; width: 100%; }
.form input:focus, .form select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 111, 228, .15); background: #fff; }
.form__submit { grid-column: 1 / -1; width: 100%; }
.form__msg { grid-column: 1 / -1; font-size: .85rem; min-height: 1.4em; color: var(--blue-600); }
.form__msg.is-error { color: #d0342c; }

/* ---------- FOOTER ---------- */
.footer { background: var(--dark); color: #fff; border-radius: var(--r-xl); margin-top: 20px; padding: clamp(40px, 5vw, 70px) var(--pad) 26px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--gap); padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__brand p { color: rgba(255, 255, 255, .6); font-size: .9rem; max-width: 40ch; margin-top: 16px; }
.footer .brand__mark { background: #fff; } .footer .brand__mark svg { fill: var(--dark); }
.footer h4 { font-size: .95rem; margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; color: rgba(255, 255, 255, .7); font-size: .9rem; }
.footer ul a:hover { color: #fff; }
.hours li { display: flex; justify-content: space-between; gap: 12px; }
.hours b { color: #fff; font-weight: 600; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: .78rem; color: rgba(255, 255, 255, .5); }

/* ---------- Reveal (only when JS is available) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track, .pulse, .preloader__mark svg { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .hero__title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
  .callout--a { left: 28%; } .callout--b { right: 26%; }
}

@media (max-width: 1024px) {
  :root { --nav-h: 68px; }
  /* full-screen overlay; sized explicitly because the nav's backdrop-filter makes
     the nav the containing block for fixed children (inset:0 would collapse to the bar) */
  .nav__links { position: fixed; top: 0; inset-inline-start: 0; width: 100vw; height: 100svh; background: rgba(238, 241, 246, .96); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; gap: 8px; opacity: 0; visibility: hidden; transition: .35s var(--ease); z-index: -1; }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 1.6rem; font-weight: 700; padding: 10px 20px; }
  .burger { display: block; }
  .nav .btn { display: none; }
  .brand__text small { display: none; }

  .hero { min-height: 0; }
  .hero__body { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-bottom: 24px; }
  .hero__visual { position: relative; inset: auto; height: clamp(360px, 64vw, 560px); order: 2; margin: 0 calc(var(--pad) * -1); }
  .hero__col--start { order: 1; grid-column: 1; }
  .hero__col--end { order: 3; grid-column: 1; align-items: flex-start; text-align: start; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
  .hero__title--end { display: none; }
  .hero__meta { align-items: flex-start; }
  .hero__stats2 > div { text-align: start; } .hero__stats2 .hero__stat-n { justify-content: flex-start; }
  .hero__watermark { bottom: auto; top: 44%; font-size: clamp(7rem, 30vw, 14rem); }
  .callout--a { left: 6%; top: 24%; } .callout--b { right: 6%; top: 60%; }
  .hero__shadow { bottom: 2%; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(3) { border: 0; padding-inline-start: 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head .lead { justify-self: start; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .offer, .booking { grid-template-columns: 1fr; }
  .testi__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .page { padding: 8px; }
  :root { --r-xl: 22px; }
  .hero__title { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .hero__visual { height: clamp(330px, 92vw, 420px); }
  .callout { padding: 8px 12px; } .callout b { font-size: .75rem; } .callout small { font-size: .65rem; }
  .callout--a { left: 4%; top: 18%; } .callout--b { right: 4%; top: 66%; }
  .hero__cta .btn { flex: 1; }
  .hero__stats2 { gap: 22px; }
  .marquee { height: 48px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { flex-direction: column; align-items: flex-start; gap: 6px; border: 0; padding-inline: 0; }
  .services__grid, .steps, .gallery__grid, .testi__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__exp { inset-inline-end: 8px; top: 12px; }
  .about__quote { inset-inline-start: 8px; bottom: 12px; max-width: 80%; }
  .lang__btn span { display: none; }
}
