
@font-face { font-family: Tajawal; src: url(/system/assets/fonts/Tajawal-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Tajawal; src: url(/system/assets/fonts/Tajawal-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Tajawal; src: url(/system/assets/fonts/Tajawal-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --ink: #10284a; --deep: #0a1b33; --gold: #c9a15a; --gold-2: #e9d6ae;
  --paper: #f3f5f8; --card: #ffffff; --text: #1b2a3d; --muted: #5d6b7d; --line: rgba(16,40,74,.12);
  --wa: #1f9d55;
  --r-lg: 28px; --r-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Tajawal, "Segoe UI", Tahoma, sans-serif; font-size: 17px; line-height: 1.8; color: var(--text); background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 800; color: var(--ink); }
p { margin: 0; }

/* ── الرأس ── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(12px) saturate(150%); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; }
.brand b { display: block; font-size: 1.12rem; color: var(--ink); line-height: 1.2; }
.brand small { display: block; font-size: .78rem; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--ink); }
.nav a:hover { background: var(--paper); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: .8rem; font-weight: 700; color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: .98rem; border: 0; cursor: pointer; font-family: inherit; transition: background .2s, transform .2s; }
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: #d8b36f; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-wa { background: var(--wa); color: #fff; }
.btn svg { flex: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: var(--paper); border-radius: 12px; color: var(--ink); cursor: pointer; }

/* ── البطل: بابان ── */
.hero { padding: 34px 0 0; }
.hero-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(1.55rem, 3vw, 2.6rem); letter-spacing: -.01em; }
.hero-sub { color: var(--muted); font-size: 1.05rem; margin-top: 6px; }
.hero-q { flex: none; font-weight: 700; color: var(--muted); font-size: 1rem; padding-bottom: 6px; }
.doors { display: flex; gap: 14px; height: clamp(440px, calc(100vh - 290px), 620px); }
.door { position: relative; flex: 1; border-radius: var(--r-lg); overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 3.2vw, 44px); isolation: isolate; transition: flex-grow .55s cubic-bezier(.2,.7,.2,1); }
.door .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--deep) 8%, color-mix(in srgb, var(--deep) 70%, transparent) 46%, color-mix(in srgb, var(--deep) 15%, transparent) 100%); }
.door.d-clinic .bg { background-image: url(/assets/site/clinic.jpg); }
.door.d-train .bg { background-image: url(/assets/site/training.jpg); }
.door .who { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.door .who i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.door h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: 10px; }
.door p { color: rgba(255,255,255,.86); max-width: 30em; margin-bottom: 22px; }
.door .acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (hover: hover) and (min-width: 901px) {
  .doors:hover .door { flex-grow: .8; }
  .doors .door:hover { flex-grow: 1.25; }
  .door:hover .bg { transform: scale(1.04); }
}
/* لحظة الافتتاح الوحيدة: البابان ينفتحان من خط ذهبي في المنتصف */
.doors { position: relative; }
.seam { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--gold); transform-origin: top; z-index: 3; pointer-events: none; animation: seam 1.5s cubic-bezier(.7,0,.2,1) forwards; }
.door.d-clinic { animation: openR 1.1s .45s cubic-bezier(.2,.8,.2,1) both; }
.door.d-train { animation: openL 1.1s .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes seam { 0% { transform: scaleY(0); opacity: 1; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes openR { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes openL { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .seam { display: none; } .door { animation: none !important; } .door, .door .bg { transition: none; } }

/* ── شريط سريع ── */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 26px 0 0; background: var(--card); border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.quick a { padding: 18px 22px; display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); border-inline-start: 1px solid var(--line); }
.quick a:first-child { border-inline-start: 0; }
.quick a:hover { background: var(--paper); }
.quick svg { color: var(--gold); flex: none; }
.quick span small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; line-height: 1.4; }

/* ── الأقسام ── */
section.blk { padding: clamp(64px, 9vw, 110px) 0; }
.blk-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.blk-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.blk-head p { color: var(--muted); font-size: 1.05rem; max-width: 34em; }

/* الدكتور */
.doc { background: var(--ink); color: #fff; border-radius: var(--r-lg); display: grid; grid-template-columns: 340px 1fr; overflow: hidden; }
.doc-photo { position: relative; background: #000; min-height: 420px; overflow: hidden; }
.doc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.doc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, transparent 60%, var(--ink) 100%); }
.doc-photo .ph { text-align: center; color: rgba(255,255,255,.55); font-size: .9rem; }
.doc-photo .ph b { display: grid; place-items: center; width: 120px; height: 120px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font-size: 2.4rem; }
.doc-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.doc-body h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.doc-body .role { color: var(--gold-2); font-weight: 700; margin: 6px 0 18px; }
.doc-body p { color: rgba(255,255,255,.82); max-width: 36em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); font-size: .9rem; font-weight: 700; }

/* العيادة */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc article { background: var(--card); border-radius: var(--r-md); padding: 28px; border: 1px solid var(--line); }
.svc .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); color: var(--ink); margin-bottom: 18px; }
.svc h3 { font-size: 1.25rem; margin-bottom: 8px; }
.svc p { color: var(--muted); }
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; right: 22px; left: 22px; height: 2px; background: var(--line); }
.steps li { list-style: none; position: relative; padding-inline-end: 20px; }
.steps li::before { counter-increment: s; content: counter(s); position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .95rem; }
.steps { padding: 0; }

/* التدريب */
.train { background: var(--deep); color: #fff; }
.train .blk-head h2 { color: #fff; }
.train .blk-head p { color: rgba(255,255,255,.75); }
.tgrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.tgrid a { position: relative; border-radius: var(--r-md); padding: 26px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 6px; min-height: 160px; transition: background .2s, border-color .2s; }
.tgrid a:hover { background: rgba(255,255,255,.1); border-color: var(--gold); }
.tgrid a.big { grid-row: span 2; background: var(--gold); color: var(--deep); justify-content: flex-end; border: 0; }
.tgrid a.big:hover { background: #d8b36f; }
.tgrid a.big h3 { color: var(--deep); font-size: 1.7rem; }
.tgrid a.big p { color: rgba(10,27,51,.8); }
.tgrid h3 { color: #fff; font-size: 1.2rem; }
.tgrid p { color: rgba(255,255,255,.72); font-size: .95rem; }
.tgrid svg { color: var(--gold); margin-bottom: auto; }
.tgrid a.big svg { color: var(--deep); }

/* أسئلة */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 800; font-size: 1.1rem; color: var(--ink); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 46em; }

/* تواصل */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact article { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3.5vw, 44px); }
.contact h3 { font-size: 1.45rem; margin-bottom: 6px; }
.contact .sub { color: var(--muted); margin-bottom: 20px; }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 24px; }
.contact dt { color: var(--muted); font-size: .92rem; }
.contact dd { margin: 0; font-weight: 700; }
.need { display: inline-block; padding: 0 8px; border-radius: 6px; background: #fff7e6; border: 1px dashed var(--gold); color: #8a6a2c; font-weight: 700; font-size: .88rem; }
.contact .acts { display: flex; flex-wrap: wrap; gap: 10px; }

footer { background: var(--deep); color: rgba(255,255,255,.7); padding: 44px 0 30px; font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a:hover { color: #fff; }

/* واتساب عائم على الجوال */
.fab { display: none; }


@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav, .top .btn-wa { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .top .wrap { height: 66px; gap: 10px; }
  .top-actions { margin-inline-start: auto; }
  .brand img { width: 40px; height: 40px; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 66px; right: 0; left: 0; background: #fff; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  .nav.open a { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero { padding-top: 22px; }
  .hero-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 16px; }
  .doors { flex-direction: column; height: auto; min-height: 0; gap: 12px; }
  .door { min-height: 340px; padding: 22px; }
  .door p { margin-bottom: 16px; font-size: .95rem; }
  .hero-sub { font-size: .95rem; }
  .hero-q { display: none; }
  .seam { display: none; }
  .door.d-clinic, .door.d-train { animation-name: fadeUp; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick a:nth-child(3) { border-inline-start: 0; }
  .quick a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .blk-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .doc { grid-template-columns: 1fr; }
  .doc-photo { min-height: 380px; }
  .doc-photo::after { background: linear-gradient(to top, var(--ink) 0%, transparent 35%); }
  .svc { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps::before { top: 0; bottom: 0; right: auto; left: auto; inset-inline-start: 22px; width: 2px; height: auto; }
  .steps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; padding: 0; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .tgrid { grid-template-columns: 1fr 1fr; }
  .tgrid a.big { grid-column: 1 / -1; grid-row: auto; min-height: 200px; }
  .contact { grid-template-columns: 1fr; }
  .fab { display: grid; place-items: center; position: fixed; left: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
}
@media (max-width: 420px) {
  .tgrid { grid-template-columns: 1fr; }
  .quick a { padding: 14px 14px; font-size: .92rem; }
}

/* ── قائمة الجوال بدون سكربت ── */
.mnav-t { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
label.menu-btn { cursor: pointer; }
.nav a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
@media (max-width: 900px) {
  .mnav-t:checked ~ .wrap .nav { display: flex; flex-direction: column; position: absolute; top: 66px; right: 0; left: 0; background: #fff; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  .mnav-t:checked ~ .wrap .nav a { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .mnav-t:checked ~ .wrap .nav .nav-wa { display: flex; margin-top: 12px; border: 0; border-radius: 999px; justify-content: center; }
}
.nav .nav-wa { display: none; }
.mnav-t:focus-visible ~ .wrap .menu-btn { outline: 3px solid var(--gold); }

/* ── رأس الصفحات الداخلية ── */
.phero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.phero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, var(--deep) 30%, color-mix(in srgb, var(--deep) 55%, transparent) 75%, color-mix(in srgb, var(--deep) 25%, transparent)); }
[dir="ltr"] .phero::after { background: linear-gradient(to right, var(--deep) 30%, color-mix(in srgb, var(--deep) 55%, transparent) 75%, color-mix(in srgb, var(--deep) 25%, transparent)); }
.phero .wrap { padding: clamp(56px, 8vw, 104px) 0; }
.phero .crumbs { font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.phero .crumbs a:hover { color: #fff; }
.phero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 16em; }
.phero p { color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 34em; margin-top: 14px; }
.phero .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.phero.solid { background: var(--ink); }
.phero.solid::after { display: none; }

.lead-txt { font-size: 1.12rem; color: var(--text); max-width: 40em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 40px); }
.panel h3 { font-size: 1.3rem; margin-bottom: 8px; }
.panel p { color: var(--muted); }
.panel ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.panel li { position: relative; padding-inline-start: 22px; }
.panel li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.panel .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.svc article p.more { color: var(--text); margin-top: 10px; }

.loc { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--ink); color: #fff; border-radius: var(--r-lg); overflow: hidden; }
.loc .txt { padding: clamp(28px, 4vw, 52px); }
.loc h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 18px; }
.loc dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 0 0 26px; }
.loc dt { color: rgba(255,255,255,.6); }
.loc dd { margin: 0; font-weight: 700; }
.loc .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.loc .pic { background: url(/assets/site/clinic.jpg) center / cover; min-height: 300px; }
.tel { direction: ltr; unicode-bidi: isolate; }

.docpage { display: grid; grid-template-columns: 420px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.docpage .ph { border-radius: var(--r-lg); overflow: hidden; background: #000; position: sticky; top: 96px; }
.docpage .ph img { width: 100%; height: auto; }
.docpage h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 34px 0 10px; }
.docpage h2:first-child { margin-top: 0; }
.docpage p { color: var(--text); max-width: 40em; }

@media (max-width: 900px) {
  .two, .loc, .docpage { grid-template-columns: 1fr; }
  .docpage .ph { position: static; max-width: 420px; }
  .loc .pic { min-height: 200px; order: -1; }
  .phero::after, [dir="ltr"] .phero::after { background: linear-gradient(to top, var(--deep) 35%, color-mix(in srgb, var(--deep) 45%, transparent)); }
}

/* ── الإنجليزية ── */
[dir="ltr"] body, body[dir="ltr"] { font-family: Tajawal, "Segoe UI", Arial, sans-serif; }
[dir="ltr"] .seam { left: 50%; }
[dir="ltr"] .door.d-clinic { animation-name: openL; }
[dir="ltr"] .door.d-train { animation-name: openR; }
[dir="ltr"] .doc-photo::after { background: linear-gradient(to right, transparent 60%, var(--ink) 100%); }
@media (max-width: 900px) { [dir="ltr"] .door.d-clinic, [dir="ltr"] .door.d-train { animation-name: fadeUp; } [dir="ltr"] .doc-photo::after { background: linear-gradient(to top, var(--ink) 0%, transparent 35%); } }
