/* ════════════════════════════════════════════════
   موعد — موقع المنصّة التعريفي (صفحتان)
   index.html  = صفحة العيادة (شرح المنتج، بلا سعر)
   offer.html  = صفحة العرض (السعر والبدء)

   الهوية مأخوذة حرفياً من mawid-clinic/style.css:
     كحليّ #1A2535 · ذهبيّ #C9A55A · ورقيّ دافئ #F5F3EE
     Cairo للنصّ · Amiri للعناوين الكبيرة
   ثنائيّ اللغة: كل الأبعاد بخصائص منطقية (inline) فيعمل
   RTL للعربية وLTR للفرنسية بلا أي قاعدة مكرّرة.
   ════════════════════════════════════════════════ */

:root {
  --navy:        #1A2535;
  --navy-mid:    #2C3E55;
  --navy-deep:   #121B28;
  --gold:        #C9A55A;
  --gold-light:  #E2BC72;
  --gold-deep:   #A8883C;
  --gold-xlight: #FBF5E8;
  --bg:          #F5F3EE;
  --bg-card:     #FFFFFF;
  --bg-warm:     #FDFAF4;
  --text:        #1A2535;
  --text-muted:  #6E7889;
  --text-on-navy:#EDE9E0;
  --muted-on-navy: rgba(237,233,224,.66);
  --border:      rgba(26,37,53,.10);
  --border-gold: rgba(201,165,90,.34);
  --shadow-sm:   0 1px 3px rgba(26,37,53,.06);
  --shadow:      0 6px 24px rgba(26,37,53,.09);
  --shadow-lg:   0 22px 60px rgba(26,37,53,.16);
  --radius:      10px;
  --radius-lg:   18px;
  --radius-xl:   28px;
  --max-w:       1080px;
  --narrow:      units;
  --ease:        cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--navy); text-wrap: balance; }
p { margin: 0; }

/* ─── تخطيط ─────────────────────────────────── */
.wrap { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3.5rem, 9vw, 6rem); }
.section--warm { background: var(--bg-warm); border-block: 1px solid var(--border); }
.lede { max-width: 62ch; color: var(--text-muted); font-size: 1.02rem; text-wrap: pretty; }

.h-sec {
  font-family: 'Amiri', serif;
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  margin-bottom: .5rem;
}
.h-sec em { font-style: normal; color: var(--gold-deep); }

/* ─── الشريط العلوي ─────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,250,244,.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 62px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 800; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
  font-family: 'Amiri', serif; font-size: 1.05rem; line-height: 1;
}
.brand-word { font-size: 1.12rem; letter-spacing: .01em; }
.top-nav { margin-inline-start: auto; display: flex; align-items: center; gap: .35rem; }
.top-link {
  padding: .45rem .7rem; border-radius: 8px; text-decoration: none;
  font-size: .87rem; font-weight: 600; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.top-link:hover { color: var(--navy); background: rgba(26,37,53,.05); }
.top-link[aria-current="page"] { color: var(--navy); background: rgba(201,165,90,.16); }

/* مبدّل اللغة */
.lang {
  display: inline-flex; padding: 3px; gap: 2px; flex: none;
  background: rgba(26,37,53,.06); border-radius: 9px;
}
.lang button {
  border: none; background: none; padding: .3rem .6rem; border-radius: 7px;
  font-size: .8rem; font-weight: 700; color: var(--text-muted);
  transition: background .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--bg-card); color: var(--navy); box-shadow: var(--shadow-sm); }

/* ─── الأزرار ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius);
  font-size: .95rem; font-weight: 700; text-decoration: none;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(201,165,90,.32); }
.btn--gold:hover { background: var(--gold-light); }
.btn--navy { background: var(--navy); color: var(--gold-xlight); }
.btn--navy:hover { background: var(--navy-mid); }
.btn--ghost { border-color: rgba(237,233,224,.34); color: var(--text-on-navy); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--outline { border-color: var(--border-gold); color: var(--navy); background: var(--bg-card); }
.btn--outline:hover { border-color: var(--gold); background: var(--gold-xlight); }

/* ─── الواجهة (hero) ───────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: var(--text-on-navy);
  padding-block: clamp(3.5rem, 10vw, 6.5rem);
}
/* توقيع بصري هادئ: قوس ذهبيّ رقيق — لا تدرّج ولا زجاج */
.hero::before {
  content: ''; position: absolute; inset-inline-end: -14%; top: -38%;
  width: min(62vw, 620px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(201,165,90,.26);
  box-shadow: inset 0 0 0 1px rgba(201,165,90,.10);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset-inline-end: -6%; top: -18%;
  width: min(38vw, 380px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(201,165,90,.16);
  pointer-events: none;
}
.hero-in { position: relative; max-width: 40rem; }
.hero-kicker {
  display: inline-block; margin-bottom: 1rem; padding: .3rem .8rem;
  border: 1px solid rgba(201,165,90,.38); border-radius: 999px;
  color: var(--gold-light); font-size: .78rem; font-weight: 700;
}
.hero h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(2.3rem, 7.4vw, 4.1rem);
  color: var(--gold-xlight);
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { color: var(--muted-on-navy); font-size: 1.06rem; max-width: 34rem; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.hero-note { margin-top: 1.1rem; font-size: .82rem; color: rgba(237,233,224,.5); }

/* ─── المشكلة: قائمة لا بطاقات ───────────────── */
.pains { margin: 1.9rem 0 0; padding: 0; list-style: none; max-width: 46rem; }
.pains li {
  display: flex; gap: .9rem; align-items: flex-start;
  padding-block: .85rem; border-top: 1px solid var(--border);
}
.pains li:last-child { border-bottom: 1px solid var(--border); }
.pains .x {
  flex: none; width: 1.4rem; height: 1.4rem; margin-top: .28rem; border-radius: 50%;
  background: rgba(192,57,43,.10); color: #A93226;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.pains b { display: block; font-size: .96rem; }
.pains span { display: block; font-size: .89rem; color: var(--text-muted); line-height: 1.75; }

/* ─── الخطوات: تسلسل حقيقي (الأرقام تستحقّ مكانها) ── */
.steps { margin-top: 2.2rem; display: grid; gap: 1.4rem; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
.step { position: relative; padding-top: 1.15rem; border-top: 2px solid var(--border-gold); }
.step-n {
  font-family: 'Amiri', serif; font-size: 1.5rem; color: var(--gold-deep);
  line-height: 1; display: block; margin-bottom: .5rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.step p { font-size: .9rem; color: var(--text-muted); line-height: 1.8; }

/* ─── انقسام: ما يراه المريض / ما تراه الموظّفة ── */
.split { display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 2.8rem; } }
.split h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.split .lede { font-size: .93rem; margin-bottom: 1.2rem; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .91rem; padding-block: .32rem; }
.ticks li::before {
  content: '✓'; flex: none; color: var(--gold-deep); font-weight: 700; font-size: .9rem; margin-top: .1rem;
}

/* ─── مُحاكاة واجهة حقيقية (لا صور) ─────────── */
.phone {
  width: 100%; max-width: 260px; margin-inline: auto;
  border: 8px solid var(--navy); border-radius: 30px; overflow: hidden;
  background: var(--bg-warm); box-shadow: var(--shadow-lg);
}
.phone-bar { background: var(--navy); height: 18px; }
.phone-body { padding: .9rem .8rem 1.1rem; }
.mk-badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem;
  border-radius: 999px; font-size: .62rem; font-weight: 700;
  background: rgba(39,174,96,.12); color: #1E8449; border: 1px solid rgba(39,174,96,.34);
}
.mk-dot { width: .4rem; height: .4rem; border-radius: 50%; background: #27AE60; flex: none; }
.mk-h { font-family: 'Amiri', serif; font-size: 1.32rem; color: var(--navy); margin: .5rem 0 .1rem; }
.mk-sub { font-size: .63rem; color: var(--text-muted); line-height: 1.6; }
.mk-card {
  margin-top: .7rem; padding: .6rem .65rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.mk-row { display: flex; justify-content: space-between; font-size: .6rem; padding-block: .18rem; }
.mk-row span:last-child { color: var(--text-muted); }
.mk-btn {
  margin-top: .7rem; padding: .5rem; border-radius: 8px; text-align: center;
  background: var(--gold); color: var(--navy); font-size: .66rem; font-weight: 700;
}

/* لوحة الموظّفة */
.panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.panel-top {
  display: flex; align-items: center; gap: .4rem;
  padding: .6rem .85rem; background: var(--navy); color: var(--gold-xlight);
  font-size: .72rem; font-weight: 700;
}
.panel-top i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); flex: none; }
.panel-body { padding: .85rem; display: grid; gap: .55rem; }
.bk {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-warm);
}
.bk-num {
  flex: none; font-size: .68rem; font-weight: 700; color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}
.bk-main { flex: 1; min-width: 0; }
.bk-main b { display: block; font-size: .76rem; font-weight: 700; }
.bk-main span { display: block; font-size: .66rem; color: var(--text-muted); }
.bk-tag { flex: none; padding: .12rem .45rem; border-radius: 999px; font-size: .58rem; font-weight: 700; }
.bk-tag--new { background: rgba(201,165,90,.16); color: var(--gold-deep); }
.bk-tag--ok  { background: rgba(39,174,96,.12); color: #1E8449; }
.bk-tag--done{ background: rgba(26,37,53,.07); color: var(--text-muted); }

/* ─── الثقة ─────────────────────────────────── */
.trust { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 760px) { .trust { grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; } }
.trust-item { padding-inline-start: 1.15rem; border-inline-start: 2px solid var(--border-gold); }
.trust-item b { display: block; font-size: .95rem; margin-bottom: .15rem; }
.trust-item span { font-size: .88rem; color: var(--text-muted); line-height: 1.8; }

/* ─── السعر ─────────────────────────────────── */
.price-card {
  background: var(--bg-card); border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem); max-width: 33rem;
}
.price-tag { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-num {
  font-family: 'Amiri', serif; font-size: clamp(2.8rem, 9vw, 4.2rem);
  line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums;
}
.price-cur { font-size: 1.15rem; font-weight: 700; color: var(--gold-deep); }
.price-per { font-size: .95rem; color: var(--text-muted); }
.price-hr { height: 1px; background: var(--border); margin-block: 1.4rem; border: 0; }
.price-list { margin: 0; padding: 0; list-style: none; }
.price-list li { display: flex; gap: .65rem; align-items: flex-start; padding-block: .38rem; font-size: .93rem; }
.price-list li::before { content: '✓'; flex: none; color: var(--gold-deep); font-weight: 700; margin-top: .1rem; }
.price-cta { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: .65rem; }

.excl { margin: 2rem 0 0; padding: 0; list-style: none; max-width: 46rem; }
.excl li { display: flex; gap: .8rem; align-items: flex-start; padding-block: .7rem; border-top: 1px solid var(--border); }
.excl li:last-child { border-bottom: 1px solid var(--border); }
.excl .m { flex: none; color: var(--text-muted); font-weight: 700; margin-top: .05rem; }
.excl b { display: block; font-size: .94rem; }
.excl span { display: block; font-size: .88rem; color: var(--text-muted); line-height: 1.75; }

/* ─── الأسئلة ───────────────────────────────── */
.faq { margin-top: 2rem; max-width: 52rem; }
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none; cursor: pointer; padding-block: 1rem;
  font-size: .97rem; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; color: var(--gold-deep); font-size: 1.15rem; font-weight: 700;
}
.faq details[open] summary::after { content: '−'; }
.faq .a { padding-bottom: 1.05rem; font-size: .91rem; color: var(--text-muted); line-height: 1.85; max-width: 60ch; }

/* ─── نداء ختامي + تواصل ────────────────────── */
.cta {
  background: var(--navy); color: var(--text-on-navy);
  padding-block: clamp(3rem, 8vw, 5rem); position: relative; overflow: hidden;
}
.cta h2 { font-family: 'Amiri', serif; font-size: clamp(1.8rem, 5vw, 2.7rem); color: var(--gold-xlight); margin-bottom: .6rem; }
.cta p { color: var(--muted-on-navy); max-width: 44ch; }
.contact { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.cbox {
  display: flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem;
  border: 1px solid rgba(237,233,224,.2); border-radius: var(--radius);
  text-decoration: none; transition: border-color .2s, background .2s;
}
.cbox:hover { border-color: var(--gold); background: rgba(201,165,90,.08); }
.cbox small { display: block; font-size: .7rem; color: rgba(237,233,224,.55); line-height: 1.4; }
.cbox b { font-size: .95rem; color: var(--gold-xlight); font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ─── التذييل ───────────────────────────────── */
.foot { background: var(--navy-deep); color: rgba(237,233,224,.6); padding-block: 1.6rem; font-size: .82rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.foot a { color: rgba(237,233,224,.78); text-decoration: none; }
.foot a:hover { color: var(--gold-light); }
.foot .sep { margin-inline-start: auto; }

/* ─── حركة مقيّدة ومهذّبة ───────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .6s var(--ease) both; }
  .rise-2 { animation-delay: .07s; }
  .rise-3 { animation-delay: .14s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
