/* =====================================================================
   الموقع التسويقي العام — مركز المها لطب الأسنان
   نظام تصميم مستخرَج من قوالب Claude Design (.dc.html)
   لوحة طبية نظيفة: كحلي/تركوازي + خط Cairo + RTL كامل.
   محوّل من محاكاة .mob في القالب إلى media queries حقيقية (mobile-friendly).
   ===================================================================== */

:root {
  --navy:      #12384A;   /* اللون الرئيسي (أزرار/عناوين داكنة) */
  --navy-2:    #1B4C63;   /* تحويم الزر الرئيسي */
  --navy-3:    #0F2E3D;
  --footer-bg: #0A2230;
  --ink:       #12233A;   /* عناوين */
  --accent:    #2F72A8;   /* أزرق التمييز */
  --accent-2:  #3E8FCC;   /* التحديد (selection) */
  --muted:     #5B7688;
  --muted-2:   #6B8393;
  --muted-3:   #8AA0AE;
  --line:      #E7EDF2;
  --line-2:    #EEF2F5;
  --bg:        #ffffff;
  --bg-soft:   #F5F8FB;
  --bg-hero-a: #F3F8FC;
  --icon-bg:   #EAF2F8;
  --field-bd:  #D7E2EA;
  --wa:        #25D366;   /* أخضر واتساب للتمييز الفوري */
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --wrap:      1180px;
  --shadow-card: 0 24px 44px -26px rgba(18,56,74,.4);
  --shadow-btn:  0 16px 30px -14px rgba(18,56,74,.5);
  --ease:        cubic-bezier(.22, 1, .36, 1);   /* منحنى الحركة الموحّد: انطلاق سريع وتوقّف ناعم */
  --ease-io:     cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
/* شبكة أمان: لا إزاحة أفقية للصفحة على الجوال مهما حدث (clip لا يكسر الهيدر الـ sticky بخلاف hidden) */
html { overflow-x: clip; scroll-behavior: smooth; }

body {
  font-family: 'Cairo', system-ui, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-2); color: #fff; }
.ph-duotone { line-height: 1; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- الحاوية ---- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }

/* ---- الأقسام والعناوين ---- */
.sec  { padding: 76px 0; }
.h1   { font-size: 50px; line-height: 1.18; font-weight: 800; color: var(--ink); margin: 0 0 18px; }
.h2   { font-size: 36px; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.lead { font-size: 17px; line-height: 1.8; color: var(--muted); margin: 0 0 30px; }
.kick { font-size: 13px; font-weight: 800; letter-spacing: 3px; color: var(--accent); margin-bottom: 10px; }
.muted { color: var(--muted); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head p { font-size: 16px; color: var(--muted); margin: 0 auto; max-width: 520px; }

/* ---- الأزرار ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 800; border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent;
  padding: 16px 30px; font-size: 16px; line-height: 1; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease),
              box-shadow .45s var(--ease), transform .45s var(--ease), filter .35s var(--ease);
}
.btn-p { background: var(--navy); color: #fff; box-shadow: var(--shadow-btn); }
.btn-p:hover { background: var(--navy-2); }
.btn-o { background: #fff; border-color: #D3DEE6; color: var(--navy); }
.btn-o:hover { border-color: var(--accent); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.95); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 12px 22px; font-size: 14px; box-shadow: none; }

/* ---- البطاقات ---- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease), border-color .35s var(--ease);
}
/* الرفع عند التحويم للماوس فقط — على اللمس كان «يعلق» مرفوعاً بعد النقر */
@media (hover: hover) {
  .card:hover { box-shadow: var(--shadow-card); transform: translateY(-5px); border-color: #DCE6EE; }
}
.iconbox {
  width: 56px; height: 56px; border-radius: 15px; background: var(--icon-bg);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}

/* ---- الشبكات ---- */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* =====================================================================
   الهيدر العام (sticky) + قائمة الجوال
   ===================================================================== */
.site-nav-outer { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line-2); }
.site-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand > span { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.brand .b-name { font-weight: 800; font-size: 17px; color: var(--navy); line-height: 1.25; }
.brand .b-sub  { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; color: #3C5666; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active { font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.callnum { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--navy); }
.callnum .ph-duotone { font-size: 19px; color: var(--accent); }
/* زر القائمة (ثلاث شرطات نقية مرسومة بـ CSS — بلا ظل الأيقونة المزدوجة) */
.burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 42px; cursor: pointer; background: none; border: 0; padding: 0; }
.burger-bar { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] .burger-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* قائمة الجوال المنسدلة */
.mobile-menu { display: none; border-top: 1px solid var(--line-2); background: #fff; }
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0; font-size: 16px; font-weight: 600; color: #3C5666;
  border-bottom: 1px solid var(--line-2);
}
.mobile-menu a.active { color: var(--navy); }
/* زر «احجز موعد» في قائمة الجوال — زر بارز كامل التعبئة بنص أبيض واضح (يتجاوز نمط روابط القائمة الباهت).
   !important على اللون يضمن الأبيض مهما كان ترتيب/تخزين CSS. */
.mobile-menu a.mm-cta {
  display: flex; width: 100%; justify-content: center; align-items: center;
  color: #fff !important; background: var(--navy); border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-btn); padding: 16px; margin: 20px 0 8px; font-size: 16px; font-weight: 800;
}
.mobile-menu a.mm-cta:hover, .mobile-menu a.mm-cta:focus, .mobile-menu a.mm-cta:active { color: #fff !important; background: var(--navy-2); }

/* =====================================================================
   الهيرو
   ===================================================================== */
.hero-wrap { background: linear-gradient(180deg, var(--bg-hero-a), #fff); }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 76px 0; }
.hero-media { position: relative; }
.hero-img {
  height: 440px; width: 100%; border-radius: var(--radius-xl); overflow: hidden;
  background: #E3EDF4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  object-fit: cover;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 34px; flex-wrap: wrap; }
.stat-row { display: flex; align-items: center; gap: 22px; }
.stat-num { font-size: 24px; font-weight: 800; color: var(--navy); }
.stat-lbl { font-size: 12px; color: var(--muted-3); }
.stat-div { width: 1px; height: 36px; background: #E1E8ED; }
.trust-line { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: #9FBACB; }
.floatcard {
  position: absolute; bottom: 24px; inset-inline-end: -20px; background: #fff; border-radius: var(--radius-lg);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 24px 44px -22px rgba(18,56,74,.4); border: 1px solid var(--line-2);
}

/* =====================================================================
   بطاقات الأطباء / الحالات / التقييمات
   ===================================================================== */
.doc-card { overflow: hidden; text-align: center; }
/* إطار صورة الطبيب: نسبة بورتريه ثابتة 3:4 تتكيّف مع عرض البطاقة، والقصّ من الأسفل ليبقى الوجه ظاهراً.
   الأفضل رفع صورة عمودية بنسبة 3:4 (مثل 600×800) والوجه في الثلث العلوي. */
.doc-photo { aspect-ratio: 3 / 4; background: #E3EDF4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc-body { padding: 20px; }
.doc-name { font-weight: 800; font-size: 17px; color: var(--navy); }
.doc-spec { font-size: 14px; color: var(--muted-2); margin: 4px 0 16px; }
.doc-book { display: block; background: var(--icon-bg); color: var(--navy); font-weight: 700; font-size: 14px; padding: 12px; border-radius: 11px; }
.doc-book:hover { background: #DCEAF5; }

/* بطاقة خدمة */
.svc-card { padding: 28px; }
.svc-name { font-weight: 800; font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.svc-price { font-size: 14px; color: var(--muted-3); margin-bottom: 16px; }
.svc-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--accent); }

/* قبل / بعد — مقارنة تفاعلية قابلة للسحب (ماوس + لمس)، تكشف الصورة كاملة */
.ba { position: relative; height: 360px; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); --ba-pos: 50%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-after { clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.ba-tag { position: absolute; top: 16px; color: #fff; font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 999px; z-index: 3; pointer-events: none; }
.ba-tag-before { right: 16px; }   /* «قبل» في جهة اليمين (بداية القراءة) */
.ba-tag-after  { left: 16px; }    /* «بعد» في جهة اليسار */
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--ba-pos); width: 3px; background: #fff; transform: translateX(-50%); z-index: 2; pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,.35); }
.ba-knob { position: absolute; top: 50%; left: var(--ba-pos); transform: translate(-50%,-50%); width: 50px; height: 50px; border-radius: 999px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center; color: var(--accent); z-index: 4; cursor: ew-resize; touch-action: none; }
.ba-knob:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* المقبض يبقى كاملاً داخل الإطار عند الحافتين (كان نصفه يُقصّ عند 0% و100% فيصعب إمساكه باللمس).
   الخط الفاصل نفسه يصل للحافة كما هو. @supports: المتصفحات القديمة بلا clamp() تبقى على السلوك السابق. */
@supports (left: clamp(1px, 50%, 2px)) {
  .ba-knob { left: clamp(28px, var(--ba-pos), calc(100% - 28px)); }
}
/* إطار «قبل/بعد» داخل بطاقة الحالة: ارتفاع ثابت على الكمبيوتر (بطاقات الصف الواحد متساوية) */
.ba-card { height: 240px; border-radius: 0; border: 0; }
/* الجوال: الإطار .ba-fit يأخذ شكل الصورة الحقيقي (--ba-ratio يحسبه الخادم من الملف) فتظهر كاملة.
   كان ارتفاعاً ثابتاً 240 مع عرض ~320 ⇒ إطار شبه مربّع يقصّ ثلث الصورة العريضة فتبدو «مقرّبة».
   @supports: المتصفحات القديمة بلا aspect-ratio تبقى على الارتفاع الثابت. */
@media (max-width: 860px) {
  @supports (aspect-ratio: 1 / 1) {
    .ba.ba-fit { height: auto; aspect-ratio: var(--ba-ratio, 4 / 3); }
  }
}

/* بطاقة حالة (صفحة الحالات) — الكمبيوتر: النص يميناً والتصنيف يساراً.
   flex-wrap: إن ضاق عرض البطاقة عن نصٍّ مريح (240px) ينزل التصنيف لسطر مستقل بدل عصر النص. */
.case-body { padding: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.case-text { flex: 1 1 240px; min-width: 0; }
.case-title { font-weight: 800; font-size: 16px; color: var(--navy); }
.case-desc { font-size: 13px; color: var(--muted-2); margin-top: 2px; }
.case-cat { flex: 0 0 auto; background: var(--icon-bg); color: var(--accent); font-weight: 700; font-size: 12px; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 860px) {
  /* الجوال: كل شيء تحت بعض بعرض البطاقة كاملاً — التصنيف شارة صغيرة فوق العنوان، ثم العنوان، ثم الوصف */
  .case-body { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px 20px; }
  .case-cat { order: -1; padding: 5px 12px; }
  .case-text { flex: none; width: 100%; }
  .case-title { font-size: 17px; line-height: 1.5; }
  .case-desc { font-size: 14px; line-height: 1.85; margin-top: 6px; }
}

/* تقييم */
.tst-card { padding: 28px; }
.tst-stars { color: var(--accent); font-size: 16px; margin-bottom: 14px; }
.tst-text { font-size: 15px; line-height: 1.8; color: #3C5666; margin: 0 0 20px; }
.tst-who { display: flex; align-items: center; gap: 12px; }
.tst-av { width: 42px; height: 42px; border-radius: 999px; background: var(--icon-bg); display: flex; align-items: center; justify-content: center; color: var(--accent); }

/* ميزة (لماذا نحن) */
.feat { text-align: center; padding: 12px; }
.feat .iconbox { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; }
.feat h3 { font-weight: 800; font-size: 17px; color: var(--navy); margin: 0 0 6px; }
.feat p { font-size: 14px; line-height: 1.7; color: var(--muted-2); margin: 0; }

/* =====================================================================
   شريط الحث على الحجز (CTA)
   ===================================================================== */
.cta-wrap { background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 64px 0; }
.cta-band .h2 { color: #fff; margin: 0 0 10px; }
.cta-band p { font-size: 16px; color: #AEC6D2; margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }
.cta-actions .btn-light { background: #fff; color: var(--navy); }
.cta-actions .btn-ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; background: transparent; }

/* =====================================================================
   النماذج (الحجز / التواصل)
   ===================================================================== */
.field { margin-bottom: 0; }
.field label { display: block; font-size: 13px; font-weight: 700; color: #3C5666; margin-bottom: 8px; }
/* نجمة الحقول الإجبارية */
.req::after { content: " *"; color: #e11d48; font-weight: 700; }
.fld {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink); background: #fff;
  border: 1px solid var(--field-bd); border-radius: var(--radius); padding: 14px; outline: none;
}
.fld:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(62,143,204,.15); }
.g2f { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* الاسم | العمر | الهاتف (v1.9.8) */
.g3f { display: grid; grid-template-columns: 1.6fr .6fr 1.2fr; gap: 16px; }
.g3f > * { min-width: 0; }
/* نوع الزيارة: بطاقتا اختيار بدل قائمة منسدلة */
.vt-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vt-opt { position: relative; cursor: pointer; margin: 0; }
.vt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.vt-card {
  display: flex; align-items: center; gap: 12px; height: 100%;
  background: #fff; border: 1.5px solid var(--field-bd); border-radius: 14px; padding: 14px 16px;
  transition: border-color .35s var(--ease), background-color .35s var(--ease), box-shadow .45s var(--ease), transform .35s var(--ease);
}
.vt-ico { font-size: 28px; color: var(--accent); flex-shrink: 0; transition: transform .6s var(--ease); }
.vt-txt { display: flex; flex-direction: column; line-height: 1.35; }
.vt-txt b { font-size: 15px; color: var(--navy); font-weight: 800; }
.vt-txt small { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.vt-opt input:checked + .vt-card { border-color: var(--navy); background: #F2F8FC; box-shadow: 0 14px 26px -18px rgba(18,56,74,.55); }
.vt-opt input:checked + .vt-card .vt-ico { transform: scale(1.12) rotate(-6deg); }
.vt-opt input:focus-visible + .vt-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.vt-opt:active .vt-card { transform: scale(.98); }
@media (max-width: 860px) {
  .g3f { grid-template-columns: 1fr; }
  .vt-card { padding: 12px 14px; }
}
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot input { position: absolute; opacity: 0; }
.slot span {
  display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--accent);
  background: var(--icon-bg); border: 1px solid #CFE0EA; border-radius: 11px; padding: 12px 0; cursor: pointer;
}
.slot input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* إخفاء آمن لا يسبّب تمدّداً أفقياً على الجوال (بدل left:-9999px) */
.honeypot { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.booksplit { display: grid; grid-template-columns: 1.3fr .9fr; gap: 32px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px; }

/* =====================================================================
   التذييل (Footer)
   ===================================================================== */
.foot-wrap { background: var(--footer-bg); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 30px; }
.foot h4 { font-weight: 800; color: #fff; font-size: 15px; margin: 0 0 16px; }
.foot p, .foot a, .foot span { font-size: 14px; color: #8FB0C2; }
.foot a { display: block; }
.foot a:hover { color: #fff; }
.foot .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot .f-brand img { width: 44px; height: 44px; object-fit: contain; filter: brightness(1.4); }
.foot .f-brand div { font-weight: 800; color: #fff; font-size: 16px; }
.foot .f-links { display: flex; flex-direction: column; gap: 12px; }
.foot .f-social { display: flex; gap: 14px; font-size: 22px; color: #5AA6DC; }
.foot .f-contact > span { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; line-height: 1.75; }
.foot .f-contact .ph-duotone { color: #5AA6DC; flex-shrink: 0; margin-top: 3px; font-size: 16px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 12px; color: #5E8298; text-align: center; }

/* =====================================================================
   صفحة الأسعار — أكورديون الأصناف (صنف رئيسي ← أصناف فرعية بأسعارها)
   ===================================================================== */
.price-acc { max-width: 820px; margin: 0 auto; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; }
.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover .acc-name { color: var(--accent); }
.acc-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--icon-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); font-size: 26px; }
.acc-name { font-weight: 800; font-size: 16px; color: var(--navy); }
.acc-hint { font-size: 12px; color: var(--muted-3); }
.acc-caret { font-size: 20px; color: #6E8CA0; transition: transform .25s; margin-inline-start: auto; }
.acc[open] .acc-caret { transform: rotate(-90deg); }
.acc-body { padding: 0 18px 16px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.pr-name { font-size: 14px; color: #3C5666; }
.pr-desc { font-size: 12px; color: var(--muted-3); margin-top: 2px; }
.pr-price { font-size: 14px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.price-note { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 20px; display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; color: var(--accent); }
.price-note p { margin: 0; font-size: 13px; line-height: 1.8; color: #3C5666; }

/* =====================================================================
   زر واتساب العائم (كل الصفحات)
   ===================================================================== */
.float-wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 200;
  width: 56px; height: 56px; border-radius: 999px; background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 6px 18px rgba(37,211,102,.45), 0 2px 6px rgba(0,0,0,.2);
  transition: transform .2s;
}
.float-wa:hover { transform: scale(1.06); }

/* رسائل التنبيه (نجاح/خطأ) */
.notice { border-radius: var(--radius); padding: 16px 18px; font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.notice-ok  { background: #E6F6EC; color: #1B7A43; border: 1px solid #B8E6C8; }
.notice-err { background: #FDECEC; color: #B4322B; border: 1px solid #F4C7C4; }

/* =====================================================================
   صفحة «من نحن» — قصة + رسالة/رؤية + شريط إحصائيات
   ===================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { height: 380px; border-radius: var(--radius-xl); background: #E3EDF4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.mv-card { padding: 28px; display: flex; gap: 16px; align-items: flex-start; }
.mv-card h3 { font-weight: 800; font-size: 18px; color: var(--navy); margin: 0 0 6px; }
.mv-card p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.statband-wrap { background: var(--navy); }
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 48px 0; }
.statband > div { text-align: center; }
.statband .s-num { font-size: 30px; font-weight: 800; color: #85CEEE; }
.statband .s-lbl { font-size: 13px; color: #AEC6D2; }

/* =====================================================================
   صفحة الأطباء — شرائح تصفية + أيام العمل
   ===================================================================== */
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.chip { background: #fff; border: 1px solid #E1E8ED; color: #3C5666; font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 999px; white-space: nowrap; cursor: pointer; transition: .2s; }
.chip.active, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.doc-days { font-size: 12px; color: var(--accent); margin: 6px 0 14px; display: flex; align-items: center; gap: 5px; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   صفحة التواصل — خريطة + بطاقات
   ===================================================================== */
.csplit { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.map-box { height: 420px; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); background: #E3EDF4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.cc { padding: 20px 16px; text-align: center; display: block; }
.cc .ph-duotone { font-size: 30px; color: var(--accent); }
.cc-t { font-weight: 800; font-size: 14px; color: var(--navy); margin-top: 8px; }
.cc-s { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.hours-row { display: flex; justify-content: space-between; font-size: 13px; color: #3C5666; padding: 8px 0; border-top: 1px solid var(--line-2); }

/* =====================================================================
   الاستجابة (Responsive) — نقطة الكسر 860px تطابق وضع الجوال في القالب
   ===================================================================== */
@media (max-width: 860px) {
  .split, .csplit { grid-template-columns: 1fr; gap: 24px; }
  .statband { grid-template-columns: 1fr 1fr; }
  .about-img { height: 280px; }
  .map-box { height: 320px; }
}

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 44px 0; }
  .h1 { font-size: 33px; }
  .h2 { font-size: 26px; }
  .lead { font-size: 15px; }

  .nav-links, .callnum { display: none; }
  .burger { display: flex; }

  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; text-align: center; }
  .hero-img { height: 290px; }
  .hero-actions { flex-direction: column; }
  .stat-row { justify-content: center; flex-wrap: wrap; }
  /* توسيط البطاقة العائمة أفقياً بشكل صحيح في RTL (كان translateX(-50%) يدفعها خارج الشاشة) */
  .floatcard { inset-inline: auto; inset-inline-start: 50%; transform: translateX(50%); bottom: -26px; }

  .g3, .g4 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .g2, .g2f { grid-template-columns: 1fr; }

  .booksplit { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { flex-direction: column; text-align: center; gap: 22px; padding: 44px 0; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
  .ba { height: 240px; }
}

@media (max-width: 460px) {
  .g4 { grid-template-columns: 1fr; }
}

/* =====================================================================
   صفحة الحجز على الجوال — إصلاح الإزاحة الأفقية (v1.9.6)
   كان زر «احجز عبر واتساب بدلاً من ذلك» لا يلتفّ (nowrap) فيفرض على النموذج عرض ~350px
   داخل مساحة 320px ⇒ الصفحة كلها تنزاح ~10px وتظهر حافة بيضاء عند السحب يميناً/يساراً.
   ===================================================================== */
.booksplit > *, .g2 > *, .g3 > *, .g4 > *, .split > *, .csplit > * { min-width: 0; }
@media (max-width: 860px) {
  .booksplit, .split, .csplit { grid-template-columns: minmax(0, 1fr); }
  .form-card, .aside-card { padding: 22px 18px; }
  /* الأزرار العريضة تلتفّ على سطرين بدل أن تمدّ الصفحة */
  .btn-block { white-space: normal; line-height: 1.45; text-align: center; padding-inline: 16px; }
  /* 16px يمنع التكبير التلقائي عند لمس الحقل (آيفون) — كان يسبّب إزاحة أيضاً */
  .fld { font-size: 16px; }
}

/* =====================================================================
   المؤثرات الحركية (v1.9.6)
   قاعدة السلاسة: كل الحركات على opacity و transform/translate/scale فقط (تعالجها بطاقة
   الرسوميات بلا إعادة رسم الصفحة) + منحنى --ease الموحّد ⇒ لا تقطيع حتى على الهواتف المتوسطة.
   ===================================================================== */

/* ---- 1) ظهور العناصر عند التمرير ----
   html.anim يُضاف في <head> (فقط إن دعم المتصفح ولم يطلب المستخدم تقليل الحركة)،
   والفوتر يضيف .in لكل عنصر حين يدخل الشاشة. بلا جافاسكربت: كل شيء ظاهر كالمعتاد.
   :where() = بلا وزن تحديد، فتبقى قواعد التحويم والتنويعات أدناه هي الغالبة. */
html.anim :where(
  .hero > div:first-child > *, .hero-media, .hero-wrap .sec > *,
  .sec-head, .sec-more, .card, .feat, .acc, .price-note, .ba:not(.ba-card),
  .split > *, .statband > div, .cta-band > *, .form-card, .aside-card, .map-box,
  .notice, .foot > div
):not(.in) { opacity: 0; }

html.anim :where(
  .hero > div:first-child > *, .hero-media, .hero-wrap .sec > *,
  .sec-head, .sec-more, .card, .feat, .acc, .price-note, .ba:not(.ba-card),
  .split > *, .statband > div, .cta-band > *, .form-card, .aside-card, .map-box,
  .notice, .foot > div
).in { animation: rv-up 1s var(--ease) var(--rv-d, 0s) both; }

/* صورة الهيرو: تكبير ناعم بدل الصعود */
html.anim .hero-media.in { animation-name: rv-zoom; animation-duration: 1.4s; }
/* التذييل: ظهور هادئ */
html.anim .foot > div.in { animation-name: rv-fade; animation-duration: 1.2s; }

@keyframes rv-up   { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes rv-zoom { from { opacity: 0; scale: .95; }        to { opacity: 1; scale: 1; } }
@keyframes rv-fade { from { opacity: 0; }                     to { opacity: 1; } }
@keyframes rv-pop  { from { opacity: 0; translate: 0 10px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* البطاقة العائمة في الهيرو تطفو ببطء */
.floatcard { animation: float-y 6s var(--ease-io) infinite; }
@keyframes float-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

/* ---- 2) الهيدر ---- */
.site-nav-outer { transition: box-shadow .5s var(--ease), border-color .5s var(--ease); view-transition-name: site-head; }
.site-nav-outer.is-scrolled { box-shadow: 0 14px 34px -24px rgba(18,56,74,.5); border-bottom-color: transparent; }
.brand img { transition: transform .7s var(--ease); }
.nav-links a { position: relative; transition: color .35s var(--ease); }
.nav-links a::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: -7px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.burger-bar { transition: transform .5s var(--ease), opacity .3s var(--ease); }

/* قائمة الجوال: تنسدل بنعومة (بدل الظهور المفاجئ) وروابطها تتتابع */
@media (max-width: 860px) {
  .mobile-menu, .mobile-menu.open { display: grid; }
  .mobile-menu {
    grid-template-rows: 0fr; visibility: hidden; border-top-color: transparent;
    transition: grid-template-rows .6s var(--ease), border-color .4s var(--ease), visibility 0s linear .6s;
  }
  .mobile-menu.open {
    grid-template-rows: 1fr; visibility: visible; border-top-color: var(--line-2);
    transition: grid-template-rows .6s var(--ease), border-color .4s var(--ease), visibility 0s;
  }
  /* width:100% — عنصر الشبكة بهوامش auto كان ينكمش على محتواه فتتوسّط الروابط بدل أن تكون يميناً (v1.9.9) */
  .mobile-menu > .wrap { min-height: 0; overflow: hidden; width: 100%; }
  .mobile-menu a { opacity: 0; translate: 0 -10px; transition: opacity .45s var(--ease), translate .6s var(--ease), color .3s; }
  .mobile-menu.open a { opacity: 1; translate: 0 0; }
  .mobile-menu.open a:nth-child(2) { transition-delay: .04s; }
  .mobile-menu.open a:nth-child(3) { transition-delay: .08s; }
  .mobile-menu.open a:nth-child(4) { transition-delay: .12s; }
  .mobile-menu.open a:nth-child(5) { transition-delay: .16s; }
  .mobile-menu.open a:nth-child(6) { transition-delay: .20s; }
  .mobile-menu.open a:nth-child(7) { transition-delay: .24s; }
  .mobile-menu a.mm-cta { margin-bottom: 22px; }
}

/* ---- 3) الأزرار: رفع خفيف + لمعة تعبر الزر ---- */
.btn-p::after, .btn-wa::after, .btn-light::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.26) 50%, transparent 75%);
  transform: translateX(-135%); transition: transform 1.1s var(--ease);
}
.btn-light::after { background: linear-gradient(110deg, transparent 25%, rgba(47,114,168,.16) 50%, transparent 75%); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .15s; }

/* ---- 4) تفاصيل البطاقات والعناصر ---- */
.iconbox { transition: transform .7s var(--ease), background-color .45s var(--ease); }
.doc-photo img { transition: transform 1.4s var(--ease); }
.svc-more .ph-duotone { transition: transform .55s var(--ease); }
.doc-book { transition: background-color .4s var(--ease), color .4s var(--ease); }
.chip { transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
.chip.active { box-shadow: 0 10px 20px -12px rgba(18,56,74,.6); }
.chip:active { transform: scale(.95); }
.slot span { transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .3s var(--ease); }
.slot:active span { transform: scale(.98); }
.fld { transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
/* أيام وفترات الحجز تظهر متتابعة عند بنائها */
#daysBox .chip, #periodsBox .slot { animation: rv-pop .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.acc { transition: box-shadow .55s var(--ease), border-color .4s var(--ease); }
.acc[open] { box-shadow: 0 20px 38px -30px rgba(18,56,74,.45); border-color: #DCE6EE; }
.acc-caret { transition: transform .55s var(--ease); }
.acc-name { transition: color .35s var(--ease); }
.acc-ico { transition: transform .6s var(--ease), background-color .4s var(--ease); }
.foot a { transition: color .35s var(--ease), transform .45s var(--ease); }
.statband .s-num { font-variant-numeric: tabular-nums; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-p:hover { box-shadow: 0 22px 36px -16px rgba(18,56,74,.62); }
  .btn-p:hover::after, .btn-wa:hover::after, .btn-light:hover::after { transform: translateX(135%); }
  .btn-sm:hover { box-shadow: 0 14px 24px -14px rgba(18,56,74,.6); }
  .brand:hover img { transform: rotate(-6deg) scale(1.04); }
  .card:hover .iconbox, .feat:hover .iconbox { transform: translateY(-3px) rotate(-6deg); background: #DDEBF6; }
  .doc-card:hover .doc-photo img { transform: scale(1.05); }
  .svc-card:hover .svc-more .ph-duotone { transform: translateX(-5px); }
  .acc > summary:hover .acc-ico { transform: scale(1.06); }
  .foot .f-social a:hover { transform: translateY(-3px); }
}

/* ---- 5) زر واتساب العائم: دخول ناعم + نبض هادئ ---- */
.float-wa { isolation: isolate; animation: wa-in .9s var(--ease) .5s both; transition: transform .45s var(--ease); }
.float-wa::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--wa);
  pointer-events: none; animation: wa-ring 3s ease-out 1.8s infinite;
}
@keyframes wa-in   { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(1.75); opacity: 0; } }

/* ---- 6) «قبل/بعد»: تلميح أن الفاصل يُسحب ----
   عند دخول الإطار للشاشة يتحرك الفاصل وحده يميناً ويساراً (من الفوتر)، مع حلقة نابضة حول المقبض
   وشارة «اسحب للمقارنة». كلها تختفي بمجرد أن يسحب الزائر بنفسه (.ba-touched). */
.ba { cursor: ew-resize; }
.ba-knob { transition: scale .45s var(--ease), box-shadow .45s var(--ease); }
.ba-knob::before {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; pointer-events: none;
  border: 2px solid rgba(255,255,255,.95); animation: ba-ring 2.2s ease-out infinite;
}
.ba.ba-touched .ba-knob::before { animation: none; opacity: 0; }
.ba.ba-dragging .ba-knob, .ba.ba-demo .ba-knob { scale: 1.08; box-shadow: 0 12px 28px rgba(0,0,0,.34); }
@keyframes ba-ring { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.ba-hint {
  position: absolute; left: 50%; bottom: 14px; z-index: 5; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px;
  background: rgba(10,34,48,.74); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; pointer-events: none; box-shadow: 0 10px 22px -10px rgba(0,0,0,.45);
  transition: opacity .6s var(--ease), translate .6s var(--ease);
}
.ba-hint .ph-duotone { font-size: 18px; animation: hint-swipe 1.8s var(--ease-io) infinite; }
.ba.ba-touched .ba-hint { opacity: 0; translate: 0 10px; }
@keyframes hint-swipe { 0%, 100% { translate: 4px 0; } 50% { translate: -4px 0; } }

/* ---- 7) انتقال ناعم بين الصفحات (كروم/إيدج الحديثة؛ غيرها ينتقل عادياً) ---- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* ---- احترام «تقليل الحركة» في إعدادات الجهاز ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0s !important; transition-duration: .01ms !important;
  }
  @view-transition { navigation: none; }
}
