/* ==========================================================================
   مركز الدليل للتدريب — الأنماط
   Mobile First · RTL (خصائص منطقية) · بدون مكتبات
   --------------------------------------------------------------------------
   1) المتغيرات   2) الأساسيات   3) عناصر مشتركة (أزرار، بطاقات، شبكات)
   4) Navbar   5) Hero   6) About   7) Courses   8) AI Tools   9) Library
   10) Why / Testimonials   11) Contact   12) Footer   13) Modal / FAB
   14) الحركة
   ========================================================================== */

/* ---------- 1) المتغيرات ---------- */
:root {
  /* الألوان — عدّلها هنا لتطابق الشعار بدقة */
  --navy: #0b1f4d;
  --royal: #1e3a8a;
  --royal-600: #1d4ed8;
  --sky: #38bdf8;
  --sky-600: #0ea5e9;
  --sky-50: #f0f9ff;
  --tint: #f5f8fd;
  --white: #fff;
  --ink: #0f1c3a;
  --text: #46536e;
  --muted: #7a869e;
  --line: #e4eaf4;
  --star: #f5b301;
  --whatsapp: #25d366;

  --gradient: linear-gradient(135deg, var(--royal) 0%, var(--royal-600) 55%, var(--sky-600) 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 58, .05), 0 2px 8px rgba(15, 28, 58, .04);
  --shadow: 0 6px 24px rgba(15, 28, 58, .08);
  --shadow-lg: 0 18px 48px rgba(15, 28, 58, .14);

  --font: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --nav-h: 68px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2) الأساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.35; font-weight: 800; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--royal); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- 3) عناصر مشتركة ---------- */
.section { padding-block: 72px; }
.section--tint { background: var(--tint); }
.section__head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section__title { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); }
.section__lead { margin-top: 12px; font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 5px 14px;
  font-size: .85rem; font-weight: 700; color: var(--royal-600);
  background: rgba(29, 78, 216, .08); border-radius: 999px;
}
.eyebrow--light { color: #fff; background: rgba(255, 255, 255, .14); }

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: 1.5px solid transparent; border-radius: 12px;
  font-weight: 700; font-size: .95rem; line-height: 1.4; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 8px 16px; font-size: .88rem; border-radius: 10px; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--royal); color: #fff; box-shadow: 0 6px 16px rgba(30, 58, 138, .25); }
.btn--primary:hover { background: var(--royal-600); box-shadow: 0 10px 22px rgba(30, 58, 138, .3); }
.btn--outline { border-color: var(--line); color: var(--royal); background: #fff; }
.btn--outline:hover { border-color: var(--royal); background: var(--sky-50); }
.btn--white { background: #fff; color: var(--royal); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.btn--danger { border-color: #f3d0d0; color: #b42318; background: #fff; }
.btn--danger:hover { border-color: #b42318; background: #fef3f2; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* الشبكات */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid { gap: 24px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* البطاقات */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcf3; }
.card__title { font-size: 1.1rem; font-weight: 700; }
.card__text { margin-top: 8px; font-size: .95rem; }
.card__icon {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; margin-bottom: 16px;
  font-size: 1.2rem; color: var(--royal-600);
  background: var(--sky-50); border-radius: 14px;
  transition: background-color .25s, color .25s;
}
.card__icon--solid, .card--service:hover .card__icon { background: var(--gradient); color: #fff; }

.badge {
  display: inline-block; padding: 3px 12px; font-size: .78rem; font-weight: 700;
  color: #fff; background: var(--royal); border-radius: 999px;
}
.badge--soft { color: var(--royal-600); background: var(--sky-50); }

.empty { grid-column: 1 / -1; text-align: center; padding: 32px; color: var(--muted); }

/* ---------- 4) Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.navbar.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 28, 58, .06); }
.navbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.navbar__actions { display: flex; align-items: center; gap: 10px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { width: 44px; height: 44px; border-radius: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-size: 1.08rem; font-weight: 800; color: var(--ink); }
.brand__text small { font-size: .78rem; font-weight: 600; color: var(--sky-600); }
.brand--light .brand__text strong { color: #fff; }

.nav-toggle {
  display: grid; gap: 5px; align-content: center; justify-items: center;
  width: 44px; height: 44px; padding: 0;
  background: var(--tint); border: 0; border-radius: 12px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* القائمة — الهاتف: لوحة منسدلة */
.nav {
  /* absolute وليس fixed: الـ backdrop-filter على .navbar يجعلها حاوية للعناصر الثابتة */
  position: absolute; top: 100%; inset-inline: 0; height: calc(100dvh - var(--nav-h));
  display: flex; flex-direction: column; gap: 20px;
  padding: 20px; background: #fff; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__list { display: flex; flex-direction: column; gap: 4px; }
.nav__link {
  display: block; padding: 13px 16px; border-radius: 12px;
  font-weight: 600; color: var(--ink); transition: background-color .2s, color .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--royal-600); background: var(--sky-50); }
.nav__link--members { color: var(--royal-600); font-weight: 700; }
.navbar__cta { display: none; }
@media (min-width: 480px) { .navbar__cta { display: inline-flex; } .nav__cta-mobile { display: none; } }

@media (min-width: 1024px) {
  :root { --nav-h: 76px; }
  .nav-toggle, .nav__cta-mobile { display: none; }
  .nav {
    position: static; height: auto; flex-direction: row; padding: 0; background: none; overflow: visible;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__list { flex-direction: row; gap: 2px; }
  .nav__link { padding: 8px 13px; font-size: .93rem; background: none !important; position: relative; }
  .nav__link::after {
    content: ""; position: absolute; inset-inline: 13px; bottom: 2px; height: 2px;
    background: var(--sky-600); border-radius: 2px;
    transform: scaleX(0); transition: transform .25s var(--ease);
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
}

/* ---------- 5) Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: 56px 40px; color: #dbe7ff;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(56, 189, 248, .35), transparent 60%),
    radial-gradient(700px 500px at 100% 110%, rgba(14, 165, 233, .28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--royal) 60%, #2447b5 100%);
}
.hero::before { /* شبكة نقطية خفيفة */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.1rem, 1.3rem + 4vw, 3.6rem); color: #fff; line-height: 1.25; }
.hero__subtitle { margin-top: 12px; font-size: clamp(1.1rem, .95rem + .9vw, 1.5rem); font-weight: 700; color: var(--sky); }
.hero__text { margin-top: 16px; max-width: 560px; font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__actions .btn { flex: 1 1 160px; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero__ring { position: absolute; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; }
.hero__ring--1 { width: 250px; height: 250px; }
.hero__ring--2 { width: 330px; height: 330px; border-style: dashed; animation: spin 60s linear infinite; }
.hero__emblem {
  display: grid; place-items: center; width: 170px; height: 170px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 40px; backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px rgba(4, 13, 40, .35);
}
.hero__emblem img { width: 116px; height: 116px; border-radius: 28px; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #fff; color: var(--ink);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .88rem; line-height: 1.4; }
.float-card small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.4; }
.float-card__icon { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: var(--gradient); border-radius: 10px; }
.float-card--a { top: 6%; inset-inline-start: 0; }
.float-card--b { bottom: 6%; inset-inline-end: 0; animation-delay: -3s; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 40px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); overflow: hidden;
}
.stat { padding: 18px 12px; text-align: center; background: rgba(11, 31, 77, .55); }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.3; direction: ltr; }
.stat span { font-size: .88rem; }

@media (min-width: 640px) {
  .hero__actions .btn { flex: 0 0 auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .hero { padding-block: 88px 56px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero__visual { min-height: 420px; }
  .hero__ring--1 { width: 330px; height: 330px; }
  .hero__ring--2 { width: 430px; height: 430px; }
  .hero__emblem { width: 220px; height: 220px; border-radius: 52px; }
  .hero__emblem img { width: 150px; height: 150px; border-radius: 36px; }
  .stats { margin-top: 64px; }
}

/* ---------- 6) About ---------- */
.section { scroll-margin-top: 0; }
@media (min-width: 1024px) { .section { padding-block: 104px; } .section__head { margin-bottom: 56px; } }

.about { display: grid; gap: 40px; align-items: center; }
.about__media { position: relative; }
.about__placeholder {
  display: grid; place-content: center; justify-items: center; gap: 8px;
  aspect-ratio: 4 / 3; color: var(--royal-600); font-weight: 600;
  background:
    radial-gradient(400px 260px at 80% 10%, rgba(56, 189, 248, .25), transparent 70%),
    linear-gradient(135deg, #e8f1ff, var(--sky-50));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.about__placeholder .icon { width: 56px; height: 56px; stroke-width: 1.2; opacity: .7; }
.about__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.about__badge {
  position: absolute; bottom: -18px; inset-inline-start: 18px;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  color: #fff; font-size: .9rem; line-height: 1.5;
  background: var(--gradient); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about__badge .icon { width: 30px; height: 30px; }
.about__content p { margin-top: 14px; font-size: 1.05rem; }
.checklist { display: grid; gap: 10px; margin-block: 22px 28px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.checklist .icon { padding: 4px; width: 24px; height: 24px; color: #fff; background: var(--sky-600); border-radius: 50%; stroke-width: 3; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.1fr; gap: 64px; } }

/* ---------- 7) Courses ---------- */
.course { padding: 0; overflow: hidden; }
.course > * { padding-inline: 24px; }
.course__top {
  display: flex; flex-wrap: wrap; gap: 8px; padding-block: 20px 14px;
  border-top: 4px solid transparent; border-image: var(--gradient) 1;
}
.course .card__text { flex: 1; }
.meta { display: grid; gap: 8px; margin-top: 16px; padding-block: 14px; border-top: 1px dashed var(--line); font-size: .92rem; }
.course .meta { margin-inline: 24px; padding-inline: 0; }
.meta li { display: flex; align-items: center; gap: 10px; }
.meta .icon { color: var(--sky-600); }
.meta small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.4; }
.meta--grid { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-block: 18px; border-bottom: 1px dashed var(--line); }
.meta--grid span { color: var(--ink); font-weight: 600; line-height: 1.5; }

.course__footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 16px; background: var(--tint); border-top: 1px solid var(--line);
}
.modal .course__footer { background: none; border: 0; padding-bottom: 0; }
.course__actions { display: flex; gap: 8px; flex: 1 1 auto; justify-content: flex-end; }
.price small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.3; }
.price strong { font-size: 1.25rem; font-weight: 800; color: var(--royal); }

/* بطاقة البرنامج المميز (الدبلومات) */
.programs { display: grid; gap: 20px; margin-bottom: 24px; }
.programs:empty { display: none; }
.program {
  display: grid; gap: 24px; align-items: center; padding: 28px 24px; color: #dbe7ff;
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(56, 189, 248, .32), transparent 65%),
    linear-gradient(150deg, var(--navy), var(--royal));
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.program__title { margin-bottom: 8px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); color: #fff; }
.program__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.program__facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  font-size: .88rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
}
.program__facts .icon { color: var(--sky); }
@media (min-width: 900px) { .program { grid-template-columns: 1fr auto; gap: 40px; padding: 40px 44px; } }

/* ---------- 8) AI Tools ---------- */
.tabs {
  display: flex; gap: 8px; margin-bottom: 28px; padding-bottom: 4px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none; scroll-snap-align: start;
  padding: 9px 18px; font-weight: 700; font-size: .9rem; color: var(--text);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--royal-600); color: var(--royal-600); }
.tab.is-active { color: #fff; background: var(--royal); border-color: var(--royal); }
@media (min-width: 900px) { .tabs { justify-content: center; flex-wrap: wrap; } }

.tool { padding: 20px; }
.tool__head { display: flex; align-items: center; gap: 12px; }
.tool__head .card__title { font-size: 1.02rem; text-align: right; }
.tool__logo {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px;
  font-size: 1.2rem; font-weight: 800; color: #fff; background: var(--gradient); border-radius: 12px;
}
.tool__cat { display: block; font-size: .76rem; color: var(--muted); line-height: 1.4; }
.tool .card__text { flex: 1; margin-block: 12px 16px; font-size: .9rem; }

/* ---------- 9) Library ---------- */
.library {
  display: grid; gap: 28px; padding: 28px 22px; color: #dbe7ff;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(56, 189, 248, .3), transparent 65%),
    linear-gradient(150deg, var(--navy), var(--royal));
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.library .section__title { color: #fff; }
.library__intro p { margin-block: 12px 24px; }
.library__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.library__item {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); transition: background-color .25s, transform .25s var(--ease);
}
.library__item:hover { background: rgba(255, 255, 255, .15); transform: translateY(-3px); }
.library__item strong { display: block; color: #fff; line-height: 1.5; }
.library__item small { display: block; font-size: .8rem; line-height: 1.6; }
.library__icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--navy); background: var(--sky); border-radius: 11px; }
@media (min-width: 640px) { .library__grid { grid-template-columns: repeat(3, 1fr); } .library { padding: 40px; } }
@media (min-width: 1024px) { .library { grid-template-columns: 1fr 1.5fr; gap: 48px; padding: 56px; align-items: center; } }

/* ---------- 10) Why / Testimonials ---------- */
.feature__num {
  position: absolute; top: 14px; inset-inline-end: 20px;
  font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--tint);
  -webkit-text-stroke: 1px var(--line);
}

.testimonial { gap: 16px; }
.stars { display: flex; gap: 2px; color: var(--line); }
.stars .icon { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.stars .is-on { color: var(--star); }
.testimonial blockquote { flex: 1; font-size: 1rem; color: var(--ink); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.testimonial figcaption strong { display: block; color: var(--ink); line-height: 1.5; }
.testimonial figcaption small { color: var(--muted); }
.avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; font-weight: 800; color: #fff; background: var(--gradient); border-radius: 50%; }

/* ---------- 11) Contact ---------- */
.contact { display: grid; gap: 20px; }
.contact__grid { display: grid; gap: 14px; }
.contact-card { flex-direction: row; align-items: center; gap: 14px; padding: 18px; }
.contact-card .card__icon { margin: 0; }
.contact-card:hover .card__icon { background: var(--gradient); color: #fff; }
.contact-card strong { display: block; color: var(--ink); line-height: 1.5; }
.contact-card small { display: block; color: var(--muted); font-size: .88rem; text-align: right; }

.map {
  display: grid; place-content: center; justify-items: center; gap: 8px;
  min-height: 280px; padding: 28px; text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .86)),
    repeating-linear-gradient(0deg, transparent 0 38px, #cfe0f7 38px 40px),
    repeating-linear-gradient(90deg, #e8f1ff 0 58px, #cfe0f7 58px 60px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s var(--ease);
}
.map:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.map strong { font-size: 1.1rem; color: var(--ink); }
.map__pin { display: grid; place-items: center; width: 56px; height: 56px; font-size: 1.3rem; color: #fff; background: var(--gradient); border-radius: 50%; box-shadow: 0 0 0 8px rgba(29, 78, 216, .12); margin-bottom: 6px; }
.map__hours { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
@media (min-width: 640px) { .contact__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact { grid-template-columns: 1.2fr 1fr; gap: 24px; } }

/* ---------- 12) Footer ---------- */
.footer { color: #b9c7e6; background: var(--navy); }
.footer__inner { display: grid; gap: 32px; padding-block: 56px 40px; }
.footer__brand p { margin-top: 14px; max-width: 320px; }
.footer h3 { margin-bottom: 14px; font-size: 1rem; color: #fff; }
.footer__col ul { display: grid; gap: 8px; }
.footer__col a { transition: color .2s, padding .2s; }
.footer__col ul a:hover { color: var(--sky); padding-inline-start: 4px; }
.footer__contact { margin-top: 16px; font-size: .92rem; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: rgba(255, 255, 255, .08); border-radius: 12px; transition: background-color .2s, transform .2s var(--ease); }
.socials a:hover { background: var(--sky-600); transform: translateY(-3px); }
.footer__bottom { padding-block: 18px; font-size: .88rem; text-align: center; border-top: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 768px) { .footer__inner { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; } }

/* ---------- 13) Modal / FAB ---------- */
.modal {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px 24px;
  color: var(--text); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(11, 31, 77, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .25s var(--ease); }
.modal__title { margin-block: 12px 8px; font-size: 1.4rem; }
.modal p { margin-top: 8px; }
.modal__close {
  position: absolute; top: 14px; inset-inline-end: 14px;
  display: grid; place-items: center; width: 38px; height: 38px;
  color: var(--ink); background: var(--tint); border: 0; border-radius: 50%;
}
.modal__close:hover { background: var(--line); }

/* ---------- 13-ب) النماذج (مشتركة بين الموقع ولوحة التحكم) ---------- */
.form-grid { display: grid; gap: 16px; }
.form-grid__fields { display: grid; gap: 14px; }
@media (min-width: 640px) {
  .form-grid__fields { grid-template-columns: repeat(2, 1fr); }
  .field--wide { grid-column: 1 / -1; }
}
.field { display: grid; gap: 6px; }
.field > span { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field small { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 14px; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 84px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--royal-600); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.field--check { display: flex; align-items: center; gap: 10px; }
.field--check input { width: 18px; height: 18px; accent-color: var(--royal); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.form-error { padding: 10px 14px; font-size: .9rem; color: #b42318; background: #fef3f2; border-radius: var(--radius-sm); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-done { display: grid; justify-items: center; gap: 10px; padding-block: 12px; text-align: center; }
.form-done .icon { width: 56px; height: 56px; padding: 12px; color: #fff; background: var(--sky-600); border-radius: 50%; stroke-width: 3; }
.form-done h3 { font-size: 1.3rem; }

.fab {
  position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 90;
  display: grid; place-items: center; width: 54px; height: 54px; font-size: 1.35rem;
  color: #fff; background: var(--whatsapp); border-radius: 50%;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .4); transition: transform .2s var(--ease);
}
.fab:hover { transform: scale(1.08); }

/* ---------- 14) الحركة ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover { transform: translateY(-4px); }

@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
