/* ============================================================
   GlobalEntry Partners — نظام التصميم المشترك (Design System)
   ============================================================ */

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-dark: #080d1a;
  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-tint: rgba(217, 119, 6, 0.12);
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #5b6472;
  --border: #e6e3db;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --red: #ef4444;
  --red-tint: #fef2f2;
  --green: #16a34a;
  --shadow-sm: 0 4px 14px -4px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 10px 28px -8px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 24px 48px -14px rgba(15, 23, 42, 0.22);
  --radius-sm: 0.6rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --container: 1200px;
}

/* ---------- إعادة الضبط ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Cairo', 'Tahoma', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; text-wrap: balance; color: var(--navy); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--text); background: var(--surface); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
strong { color: var(--gold-light); font-weight: 800; }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 4vw, 4rem) 0; }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--surface { background: var(--surface); }
.section--bg { background: var(--bg); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto clamp(2.25rem, 4vw, 3.5rem); }
.section-head .eyebrow {
  display: inline-block; background: var(--gold-tint); color: var(--gold-light);
  font-weight: 800; font-size: 0.82rem; padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.section--navy .section-head .eyebrow { background: rgba(217,119,6,0.18); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.section--navy .section-head p { color: #c3c9d4; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 800; border-radius: 0.8rem; padding: 0.85rem 1.9rem; text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color .15s ease, color .15s ease;
  font-size: 1rem; white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-md); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.22); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--ghost-dark { background: transparent; color: var(--navy); border: 2px solid var(--border); }
.btn--ghost-dark:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: 0.6rem 1.3rem; font-size: 0.9rem; }
.btn--lg { padding: 1.05rem 2.3rem; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn--wa { background: var(--whatsapp); color: #fff; }
.btn--wa:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }

@keyframes glowPulse { 0%,100% { box-shadow: 0 10px 26px -6px rgba(217,119,6,.5); } 50% { box-shadow: 0 16px 40px -4px rgba(217,119,6,.85); } }
.btn-glow { animation: glowPulse 2.4s ease-in-out infinite; }
@keyframes shineSweep { 0% { transform: translateX(-160%) skewX(-20deg); } 55%, 100% { transform: translateX(160%) skewX(-20deg); } }
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 35%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-160%) skewX(-20deg); animation: shineSweep 3.1s ease-in-out infinite; animation-delay: 1s; pointer-events: none;
}

/* ---------- الهيدر ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.75rem; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.65rem; }
.logo img { width: 2.35rem; height: 2.35rem; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__brand { color: #fff; font-size: 1.28rem; font-weight: 800; }
.logo__brand span { color: var(--gold); }
.logo__tagline { color: #b8bfcc; font-size: 0.68rem; }

.nav-desktop { display: none; align-items: center; gap: 1.6rem; }
.nav-desktop a { color: #d7dbe3; font-weight: 700; font-size: 0.92rem; transition: color .15s; position: relative; padding: 0.4rem 0; }
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--gold-light); }
.nav-desktop a.is-active::after {
  content: ''; position: absolute; right: 0; left: 0; bottom: -0.35rem; height: 2px; background: var(--gold);
  border-radius: 999px;
}
.nav-cta { display: none; }

/* قائمة "خدماتنا" المنسدلة (سطح المكتب فقط) */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger { display: inline-flex; align-items: center; gap: 0.3rem; color: #d7dbe3; font-weight: 700; font-size: 0.92rem; }
.nav-dropdown__trigger svg { width: 0.85rem; height: 0.85rem; transition: transform .2s; }
.nav-dropdown:hover .nav-dropdown__trigger, .nav-dropdown.is-open .nav-dropdown__trigger { color: var(--gold-light); }
.nav-dropdown.is-open .nav-dropdown__trigger svg { transform: rotate(180deg); }
.nav-dropdown__panel {
  position: absolute; top: 100%; right: 0; margin-top: 0.85rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.9rem; box-shadow: var(--shadow-lg); padding: 0.6rem; min-width: 17rem; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown:hover .nav-dropdown__panel, .nav-dropdown.is-open .nav-dropdown__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown__panel a { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.75rem; border-radius: 0.6rem; color: var(--text); font-weight: 700; font-size: 0.9rem; transition: background .15s; }
.nav-dropdown__panel a:hover { background: var(--gold-tint); color: var(--gold); }
.nav-mobile-group { margin: 0.4rem 0; padding-right: 0.75rem; border-right: 2px solid rgba(217,119,6,.35); display: flex; flex-direction: column; gap: 0.7rem; }
.nav-mobile-group__label { color: #7c8494; font-size: 0.78rem; font-weight: 800; }

.menu-toggle { display: inline-flex; color: #fff; padding: 0.25rem; }
.menu-toggle svg { width: 1.85rem; height: 1.85rem; }
.nav-mobile { display: none; flex-direction: column; gap: 0.9rem; padding-bottom: 1.25rem; }
.nav-mobile.is-open { display: flex; }
.nav-mobile a { color: #d7dbe3; font-weight: 700; text-align: right; font-size: 0.96rem; }
.nav-mobile a.is-active { color: var(--gold-light); }

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle, .nav-mobile { display: none !important; }
}

/* ---------- انتقال سلس بين الصفحات ---------- */
.page-transition {
  position: fixed; inset: 0; z-index: 300; background: var(--navy);
  transform: scaleY(0); transform-origin: bottom; pointer-events: none;
  transition: transform .45s cubic-bezier(.77,0,.18,1);
}
.page-transition.is-active { transform: scaleY(1); transform-origin: top; }
/* مطبّقة على <main> وليس <body>: أي transform "مطبّق" فعليًا على body
   (بما فيه transform: translateY(0) بعد انتهاء الحركة بسبب fill-mode
   both) يجعل body نفسه "containing block" لكل عناصر position:fixed
   داخله (زر واتساب، المساعد الذكي، ستارة الانتقال) — فتصبح ثابتة بالنسبة
   لطول الصفحة كاملة بدل نافذة العرض، فتظهر عالقة قرب الأسفل فقط بدل أن
   تبقى عائمة أثناء التمرير. main.page-enter يعطي نفس تأثير الدخول
   التدريجي دون التأثير على تموضع تلك العناصر الثابتة. */
main.page-enter { animation: pageEnter .5s ease both; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- الهيرو العام ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(170deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-glow { position: absolute; width: 24rem; height: 24rem; border-radius: 999px; filter: blur(80px); pointer-events: none; background: var(--gold-tint); }
.hero-glow--a { top: -9rem; left: -9rem; }
.hero-glow--b { bottom: -8rem; right: -8rem; }
.hero-grid { position: relative; display: grid; gap: 3.25rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-text { text-align: center; }
@media (min-width: 960px) { .hero-text { text-align: right; } }
.hero-text h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.85rem); line-height: 1.35; margin-bottom: 1.25rem; }
.hero-text h1 span { color: var(--gold); }
.hero-text .lead { font-size: clamp(1.02rem, 1.8vw, 1.18rem); color: #c3c9d4; margin-bottom: 2.1rem; line-height: 1.9; }
.hero-ctas { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 960px) { .hero-ctas { justify-content: flex-start; } }

/* ---------- شارة الثقة ---------- */
.trust-bar { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (min-width: 700px) { .trust-bar { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 700; font-size: 0.85rem; color: #d7dbe3; }
@media (min-width: 960px) { .trust-item { justify-content: flex-start; } }
.trust-item svg { width: 1.3rem; height: 1.3rem; color: var(--gold); flex-shrink: 0; }

/* ---------- شارات عائمة + رسم بصري ---------- */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin-slow { animation: spin-slow 26s linear infinite; }
.float-badge {
  position: absolute; background: var(--surface); color: var(--navy); border-radius: 0.9rem; box-shadow: var(--shadow-lg);
  padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.82rem; animation: floatY 4.5s ease-in-out infinite;
}
.float-badge b { color: var(--gold); font-size: 1.05rem; }
.float-badge.d1 { animation-delay: .8s; }
.float-badge.d2 { animation-delay: 1.6s; }

/* ---------- عدّادات متحركة ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; text-align: center; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item .stat-num { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat-item .stat-label { color: var(--text-muted); font-weight: 700; font-size: 0.88rem; margin-top: 0.35rem; }
.section--navy .stat-item .stat-label { color: #c3c9d4; }

/* ---------- شبكة الأقسام/الخدمات ---------- */
.pillar-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
@media (min-width: 700px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 2rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; height: 100%;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-card__icon {
  width: 3.25rem; height: 3.25rem; border-radius: 0.9rem; background: var(--gold-tint); color: var(--gold);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.pillar-card__icon svg { width: 1.65rem; height: 1.65rem; }
.pillar-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.pillar-card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 1.25rem; flex: 1; }
.pillar-card__link { font-weight: 800; color: var(--gold); font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.pillar-card__link svg { width: 1rem; height: 1rem; transition: transform .15s; }
.pillar-card:hover .pillar-card__link svg { transform: translateX(-4px); }

/* ---------- خطوات العمل (Process) ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.5rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm); }
.step__num { width: 2.6rem; height: 2.6rem; border-radius: 999px; background: var(--navy); color: var(--gold); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.05rem; }
.step h4 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- بطاقات الأسعار ---------- */
.pricing-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pricing-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pricing-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 2.1rem; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card--popular { border: 2px solid var(--gold); }
.price-card__badge { position: absolute; top: -0.9rem; right: 2rem; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 0.78rem; padding: 0.3rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.price-card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.price-card .tagline { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.94rem; }
.price-row { display: flex; align-items: flex-end; gap: 0.65rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.price-new { font-size: 2rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.price-old { font-size: 1.02rem; color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; margin-bottom: 0.2rem; }
.price-badge { background: var(--red-tint); color: var(--red); font-weight: 800; font-size: 0.7rem; padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.2rem; }
.price-card__list { flex: 1; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.5rem; }
.price-card__list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.93rem; }
.price-card__list svg { width: 1.1rem; height: 1.1rem; color: var(--gold); margin-top: 0.2rem; flex-shrink: 0; }
.price-card__hook { background: var(--gold-tint); border: 1px solid var(--gold); color: var(--text); font-weight: 700; text-align: center; border-radius: 0.6rem; padding: 0.75rem; margin-bottom: 1.4rem; font-size: 0.88rem; }
.gift-box { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--gold-tint), transparent); border: 2px dashed var(--gold); border-radius: 0.85rem; padding: 1rem; margin-bottom: 1.4rem; }
.gift-box__tag { position: absolute; top: -0.5rem; left: -0.5rem; background: var(--gold); color: var(--navy); font-size: 0.68rem; font-weight: 800; padding: 0.3rem 0.7rem; border-radius: 999px; box-shadow: var(--shadow-sm); transform: rotate(-6deg); }
.gift-box__title { font-weight: 800; margin-bottom: 0.3rem; padding-left: 1.5rem; }
.gift-box__desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }

/* ---------- شريط الشعارات (Marquee) ---------- */
.marquee-wrap { background: var(--surface); padding: 2.5rem 0; }
.marquee-wrap .marquee-label { text-align: center; color: var(--text-muted); font-weight: 700; font-size: 0.94rem; margin-bottom: 1.2rem; }
.marquee-mask { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 1.2rem; padding: 0 0.75rem; animation: marqueeScroll 26s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand-chip { flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; background: var(--bg); border: 1px solid var(--border); border-radius: 0.85rem; padding: 0.85rem 1.4rem; font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.mc-dots { display: inline-flex; align-items: center; margin-left: 0.25rem; }
.mc-dots span { width: 1.1rem; height: 1.1rem; border-radius: 999px; display: inline-block; }
.mc-dots span:first-child { background: #EB001B; }
.mc-dots span:last-child { background: #F79E1B; margin-right: -0.42rem; mix-blend-mode: multiply; }

/* ---------- جدول المقارنة ---------- */
.compare-wrap { overflow-x: auto; border-radius: 1.1rem; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
table.compare { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--surface); }
table.compare thead tr { background: var(--navy); color: #fff; }
table.compare th { padding: 1rem 1.25rem; font-size: 0.9rem; text-align: right; }
table.compare th.us { color: var(--gold); font-weight: 800; }
table.compare th.them { color: #94a3b8; }
table.compare td { padding: 1rem 1.25rem; border-top: 1px solid var(--border); font-weight: 600; font-size: 0.9rem; }
table.compare tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }
td.center { text-align: center; }
.tick { color: var(--green); font-size: 1.15rem; }
.cross { color: var(--red); font-size: 1.15rem; }
.muted-note { color: var(--text-muted); font-size: 0.78rem; }

/* ---------- بطاقات المشاريع/المعرض ---------- */
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display:flex; flex-direction:column; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card__visual { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy), var(--navy-light)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.project-card__visual svg { width: 55%; position: relative; z-index: 1; }
.project-card__body { padding: 1.6rem; display:flex; flex-direction:column; flex:1; }
.project-card__tag { display: inline-block; background: var(--gold-tint); color: var(--gold); font-weight: 800; font-size: 0.72rem; padding: 0.28rem 0.75rem; border-radius: 999px; margin-bottom: 0.8rem; align-self: flex-start; }
.project-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.project-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; flex: 1; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.project-card__meta span { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.76rem; font-weight: 700; color: var(--text-muted); }

/* ---------- بطاقات المنهج (Courses) ---------- */
.curriculum { display: flex; flex-direction: column; gap: 0.75rem; }
.curriculum details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem 1.25rem;
}
.curriculum summary { cursor: pointer; font-weight: 800; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; font-weight: 800; transition: transform .2s; }
.curriculum details[open] summary::after { content: '−'; }
.curriculum .curriculum-body { padding-top: 0.85rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.9; }

/* ---------- نموذج/حقول ---------- */
.form-card { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.5rem; font-size: 0.93rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.8rem 1rem; background: var(--surface);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); outline: none; }
.field textarea { resize: vertical; min-height: 5.5rem; }
.form-status { text-align: center; font-size: 0.88rem; color: var(--text-muted); }
.form-status.is-hidden { display: none; }
.consult-link { display: block; text-align: center; font-size: 0.88rem; font-weight: 700; color: var(--text-muted); text-decoration: underline dotted; }
.consult-link:hover { color: var(--gold); }

/* ---------- الفوتر ---------- */
.site-footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); padding: 3.5rem 0 2rem; }
.footer-top { display: grid; gap: 2.25rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-brand img { width: 2rem; height: 2rem; }
.footer-brand span { color: #fff; font-size: 1.08rem; font-weight: 800; }
.footer-brand span b { color: var(--gold); font-weight: 800; }
.footer-col p { color: #9aa2b1; font-size: 0.88rem; line-height: 1.85; }
.footer-col h4 { color: #fff; font-size: 0.96rem; margin-bottom: 0.9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul li { color: #9aa2b1; font-size: 0.88rem; }
.footer-col ul a { color: #9aa2b1; transition: color .15s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: center; text-align: center; color: #7c8494; font-size: 0.82rem; }
@media (min-width: 700px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: right; } }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-legal a:hover { color: var(--gold); }

/* ---------- زر واتساب العائم ---------- */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; width: 3.75rem; height: 3.75rem; border-radius: 999px;
  background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  animation: waPulse 2.2s infinite;
}
.whatsapp-float:hover { background: var(--whatsapp-dark); }
.whatsapp-float svg { width: 1.9rem; height: 1.9rem; }
@keyframes waPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ---------- المساعد الذكي (Chatbot) ---------- */
.chatbot-float {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 90; width: 3.75rem; height: 3.75rem; border-radius: 999px;
  background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold); transition: transform .2s ease;
}
.chatbot-float:hover { transform: scale(1.06); }
.chatbot-float .chatbot-dot {
  position: absolute; top: -2px; left: -2px; width: 0.9rem; height: 0.9rem; border-radius: 999px; background: var(--green);
  border: 2px solid var(--surface); animation: waPulse 2.2s infinite;
}

/* شخصية الروبوت المتحركة */
.robot-icon { width: 2.05rem; height: 2.05rem; overflow: visible; }
@keyframes robotBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.robot-icon__body { animation: robotBob 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes robotBlink { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.15); } }
.robot-icon__eye { animation: robotBlink 4.5s ease-in-out infinite; transform-origin: center; }
.robot-icon__eye--l { animation-delay: 0s; }
.robot-icon__eye--r { animation-delay: 0s; }
@keyframes robotAntenna { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(1.25); } }
.robot-icon__antenna-dot { animation: robotAntenna 1.6s ease-in-out infinite; transform-origin: center; }

.chatbot-panel {
  position: fixed; bottom: 6rem; left: 1.5rem; z-index: 95; width: min(22rem, calc(100vw - 2rem)); max-height: min(32rem, calc(100vh - 8rem));
  background: var(--surface); border-radius: 1.1rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  display: none; flex-direction: column; overflow: hidden;
}
.chatbot-panel.is-open { display: flex; }
.chatbot-panel__header {
  background: var(--navy); color: #fff; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.chatbot-panel__header h4 { color: #fff; font-size: 0.98rem; margin: 0; }
.chatbot-panel__header p { color: #c3c9d4; font-size: 0.74rem; margin: 0.15rem 0 0; }
.chatbot-panel__close { color: #c3c9d4; font-size: 1.4rem; line-height: 1; }
.chatbot-panel__close:hover { color: #fff; }

.chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem 1rem 0.5rem; display: flex; flex-direction: column; gap: 0.65rem; }
.chatbot-msg { max-width: 85%; padding: 0.65rem 0.9rem; border-radius: 0.85rem; font-size: 0.88rem; line-height: 1.7; }
.chatbot-msg--bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); border-bottom-left-radius: 0.25rem; }
.chatbot-msg--user { align-self: flex-end; background: var(--gold); color: var(--navy); font-weight: 700; border-bottom-right-radius: 0.25rem; }
.chatbot-msg a { color: var(--gold); font-weight: 800; text-decoration: underline; }
.chatbot-msg--bot .chatbot-msg-cta { margin-top: 0.6rem; display: inline-flex; }

.chatbot-typing { align-self: flex-start; display: flex; gap: 0.3rem; padding: 0.65rem 0.9rem; }
.chatbot-typing span { width: 0.4rem; height: 0.4rem; border-radius: 999px; background: var(--text-muted); animation: chatTyping 1.2s infinite ease-in-out; }
.chatbot-typing span:nth-child(2) { animation-delay: .15s; }
.chatbot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTyping { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chatbot-quick { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.25rem 1rem 0.85rem; }
.chatbot-quick button {
  background: var(--gold-tint); color: var(--gold); font-weight: 700; font-size: 0.78rem; padding: 0.4rem 0.85rem; border-radius: 999px;
  transition: background .15s;
}
.chatbot-quick button:hover { background: var(--gold); color: var(--navy); }

.chatbot-panel__form { display: flex; gap: 0.5rem; padding: 0.85rem; border-top: 1px solid var(--border); }
.chatbot-panel__form input {
  flex: 1; border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.6rem 0.85rem; font-size: 0.88rem; background: var(--surface);
}
.chatbot-panel__form input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-tint); }
.chatbot-panel__form button {
  background: var(--navy); color: #fff; border-radius: 0.6rem; padding: 0 1rem; font-weight: 800; flex-shrink: 0;
}
.chatbot-panel__form button:hover { background: var(--navy-light); }

@media (max-width: 480px) {
  .chatbot-panel { left: 0.75rem; bottom: 5.5rem; }
  .chatbot-float { left: 0.9rem; }
}

/* ---------- أزرار واتساب داخل الأقسام ---------- */
.section-wa {
  display: inline-flex; align-items: center; gap: 0.55rem; background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.4);
  color: var(--green); font-weight: 800; font-size: 0.88rem; padding: 0.65rem 1.25rem; border-radius: 999px; transition: background .15s, transform .15s;
}
.section-wa:hover { background: rgba(37,211,102,0.18); transform: translateY(-2px); }
.section-wa svg { width: 1.15rem; height: 1.15rem; }

/* ---------- ظهور تدريجي عند التمرير ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1.is-visible { transition-delay: .1s; }
.reveal-d2.is-visible { transition-delay: .2s; }
.reveal-d3.is-visible { transition-delay: .3s; }

/* ---------- شارة "قريبًا" ---------- */
.soon-badge { background: var(--gold-tint); color: var(--gold); font-weight: 800; font-size: 0.72rem; padding: 0.25rem 0.7rem; border-radius: 999px; }

/* ---------- أدوات مساعدة ---------- */
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }
.mt-lg { margin-top: clamp(2rem, 4vw, 3.5rem); }
