/* ============================================================
   الموقع التعريفي — مركز البداية التخصصي
   اتجاه التصميم: طبي راقٍ · أبيض وواسع · لمسة ذهبية
   يعمل بالعربية (RTL) والإنجليزية (LTR) من نفس الملف
   ============================================================ */

:root {
  --brand:      #1b6c9c;
  --brand-dark: #10516f;
  --teal:       #17706e;
  --gold:       #c9a227;
  --gold-soft:  #f3e9c8;
  --ink:        #14232c;
  --ink-2:      #47616e;
  --line:       #e6ecf0;
  --tint:       #f7fafb;
  --white:      #fff;

  --wrap:  1180px;
  --r:     14px;
  --shadow: 0 24px 60px -34px rgba(16, 60, 84, .38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body.site {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Tajawal', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
body.site--en { font-family: 'Inter', system-ui, sans-serif; line-height: 1.75; }

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.wrap { width: min(var(--wrap), 100% - 44px); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 18px; z-index: 200;
}
.skip:focus { inset-inline-start: 0; }

/* ------------------------------------------------- العناوين */

h1, h2, h3 { font-family: 'Amiri', Georgia, serif; font-weight: 700; margin: 0; letter-spacing: 0; }
.site--en h1, .site--en h2, .site--en h3 { font-family: 'Cormorant Garamond', Georgia, serif; }

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.3; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.35; }
h3 { font-size: 1.2rem; line-height: 1.5; font-weight: 700; }

.lead { font-size: 1.08rem; color: var(--ink-2); margin: 18px 0 0; max-width: 54ch; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 18px;
  padding-bottom: 8px; border-bottom: 2px solid var(--gold-soft);
}

/* --------------------------------------------------- الأزرار */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: .97rem; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn--lg { padding: 16px 34px; font-size: 1.02rem; }

.btn--gold  { background: var(--gold); color: #221c04; box-shadow: 0 14px 30px -16px rgba(201,162,39,.85); }
.btn--gold:hover  { transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(201,162,39,.95); }

.btn--ghost { background: transparent; color: var(--brand-dark); border-color: #cfdde6; }
.btn--ghost:hover { background: var(--tint); border-color: var(--brand); }

/* -------------------------------------------------- الترويسة */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 22px; min-height: 84px; }
.nav__logo img { height: 58px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 30px; margin-inline-start: auto; }
.nav__links > a { font-size: .95rem; font-weight: 500; color: var(--ink-2); transition: color .15s; }
.nav__links > a:hover { color: var(--brand); }

.nav__lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .87rem !important; color: var(--brand-dark) !important;
}
.nav__lang:hover { border-color: var(--brand); background: var(--tint); }
.nav__lang svg { width: 15px; height: 15px; }

.nav__cta { padding: 11px 24px; font-size: .92rem !important; color: #221c04 !important; }

.nav__cb, .nav__burger { display: none; }

/* --------------------------------------------------- الواجهة */

.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 92px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 76px); align-items: center; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__media { position: relative; }
.hero__media::before {
  content: ''; position: absolute; inset-inline-end: -46px; top: -46px;
  width: 190px; height: 190px; border-radius: 50%;
  background: var(--gold-soft); opacity: .5; z-index: 0;
}
.hero__img, .hero__media .ph {
  position: relative; z-index: 1;
  border-radius: 22px; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%;
}

/* ---------------------------------------------------- الأرقام */

.stats { border-block: 1px solid var(--line); background: var(--tint); }
.stats__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding: 34px 20px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat b {
  display: block; font-family: 'Amiri', Georgia, serif; font-size: 2.5rem;
  color: var(--brand-dark); line-height: 1.1;
}
.site--en .stat b { font-family: 'Cormorant Garamond', Georgia, serif; }
.stat span { font-size: .92rem; color: var(--ink-2); }

/* --------------------------------------------------- الأقسام */

.sec { padding: clamp(64px, 8vw, 108px) 0; }
.sec--tint { background: var(--tint); border-block: 1px solid var(--line); }

.sec__head { text-align: center; max-width: 62ch; margin: 0 auto clamp(38px, 5vw, 62px); }
.sec__head h2 { position: relative; padding-bottom: 20px; }
.sec__head h2::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 50%;
  transform: translateX(50%); width: 58px; height: 3px;
  background: var(--gold); border-radius: 2px;
}
.site--en .sec__head h2::after { transform: translateX(-50%); }
.sec__head p { color: var(--ink-2); margin: 14px 0 0; }

/* ------------------------------------------------- عن المركز */

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(38px, 5vw, 70px); align-items: center; }
.about__img, .about__media .ph {
  border-radius: 20px; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.5; object-fit: cover; width: 100%;
}
.about__text h2 { margin-bottom: 20px; }
.about__text p { color: var(--ink-2); margin: 0 0 16px; }

/* ---------------------------------------------- بطاقات الخدمات */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d4e2ea; }

.card__media { position: relative; }
.card__img, .card__media .ph { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

.card__ico {
  position: absolute; inset-inline-start: 20px; bottom: -22px;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--white); color: var(--brand);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -12px rgba(16,60,84,.5);
}

.card__body { padding: 38px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 10px; }
.card__body p { color: var(--ink-2); font-size: .95rem; margin: 0 0 18px; }

.card__cta {
  margin-block-start: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: .92rem; font-weight: 700; color: var(--brand);
}
.card__cta:hover { color: var(--gold); }
.card__cta svg { width: 14px; height: 14px; }

/* -------------------------------------------------- لماذا نحن */

.whys { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px; }
.why { text-align: center; padding: 8px; }
.why__ico {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 20px;
  background: linear-gradient(150deg, var(--brand-dark), var(--teal));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 16px 32px -18px rgba(16,60,84,.85);
}
.why h3 { margin-bottom: 10px; }
.why p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------------------------------------------------- التواصل */

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ct {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 24px; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.ct:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4e2ea; }
.ct__ico {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 16px;
  background: var(--tint); color: var(--brand); display: grid; place-items: center;
  border: 1px solid var(--line);
}
.ct--wa .ct__ico { background: #e8f8ee; color: #1f8a4c; border-color: #cdeddb; }
.ct b    { display: block; font-size: .82rem; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; }
.ct span:not(.ct__ico) { display: block; font-weight: 700; color: var(--ink); font-size: 1rem; }
.ct .num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------- التذييل */

.foot { background: var(--ink); color: #c8d6de; padding: 62px 0 34px; }
.foot__in { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.foot__logo { height: 62px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.foot__links a { font-size: .93rem; color: #c8d6de; transition: color .15s; }
.foot__links a:hover { color: var(--gold); }
.foot__copy {
  margin: 6px 0 0; font-size: .84rem; color: #7f95a1;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); width: 100%;
}

/* ------------------------------------------- زر واتساب العائم */

.wa-fab {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 32px -10px rgba(37,211,102,.75);
  transition: transform .2s ease;
}
.wa-fab:hover { transform: scale(1.08); }

/* ============================================================
   نائب الصورة — مرسوم بالألوان لا صورة خارجية
   ============================================================ */

.ph {
  position: relative; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--tint);
  background-image:
    radial-gradient(circle at 22% 24%, rgba(27,108,156,.16), transparent 46%),
    radial-gradient(circle at 78% 76%, rgba(23,112,110,.14), transparent 48%),
    linear-gradient(135deg, #fbfdfe 0%, #eef5f8 100%);
}
.ph--b {
  background-image:
    radial-gradient(circle at 76% 22%, rgba(201,162,39,.20), transparent 48%),
    radial-gradient(circle at 20% 80%, rgba(27,108,156,.14), transparent 46%),
    linear-gradient(135deg, #fdfcf7 0%, #f1f6f9 100%);
}
.ph--c {
  background-image:
    radial-gradient(circle at 50% 18%, rgba(60,156,84,.16), transparent 50%),
    radial-gradient(circle at 84% 82%, rgba(27,108,156,.14), transparent 45%),
    linear-gradient(135deg, #fbfefb 0%, #eff6f9 100%);
}
/* شبكة خفيفة تمنع الفراغ الميت */
.ph::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(27,108,156,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,108,156,.06) 1px, transparent 1px);
  background-size: 38px 38px;
}
.ph__note {
  position: relative; z-index: 1; max-width: 78%; text-align: center;
  font-size: .8rem; font-weight: 500; color: #6f8a99; line-height: 1.6;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.82); border: 1px dashed #c3d5df;
}

/* ============================================================
   الاستجابة
   ============================================================ */

@media (max-width: 940px) {
  .hero__in, .about { grid-template-columns: 1fr; }
  .about__media { order: 2; }
  .hero__media::before { display: none; }
  .hero__img, .hero__media .ph { aspect-ratio: 16 / 11; }
  .about__img, .about__media .ph { aspect-ratio: 16 / 10; }
  .stat { border-inline-start: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 74px; }
  .nav__in { min-height: 70px; }
  .nav__logo img { height: 40px; }

  .nav__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-inline-start: auto; width: 44px; height: 40px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 10px; padding: 0 10px;
  }
  .nav__burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

  .nav__links {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(16,60,84,.5);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav__cb:checked ~ .nav__links { max-height: 460px; }
  .nav__links > a { padding: 15px 22px; border-top: 1px solid var(--line); }
  .nav__lang, .nav__cta { margin: 12px 22px; justify-content: center; }
  .nav__cta { margin-bottom: 20px; }
}

@media (max-width: 520px) {
  body.site { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .hero__acts .btn { width: 100%; }
  .wa-fab { width: 52px; height: 52px; inset-inline-end: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .nav, .wa-fab, .skip, .hero__acts, .card__cta { display: none !important; }
  body.site { font-size: 12pt; }
  .sec, .hero { padding: 18px 0; }
}
