/* MFT design layer — loaded after style.css. Tokens + refinements only; no content or behaviour changes. */
:root {
  --paper: #f5f4f2;
  --hair: rgba(13, 13, 13, 0.1);
  --hair-d: rgba(255, 255, 255, 0.1);
  --rad-m: 18px;
  --rad-l: 26px;
  --sh-1: 0 1px 2px rgba(13, 13, 13, 0.06), 0 8px 24px rgba(13, 13, 13, 0.06);
  --sh-2: 0 2px 4px rgba(13, 13, 13, 0.08), 0 18px 44px rgba(13, 13, 13, 0.12);
  --out: cubic-bezier(0.2, 0.7, 0.2, 1);
}
::selection { background: #ef1b1b; color: #fff; }

/* Light sections: warmer paper instead of flat grey, calmer copy */
.sec.light { background: var(--paper); }
.sec.light .ap { color: #4b4b4b; }
.sec.dark .ap { color: #bdbdbd; }
.sec .ap { max-width: 62ch; margin-inline: auto; line-height: 1.9; }
.sec .ttl[lang="ar"] { font-weight: 800; letter-spacing: 0; text-wrap: balance; }

/* Cards: hairline border, layered shadow, one gentle lift */
.card {
  border: 1px solid var(--hair);
  border-radius: var(--rad-l);
  box-shadow: var(--sh-1);
  transition: transform 0.35s var(--out), box-shadow 0.35s var(--out), border-color 0.35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(239, 27, 27, 0.35); }

/* Pricing: structured rows, prices read first */
.plans { gap: 28px; }
.plan { padding: 40px 30px 34px; }
.plan h3 { font-size: 1.9rem; letter-spacing: 0.08em; }
.plan > p { color: #555; line-height: 1.8; margin: 14px 0 20px; }
.plan > b { display: block; margin: 22px 0 8px; font-size: 0.85rem; font-weight: 700; color: #c4161c; }
.plan ul.tk { list-style: none; padding: 0; margin: 0; }
.plan ul.tk li { padding: 11px 0; border-top: 1px solid var(--hair); line-height: 1.65; font-size: 0.95rem; }
.plan ul.tk:first-of-type { flex: none; }
.plan ul.tk:first-of-type li { font-weight: 700; font-size: 1.05rem; }
.plan.hot > p { color: #c9c9c9; }
.plan.hot > b { color: #ff6a64; }
.plan.hot ul.tk li { border-color: var(--hair-d); }

/* FAQ: contained width, comfortable tap target */
.faq { max-width: 860px; margin-inline: auto; }
.q summary { cursor: pointer; min-height: 56px; }

/* Interaction quality */
.btn { min-height: 44px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #ef1b1b; outline-offset: 3px; }
.sec.light a:focus-visible, .sec.light button:focus-visible { outline-color: #0d0d0d; }

@media (max-width: 640px) {
  .plans { gap: 20px; }
  .plan { padding: 32px 22px 28px; }
  .card { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; translate: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===== Hero: real buttons on desktop (mobile already had them), socials clear of the chat button ===== */
@media (min-width: 641px) {
  .hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
  .hero .cta {
    display: inline-flex; align-items: center; gap: 16px; min-height: 56px; margin: 0;
    padding-block: 8px; padding-inline: 28px 8px; border-radius: 999px;
    font: 700 1rem/1.1 var(--ar-head); letter-spacing: 0; text-transform: none; color: #fff;
    background: linear-gradient(180deg, #f12b27, #c9130f);
    box-shadow: 0 14px 34px rgba(239, 27, 27, 0.32);
    transition: transform 0.3s var(--out), box-shadow 0.3s var(--out), background 0.3s;
  }
  .hero .cta::after { display: none; }
  .hero .cta .dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #0d0d0d; }
  .hero .cta .dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
  .hero .cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(239, 27, 27, 0.45); }
  .hero .cta.alt { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .hero .cta.alt:hover { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1.5px #fff; }
}
@media (max-width: 640px) {
  .hero .socials { left: auto; right: 18px; }
}

/* ===== Header: readable hover on the white scrolled bar ===== */
.links a { font-weight: 600; }
.nav.sc .links a:hover { color: #c4161c; }

/* ===== Footer: brand red (hover was green), larger links, tactile social buttons ===== */
.ft .flinks a { font-size: 15px; font-weight: 500; opacity: 0.88; }
.ft .flinks a:hover { color: #ef1b1b; opacity: 1; }
.ft .fsoc a { transition: background 0.25s, transform 0.25s var(--out); }
.ft .fsoc a:hover { background: #ef1b1b; transform: translateY(-2px); }
.ft .fpriv:hover, .ft .fbar a:hover { color: #fff; }
.ft .fbrand b { font-size: 1.15rem; }
@media (max-width: 640px) {
  .ft .fbrand { flex-direction: column; text-align: center; gap: 10px; }
}
@media (max-width: 480px) {
  .hero .socials { gap: 6px; right: 14px; }
  .hero .soc { padding-inline: 0; }
}

/* ===== Programs: brand-red buttons (was plain "red"), rounded tiles with depth ===== */
:is(body.p-home, body.p-about) #programs .sp-body .pg-link {
  height: auto; min-height: 44px; justify-content: center; padding-block: 6px; padding-inline: 16px;
  background: linear-gradient(180deg, #f12b27, #c9130f); border-radius: 999px;
  box-shadow: 0 10px 24px rgba(239, 27, 27, 0.25);
  transition: gap 0.25s var(--out), transform 0.3s var(--out), box-shadow 0.3s var(--out);
}
:is(body.p-home, body.p-about) #programs .sp-body .pg-link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(239, 27, 27, 0.38); }
:is(body.p-home, body.p-about) #programs .sp-tile { border-radius: 18px; box-shadow: var(--sh-2); }
:is(body.p-home, body.p-about) #programs .sp-ph { border-radius: 18px; }

/* ===== Transformations: photo first, story below on a solid panel (was small text over the photo) ===== */
body.p-trans .tc { aspect-ratio: auto; display: flex; flex-direction: column; background: #0d0d0d; border: 1px solid rgba(255, 255, 255, 0.08); }
body.p-trans .tc .halves { position: relative; inset: auto; flex: none; aspect-ratio: 3 / 3.6; }
body.p-trans .tc .tinfo { position: static; padding: 20px 22px 26px; background: none; }
body.p-trans .tc .tinfo h3 { margin: 12px 0 8px; font-size: 1.5rem; line-height: 1.4; text-transform: none; }
body.p-trans .tc .tinfo p { color: #d6d6d6; line-height: 1.8; }

/* ===== Articles: filter pills stay on one line (they wrapped inside the scroller), calmer card type on phones ===== */
.af-pill { white-space: nowrap; flex: none; min-height: 44px; }
.af-pills { scrollbar-width: none; padding-block: 4px; }
.af-pills::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  .art-grid a.art .art-b h3 { font-size: 1.02rem; line-height: 1.5; }
  .art-grid a.art .art-d { font-size: 0.9rem; line-height: 1.7; }
}

/* ===== Doctor profile: section headings get the same red marker used in articles ===== */
.dh-s h2 { border-inline-start: 4px solid #ef1b1b; padding-inline-start: 14px; line-height: 1.45; }
.dh-bio p, .dh-doc p { text-wrap: pretty; }

/* ===== Mobile menu: dim the page behind the open panel (hero buttons showed through underneath it) ===== */
@media (max-width: 1199px) {
  .nav.open::before {
    content: ""; position: absolute; inset-inline: 0; top: 100%; height: 100vh;
    background: rgba(5, 5, 6, 0.62); pointer-events: none; z-index: -1;
  }
}

/* ===== 404: centred message, footer pinned to the bottom (it floated mid-screen on tall monitors) ===== */
body:has(.nf-text) { min-height: 100dvh; display: flex; flex-direction: column; }
body:has(.nf-text) main.aw { flex: 1; display: grid; align-content: center; }
body:has(.nf-text) .aw-in { text-align: center; }
body:has(.nf-text) .nf-text { max-width: 46ch; margin-inline: auto; }

/* ===== Pricing: duration selector (js/pricing-toggle.js). Without JS the full price lists still show. ===== */
.dur { display: flex; gap: 6px; width: fit-content; max-width: 100%; margin: 28px auto 34px; padding: 6px; background: #fff; border: 1px solid var(--hair); border-radius: 999px; box-shadow: var(--sh-1); }
.dur button { min-height: 44px; min-width: 92px; padding-inline: 22px; border: 0; border-radius: 999px; background: transparent; color: #0d0d0d; font: 700 1rem/1 var(--ar-head); cursor: pointer; transition: background 0.25s, color 0.25s; }
.dur button:hover:not([aria-pressed="true"]) { background: rgba(13, 13, 13, 0.06); }
.dur button[aria-pressed="true"] { background: #0d0d0d; color: #fff; }
.sec .dur button:focus-visible { outline: 3px solid #ef1b1b; outline-offset: 2px; }
.dur-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.plans.js-priced .plan > b:first-of-type, .plans.js-priced .plan ul.tk:first-of-type { display: none; }
.plan-price { margin: 18px 0 6px; text-align: center; direction: ltr; }
.plan-price .pp-n { font: 800 3.1rem/1 var(--head); letter-spacing: 0; }
.plan-price .pp-c { margin-inline-start: 8px; font: 700 1rem var(--ar-head); }
.plan-price .pp-d { display: block; margin-top: 10px; font: 500 0.92rem var(--ar-body); color: #555; direction: rtl; }
.plan.hot .plan-price .pp-d { color: #c9c9c9; }
.plan-price.swap { animation: ppIn 0.28s var(--out); }
@keyframes ppIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .dur button { min-width: 0; padding-inline: 16px; } }
