/* ============================================================
   Dr. Noor — Psychiatry & Addiction Medicine
   Stylesheet / ملف التصميم
   ------------------------------------------------------------
   1.  Design tokens        — المتغيرات
   2.  Reset & base         — الأساسيات
   3.  Layout helpers       — عناصر التخطيط
   4.  Buttons & links      — الأزرار
   5.  Header & navigation  — الترويسة والقائمة
   6.  Hero                 — الواجهة
   7.  Trust strip          — شريط المؤهلات
   8.  About                — نبذة
   9.  Services & tags      — الخدمات والحالات
   10. Approach steps       — خطوات العلاج
   11. Addiction (dark)     — علاج الإدمان
   12. Philosophy           — فلسفة الرعاية
   13. FAQ accordion        — الأسئلة
   14. Contact & form       — التواصل والنموذج
   15. Emergency & footer   — الطوارئ والتذييل
   16. Floating actions     — الأزرار العائمة
   17. Reveal animations    — حركات الظهور
   18. Responsive           — الشاشات الصغيرة
   19. Print                — الطباعة
   ============================================================ */

/* ===================== 1. DESIGN TOKENS ===================== */
:root {
  /* الخطوط / Typefaces */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --display-weight: 600;
  --display-spacing: -0.015em;
  --display-leading: 1.12;

  /* المقاييس / Type scale */
  --fs-display: clamp(2.5rem, 1.4rem + 4.4vw, 4.4rem);
  --fs-h2: clamp(1.75rem, 1.15rem + 2.2vw, 2.85rem);
  --fs-h3: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --fs-lead: clamp(1.03rem, 0.96rem + 0.4vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  /* الألوان الأساسية / Brand colours */
  --brand-900: #062825;
  --brand-800: #0a3632;
  --brand-700: #0c3f39;
  --brand-600: #105049;
  --brand-500: #16675d;
  --brand-300: #7fb3a8;
  --brand-100: #d9e9e4;
  --brand-50:  #eef6f3;

  --gold-600: #a67c34;
  --gold-500: #c6a15b;
  --gold-300: #e2c894;
  --gold-50:  #f8f1e2;

  /* ألوان الواجهة — الوضع النهاري / Light surface colours */
  --bg:          #fbf9f5;
  --bg-alt:      #f4f1ea;
  --surface:     #ffffff;
  --surface-2:   #faf8f3;
  --text:        #14201e;
  --text-soft:   #4a5a57;
  --text-muted:  #71837f;
  --line:        #e4ded2;
  --line-strong: #d3cbbb;
  --primary:     var(--brand-700);
  --primary-ink: #ffffff;
  --accent:      var(--gold-600);
  --tint:        var(--brand-50);
  --tint-gold:   var(--gold-50);

  /* الظلال / Elevation */
  --shadow-xs: 0 1px 2px rgba(12, 40, 36, .06);
  --shadow-sm: 0 2px 8px rgba(12, 40, 36, .06), 0 1px 2px rgba(12, 40, 36, .04);
  --shadow-md: 0 10px 30px -12px rgba(12, 40, 36, .18), 0 2px 8px rgba(12, 40, 36, .05);
  --shadow-lg: 0 30px 60px -24px rgba(12, 40, 36, .28), 0 8px 20px -12px rgba(12, 40, 36, .12);
  --ring: 0 0 0 3px rgba(22, 103, 93, .28);

  /* الأنصاف والمسافات / Radii & rhythm */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --container: 1200px;
  --gutter: clamp(1.15rem, 0.6rem + 2.2vw, 2.5rem);
  --section-y: clamp(4rem, 2.4rem + 6vw, 7.5rem);

  --ease: cubic-bezier(.22, .68, .32, 1);
  --t-fast: .18s var(--ease);
  --t: .3s var(--ease);
  --t-slow: .6s var(--ease);

  --origin: left;
}

/* العربية: خط وأوزان مختلفة / Arabic typography overrides */
html[lang="ar"] {
  --font-body: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  --display-weight: 800;
  --display-spacing: 0;
  --display-leading: 1.3;
  --fs-display: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  --fs-h2: clamp(1.55rem, 1.1rem + 1.7vw, 2.4rem);
}

html[dir="rtl"] { --origin: right; --nav-dir: -1; }

/* الوضع الليلي / Dark theme */
html[data-theme="dark"] {
  --bg:          #081614;
  --bg-alt:      #0b1d1a;
  --surface:     #0e2320;
  --surface-2:   #112925;
  --text:        #e9f1ee;
  --text-soft:   #b2c5c0;
  --text-muted:  #88a09b;
  --line:        #1d3933;
  --line-strong: #27483f;
  --primary:     #2d8878;
  --primary-ink: #ffffff;
  --accent:      var(--gold-300);
  --tint:        #0f2b26;
  --tint-gold:   #241f14;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 34px 70px -28px rgba(0, 0, 0, .75);
  --ring: 0 0 0 3px rgba(45, 136, 120, .4);
  color-scheme: dark;
}

/* ===================== 2. RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;

  /* يمنع التمرير الأفقي الناتج عن القائمة المنزلقة خارج الشاشة.
     clip لا يُنشئ حاوية تمرير، فيبقى الرأس اللاصق والتمرير السلس يعملان.
     Stops sideways scrolling caused by the off-canvas nav; `clip` keeps
     the sticky header and smooth scrolling working (unlike `hidden`). */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden; /* بديل للمتصفحات التي لا تدعم clip */
  overflow-x: clip;
  transition: background-color var(--t), color var(--t);
}

/* إزالة تأخير اللمس على الأزرار والروابط / remove tap delay */
a, button, label, summary { touch-action: manipulation; }

html[lang="ar"] body { line-height: 1.95; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: var(--display-leading);
  letter-spacing: var(--display-spacing);
  text-wrap: balance;
}

strong { font-weight: 700; }
em { font-style: italic; }
html[lang="ar"] em { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--brand-700); color: #fff; }

/* شريط التمرير / Scrollbar */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: var(--bg-alt); }
  ::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: var(--r-pill);
    border: 3px solid var(--bg-alt);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--brand-300); }
}

.skip-link {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  z-index: 200;
  padding: .7rem 1.2rem;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  transition: inset-block-start var(--t);
}
.skip-link:focus { inset-block-start: 1rem; }

.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 120;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--gold-500));
  transform: scaleX(0);
  transform-origin: var(--origin);
  transition: transform .1s linear;
}

/* ===================== 3. LAYOUT HELPERS ===================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--alt { background: var(--bg-alt); }

.section__head {
  max-width: 46rem;
  margin-inline: auto;
  margin-block-end: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-block-end: .9rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: var(--fs-sm); }
.eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.section__title { font-size: var(--fs-h2); }

.section__sub {
  margin-block-start: 1.1rem;
  font-size: var(--fs-lead);
  color: var(--text-soft);
  text-wrap: pretty;
}
.section__sub--small { font-size: var(--fs-sm); color: var(--text-muted); }

.section__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem 1.1rem;
  margin-block-start: clamp(2rem, 1.4rem + 1.6vw, 3.25rem);
  padding-block-start: 2rem;
  border-block-start: 1px solid var(--line);
  color: var(--text-soft);
}

.prose p { color: var(--text-soft); margin-block-end: 1.05rem; text-wrap: pretty; }
.prose strong { color: var(--text); }

/* ===================== 4. BUTTONS & LINKS ===================== */
.btn {
  --btn-bg: var(--primary);
  --btn-ink: var(--primary-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .82rem 1.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--btn-ink);
  background: var(--btn-bg);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t), background-color var(--t), border-color var(--t), color var(--t);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn--lg { padding: 1.02rem 2rem; font-size: var(--fs-body); }
.btn--sm { padding: .62rem 1.15rem; font-size: var(--fs-xs); }

.btn--primary { background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); }
html[data-theme="dark"] .btn--primary { background: linear-gradient(135deg, var(--brand-500), #2d8878); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); }

.btn--light { background: #fff; color: var(--brand-800); }
.btn--light:hover { background: var(--gold-50); }

.btn--whatsapp { background: #1f8f54; }
.btn--whatsapp:hover { background: #197a47; }

.btn__arrow { transition: transform var(--t); }
html[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
.btn:hover .btn__arrow { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
  border-block-end: 1px solid transparent;
  transition: gap var(--t), border-color var(--t);
}
.link-arrow:hover { gap: .8rem; border-block-end-color: currentColor; }
.link-arrow svg { width: 1.05em; height: 1.05em; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  transition: color var(--t), border-color var(--t), background var(--t), transform var(--t-fast);
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.icon-btn--round { width: 3rem; height: 3rem; box-shadow: var(--shadow-xs); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem .45rem .75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand-600);
  background: var(--tint);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-pill);
}
html[data-theme="dark"] .pill { color: var(--brand-300); border-color: var(--line-strong); }
.pill svg { width: 1.05em; height: 1.05em; color: var(--accent); }

/* ===================== 5. HEADER & NAVIGATION ===================== */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: var(--bg); /* بديل للمتصفحات القديمة / fallback */
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-block-end: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.site-header.is-stuck {
  border-block-end-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(12, 40, 36, .5);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.75rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; margin-inline-end: auto; }

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-300);
  background: linear-gradient(145deg, var(--brand-700), var(--brand-900));
  border-radius: 34% 66% 62% 38% / 44% 38% 62% 56%;
  box-shadow: var(--shadow-sm);
  transition: border-radius var(--t-slow);
}
.brand:hover .brand__mark { border-radius: 50%; }

.brand__text { display: grid; line-height: 1.25; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-spacing);
}
.brand__text small {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-muted);
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; align-items: center; gap: 1.5rem; }
.nav__close, .nav__cta { display: none; }

.nav__link {
  position: relative;
  padding-block: .35rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--t);
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: var(--origin);
  transition: transform var(--t);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--primary); font-weight: 600; }

.site-header__actions { display: flex; align-items: center; gap: .5rem; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  height: 2.65rem;
  padding-inline: 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  transition: color var(--t), border-color var(--t), transform var(--t-fast);
}
.lang-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.lang-btn svg { width: 1.05em; height: 1.05em; }

.icon-sun { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.7px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(6, 40, 37, .5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--t);
}
.nav-backdrop.is-visible { opacity: 1; }

/* ===================== 6. HERO ===================== */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 3vw, 4.5rem);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset-block-start: -28%;
  inset-inline-end: -12%;
  width: 60rem;
  height: 60rem;
  background:
    radial-gradient(circle at 60% 40%, rgba(22, 103, 93, .16), transparent 58%),
    radial-gradient(circle at 30% 70%, rgba(198, 161, 91, .17), transparent 55%);
  filter: blur(10px);
  pointer-events: none;
}
html[data-theme="dark"] .hero__glow {
  background:
    radial-gradient(circle at 60% 40%, rgba(45, 136, 120, .22), transparent 58%),
    radial-gradient(circle at 30% 70%, rgba(198, 161, 91, .12), transparent 55%);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 72%);
  opacity: .5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.hero__title {
  margin-block: 1.4rem 0;
  font-size: var(--fs-display);
}
.hero__title em {
  position: relative;
  z-index: 0; /* يُنشئ سياق طبقات ليظهر التظليل خلف النص */
  color: var(--primary);
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  inset-inline: -.05em;
  inset-block-end: .06em;
  height: .28em;
  background: linear-gradient(90deg, var(--gold-300), transparent);
  opacity: .45;
  border-radius: var(--r-pill);
  z-index: -1;
}

.hero__sub {
  max-width: 34rem;
  margin-block-start: 1.4rem;
  font-size: var(--fs-lead);
  color: var(--text-soft);
  text-wrap: pretty;
}

.hero__chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-block-start: 1.75rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .95rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-xs);
}
.chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.chip:nth-child(2) i { background: var(--brand-500); }
.chip:nth-child(3) i { background: var(--brand-300); }

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-block-start: 2.1rem; }

.hero__note {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-block-start: 1.6rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.hero__note svg { width: 1.15em; height: 1.15em; color: var(--brand-500); }

/* صورة الواجهة / Hero media
   الحجم مضبوط على الأبعاد الأصلية للصورة (361×323) حتى تبقى حادّة */
.hero__media {
  position: relative;
  max-width: 23rem;
  margin-inline-start: auto;
}

.hero__portrait {
  position: relative;
  aspect-ratio: 1 / 1.04;
  border-radius: 46% 54% 42% 58% / 14% 14% 86% 86%;
  overflow: hidden;
  background: linear-gradient(160deg, var(--brand-100), var(--gold-50));
  box-shadow: var(--shadow-lg);
}
html[data-theme="dark"] .hero__portrait { background: linear-gradient(160deg, var(--surface-2), var(--brand-900)); }
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 40, 37, .34), transparent 48%);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.hero__card {
  position: absolute;
  inset-block-end: 1.5rem;
  inset-inline-start: -1.5rem;
  width: min(17rem, 78%);
  padding: 1.15rem 1.25rem;
  background: var(--surface); /* بديل / fallback */
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.hero__card strong { display: block; margin-block: .55rem .3rem; font-size: var(--fs-sm); }
.hero__card p { font-size: var(--fs-xs); line-height: 1.6; color: var(--text-muted); }

.hero__card-icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  color: var(--primary);
  background: var(--tint);
  border-radius: var(--r-sm);
}

/* ===================== 7. TRUST STRIP ===================== */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-block-start: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  padding: clamp(1.25rem, 1rem + 1vw, 1.8rem) 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.trust__item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-inline: clamp(.9rem, .55rem + .9vw, 1.6rem);
  border-inline-end: 1px solid var(--line);
}
.trust__item:last-child { border-inline-end: 0; }
.trust__item div { display: grid; gap: .15rem; }
.trust__item strong { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; }
.trust__item small { font-size: var(--fs-xs); line-height: 1.45; color: var(--text-muted); }

.trust__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  color: var(--primary);
  background: var(--tint);
  border-radius: var(--r-sm);
}
.trust__item:nth-child(even) .trust__icon { color: var(--gold-600); background: var(--tint-gold); }
html[data-theme="dark"] .trust__item:nth-child(even) .trust__icon { color: var(--gold-300); }
.trust__icon svg { width: 1.3rem; height: 1.3rem; }

/* ===================== 8. ABOUT ===================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 1rem + 4vw, 4.75rem);
  align-items: start;
}

.about__creds {
  position: sticky;
  inset-block-start: 7rem;
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.about__cred-title {
  margin-block-end: 1.2rem;
  font-size: var(--fs-h3);
}

.creds { display: grid; gap: 1rem; }
.creds li {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.creds li:hover { transform: translateY(-2px); border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.creds li div { display: grid; gap: .15rem; }
.creds li strong { font-size: var(--fs-sm); }
.creds li small { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.55; }

.creds__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
  background: var(--tint);
  border-radius: var(--r-sm);
}
.creds li:nth-child(even) .creds__icon { color: var(--gold-600); background: var(--tint-gold); }
html[data-theme="dark"] .creds li:nth-child(even) .creds__icon { color: var(--gold-300); }

.about__body > .link-arrow { margin-block-start: 1.8rem; }

/* ===================== 9. SERVICES & TAGS ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: clamp(1rem, .7rem + 1vw, 1.5rem);
}

.card {
  position: relative;
  padding: 1.75rem 1.6rem 1.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--gold-500));
  transform: scaleX(0);
  transform-origin: var(--origin);
  transition: transform var(--t-slow);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-block-end: 1.15rem;
  color: var(--primary);
  background: var(--tint);
  border-radius: var(--r-md);
  transition: transform var(--t), background var(--t);
}
.card__icon svg { width: 1.45rem; height: 1.45rem; }
.card:hover .card__icon { transform: scale(1.06) rotate(-4deg); }
.card:nth-child(4n+2) .card__icon { color: var(--gold-600); background: var(--tint-gold); }
html[data-theme="dark"] .card:nth-child(4n+2) .card__icon { color: var(--gold-300); }

.card h3 { margin-block-end: .55rem; font-size: var(--fs-h3); }
.card p { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.7; }

/* شرائح الحالات / Condition tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  max-width: 62rem;
  margin-inline: auto;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .62rem 1.15rem;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: color var(--t), border-color var(--t), background var(--t), transform var(--t-fast);
}
.tag:hover {
  color: var(--primary);
  border-color: var(--brand-300);
  background: var(--tint);
  transform: translateY(-2px);
}
.tag svg { width: .95em; height: .95em; color: var(--brand-500); stroke-width: 2.4; }

/* ===================== 10. APPROACH STEPS ===================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, .6rem + 1.4vw, 2rem);
  counter-reset: step;
}

.step { position: relative; padding-block-start: 2.6rem; }
.step::before {
  content: "";
  position: absolute;
  inset-block-start: .85rem;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong) 0 60%, transparent 60%);
  background-size: 8px 1px;
  background-repeat: repeat-x;
}
.step::after {
  content: "";
  position: absolute;
  inset-block-start: .4rem;
  inset-inline-start: 0;
  width: .95rem;
  height: .95rem;
  background: var(--bg-alt);
  border: 2px solid var(--primary);
  border-radius: 50%;
}
.step:last-child::before { background: none; }

.step__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
}
.step h3 { margin-block: .35rem .6rem; font-size: var(--fs-h3); }
.step p { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.7; }

/* ===================== 11. ADDICTION (DARK BAND) ===================== */
.section--dark {
  position: relative;
  color: #e8f2ef;
  background: linear-gradient(150deg, var(--brand-900), var(--brand-800) 55%, #0a302b);
  overflow: hidden;
}
.section--dark .section__title { color: #fff; }
.section--dark .section__sub { color: rgba(232, 242, 239, .76); }
.section--dark .eyebrow { color: var(--gold-300); }

.section__dark-glow {
  position: absolute;
  inset-block-start: -20%;
  inset-inline-start: -10%;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(198, 161, 91, .14), transparent 62%);
  pointer-events: none;
}

.addiction__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}

.confid {
  display: flex;
  gap: 1rem;
  margin-block: 2rem;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--r-md);
  backdrop-filter: blur(6px);
}
.confid strong { display: block; margin-block-end: .35rem; font-size: var(--fs-sm); color: #fff; }
.confid p { font-size: var(--fs-xs); line-height: 1.7; color: rgba(232, 242, 239, .72); }
.confid__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  color: var(--gold-300);
  background: rgba(198, 161, 91, .13);
  border-radius: var(--r-sm);
}

.phases { display: grid; gap: 1.6rem; padding-inline-start: 1.6rem; }
.phase { position: relative; padding-inline-start: 1.6rem; }
.phase::before {
  content: "";
  position: absolute;
  inset-block: .45rem -1.6rem;
  inset-inline-start: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(198, 161, 91, .55), rgba(255, 255, 255, .08));
}
.phase:last-child::before { display: none; }

.phase__dot {
  position: absolute;
  inset-block-start: .4rem;
  inset-inline-start: -.3rem;
  width: .62rem;
  height: .62rem;
  background: var(--gold-300);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(198, 161, 91, .18);
}
.phase h3 { font-size: var(--fs-h3); color: #fff; }
.phase p { margin-block-start: .45rem; font-size: var(--fs-sm); line-height: 1.75; color: rgba(232, 242, 239, .72); }

/* ===================== 12. PHILOSOPHY ===================== */
.pullquote {
  max-width: 48rem;
  margin-inline: auto;
  margin-block-end: clamp(2.25rem, 1.6rem + 2vw, 3.75rem);
  padding: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.pullquote__mark {
  width: 2.4rem;
  height: 2.4rem;
  margin-inline: auto;
  color: var(--brand-100);
  stroke-width: 1.2;
}
html[data-theme="dark"] .pullquote__mark { color: var(--line-strong); }

.pullquote blockquote {
  margin-block: 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, .95rem + 1vw, 1.6rem);
  font-weight: var(--display-weight);
  line-height: 1.75;
  color: var(--text);
  text-wrap: pretty;
}

.pullquote figcaption {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
html[lang="ar"] .pullquote figcaption { letter-spacing: 0; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, .7rem + 1vw, 1.5rem);
}

.pillar {
  padding: 1.9rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.pillar h3 { margin-block: 1rem .55rem; font-size: var(--fs-h3); }
.pillar p { font-size: var(--fs-sm); line-height: 1.7; color: var(--text-soft); }

.pillar__icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-inline: auto;
  color: var(--primary);
  background: var(--tint);
  border-radius: var(--r-md);
}
.pillar__icon svg { width: 1.45rem; height: 1.45rem; }
.pillar:nth-child(2) .pillar__icon { color: var(--gold-600); background: var(--tint-gold); }
html[data-theme="dark"] .pillar:nth-child(2) .pillar__icon { color: var(--gold-300); }

/* ===================== 13. FAQ ACCORDION ===================== */
.faq__grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
.faq__head { position: sticky; top: 7rem; }

.accordion { display: grid; gap: .8rem; }

.acc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.acc.is-open { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }

.acc__trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.35rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: start;
  color: var(--text);
  transition: color var(--t);
}
.acc__trigger:hover { color: var(--primary); }
.acc__trigger span { flex: 1; }

.acc__chev {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  color: var(--text-muted);
  transition: transform var(--t), color var(--t);
}
.acc.is-open .acc__chev { transform: rotate(180deg); color: var(--primary); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows var(--t), opacity var(--t);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; opacity: 1; }
.acc__panel > p {
  overflow: hidden;
  padding-inline: 1.35rem;
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--text-soft);
}
.acc.is-open .acc__panel > p { padding-block-end: 1.35rem; }

/* ===================== 14. CONTACT & FORM ===================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
}

.form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

.field { display: grid; gap: .45rem; }
.field > label, .field legend {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-soft);
}
.field--group { border: 0; padding: 0; }
.field--group legend { margin-block-end: .6rem; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .82rem 1rem;
  font-size: var(--fs-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.7; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: var(--ring);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: .75; }

.field.has-error input, .field.has-error select { border-color: #c2452f; }
.field__error { font-size: var(--fs-xs); color: #c2452f; }
html[data-theme="dark"] .field__error { color: #f08a74; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-inline-end: 2.6rem; cursor: pointer; }
.select-wrap__chev {
  position: absolute;
  inset-inline-end: 1rem;
  inset-block-start: 50%;
  translate: 0 -50%;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.radios { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.radio input { accent-color: var(--primary); margin: 0; }
.radio span { white-space: nowrap; } /* حتى لا ينكسر النص داخل الزر */
.radio:has(input:checked) { color: var(--primary); border-color: var(--primary); background: var(--tint); font-weight: 600; }

.check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--text-soft);
  cursor: pointer;
}
.check input { margin-block-start: .3rem; accent-color: var(--primary); width: 1rem; height: 1rem; flex: none; }

.form__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: .35rem; }
.form__actions .btn { flex: 1 1 13rem; }

.form__note {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.form__note svg { width: 1.05em; height: 1.05em; }

/* قواعد المؤلّف تتغلّب على [hidden] في متصفحات المستخدم — نعيدها صراحة
   Author rules beat the UA's [hidden] rule, so restore it explicitly */
.form__success[hidden] { display: none; }

.form__success {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .95rem 1.15rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #15694c;
  background: #e7f6ee;
  border: 1px solid #bfe5d1;
  border-radius: var(--r-sm);
}
html[data-theme="dark"] .form__success { color: #7fdcae; background: #0e2a20; border-color: #1d4a36; }
.form__success svg { color: currentColor; }

/* معلومات العيادة / Clinic info card */
.info {
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.info__title { font-size: var(--fs-h3); }
.info__title--spaced {
  margin-block: 2rem 1rem;
  padding-block-start: 1.6rem;
  border-block-start: 1px solid var(--line-strong);
}

.info__list { display: grid; gap: 1.1rem; margin-block-start: 1.3rem; }
.info__list li { display: flex; align-items: flex-start; gap: .85rem; }
.info__list li div { display: grid; gap: .1rem; }
.info__list strong { font-size: var(--fs-sm); }
.info__list small { font-size: var(--fs-xs); color: var(--text-muted); }

.info__icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.info__value {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  border-block-end: 1px solid transparent;
  transition: color var(--t), border-color var(--t);
  width: fit-content;
}
.info__value:hover { color: var(--primary); border-block-end-color: currentColor; }

.hours th, .hours td {
  padding-block: .62rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-align: start;
  border-block-end: 1px dashed var(--line-strong);
}
.hours td { text-align: end; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-block-end: 0; }
.hours .is-closed th, .hours .is-closed td { color: var(--text-muted); }

.map {
  margin-block: 1.6rem 1rem;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.map:empty { display: none; }
.map iframe { display: block; width: 100%; height: 13rem; border: 0; filter: saturate(.85); }
html[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }

/* ===================== 15. EMERGENCY & FOOTER ===================== */
.emergency {
  padding-block: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
  background: var(--tint-gold);
  border-block: 1px solid var(--line);
}
.emergency__inner {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  max-width: 58rem;
}
.emergency strong { display: block; margin-block-end: .3rem; font-size: var(--fs-sm); }
.emergency p { font-size: var(--fs-xs); line-height: 1.75; color: var(--text-soft); }
.emergency__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  color: #9a6b12;
  background: rgba(198, 161, 91, .2);
  border-radius: var(--r-sm);
}
html[data-theme="dark"] .emergency__icon { color: var(--gold-300); }

.site-footer {
  padding-block: clamp(2.75rem, 2rem + 2.5vw, 4.5rem) 1.75rem;
  color: rgba(232, 242, 239, .72);
  background: var(--brand-900);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.75rem, 1rem + 2.5vw, 3.5rem);
  padding-block-end: 2.5rem;
  border-block-end: 1px solid rgba(255, 255, 255, .1);
}

.brand--footer { margin-inline-end: 0; margin-block-end: 1.1rem; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: rgba(232, 242, 239, .55); }
.brand--footer .brand__mark { background: rgba(255, 255, 255, .08); border: 1px solid rgba(198, 161, 91, .35); }

.site-footer__brand p { max-width: 24rem; font-size: var(--fs-sm); line-height: 1.8; }

.socials { display: flex; gap: .55rem; margin-block-start: 1.4rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  color: rgba(232, 242, 239, .8);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-pill);
  transition: color var(--t), border-color var(--t), background var(--t), transform var(--t-fast);
}
.socials a:hover { color: var(--brand-900); background: var(--gold-300); border-color: var(--gold-300); transform: translateY(-2px); }
.socials svg { width: 1.05rem; height: 1.05rem; }

.site-footer__col h4 {
  margin-block-end: 1.1rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-300);
}
html[lang="ar"] .site-footer__col h4 { letter-spacing: 0; font-size: var(--fs-sm); }

.site-footer__col ul { display: grid; gap: .7rem; }
.site-footer__col a, .site-footer__col span { font-size: var(--fs-sm); transition: color var(--t); }
.site-footer__col a:hover { color: #fff; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block-start: 1.75rem;
  font-size: var(--fs-xs);
  color: rgba(232, 242, 239, .5);
}
.site-footer__bottom p { max-width: 46rem; line-height: 1.7; }

/* ===================== 16. FLOATING ACTIONS ===================== */
.floaters {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 90;
  display: grid;
  gap: .6rem;
}

.floater {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  color: #fff;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  transition: transform var(--t-fast), box-shadow var(--t), opacity var(--t);
}
.floater:hover { transform: translateY(-3px) scale(1.04); box-shadow: var(--shadow-lg); }
.floater svg { width: 1.3rem; height: 1.3rem; }

.floater--wa { background: #1f8f54; }
.floater--call { background: var(--brand-700); }
.floater--top {
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.floater--top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ===================== 17. REVEAL ANIMATIONS ===================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===================== 18. RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 21rem; margin-inline: auto; order: -1; }
  .hero__card { inset-inline-start: auto; inset-inline-end: -1rem; }
  .about__grid, .addiction__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__creds { position: relative; inset-block-start: auto; }
  .faq__head { position: relative; top: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr 1fr; gap: 1.25rem 0; }
  .trust__item:nth-child(2) { border-inline-end: 0; }
  .pillars { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* backdrop-filter يجعل الترويسة «حاوية مرجعية» لأي position:fixed بداخلها،
     فتنحصر القائمة المنزلقة داخل ارتفاع الترويسة ولا تظهر إطلاقاً.
     backdrop-filter makes the header a containing block for its fixed
     descendants, trapping the off-canvas panel inside the header's height. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }

  .site-header__inner { min-height: 4.25rem; }
  .header__book { display: none; }
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: min(21rem, 84vw);
    padding: 1.25rem 1.5rem 2rem;
    background: var(--surface);
    border-inline-start: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    visibility: hidden;
    transition: translate .38s var(--ease), visibility .38s;
    overflow-y: auto;

    /* الاتجاه يأتي من متغيّر على :root، لا من محدِّد أعلى أولوية،
       وإلا تغلّب على حالة الفتح فلا تظهر القائمة في الوضع العربي.
       Direction comes from a root variable — a `html[dir=rtl] .nav`
       rule would outrank `.nav.is-open` and the panel would never slide in. */
    translate: calc(var(--nav-dir, 1) * 100%) 0;
  }
  .nav.is-open { translate: 0 0; visibility: visible; }

  .nav__close { display: inline-grid; margin-inline-start: auto; margin-block-end: 1rem; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-block-start: 1px solid var(--line); }
  .nav__link { display: block; padding-block: .95rem; font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__cta { display: inline-flex; margin-block-start: 1.6rem; }
}

@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr; gap: 1.1rem; padding-inline: 1.25rem; }
  .trust__item { padding-inline: 0; border-inline-end: 0; }
  .form__row { grid-template-columns: 1fr; }
  .section__foot { flex-direction: column; text-align: center; }
  .emergency__inner { flex-direction: column; }
}

/* --- تحسينات اللمس والهواتف / touch & phone polish ------------------ */
@media (max-width: 900px) {
  /* 16px على الأقل، وإلا كبّرت iOS الصفحة تلقائياً عند الكتابة
     iOS Safari zooms the page in when an input is under 16px */
  .field input,
  .field select,
  .field textarea { font-size: 1rem; }

  /* مساحات لمس لا تقل عن 44 بكسل / 44px minimum tap targets */
  .info__value {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .link-arrow { padding-block: .6rem; }
  .socials a { width: 2.75rem; height: 2.75rem; }
  .site-footer__col a { display: inline-block; padding-block: .6rem; }
  .site-footer__col ul { gap: .2rem; }

  .check { padding-block: .65rem; }
  .check input { width: 1.2rem; height: 1.2rem; }
  .radio { padding-block: .7rem; }

  .brand__text small { font-size: .75rem; }

  /* القائمة لا تسحب الصفحة معها عند التمرير / no scroll chaining */
  .nav { overscroll-behavior: contain; }

  /* احترام حواف الشاشات ذات النتوء / respect notch & home indicator */
  .floaters {
    inset-block-end: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    inset-inline-end: calc(1.25rem + env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 560px) {
  .brand__text small { display: none; }
  .lang-btn span { display: none; }
  .lang-btn { padding-inline: .85rem; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-inline-start: 2rem; padding-block-start: 0; }
  .step::before {
    inset-block: 1.6rem -1.6rem;
    inset-inline-start: .45rem;
    width: 1px;
    height: auto;
    background: var(--line-strong);
  }
  .step::after { inset-block-start: .3rem; inset-inline-start: 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__card { position: relative; inset: auto; width: 100%; margin-block-start: 1.25rem; }

  /* على الهاتف: العنوان وزر الحجز أولاً، ثم الصورة — حتى لا يُدفع
     نداء الحجز تحت الطيّة.
     On phones the headline and booking CTA come first, photo after. */
  .hero__media { max-width: 17rem; order: 0; margin-block-start: 2.25rem; }
  .hero__content { order: -1; }

  .floaters {
    inset-block-end: calc(.9rem + env(safe-area-inset-bottom, 0px));
    inset-inline-end: calc(.9rem + env(safe-area-inset-right, 0px));
  }
  .floater { width: 3rem; height: 3rem; }
}

/* ===================== 19. PRINT ===================== */
@media print {
  .site-header, .floaters, .scroll-progress, .nav, .map, .form__actions { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; break-inside: avoid; }
  .section--dark { background: #fff !important; color: #000 !important; }
  .section--dark .section__title, .phase h3, .confid strong { color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
