/* ==========================================================================
   Dr. Mostafa Awadallah — Orthopedic Clinic
   Design system + components. Bilingual (AR/EN), RTL/LTR, dark/light.
   Authored with CSS logical properties so one stylesheet serves both
   directions with no per-direction overrides.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from the clinic signage: navy suit + brushed steel logo
     on a warm cream wall. Cyan carries the interactive/CTA role. */
  --navy-950: #05101c;
  --navy-900: #0a1f33;
  --navy-800: #0f2e4c;
  --navy-700: #14406b;
  --navy-600: #1b5590;
  --navy-500: #2a6fb4;
  --navy-400: #4f92d1;
  --navy-300: #8dbbe4;

  --cyan-600: #0b8ea3;
  --cyan-500: #0fa8be;
  --cyan-400: #22d3ee;
  --cyan-300: #67e3f5;

  --steel-100: #eef2f6;
  --steel-200: #dbe3ea;
  --steel-300: #c1ccd7;
  --steel-400: #9aa8b5;
  --steel-500: #78889a;

  --cream: #f3efe8;

  --ok: #1f9d6b;
  --warn: #c9861a;

  /* Type */
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font: var(--font-ar);

  --step--1: clamp(0.8rem, 0.76rem + 0.18vw, 0.9rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.35rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.9vw, 3.75rem);

  /* Space + shape */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section-y: clamp(3.5rem, 2rem + 7vw, 7rem);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.32s;
}

/* Light theme (default) */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f9fc;
  --bg-elev: #ffffff;
  --bg-soft: #eaf1f8;
  --bg-inverse: var(--navy-900);
  --text: #08161f;
  --text-muted: #52667a;
  --text-onbrand: #ffffff;
  --border: #dde7f0;
  --border-strong: #c3d3e2;
  --primary: var(--navy-700);
  --primary-hover: var(--navy-800);
  --primary-soft: #e6eff8;
  --accent: var(--cyan-600);
  --accent-soft: #ddf4f8;
  --ring: color-mix(in srgb, var(--navy-600) 45%, transparent);
  --shadow-sm: 0 1px 2px rgb(8 22 31 / 6%), 0 2px 8px rgb(8 22 31 / 5%);
  --shadow-md: 0 4px 12px rgb(8 22 31 / 7%), 0 14px 32px rgb(8 22 31 / 8%);
  --shadow-lg: 0 10px 24px rgb(8 22 31 / 9%), 0 30px 70px rgb(8 22 31 / 12%);
  --glass: rgb(255 255 255 / 78%);
  --hero-wash: radial-gradient(120% 90% at 78% 8%, #dceaf7 0%, transparent 58%),
    radial-gradient(90% 80% at 8% 92%, #e2f6fa 0%, transparent 55%);
}

/* Dark theme — system default, then explicit override */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #050b12;
    --bg-elev: #0c1724;
    --bg-soft: #10202f;
    --bg-inverse: #010609;
    --text: #e9f1f8;
    --text-muted: #93a7ba;
    --text-onbrand: #ffffff;
    --border: #1b2e42;
    --border-strong: #2a4359;
    --primary: var(--navy-500);
    --primary-hover: var(--navy-400);
    --primary-soft: #0f2438;
    --accent: var(--cyan-400);
    --accent-soft: #06303a;
    --ring: color-mix(in srgb, var(--cyan-400) 55%, transparent);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%), 0 2px 8px rgb(0 0 0 / 32%);
    --shadow-md: 0 4px 12px rgb(0 0 0 / 45%), 0 14px 32px rgb(0 0 0 / 40%);
    --shadow-lg: 0 10px 24px rgb(0 0 0 / 50%), 0 30px 70px rgb(0 0 0 / 55%);
    --glass: rgb(8 18 28 / 72%);
    --hero-wash: radial-gradient(120% 90% at 78% 8%, #0d2c48 0%, transparent 58%),
      radial-gradient(90% 80% at 8% 92%, #062b36 0%, transparent 55%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050b12;
  --bg-elev: #0c1724;
  --bg-soft: #10202f;
  --bg-inverse: #010609;
  --text: #e9f1f8;
  --text-muted: #93a7ba;
  --text-onbrand: #ffffff;
  --border: #1b2e42;
  --border-strong: #2a4359;
  --primary: var(--navy-500);
  --primary-hover: var(--navy-400);
  --primary-soft: #0f2438;
  --accent: var(--cyan-400);
  --accent-soft: #06303a;
  --ring: color-mix(in srgb, var(--cyan-400) 55%, transparent);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%), 0 2px 8px rgb(0 0 0 / 32%);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 45%), 0 14px 32px rgb(0 0 0 / 40%);
  --shadow-lg: 0 10px 24px rgb(0 0 0 / 50%), 0 30px 70px rgb(0 0 0 / 55%);
  --glass: rgb(8 18 28 / 72%);
  --hero-wash: radial-gradient(120% 90% at 78% 8%, #0d2c48 0%, transparent 58%),
    radial-gradient(90% 80% at 8% 92%, #062b36 0%, transparent 55%);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 6.5rem;
}

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="en"] { --font: var(--font-en); }

h1, h2, h3, h4 {
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 { letter-spacing: 0; }

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

img, svg, picture { display: block; max-inline-size: 100%; }
img { height: auto; }

button, input, textarea, select { font: inherit; color: inherit; }

ul { list-style: none; padding: 0; }

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

::selection { background: var(--accent); color: #04121a; }

/* Theme/direction crossfade. Guarded so it never fights reduced-motion. */
.is-switching *,
.is-switching *::before,
.is-switching *::after {
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), fill 0.4s var(--ease) !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  inline-size: min(100% - (var(--gutter) * 2), 1220px);
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }

.section-head {
  max-inline-size: 62ch;
  margin-inline: auto;
  text-align: center;
  margin-block-end: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.section-head--start { margin-inline: 0; text-align: start; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-pill);
  margin-block-end: 1rem;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; }
.eyebrow::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: currentColor;
}

.section-title { font-size: var(--step-3); }
.section-sub {
  color: var(--text-muted);
  margin-block-start: 0.9rem;
  font-size: var(--step-1);
  font-weight: 500;
}

.grid { display: grid; gap: clamp(1rem, 0.5rem + 1.6vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

/* --------------------------------------------------------------------------
   4. Buttons + pills
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: var(--text-onbrand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: var(--step-0);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { inline-size: 1.15em; block-size: 1.15em; flex: none; }

/* Sheen sweep — direction-aware so it always travels with reading flow. */
.btn::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -120%;
  inline-size: 60%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 32%), transparent);
  transform: skewX(-18deg);
  transition: inset-inline-start 0.6s var(--ease);
  z-index: -1;
}
.btn:hover::after { inset-inline-start: 130%; }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--navy-700), var(--navy-600) 55%, var(--cyan-600));
  color: #fff;
}
:root[data-theme="dark"] .btn--primary,
:root:not([data-theme="light"]) .btn--primary {
  --btn-bg: linear-gradient(135deg, var(--navy-600), var(--cyan-600));
}
.btn--accent { --btn-bg: var(--accent); --btn-fg: #041a20; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--bg-soft); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: var(--step-1); }
.btn--block { inline-size: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  transform: translateY(-120%);
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-end-end-radius: var(--r-sm);
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 3px;
  z-index: 120;
  background: linear-gradient(90deg, var(--navy-600), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: inline-start center;
  transition: transform 0.1s linear;
}

.header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: transparent;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  border-block-end: 1px solid transparent;
}
.header.is-stuck {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-block-end-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  padding-block: 0.85rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.brand__mark {
  inline-size: 48px;
  block-size: 48px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  display: grid;
  place-items: center;
  padding: 4px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), var(--shadow-sm);
  flex: none;
}
.brand__mark img { inline-size: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand__role {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: 0.25rem; }
.nav__link {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: var(--text); background: var(--bg-soft); }
.nav__link.is-active { color: var(--primary); background: var(--primary-soft); }

.header__tools { display: flex; align-items: center; gap: 0.5rem; flex: none; }

.icon-btn {
  inline-size: 42px;
  block-size: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.icon-btn svg { inline-size: 20px; block-size: 20px; }

/* Theme toggle — sun and moon crossfade in place */
.theme-toggle .t-sun,
.theme-toggle .t-moon {
  grid-area: 1 / 1;
  transition: opacity var(--dur) var(--ease), transform 0.45s var(--ease);
}
.theme-toggle .t-moon { opacity: 0; transform: rotate(-70deg) scale(0.5); }
:root[data-theme="dark"] .theme-toggle .t-sun,
:root:not([data-theme="light"]) .theme-toggle .t-sun { opacity: 0; transform: rotate(70deg) scale(0.5); }
:root[data-theme="dark"] .theme-toggle .t-moon,
:root:not([data-theme="light"]) .theme-toggle .t-moon { opacity: 1; transform: rotate(0) scale(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .t-sun { opacity: 0; transform: rotate(70deg) scale(0.5); }
  :root:not([data-theme]) .theme-toggle .t-moon { opacity: 1; transform: rotate(0) scale(1); }
}

/* Language toggle — a real sliding switch between ع and EN */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: pointer;
  isolation: isolate;
}
.lang-toggle__thumb {
  position: absolute;
  inset-block: 3px;
  inset-inline-start: 3px;
  inline-size: calc(50% - 3px);
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--navy-700), var(--cyan-600));
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
html[lang="en"] .lang-toggle__thumb { transform: translateX(calc(100% * var(--flip, 1))); }
html[dir="ltr"] { --flip: 1; }
html[dir="rtl"] { --flip: -1; }
.lang-toggle__opt {
  min-inline-size: 40px;
  padding: 0.28rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
  line-height: 1.5;
}
html[lang="ar"] .lang-toggle__opt[data-lang="ar"],
html[lang="en"] .lang-toggle__opt[data-lang="en"] { color: #fff; }

.nav-toggle { display: none; }

/* Mobile navigation */
@media (max-width: 1150px) {
  .nav-toggle { display: grid; }
  .header__book { display: none; }
  .nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline-end: 0;
    block-size: 100dvh;
    inline-size: min(86vw, 22rem);
    background: var(--bg-elev);
    border-inline-start: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 5.5rem 1.5rem 2rem;
    transform: translateX(calc(110% * var(--flip, 1)));
    transition: transform 0.42s var(--ease);
    overflow-y: auto;
    margin: 0;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav__link { padding: 0.9rem 1rem; font-size: 1.05rem; border-radius: var(--r-md); }
  .nav__cta { margin-block-start: 1.25rem; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgb(3 10 18 / 55%);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
    z-index: 99;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}
@media (min-width: 1151px) {
  .nav__cta { display: none; }
  .nav-backdrop { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1rem + 6vw, 5rem) clamp(3rem, 2rem + 5vw, 6rem);
  background-image: var(--hero-wash);
  overflow: hidden;
}
.hero::before {
  /* faint anatomical grid, evokes a light-box */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(75% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
  position: relative;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero__title {
  font-size: var(--step-4);
  font-weight: 800;
  margin-block: 0.6rem 1.1rem;
}
.hero__title .accent {
  background: linear-gradient(120deg, var(--navy-600), var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-inline-size: 54ch;
  font-weight: 500;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-block: 1.9rem 1.5rem;
}
.hero__assure {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  color: var(--text-muted);
  font-size: var(--step--1);
  font-weight: 600;
}
.hero__assure li { display: flex; align-items: center; gap: 0.45rem; }
.hero__assure svg { inline-size: 1.1em; block-size: 1.1em; color: var(--ok); flex: none; }

/* Portrait composition */
.hero__media { position: relative; }
.hero__portrait {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  aspect-ratio: 4 / 5;
}
.hero__portrait img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 22%; }
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(5 16 28 / 62%) 0%, transparent 42%);
}
.hero__plate {
  position: absolute;
  inset-inline: clamp(0.75rem, 3vw, 1.5rem);
  inset-block-end: clamp(0.75rem, 3vw, 1.5rem);
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__plate strong { display: block; font-size: var(--step-1); }
.hero__plate span { font-size: var(--step--1); opacity: 0.85; }

.hero__badge {
  position: absolute;
  inset-block-start: clamp(1rem, 4vw, 2rem);
  inset-inline-start: calc(-1 * clamp(0.5rem, 2vw, 1.75rem));
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 6s ease-in-out infinite;
}
.hero__badge svg { inline-size: 26px; block-size: 26px; color: var(--accent); flex: none; }
.hero__badge b { display: block; font-size: 1.15rem; line-height: 1.2; }
.hero__badge span { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   7. Trust strip
   -------------------------------------------------------------------------- */
.trust {
  border-block: 1px solid var(--border);
  background: var(--bg-elev);
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}
.trust__grid {
  display: grid;
  gap: 1.25rem clamp(1rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.trust__item { display: flex; align-items: center; gap: 0.85rem; }
.trust__icon {
  inline-size: 44px;
  block-size: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex: none;
}
:root[data-theme="dark"] .trust__icon,
:root:not([data-theme="light"]) .trust__icon { color: var(--cyan-400); }
.trust__icon svg { inline-size: 22px; block-size: 22px; }
.trust__item b { display: block; font-size: 0.98rem; line-height: 1.3; }
.trust__item span { font-size: var(--step--1); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   8. Cards (services / conditions)
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 3px;
  background: linear-gradient(90deg, var(--navy-600), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: inline-start center;
  transition: transform 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  inline-size: 54px;
  block-size: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--primary-soft), var(--accent-soft));
  color: var(--primary);
  margin-block-end: 1.1rem;
  border: 1px solid var(--border);
}
:root[data-theme="dark"] .card__icon,
:root:not([data-theme="light"]) .card__icon { color: var(--cyan-400); }
.card__icon svg { inline-size: 26px; block-size: 26px; }
.card__title { font-size: var(--step-1); margin-block-end: 0.5rem; }
.card__text { color: var(--text-muted); font-size: 0.95rem; }
.card__list {
  margin-block-start: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.card__list li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) { .about__grid { grid-template-columns: 0.92fr 1.08fr; } }

.about__media { position: relative; }
.about__frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
}
.about__frame img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.about__stat {
  position: absolute;
  inset-block-end: -1.25rem;
  inset-inline-end: -1rem;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-950));
  color: #fff;
  border-radius: var(--r-lg);
  padding: 1.1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid rgb(255 255 255 / 12%);
}
.about__stat b { display: block; font-size: 2rem; line-height: 1; color: var(--cyan-400); }
.about__stat span { font-size: 0.78rem; opacity: 0.85; font-weight: 600; }

.about__body p { color: var(--text-muted); margin-block-end: 1rem; }
.creds { display: grid; gap: 0.75rem; margin-block-start: 1.5rem; }
.creds li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.creds svg { inline-size: 20px; block-size: 20px; color: var(--accent); flex: none; margin-block-start: 0.28rem; }
.creds b { display: block; font-size: 0.98rem; }
.creds span { font-size: 0.88rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   10. Before / After showcase
   -------------------------------------------------------------------------- */
.ba-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-block-end: 2rem;
}
.ba-tab {
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.ba-tab:hover { border-color: var(--border-strong); color: var(--text); }
.ba-tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--navy-700), var(--cyan-600));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.ba-panel[hidden] { display: none; }
.ba-layout {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: center;
}
@media (min-width: 950px) { .ba-layout { grid-template-columns: 1.35fr 1fr; } }

/* The slider itself. Deliberately physical (left/right), not logical:
   a drag handle is a spatial control, so it behaves identically in RTL. */
.ba {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: #05080c;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.ba img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }

.ba__handle {
  position: absolute;
  inset-block: 0;
  left: var(--pos, 50%);
  inline-size: 3px;
  margin-left: -1.5px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 25%), 0 0 24px rgb(34 211 238 / 55%);
  z-index: 3;
}
.ba__grip {
  position: absolute;
  inset-block-start: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  inline-size: 52px;
  block-size: 52px;
  border-radius: 50%;
  background: rgb(255 255 255 / 96%);
  color: #0a1f33;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 22px rgb(0 0 0 / 45%);
  cursor: grab;
  border: none;
  transition: transform 0.25s var(--ease);
}
.ba__grip:hover { transform: translate(-50%, -50%) scale(1.08); }
.ba__grip:active { cursor: grabbing; }
.ba__grip svg { inline-size: 26px; block-size: 26px; }

.ba__tag {
  position: absolute;
  inset-block-start: 1rem;
  z-index: 2;
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 22%);
  color: #fff;
  pointer-events: none;
}
.ba__tag--before { left: 1rem; background: rgb(10 31 51 / 72%); }
.ba__tag--after { right: 1rem; background: rgb(11 142 163 / 78%); }

.ba__range {
  position: absolute;
  inset-block-end: 1rem;
  inset-inline: 1rem;
  z-index: 4;
  inline-size: calc(100% - 2rem);
  opacity: 0;
  block-size: 44px;
  margin: 0;
  cursor: ew-resize;
  /* Browsers mirror range inputs under RTL; the divider must not. */
  direction: ltr;
}
.ba__range:focus-visible { opacity: 1; }

.ba-info__title { font-size: var(--step-2); margin-block-end: 0.35rem; }
.ba-info__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 0.9rem 1.2rem;
}
.ba-info__text { color: var(--text-muted); }
.ba-outcomes { display: grid; gap: 0.6rem; margin-block-start: 1.4rem; }
.ba-outcomes li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; }
.ba-outcomes svg { inline-size: 19px; block-size: 19px; color: var(--ok); flex: none; margin-block-start: 0.32rem; }

.ba-note {
  margin-block-start: 2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: var(--step--1);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.ba-note svg { inline-size: 18px; block-size: 18px; flex: none; margin-block-start: 0.3rem; }

/* --------------------------------------------------------------------------
   11. Stats
   -------------------------------------------------------------------------- */
.stats {
  background: linear-gradient(140deg, var(--navy-900), var(--navy-950) 60%, #041722);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 15% 0%, rgb(34 211 238 / 16%), transparent 60%),
    radial-gradient(50% 90% at 88% 100%, rgb(43 111 180 / 22%), transparent 60%);
}
.stats .container { position: relative; }
.stats__item { text-align: center; padding: 0.5rem; }
.stats__num {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, #fff, var(--cyan-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats__label { font-size: var(--step--1); opacity: 0.82; font-weight: 600; margin-block-start: 0.5rem; }

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */
.tst {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
}
.tst:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tst__quote {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-end: 1.25rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-soft);
  font-family: Georgia, serif;
  pointer-events: none;
}
.stars { display: flex; gap: 0.15rem; color: #f0a500; }
.stars svg { inline-size: 17px; block-size: 17px; }
.tst__text { flex: 1; color: var(--text-muted); font-size: 0.97rem; }
.tst__who { display: flex; align-items: center; gap: 0.8rem; }
.tst__avatar {
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--navy-700), var(--cyan-600));
  color: #fff;
  font-weight: 800;
  flex: none;
}
.tst__who b { display: block; font-size: 0.95rem; line-height: 1.35; }
.tst__who span { font-size: 0.8rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq { max-inline-size: 52rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq__item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq__item:has(.faq__q[aria-expanded="true"]) {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: var(--shadow-sm);
}
.faq__q {
  inline-size: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  text-align: start;
}
.faq__q svg {
  inline-size: 20px;
  block-size: 20px;
  flex: none;
  color: var(--primary);
  transition: transform var(--dur) var(--ease);
}
.faq__q[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Height is driven from JS (measured), not `0fr -> 1fr`: an `overflow:hidden`
   child contributes a zero min-content size, so the fr row collapses. */
.faq__a {
  overflow: hidden;
  block-size: 0;
  transition: block-size 0.35s var(--ease);
}
.faq__a p { padding: 0 1.35rem 1.3rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   14. Booking / contact
   -------------------------------------------------------------------------- */
.booking__grid { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: start; }
@media (min-width: 950px) { .booking__grid { grid-template-columns: 1fr 1.15fr; } }

.info-list { display: grid; gap: 1rem; margin-block-start: 1.75rem; }
.info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.info-list li:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.info-list__icon {
  inline-size: 42px;
  block-size: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex: none;
}
:root[data-theme="dark"] .info-list__icon,
:root:not([data-theme="light"]) .info-list__icon { color: var(--cyan-400); }
.info-list__icon svg { inline-size: 20px; block-size: 20px; }
.info-list b { display: block; font-size: 0.8rem; color: var(--text-muted); font-weight: 700; }
.info-list a, .info-list p { font-weight: 700; font-size: 1rem; }
.info-list a:hover { color: var(--primary); }

.form-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.35rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.86rem; font-weight: 700; }
.field label .req { color: #d64545; }
.field input,
.field select,
.field textarea {
  inline-size: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-block-size: 6.5rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #d64545; }
.field__hint { font-size: 0.78rem; color: var(--text-muted); }

.form-status {
  margin-block-start: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}
.form-status.is-ok {
  display: block;
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
  border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent);
}
.form-status.is-err {
  display: block;
  background: rgb(214 69 69 / 12%);
  color: #d64545;
  border: 1px solid rgb(214 69 69 / 35%);
}

.map-embed {
  margin-block-start: 1.5rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
}
.map-embed iframe { inline-size: 100%; block-size: 100%; border: 0; }

/* --------------------------------------------------------------------------
   15. Final CTA + footer
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950) 55%, #062733);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 120% at 50% 0%, rgb(34 211 238 / 20%), transparent 62%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: var(--step-3); }
.cta-band p { color: rgb(232 240 248 / 78%); margin-block: 0.85rem 1.9rem; font-size: var(--step-1); }
.cta-band .btn--ghost { --btn-fg: #fff; border-color: rgb(255 255 255 / 32%); }
.cta-band .btn--ghost:hover { background: rgb(255 255 255 / 10%); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

.footer {
  background: var(--bg-elev);
  border-block-start: 1px solid var(--border);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) 0;
  margin-block-start: var(--section-y);
}
.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.footer__about { max-inline-size: 34ch; }
.footer__about p { color: var(--text-muted); font-size: 0.92rem; margin-block-start: 1rem; }
.footer h3 { font-size: 0.92rem; margin-block-end: 1rem; letter-spacing: 0.04em; }
.footer__links { display: grid; gap: 0.55rem; }
.footer__links a { color: var(--text-muted); font-size: 0.92rem; transition: color var(--dur) var(--ease); }
.footer__links a:hover { color: var(--primary); }
.socials { display: flex; gap: 0.6rem; margin-block-start: 1.25rem; }
.socials a {
  inline-size: 40px;
  block-size: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.socials a:hover { background: var(--primary); color: #fff; border-color: transparent; transform: translateY(-3px); }
.socials svg { inline-size: 18px; block-size: 18px; }

.footer__bottom {
  margin-block-start: 2.5rem;
  border-block-start: 1px solid var(--border);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   16. Floating actions + mobile CTA bar
   -------------------------------------------------------------------------- */
.floaties {
  position: fixed;
  inset-block-end: clamp(1rem, 4vw, 2rem);
  inset-inline-end: clamp(1rem, 4vw, 2rem);
  z-index: 90;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}
.fab {
  inline-size: 54px;
  block-size: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fab:hover { transform: scale(1.09) translateY(-2px); box-shadow: var(--shadow-lg); }
.fab svg { inline-size: 26px; block-size: 26px; }
.fab--wa { background: #25d366; position: relative; }
.fab--wa::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(1.55); opacity: 0; }
}
.fab--top {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  inline-size: 46px;
  block-size: 46px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur), transform var(--dur) var(--ease);
}
.fab--top.is-shown { opacity: 1; visibility: visible; }
.fab--top svg { inline-size: 20px; block-size: 20px; }

.mobile-cta {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 95;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-block-start: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.mobile-cta.is-shown { transform: translateY(0); }
.mobile-cta .btn { flex: 1; padding-block: 0.75rem; font-size: 0.92rem; }
@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  .floaties { inset-block-end: 5.5rem; }
  body { padding-block-end: 4.25rem; }
}

/* --------------------------------------------------------------------------
   17. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-lg { margin-block-start: clamp(2rem, 1rem + 3vw, 3.5rem); }
[hidden] { display: none !important; }

/* Numerals stay Western in both languages for legibility of phone/stat data */
.tnum { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

@media print {
  .header, .floaties, .mobile-cta, .scroll-progress, .ba__range { display: none !important; }
  body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------------------
   19. Multi-page components
   -------------------------------------------------------------------------- */

/* Inner-page header + breadcrumb */
.page-head {
  padding-block: clamp(2.25rem, 1.5rem + 4vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background-image: var(--hero-wash);
  border-block-end: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 70% at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.45;
  pointer-events: none;
}
.page-head > .container { position: relative; }
.page-head__title { font-size: var(--step-3); margin-block: 0.75rem 0.6rem; }
.page-head__sub {
  color: var(--text-muted);
  font-size: var(--step-1);
  font-weight: 500;
  max-inline-size: 60ch;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-muted);
}
.crumbs a { transition: color var(--dur) var(--ease); }
.crumbs a:hover { color: var(--primary); }
.crumbs [aria-current] { color: var(--text); }
/* The chevron points along reading order, so it mirrors under RTL. */
.crumbs svg { inline-size: 15px; block-size: 15px; opacity: 0.6; flex: none; }
html[dir="rtl"] .crumbs svg { transform: scaleX(-1); }

/* Intro paragraph above a page's main content */
.lede {
  max-inline-size: 68ch;
  font-size: var(--step-1);
  color: var(--text-muted);
  font-weight: 500;
  margin-block-end: clamp(2rem, 1rem + 3vw, 3rem);
}

/* Inline "read more" link with a travelling arrow */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.link-more svg {
  inline-size: 1.1em;
  block-size: 1.1em;
  transition: transform var(--dur) var(--ease);
}
.link-more:hover svg { transform: translateX(4px); }
/* Directional arrows point along reading order, so they mirror under RTL. */
html[dir="rtl"] .link-more svg { transform: scaleX(-1); }
html[dir="rtl"] .link-more:hover svg { transform: scaleX(-1) translateX(4px); }
html[dir="rtl"] .btn svg:has(use[href="#i-arrow"]) { transform: scaleX(-1); }

/* A whole card that is itself a link */
.card--link { display: block; }
.card--link:hover .card__title { color: var(--primary); }

/* Home page before/after teaser figure */
.ba-figure { margin: 0; }
.ba-figure figcaption {
  margin-block-start: 1rem;
  font-weight: 700;
  font-size: var(--step-1);
  text-align: center;
}

/* Vertical timeline (about page) */
.timeline {
  --dot: 15px;
  --rail-gap: clamp(1rem, 3vw, 2rem);
  --rail-pad: clamp(1.25rem, 3vw, 2rem);
  max-inline-size: 46rem;
  margin-inline: auto;
  display: grid;
  padding: 0;
  list-style: none;
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) 1fr;
  gap: var(--rail-gap);
  padding-block-end: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.timeline__item:last-child { padding-block-end: 0; }

.timeline__year {
  justify-self: end;
  align-self: start;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.timeline__body {
  position: relative;
  padding-inline-start: var(--rail-pad);
  border-inline-start: 2px solid var(--border-strong);
}
.timeline__item:last-child .timeline__body { border-inline-start-color: transparent; }
.timeline__body::before {
  content: "";
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: calc(-1px - var(--dot) / 2);
  inline-size: var(--dot);
  block-size: var(--dot);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-600), var(--cyan-500));
  box-shadow: 0 0 0 4px var(--bg);
}
.section--soft .timeline__body::before { box-shadow: 0 0 0 4px var(--bg-soft); }
.timeline__body h3 { font-size: var(--step-1); margin-block-end: 0.35rem; }
.timeline__body p { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 640px) {
  .timeline__item { grid-template-columns: 1fr; gap: 0.6rem; }
  .timeline__year { justify-self: start; }
  .timeline__body { padding-inline-start: 0; border-inline-start: 0; }
  .timeline__body::before { display: none; }
}

/* Numbered pathway steps (services page) */
.steps {
  display: grid;
  gap: clamp(1rem, 0.5rem + 1.6vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  padding: 0;
  list-style: none;
}
.steps__item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.steps__num {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--cyan-600));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-block-end: 1rem;
}
.steps__item h3 { font-size: var(--step-1); margin-block-end: 0.4rem; }
.steps__item p { color: var(--text-muted); font-size: 0.94rem; }

/* Detailed service blocks */
.srv-list { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.srv {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.35rem, 1rem + 2vw, 2.5rem);
  scroll-margin-block-start: 7rem;
}
.srv__head { display: flex; gap: 1.25rem; align-items: flex-start; }
.srv__head .card__icon { margin-block-end: 0; flex: none; }
.srv__title { font-size: var(--step-2); margin-block-end: 0.5rem; }
.srv__lead { color: var(--text-muted); }
.srv__cols {
  display: grid;
  gap: clamp(1rem, 0.5rem + 2vw, 2rem);
  margin-block-start: 1.75rem;
}
@media (min-width: 720px) { .srv__cols { grid-template-columns: 1fr 1fr; } }
.srv__col h3 {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-block-end: 0.75rem;
}
html[dir="rtl"] .srv__col h3 { letter-spacing: 0; text-transform: none; font-size: 0.92rem; }
.srv__rec {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-block-start: 1.5rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.srv__rec svg { inline-size: 18px; block-size: 18px; flex: none; margin-block-start: 0.3rem; color: var(--accent); }
.srv__rec b { color: var(--text); }

/* Per-case detail grid (results page) */
.case-detail {
  display: grid;
  gap: clamp(1.25rem, 1rem + 2vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin-block-start: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  padding-block-start: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-block-start: 1px solid var(--border);
}
.case-detail__col h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  margin-block-end: 0.9rem;
}
.case-detail__col h3 svg { inline-size: 18px; block-size: 18px; color: var(--accent); flex: none; }

/* Compact numbered recovery timeline */
.tl-mini { display: grid; gap: 0.55rem; padding: 0; list-style: none; counter-reset: tl; }
.tl-mini li {
  counter-increment: tl;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.tl-mini li::before {
  content: counter(tl);
  inline-size: 22px;
  block-size: 22px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  margin-block-start: 0.28rem;
}

/* Ticked checklist */
.checklist { display: grid; gap: 0.7rem; margin-block-start: 1.35rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.96rem; }
.checklist svg { inline-size: 19px; block-size: 19px; color: var(--ok); flex: none; margin-block-start: 0.32rem; }

/* Callout panel */
.callout {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.callout > svg {
  inline-size: 30px;
  block-size: 30px;
  flex: none;
  color: var(--accent);
  margin-block-start: 0.15rem;
}
.callout b { display: block; font-size: var(--step-1); margin-block-end: 0.4rem; }
.callout p { color: var(--text-muted); }
.callout .btn { margin-block-start: 1.1rem; }
.callout--quote {
  background: linear-gradient(140deg, var(--primary-soft), var(--accent-soft));
  border-color: color-mix(in srgb, var(--primary) 22%, transparent);
}
.callout--warn {
  background: color-mix(in srgb, var(--warn) 10%, var(--bg-elev));
  border-color: color-mix(in srgb, var(--warn) 38%, transparent);
}
.callout--warn > svg { color: var(--warn); }

/* Opening-hours list */
.hours { display: grid; gap: 0.6rem; margin-block: 1.5rem 1rem; }
.hours > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.hours dt { font-weight: 700; }
.hours dd { margin: 0; color: var(--text-muted); font-weight: 600; }

/* FAQ groups */
.faq-group { margin-block-end: clamp(2rem, 1rem + 3vw, 3.25rem); }
.faq-group:last-of-type { margin-block-end: 0; }
.faq-group__title {
  font-size: var(--step-2);
  margin-block-end: 1.25rem;
  padding-inline-start: 0.9rem;
  border-inline-start: 4px solid var(--accent);
  max-inline-size: 52rem;
  margin-inline: auto;
}

/* Testimonial filtering */
.tst[hidden] { display: none !important; }
.filter-empty {
  text-align: center;
  color: var(--text-muted);
  padding-block: 3rem;
  font-weight: 600;
}
