/* ==========================================================================
   PhysioFulcrum — main.css
   1) @layer base     ← بديل Tailwind v4 preflight (التصميم معتمد عليه: margin 0 لكل حاجة،
                        العناوين بترث الحجم، القوائم من غير نقط…).
   2) @layer utilities ← الـ base بتاع كومبوننت Button في Lovable (shadcn) — مش موجود في styles.css.
   3) من غير layer    ← design-handoff/design/styles.css بنفس القيم، مع فرق واحد مقصود:
                        الخصائص الاتجاهية اتحولت منطقية (المتابعة 8 — نسخة إنجليزي): right ← inset-inline-start ·
                        left ← inset-inline-end · padding/border-right ← -inline-start … (tools/dev/css-logical.mjs).
                        في RTL الشكل متطابق بالبكسل (tools/dev/layout-snapshot.mjs). اللي مابيتحلش منطقي: [dir="ltr"] في wp.css.
   الـ layers أضعف من أي CSS براها — نفس ترتيب الغلبة في بناء Lovable بالظبط.
   ========================================================================== */

@layer base, utilities;

@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
  html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; -webkit-tap-highlight-color: transparent; }
  hr { height: 0; color: inherit; border-top-width: 1px; }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  a { color: inherit; -webkit-text-decoration: inherit; text-decoration: inherit; }
  b, strong { font-weight: bolder; }
  code, kbd, samp, pre { font-family: var(--font-mono); font-size: 1em; }
  small { font-size: 80%; }
  sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
  sub { bottom: -0.25em; } sup { top: -0.5em; }
  table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
  progress { vertical-align: baseline; }
  summary { display: list-item; }
  ol, ul, menu { list-style: none; }
  img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
  img, video { max-width: 100%; height: auto; }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit; font-feature-settings: inherit; font-variation-settings: inherit;
    letter-spacing: inherit; color: inherit; border-radius: 0; background-color: transparent; opacity: 1;
  }
  ::placeholder { opacity: 1; color: color-mix(in oklab, currentcolor 50%, transparent); }
  textarea { resize: vertical; }
  ::-webkit-search-decoration { -webkit-appearance: none; }
  ::-webkit-date-and-time-value { min-height: 1lh; text-align: inherit; }
  ::-webkit-datetime-edit { display: inline-flex; }
  ::-webkit-datetime-edit-fields-wrapper { padding: 0; }
  :-moz-ui-invalid { box-shadow: none; }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button { appearance: button; }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
  [hidden]:where(:not([hidden="until-found"])) { display: none !important; }
}

/* Button base — من src/components/ui/button.tsx (commit 08d1c5f2). */
@layer utilities {
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    white-space: nowrap; border-radius: 6px; cursor: pointer;
    font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 20px;
    height: 36px; padding: 8px 16px;
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms;
  }
  .btn:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--ring); }
  .btn:disabled { pointer-events: none; opacity: 0.5; cursor: not-allowed; }
  .btn svg { width: 16px; height: 16px; flex-shrink: 0; pointer-events: none; }
  /* المقاسات: default = .btn لوحده · sm · lg · icon */
  .btn-sm { height: 32px; border-radius: 6px; padding: 8px 12px; font-size: 13px; line-height: 16px; }
  .btn-lg { height: 48px; border-radius: 12px; padding-inline: 24px; font-size: 16px; line-height: 24px; }
  .btn-icon { height: 36px; width: 36px; padding: 0; }

  /* الـ variants: clinic · glass · warm بتيجي من styles.css (من غير layer). الباقي هنا. */
  .btn-default {
    background-color: var(--primary); color: var(--primary-foreground);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  }
  .btn-default:hover { background-color: color-mix(in oklab, var(--primary) 90%, transparent); }
  .btn-destructive { background-color: var(--destructive); box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
  .btn-destructive:hover { background-color: color-mix(in oklab, var(--destructive) 90%, transparent); }
  .btn-outline {
    border: 1px solid var(--border); background-color: var(--background);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  }
  .btn-outline:hover { background-color: var(--secondary); color: var(--foreground); }
  .btn-secondary {
    background-color: var(--secondary); color: var(--foreground);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  }
  .btn-secondary:hover { background-color: color-mix(in oklab, var(--secondary) 80%, transparent); }
  .btn-ghost:hover { background-color: var(--secondary); color: var(--foreground); }
  .btn-link { color: var(--primary); text-underline-offset: 4px; }
  .btn-link:hover { text-decoration-line: underline; }
}

/* ==========================================================================
   PhysioFulcrum — الستايل المرجعي المستخرج من بناء Lovable (commit 08d1c5f2)
   ده المصدر الرسمي للتصميم. انقله في الثيم كما هو (ممكن تقسمه لملفات)،
   وأي اختلاف بينه وبين أي مستند تاني — الغلبة ليه.
   اتشال منه: @import "tailwindcss" و @theme inline (خاصين ببيلد Tailwind)
   واتحولت متغيرات الخطوط لـ :root عادي.
   ========================================================================== */

:root {
  color-scheme: light;

  /* الخطوط */
  --font-sans: "IBM Plex Sans Arabic", sans-serif;
  --font-display: "Almarai", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* الألوان — oklch (المقابل التقريبي بالهيكس في التعليق) */
  /* المتابعة 21: ألوان اللوجو (PhysioFulcrum) — مقاسة من PNG؛ ملف المصمم الأصلي هو المرجع النهائي لما يوصل.
     الدرجات المشتقة: نفس الـ lightness القديمة + hue اللون الجديد. النص بالبترولي دايما — الأخضر للزخرفة والأيقونات بس. */
  --background: oklch(0.964 0.012 75);        /* #F8F2EA كريمي اللوجو */
  --foreground: oklch(0.235 0.012 75);        /* ~#211D18 حبري */
  --primary: oklch(0.388 0.065 196);          /* #024F50 بترولي اللوجو — على الأرضية 8.4:1 · أبيض عليه 9.4:1 */
  --primary-text: var(--primary);
  --primary-light: oklch(0.496 0.080 196);    /* #127071 */
  --primary-foreground: oklch(0.985 0.009 80);
  --secondary: oklch(0.921 0.020 75);         /* #EDE3D7 */
  --card: oklch(0.978 0.007 75);              /* #FBF7F2 */
  --answer-bg: #E2EDEB;                       /* مربع «الإجابة باختصار» (المتابعة 36) */
  --muted-foreground: oklch(0.43 0.02 190);   /* المتابعة 43: = --ink-soft (#4A5A59) — على الأرضية 6.7:1 (القديم #7B7165 كان 4.3:1، تحت المعيار) */
  --border: oklch(0.891 0.025 75);            /* #E5D9C9 */
  --green: oklch(0.671 0.160 136);            /* #64AB3E أخضر اللوجو — على الأرضية 2.5:1 ← ممنوع للنص */
  --light-green: oklch(0.753 0.159 136);      /* #7EC55A — على الفوتر 7.0 · الشريط الداكن 8.5 · لوحة الحجز 4.5 (أيقونات ونص كبير بس) */
  --deep: oklch(0.275 0.045 196);             /* #022E2F فوتر */
  --athletic: oklch(0.205 0.034 196);         /* #011C1C الشريط الداكن */
  --clay: oklch(0.5 0.064 48);                /* نبرة كارت 1 */
  --sage: oklch(0.4 0.057 145);               /* نبرة كارت 2 */
  --destructive: oklch(0.56 0.18 28);

  --shadow: 0 16px 45px oklch(0.25 0.035 60 / 0.1);
  /* درجات ظل الهيرو — توكنز (المتابعة 18: مفيش لون برا :root، عشان لو اللوجو الجديد غير الألوان) */
  --hero-shade-1: oklch(0.21 0.025 180 / 0.88);
  --hero-shade-2: oklch(0.24 0.03 180 / 0.68);
  --hero-shade-3: oklch(0.22 0.02 180 / 0.08);
  --hero-shade-mobile-end: oklch(0.24 0.03 180 / 0.45);
  --hero-shade: linear-gradient(270deg, var(--hero-shade-1) 0%, var(--hero-shade-2) 39%, var(--hero-shade-3) 100%);
  --photo-shade: linear-gradient(0deg, oklch(0.23 0.03 200 / 0.92), transparent 90%);
  /* المتابعة 44: مربع التحذير الطيني — التباين على --warn-bg: --warn-ink 9.35:1 (العنوان) · --warn-text 12.19:1 (النص) */
  --warn-bg: #F7E9DD;
  --warn-line: #E3C4AA;
  --warn-ink: #5E2F0C;
  --warn-text: #3B2414;
  --radius: 18px;

  /* المتابعة 32 — صفحة المدونة (من الماكيت المعتمد). الباقي من التوكنز اللي فوق (الأرضية · البترولي · الأخضر · الحدود). */
  --surface: oklch(0.993 0.006 80);           /* #FFFDF9 أرضية الكروت */
  --tint: oklch(0.935 0.013 180);             /* #E2EDEB خلفية الأيقونة وشارة «دليل حالة» */
  --tint-line: oklch(0.8 0.03 185);           /* #A9C7C3 إطار شارة «مقال» */
  --ink-soft: oklch(0.43 0.02 190);           /* #4A5A59 الملخص والسطر تحت العنوان — على الأرضية 6.7:1 */
  --ink-faint: oklch(0.49 0.018 190);         /* #5B6B6A العداد والمنطقة ومدة القراءة — 5.2:1 */
  --chip-line: oklch(0.85 0.03 75);           /* #D9CCBA إطار الـ chip وحالة «لا نتائج» */
  --segment: oklch(0.928 0.017 75);           /* #EFE6DA خلفية الـ segmented وخط الكارت */
  --on-primary-soft: oklch(0.93 0.015 185);   /* #DCEBE8 نص ثانوي على البترولي */
  --on-primary-green: oklch(0.9 0.06 130);    /* #CFE6C2 عنوان «أكثر ما يسأل عنه المرضى» */
  --on-primary-line: oklch(1 0 0 / 0.18);     /* فواصل على البترولي */
  --on-primary-outline: oklch(1 0 0 / 0.7);   /* إطار زرار واتساب على البترولي */
  --segment-shadow: 0 1px 3px oklch(0 0 0 / 0.08); /* الاختيار النشط في الـ segmented */
  --header-h: 96px;                           /* ارتفاع الهيدر اللاصق — شريط فلاتر المدونة بيلزق تحته */

  /* alias ليها نفس القيم — استخدمها لو حبيت أسماء أوضح */
  --ring: var(--primary);
  --input: var(--border);
}

/* الدارك مود اختياري ومش مفعل بالـ OS — بيتفعل بإضافة .dark على <html> فقط */
.dark {
  color-scheme: dark;
  --background: oklch(0.22 0.012 75);
  --foreground: oklch(0.94 0.013 80);
  --card: oklch(0.26 0.013 75);
  --secondary: oklch(0.28 0.016 75);
  --muted-foreground: oklch(0.73 0.022 80);
  --border: oklch(0.35 0.02 75);
  --primary: oklch(0.49 0.072 213);
  --primary-text: var(--light-green);
}

* { box-sizing: border-box; border-color: var(--border); letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.75;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.45;
  text-wrap: pretty;
  text-wrap: balance;
}
h1, h2, h3, p { margin: 0; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { cursor: pointer; }
::selection { background: var(--light-green); color: var(--deep); }

.container { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 90px; scroll-margin-top: 92px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--primary-text); font-weight: 700; font-size: 15px; }
.eyebrow:before { content: ""; width: 24px; height: 2px; background: var(--green); }
.section-heading { font-size: 32.3px; font-weight: 700; }
.section-top { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; gap: 24px; }
.section-top p { color: var(--muted-foreground); max-width: 370px; font-size: 17px; }
.text-link { color: var(--primary-text); font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Header ---------- */
.site-header {
  height: 96px; position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { display: flex; align-items: center; gap: 10px; flex-shrink: 0; direction: ltr; }
.brand-symbol {
  width: 44px; height: 46px; position: relative;
  border: 5px solid var(--primary); border-left-color: transparent;
  border-radius: 50%; transform: rotate(-27deg);
}
.brand-symbol:after {
  content: ""; position: absolute; inset: 4px -10px 4px 8px;
  border: 4px solid var(--green); border-right-color: transparent; border-radius: 50%;
}
.brand-name { font-family: var(--font-mono); font-size: 27px; font-weight: 600; line-height: 1.15; color: var(--primary-text); }
.brand-sub { display: block; font-size: 12px; letter-spacing: 0; line-height: 1.8; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { transition: color 0.2s, text-decoration-color 0.2s; text-decoration: underline 2px transparent; text-underline-offset: 8px; }
/* المتابعة 21: hover = نص بترولي + خط أخضر 2px (الأخضر على الكريمي 2.5:1 ← ممنوع للنص) */
.nav a:hover, .nav a[aria-current] { color: var(--primary-text); text-decoration-color: var(--green); }
.header-actions { display: flex; gap: 17px; align-items: center; }
.phone-link { display: flex; gap: 7px; align-items: center; font-size: 14px; }

/* ---------- الأزرار ---------- */
.clinic-button, .glass-button, .warm-button {
  border-radius: 12px; min-height: 45px; padding-inline: 22px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; transition: transform 0.25s, background 0.25s;
}
.clinic-button {
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: 0 5px 15px color-mix(in oklab, var(--primary) 12%, transparent);
}
.clinic-button:hover { background: var(--primary-light); transform: translateY(-2px); }
.glass-button {
  color: var(--primary-foreground); background: transparent;
  border: 1px solid color-mix(in oklab, var(--primary-foreground) 55%, transparent);
}
.glass-button:hover { background: color-mix(in oklab, var(--primary-foreground) 12%, transparent); }
.warm-button { background: var(--background); color: var(--primary-text); }
.warm-button:hover { background: var(--secondary); transform: translateY(-2px); }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 610px; overflow: hidden; color: var(--primary-foreground); isolation: isolate; }
.hero-photo, .athlete-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { object-position: center 48%; }
.hero:after { content: ""; position: absolute; inset: 0; background: var(--hero-shade); z-index: -1; }
.hero-inner { min-height: 610px; display: flex; align-items: center; position: relative; }
.hero-copy { width: 590px; padding-block: 62px; }
.hero .eyebrow { color: var(--primary-foreground); margin-bottom: 20px; }
.hero h1 { font-size: 44.65px; font-weight: 800; line-height: 1.45; }
.hero h1 .hero-line2 { color: var(--light-green); display: block; } /* سطر لوحده على كل المقاسات — «لا» ماتقعش آخر السطر الأول (المتابعة 26) */
.hero h1 br { display: none; }
.hero h1 .hero-eyebrow { font-family: var(--font-sans); line-height: 1.75; font-weight: 700; } /* الـ eyebrow جوه الـ H1: نفس شكل الـ div القديم (مايورثش حجم ولا ارتفاع سطر الـ H1) */
.hero-copy > p { max-width: 535px; line-height: 1.95; font-size: 18px; opacity: 0.87; margin-top: 22px; }
.hero-buttons { display: flex; gap: 12px; margin-top: 29px; }
.hero-note { display: flex; gap: 9px; align-items: center; font-size: 14px; opacity: 0.8; margin-top: 23px; }
.floating-note {
  position: absolute; inset-inline-end: 0; bottom: 28px; /* المتابعة 71: كان 5% / 72px وقاعد على ركبة المريض في home-hero — على حرف الحاوية وأوطى ← الركبة والساق ظاهرين */
  background: var(--background); color: var(--foreground);
  display: flex; align-items: center; gap: 15px;
  padding: 20px 26px; border-radius: 16px; box-shadow: var(--shadow);
  transform: rotate(-3deg); font-size: 15px;
}
.floating-note svg { color: var(--primary-text); width: 32px; height: 32px; }
.floating-note strong { display: block; font-family: var(--font-display); font-size: 18px; }
.hero-index { position: absolute; bottom: 25px; inset-inline-end: 0; display: flex; align-items: center; gap: 9px; font-size: 13px; }
.hero-index i { width: 44px; height: 2px; background: var(--primary-foreground); opacity: 0.4; }
.hero-index i:first-of-type { background: var(--light-green); opacity: 1; }

/* ---------- اختار مسارك ---------- */
.paths-section { padding-top: 65px; }
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.path-card {
  height: 390px; position: relative; border-radius: var(--radius);
  overflow: hidden; isolation: isolate; color: var(--primary-foreground);
  transition: transform 0.4s, box-shadow 0.4s;
}
.path-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.path-card img { position: absolute; inset: 0; z-index: -2; transition: transform 0.65s; }
.path-card:hover img { transform: scale(1.05); }
.path-card:after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, var(--path-tone) 0%,
    color-mix(in oklab, var(--path-tone) 70%, transparent) 35%, transparent 100%);
}
.path-clay { --path-tone: var(--clay); }
.path-sage { --path-tone: var(--sage); }
.path-sport { --path-tone: var(--deep); }
.path-number {
  position: absolute; top: 22px; inset-inline-start: 25px;
  border: 1px solid color-mix(in oklab, var(--primary-foreground) 50%, transparent);
  height: 34px; width: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 13px;
}
.path-content { position: absolute; bottom: 27px; inset-inline: 27px; }
.path-content h3 { font-size: 22.8px; margin-bottom: 11px; }
.path-content p { font-size: 15px; line-height: 1.8; opacity: 0.88; margin-bottom: 19px; }
.path-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; }
.round-arrow {
  width: 34px; height: 34px;
  border: 1px solid color-mix(in oklab, var(--primary-foreground) 45%, transparent);
  border-radius: 50%; display: grid; place-items: center;
}

/* ---------- عن المركز ---------- */
.about-section { padding-top: 25px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; align-items: center; }
.collage { height: 540px; position: relative; padding-inline-end: 70px; }
.collage-tall { height: 465px; border-radius: var(--radius); overflow: hidden; }
.collage-small {
  position: absolute; bottom: 0; inset-inline-end: 0; width: 240px; height: 225px;
  border: 8px solid var(--background); border-radius: 22px; overflow: hidden;
}
.collage-label { position: absolute; bottom: 32px; inset-inline-start: 26px; color: var(--primary-foreground); font-size: 14px; }
.about-copy .section-heading { font-size: 31.35px; margin: 14px 0 19px; }
.about-copy > p { color: var(--muted-foreground); }
.quote { border-inline-start: 3px solid var(--green); padding-inline-start: 20px; margin: 27px 0; font-size: 21px; font-weight: 500; line-height: 1.8; }
.quote cite { display: block; font-style: normal; font-size: 13px; color: var(--muted-foreground); margin-top: 9px; }
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 30px; padding: 6px 12px; font-size: 13px; }
.pill svg { color: var(--green); width: 14px; }

/* ---------- الأرقام ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 25px 0 66px; border-bottom: 1px solid var(--border); text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);     /* ≈ 56px — النسبة للكلمة 3:1 */
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 800; color: var(--primary-text); line-height: 1.1; display: block;
}
.stat > span { font-size: 1.0625rem; font-weight: 500; color: var(--foreground); }

/* ---------- الأرقام اللاتينية داخل نص عربي ---------- */
.numeral, bdi[dir="ltr"] { unicode-bidi: isolate; font-variant-numeric: tabular-nums lining-nums; }

/* ---------- البرامج ---------- */
.program-filters { display: flex; gap: 30px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.program-filters [role="tab"] {
  height: 52px; padding: 0 3px; border: 0; border-radius: 0; background: transparent;
  border-bottom: 2px solid transparent; color: var(--muted-foreground); font-size: 16px;
}
.program-filters [aria-selected="true"] { border-color: var(--primary); color: var(--primary-text); }
.program-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.program-list { border-top: 1px solid var(--border); animation: program-enter 380ms ease both; min-width: 0; }
.program-item { border-bottom: 1px solid var(--border); }
.program-select {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; gap: 16px; align-items: start;
  width: 100%; height: auto; min-height: 140px; padding: 28px 6px;
  border: 0; background: transparent; border-radius: 0; white-space: normal; text-align: start;
  color: var(--foreground); transition: transform 250ms ease, background 250ms ease;
}
.program-select:hover, .program-select:focus-visible { transform: translateY(-3px); background: var(--secondary); }
.program-select:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.program-index { font-size: 13px; color: var(--muted-foreground); padding-top: 5px; }
.program-title { display: block; min-width: 0; transition: transform 250ms ease; }
.program-select:hover .program-title, .program-select:focus-visible .program-title { transform: translateX(-4px); }
.program-select h3 { font-size: 18.05px; font-weight: 700; line-height: 1.45; }
.program-select small { display: block; text-align: match-parent; font-size: 13px; color: var(--muted-foreground); margin-top: 5px; line-height: 1.6; }
.program-select > svg { margin-top: 6px; color: var(--primary-text); opacity: 0.35; transition: opacity 250ms; }
.program-item.selected .program-select > svg { opacity: 1; }
.program-item.selected h3 { color: var(--primary-text); }
.program-line { display: block; margin-top: 18px; height: 2px; width: 70px; background: var(--border); }
.program-line i { display: block; height: 100%; width: 20%; background: var(--green); transition: width 400ms ease; }
.program-item.selected .program-line i { width: 100%; }

.program-preview { position: sticky; top: 112px; min-width: 0; }
.program-preview-photo { position: relative; aspect-ratio: 1.45; overflow: hidden; border-radius: var(--radius); isolation: isolate; background: var(--secondary); }
.program-preview-photo img { position: absolute; inset: 0; opacity: 0; transition: opacity 450ms ease; }
.program-preview-photo img.active { opacity: 1; }
.program-preview-photo:after { content: ""; position: absolute; inset: 0; background: var(--photo-shade); pointer-events: none; }
.program-photo-caption { position: absolute; bottom: 20px; inset-inline-start: 24px; z-index: 1; color: var(--primary-foreground); font-size: 13px; }
.program-preview-body { animation: program-enter 400ms ease both; padding-top: 22px; }
.program-preview-name { font-size: 15px; color: var(--primary-text); font-weight: 700; }
.program-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 18px 25px; gap: 20px; }
.program-figures > div { min-width: 0; }
.program-figures > div + div { border-inline-start: 1px solid var(--border); padding-inline-start: 20px; }
.program-figures strong { display: flex; align-items: center; min-height: 70px; font-family: var(--font-display); font-size: 52px; color: var(--primary-text); line-height: 1.2; }
.program-figures strong.program-variable { font-size: 22px; }
.program-figures span { display: block; font-size: 13px; color: var(--muted-foreground); margin-top: 7px; }
.program-phase-heading { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted-foreground); }
.program-phase-segments { display: flex; gap: 7px; margin: 12px 0 17px; }
.program-phase-segments .phase-segment { flex: 1; height: 28px; padding: 0; min-width: 0; position: relative; border: 0; border-radius: 2px; background: transparent; }
.program-phase-segments .phase-segment::after {
  content: ""; position: absolute; inset-inline: 0; height: 5px; border-radius: 2px;
  background: var(--border); transition: background 200ms ease;
}
.program-phase-segments .phase-segment.active::after { background: var(--green); }
.program-phase-segments .phase-segment:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.phase-caption { min-height: 100px; }
.phase-caption > span { display: block; color: var(--muted-foreground); font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.program-phase-preview p { font-size: 15px; line-height: 1.7; }
.program-phase-preview p > span { display: block; font-size: 14px; color: var(--muted-foreground); margin-bottom: 3px; }
.program-preview-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border-top: 1px solid var(--border); margin-top: 23px; padding-top: 20px; }
.program-preview-bottom small { font-size: 14px; color: var(--muted-foreground); }
.program-preview-bottom .clinic-button { padding-inline: 14px; font-size: 13px; }
.program-mobile-image, .program-mobile-details { display: none; }
@keyframes program-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- الشريط الداكن: العودة للملعب ---------- */
.athletic-section { position: relative; isolation: isolate; background: var(--athletic); color: var(--primary-foreground); overflow: hidden; padding: 85px 0; }
.athlete-photo { inset-inline: 0; opacity: 0.32; }
.athlete-photo img { object-position: center 35%; }
.athletic-section:after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, var(--athletic) 25%, transparent 100%); }
.athletic-section .eyebrow { color: var(--light-green); }
.athletic-section h2 { font-size: 37.05px; max-width: 710px; margin: 14px 0; }
.athletic-section h2 span { color: var(--light-green); }
.athletic-sub { opacity: 0.65; max-width: 530px; }
.progress-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin: 55px 0 48px; }
.rail-step { border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 25%, transparent); padding-top: 17px; }
.rail-time { color: var(--light-green); font-size: 13px; }
.rail-step h3 { font-size: 16.15px; margin-top: 10px; }
.rail-step p { font-size: 14px; opacity: 0.68; line-height: 1.9; min-height: 53px; margin: 8px 0 20px; }
.rail-progress { height: 3px; background: color-mix(in oklab, var(--primary-foreground) 15%, transparent); overflow: hidden; }
.rail-progress i { display: block; height: 100%; background: var(--light-green); width: 0; transition: width 1.5s ease; }
.in-view .rail-step:nth-child(1) i { width: 25%; }
.in-view .rail-step:nth-child(2) i { width: 50%; }
.in-view .rail-step:nth-child(3) i { width: 75%; }
.in-view .rail-step:nth-child(4) i { width: 100%; }
.sport-strip {
  border: 1px solid color-mix(in oklab, var(--light-green) 35%, transparent);
  border-radius: 14px; background: color-mix(in oklab, var(--primary) 40%, transparent);
  padding: 24px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.sport-strip h3 { font-size: 19px; }
.sport-strip p { font-size: 14px; opacity: 0.7; }

/* ---------- آراء المرضى ---------- */
.reviews-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 22px; }
.review { padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); display: flex; flex-direction: column; }
.review-featured { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary-text); }
.stars { display: flex; gap: 4px; color: var(--green); margin-bottom: 22px; }
.stars svg { width: 15px; fill: currentColor; }
.review-featured .stars { color: var(--light-green); }
.review > p { font-size: 18px; line-height: 1.9; flex: 1; }
.review-featured > p { font-size: 22px; }
.review-person { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.person-name { font-size: 15px; font-weight: 700; }
.person-context { font-size: 13px; opacity: 0.6; }

/* ---------- قصص التعافي ---------- */
.patient-notice { font-size: 14px; color: var(--muted-foreground); margin-bottom: 26px; max-width: 850px; }
.recovery-section { background: var(--secondary); }
.recovery-count { font-family: var(--font-mono); font-size: 22px; color: var(--primary-text); }
.recovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.recovery-card { min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; animation: program-enter 350ms ease both; }
.recovery-photo { aspect-ratio: 1.6; position: relative; }
.recovery-photo > span { position: absolute; inset-inline-start: 14px; bottom: 12px; background: var(--background); padding: 2px 10px; border-radius: 6px; font-size: 13px; color: var(--primary-text); }
.recovery-body { padding: 22px; }
.recovery-person { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recovery-person h3 { font-size: 17px; }
.recovery-person > span { font-size: 13px; color: var(--muted-foreground); white-space: nowrap; }
.recovery-program { font-size: 13px; color: var(--muted-foreground); margin: 10px 0 22px; }
.outcome-labels, .recovery-outcomes > div { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr)); gap: 8px; align-items: center; }
.outcome-labels { font-size: 13px; color: var(--muted-foreground); padding-bottom: 6px; }
.recovery-outcomes { margin: 0; }
.recovery-outcomes > div { padding-block: 14px; border-top: 1px solid var(--border); }
.recovery-outcomes dt { font-size: 13px; font-weight: 500; }
.recovery-outcomes dd { margin: 0; font-size: 16px; font-family: var(--font-display); font-weight: 700; color: var(--muted-foreground); }
.recovery-outcomes dd:last-child { color: var(--primary-text); }
.recovery-outcomes bdi { white-space: nowrap; }
.recovery-body blockquote { font-size: 15px; line-height: 1.9; margin: 18px 0 0; border-top: 1px solid var(--border); padding-top: 16px; }
.recovery-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 32px; }
.recovery-actions > span { font-size: 13px; color: var(--muted-foreground); }

/* ---------- الفروع ---------- */
.branch-section { background: var(--secondary); }
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.branch-card { border: 1px solid var(--border); background: var(--background); border-radius: var(--radius); overflow: hidden; }
.branch-map { height: 200px; position: relative; background: var(--secondary); overflow: hidden; }
.map-image { width: 100%; height: 100%; filter: saturate(0.5); opacity: 0.7; }
.map-pin { position: absolute; inset: 0; display: grid; place-items: center; }
.map-pin svg { color: var(--primary-text); fill: var(--background); width: 44px; height: 44px; filter: drop-shadow(0 4px 6px color-mix(in oklab, var(--foreground) 20%, transparent)); }
.map-caption { position: absolute; bottom: 12px; inset-inline-start: 15px; background: var(--background); padding: 3px 9px; border-radius: 6px; font-size: 13px; }
.branch-info { padding: 29px; }
.branch-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.branch-title h3 { font-size: 22.8px; }
.branch-title span { font-size: 13px; color: var(--primary-text); background: var(--secondary); padding: 4px 12px; border-radius: 20px; }
.branch-info > p { font-size: 15px; color: var(--muted-foreground); margin-bottom: 14px; }
.branch-hours { font-size: 14px; display: flex; align-items: start; gap: 9px; line-height: 1.9; }
.branch-hours svg { width: 17px; color: var(--primary-text); margin-top: 5px; }
.branch-actions { margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 14px; }

/* ---------- المدونة ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { cursor: pointer; }
.blog-image { height: 238px; overflow: hidden; border-radius: var(--radius); position: relative; }
.blog-image img { transition: transform 0.6s; }
.blog-card:hover img { transform: scale(1.05); }
.blog-category { position: absolute; inset-inline-start: 15px; bottom: 15px; background: var(--background); color: var(--primary-text); padding: 3px 13px; border-radius: 20px; font-size: 13px; }
.blog-card small { color: var(--muted-foreground); font-size: 13px; display: block; margin: 17px 0 8px; }
.blog-card h3 { font-size: 19px; line-height: 1.45; margin-bottom: 13px; }

/* ---------- الحجز ---------- */
.booking-section { padding-top: 30px; }
.booking-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--border); }
.booking-panel { background: var(--primary); color: var(--primary-foreground); padding: 46px 40px; position: relative; overflow: hidden; }
.booking-panel .eyebrow { color: var(--primary-foreground); } /* المتابعة 21: النص الصغير على البترولي أبيض — الأخضر الفاتح 4.5:1 على الحد */
.booking-panel h2 { font-size: 32.3px; margin: 15px 0; }
.booking-panel > p { opacity: 0.75; font-size: 16px; }
.booking-benefits { display: grid; gap: 20px; margin-top: 35px; }
.booking-benefit { display: flex; gap: 12px; font-size: 16px; }
.booking-benefit svg { color: var(--light-green); width: 22px; flex-shrink: 0; }
.booking-panel-note { margin-top: 55px; font-size: 14px; opacity: 0.65; border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 25%, transparent); padding-top: 20px; }
.booking-form { padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 500; min-width: 0; }
.field input, .field select, .field textarea {
  border: 1px solid var(--border); border-radius: 9px; background: var(--background); color: var(--foreground);
  padding: 10px 12px; width: 100%; min-height: 46px; outline: none; font-size: 15px;
  font-family: var(--font-sans); font-weight: 400;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary-text); box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary) 15%, transparent); }
.field textarea { resize: vertical; min-height: 85px; }
.full-field { grid-column: 1/-1; }
.form-note { font-size: 14px; color: var(--muted-foreground); text-align: center; }
.form-success { grid-column: 1/-1; background: var(--secondary); padding: 25px; border-radius: 14px; align-self: center; text-align: center; }
.form-success > svg { margin: auto; color: var(--green); width: 48px; height: 48px; }
.form-success h3 { margin: 15px 0; }
.form-success p { color: var(--muted-foreground); font-size: 15px; }
.form-success .clinic-button { margin-top: 20px; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: var(--primary-foreground); padding: 65px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1.3fr; gap: 45px; }
.footer .brand-name { color: var(--primary-foreground); }
.footer .brand-symbol { border-top-color: var(--primary-foreground); border-right-color: var(--primary-foreground); border-bottom-color: var(--primary-foreground); }
.footer-about p { font-size: 14px; opacity: 0.65; max-width: 275px; margin-top: 22px; }
.footer h3 { font-size: 16.15px; margin-bottom: 20px; }
.footer-links { display: grid; gap: 9px; font-size: 14px; opacity: 0.7; }
.footer-address { font-size: 14px; opacity: 0.75; margin-bottom: 16px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid color-mix(in oklab, var(--primary-foreground) 30%, transparent); border-radius: 50%; }
.socials svg { width: 15px; }
.footer-bottom { border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 15%, transparent); padding-top: 23px; margin-top: 40px; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; opacity: 0.6; }

/* ---------- تفاصيل ---------- */
.grain { position: relative; }
.grain:before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='currentColor' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  z-index: 1;
}
/* الحالة الأولى ظاهرة؛ الإخفاء بس لما site.js نفسه يشتغل ويضيف .reveal-ready (لو السكريبت فشل أو اتأخر ← المحتوى ظاهر). */
.reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-ready .reveal.in-view { opacity: 1; transform: translateY(0); }
.article-dialog {
  border: 1px solid var(--border); border-radius: 20px; background: var(--background); color: var(--foreground);
  width: min(650px, calc(100% - 32px)); max-height: 85vh; padding: 30px; overflow: auto;
}
.article-dialog::backdrop { background: color-mix(in oklab, var(--deep) 70%, transparent); backdrop-filter: blur(5px); }
.article-dialog h2 { font-size: 23.75px; margin: 20px 0; }
.article-dialog p { color: var(--muted-foreground); margin-bottom: 20px; }
.article-dialog img { height: 250px; border-radius: 12px; }
.dialog-close { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.theme-toggle { display: none; }

/* ---------- أدوار الخطوط ---------- */
.hero h1, .athletic-section h2, .section-heading, .booking-panel h2 { line-height: 1.3; }
.hero-copy > p, .athletic-sub, .section-top > p, .about-copy > p { font-weight: 300; }
.program-preview-name, .person-name, .floating-note strong { font-family: var(--font-display); font-weight: 700; }
.program-figures strong { font-weight: 800; }
.program-select small, .brand-sub { font-family: var(--font-mono); font-weight: 400; }
.program-phase-heading, .program-figures span, .person-context, .pill { font-family: var(--font-sans); font-weight: 500; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 1500px) {
  .hero, .hero-inner { min-height: 650px; }
  .hero-copy { width: 620px; }
}

@media (min-width: 1024px) {
  .program-split { align-items: stretch; }
  .program-list-wrap { position: relative; min-height: 0; }
  .program-list {
    position: absolute; inset: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    padding-inline-start: 10px; scrollbar-width: thin;
    scrollbar-color: color-mix(in oklab, var(--primary) 35%, transparent) transparent;
  }
  .program-list:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
  .program-list::-webkit-scrollbar { width: 4px; }
  .program-list::-webkit-scrollbar-track { background: transparent; }
  .program-list::-webkit-scrollbar-thumb { background: color-mix(in oklab, var(--primary) 35%, transparent); border-radius: 999px; }
  .program-list .program-select { min-height: 0; padding-block: 20px; }
  .program-list-wrap::before, .program-list-wrap::after {
    content: ""; position: absolute; inset-inline: 0 14px; height: 40px; z-index: 2;
    pointer-events: none; opacity: 0; transition: opacity 250ms ease;
  }
  .program-list-wrap::before { top: 0; background: linear-gradient(to bottom, var(--background), transparent); }
  .program-list-wrap::after { bottom: 0; background: linear-gradient(to top, var(--background), transparent); }
  .program-list-wrap.fade-top::before, .program-list-wrap.fade-bottom::after { opacity: 1; }
  .program-preview { position: relative; top: auto; }
}

@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 20px; }
  .nav { gap: 17px; }
  .phone-link { display: none; }
  .about-grid { gap: 40px; }
  .collage { padding-inline-end: 40px; }
  .collage-small { width: 200px; height: 200px; }
  .path-content { inset-inline: 22px; }
  .path-content h3 { font-size: 19.95px; }
  .footer-grid { gap: 25px; }
  .booking-panel { padding: 35px; }
  .booking-form { padding: 30px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .recovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* المتابعة 71: كارت الهيرو على التابلت كان مغطي الساق تحت الركبة ← مقاس الموبايل وأوطى */
  .floating-note { bottom: 10px; padding: 13px 19px; gap: 10px; font-size: 13px; }
  .floating-note strong { font-size: 16px; }
  .floating-note svg { width: 25px; }
}

/* المتابعة 33: القايمة كاملة (7 روابط بعد النشر) كانت بتزق «احجز موعد» 20px برة الشاشة على 768. */
@media (min-width: 768px) and (max-width: 899px) {
  .container.header-inner, .header-inner { gap: 12px; }
  .nav { gap: 11px; font-size: 14px; }
  .header-actions > .clinic-button { padding-inline: 14px; font-size: 13px; }
}

@media (max-width: 767px) {
  h1, h2, h3 { max-width: none; width: 100%; min-width: 0; }
  .hero h1 br, .about-copy h2 br, .athletic-section h2 br { display: none; }
  .header-inner, .branch-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .header-actions, .branch-title > span { flex-shrink: 0; }
  .section-top > div { min-width: 0; width: 100%; }
  body { font-size: 16px; }
  .container { width: calc(100% - 40px); }
  .site-header { height: 78px; }
  :root { --header-h: 78px; }
  .brand-name { font-size: 23px; }
  .brand-symbol { width: 35px; height: 38px; border-width: 4px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .header-actions > .clinic-button { min-height: 38px; padding-inline: 13px; font-size: 13px; }
  .mobile-menu { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 78px; inset-inline: 0;
    background: var(--background); padding: 20px; box-shadow: var(--shadow);
    gap: 16px; flex-wrap: wrap; justify-content: center;
  }
  .nav.open { display: flex; }
  .hero, .hero-inner { min-height: 640px; }
  .hero-photo img { object-position: 40% center; }
  .hero:after { background: linear-gradient(270deg, var(--hero-shade-1), var(--hero-shade-mobile-end)); }
  .hero-copy { width: 100%; padding: 42px 0 140px; }
  .hero h1 { font-size: 26.6px; line-height: 1.45; max-width: none; }
  .hero-copy > p { font-size: 16px; line-height: 1.9; max-width: 430px; margin-top: 16px; }
  .hero .eyebrow { font-size: 13px; margin-bottom: 13px; }
  .hero-buttons { gap: 9px; margin-top: 22px; flex-wrap: wrap; }
  .hero-buttons a { padding-inline: 15px; font-size: 14px; }
  .hero-note { font-size: 14px; }
  .floating-note { inset-inline-end: 5px; bottom: 10px; padding: 13px 19px; gap: 10px; font-size: 13px; } /* المتابعة 71: كان 30px — الساق ظاهرة فوقه */
  .floating-note strong { font-size: 16px; }
  .floating-note svg { width: 25px; }
  .hero-index { display: none; }
  .section { padding-block: 56px; }
  .paths-section { padding-top: 43px; }
  .section-top { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 25px; }
  .section-top > p { display: none; }
  .section-heading { font-size: 23.75px; }
  .eyebrow { font-size: 13px; }
  .paths-grid { grid-template-columns: 1fr; gap: 18px; }
  .path-card { height: 350px; }
  .path-content h3 { font-size: 23.75px; }
  .path-content p { font-size: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 33px; }
  .collage { height: 410px; padding-inline-end: 45px; }
  .collage-tall { height: 355px; }
  .collage-small { width: 190px; height: 180px; }
  .about-copy .section-heading { font-size: 23.75px; }
  .quote { font-size: 19px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 30px; padding: 15px 0 45px; }
  .stat { gap: 8px; }
  .stat:nth-child(3) { border: 0; }
  .stat strong { font-size: 2.25rem; }
  .stat > span { font-size: 15px; }
  .program-filters { gap: 0; justify-content: space-between; margin-bottom: 24px; }
  .program-filters [role="tab"] { font-size: 14px; padding-inline: 4px; }
  .program-split { display: block; }
  .program-list { display: grid; gap: 22px; border: 0; }
  .program-item { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
  .program-preview { display: none; }
  .program-mobile-image { display: block; aspect-ratio: 1.6; height: auto; }
  .program-select { min-height: 0; padding: 20px; grid-template-columns: minmax(0, 1fr) 20px; gap: 10px; }
  .program-select h3 { font-size: 18.05px; }
  .program-index { display: none; }
  .program-line { margin-top: 13px; }
  .program-mobile-details { display: block; padding: 0 20px 23px; }
  .program-figures { margin-top: 0; }
  .program-figures strong { font-size: 44px; min-height: 58px; }
  .program-figures strong.program-variable { font-size: 20px; }
  .program-mobile-details .text-link { padding: 0; margin-top: 20px; height: 36px; }
  .athletic-section { padding: 58px 0; }
  .athletic-section h2 { font-size: 24.7px; }
  .athlete-photo { inset-inline-start: 0; opacity: 0.22; }
  .athletic-sub { font-size: 15px; }
  .progress-rail { grid-template-columns: 1fr; gap: 24px; margin: 35px 0; }
  .rail-step { display: grid; grid-template-columns: 90px 1fr; gap: 4px 14px; padding-top: 17px; }
  .rail-time { grid-row: 1/3; }
  .rail-step h3 { margin: 0; font-size: 17.1px; }
  .rail-step p { min-height: 0; margin: 4px 0 10px; }
  .rail-progress { grid-column: 2; }
  .sport-strip { flex-direction: column; align-items: start; padding: 22px; }
  .sport-strip h3 { font-size: 17.1px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review { padding: 27px; }
  .review-featured > p { font-size: 23px; }
  .recovery-grid { grid-template-columns: minmax(0, 1fr); }
  .recovery-body { padding: 20px; }
  .recovery-outcomes dd { font-size: 18px; }
  .branch-grid { grid-template-columns: 1fr; }
  .branch-info { padding: 24px; }
  .branch-map { height: 180px; }
  .blog-grid { grid-template-columns: 1fr; gap: 34px; }
  .blog-image { height: 250px; }
  .blog-card h3 { font-size: 20.9px; }
  .booking-grid { grid-template-columns: 1fr; }
  .booking-panel { padding: 26px 22px; }
  .booking-panel h2 { font-size: 23.75px; }
  .booking-panel-note { margin-top: 28px; }
  .booking-form { padding: 25px; gap: 16px 12px; }
  /* المتابعة 43: الحقول 16px على الموبايل (wp.css) — 13px كان بيخلي آيفون يعمل زووم */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 25px; }
  .footer-about, .footer-contact { grid-column: 1/-1; }
  .footer-about p { max-width: 100%; }
  .footer { padding-top: 45px; }
  .footer-bottom { flex-direction: column; gap: 9px; }
  .section-top > .text-link { font-size: 14px; white-space: nowrap; }
  .article-dialog { padding: 20px; }
}

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