/* تيقن: طبقة التفاعلات (الحركة فقط، لا تغيّر التصميم).
   كل شيء هنا يعمل فقط حين يضيف interactions.js الصنف html.ix، فالصفحة بدون جافاسكربت تظهر كاملة.
   تحت prefers-reduced-motion لا يُضاف الصنف أصلًا. */

:root { --ix-ease: cubic-bezier(.22, 1, .36, 1); }

/* 1) الظهور عند الوصول للقسم: مرة واحدة، صعود خفيف */
html.ix .ix-r { opacity: 0; transform: translateY(12px); }
html.ix .ix-r.ix-in { opacity: 1; transform: none; transition: opacity .5s var(--ix-ease), transform .5s var(--ix-ease); transition-delay: var(--ix-d, 0ms); }
html.ix .ix-r.ix-now { transition: none; }

/* 2) دخول الهيرو عند فتح الصفحة */
html.ix .ix-h { opacity: 0; transform: translateY(12px); }
html.ix .ix-h.ix-in { opacity: 1; transform: none; transition: opacity .5s var(--ix-ease), transform .5s var(--ix-ease); transition-delay: var(--ix-d, 0ms); }
html.ix .hero-stage.ix-h { transform: scale(.96); }
html.ix .hero-stage.ix-h.ix-in { transform: none; transition-duration: .7s; }

/* 3) الأزرار: ضغطة، وسهم يتحرك باتجاه القراءة، ولمعة على الزر الأساسي */
html.ix :is(.cta-ice, .cta-navy, .cta-outline, .cta-line) { transition: transform .18s var(--ix-ease), background .2s, color .2s, border-color .2s; }
html.ix :is(.cta-ice, .cta-navy, .cta-outline, .cta-line):active { transform: scale(.97); }
html.ix :is(.cta-ice, .cta-navy, .cta-outline, .cta-line) svg { transition: transform .3s var(--ix-ease); }
@media (hover: hover) and (pointer: fine) {
  html.ix :is(.cta-ice, .cta-navy, .cta-outline, .cta-line):hover svg { transform: translateX(-4px); }
  html.ix[dir="ltr"] :is(.cta-ice, .cta-navy, .cta-outline, .cta-line):hover svg { transform: translateX(4px); }
}
html.ix .cta-ice { position: relative; overflow: hidden; isolation: isolate; }
html.ix .cta-ice::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .8s var(--ix-ease);
}
@media (hover: hover) and (pointer: fine) { html.ix .cta-ice:hover::after { transform: translateX(-120%); } }
html.ix[dir="ltr"] .cta-ice::after { transform: translateX(-120%); }
@media (hover: hover) and (pointer: fine) { html.ix[dir="ltr"] .cta-ice:hover::after { transform: translateX(120%); } }

/* 4) ضوء يتبع المؤشر على الكروت: طبقة تحت المحتوى، بلا overflow ولا تغيير لموضع العناصر الداخلية
   (أيقونة الكارت فوق حافته تبقى ظاهرة كما هي) */
html.ix .ix-glow { isolation: isolate; }
html.ix .ix-glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(120, 203, 232, .2), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
html.ix .ix-glow:hover::before { opacity: 1; }

/* شريط القطاعات: صف يتحرك ببطء بلا نهاية، يقف عند مرور المؤشر.
   بدون جافاسكربت أو مع تقليل الحركة: القائمة كاملة كما هي في أسطر. */
.ix-strip { flex-wrap: nowrap !important; }
.ix-marq { flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ix-track { display: flex; gap: 14px 30px; width: max-content; animation: ix-marq 70s linear infinite; }
.ix-track > * { flex: none; white-space: nowrap; }
.ix-marq:hover .ix-track { animation-play-state: paused; }
@keyframes ix-marq { to { transform: translateX(50%); } }
html[dir="ltr"] .ix-track { animation-name: ix-marq-ltr; }
@keyframes ix-marq-ltr { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .ix-strip { flex-wrap: wrap !important; }
  .ix-marq { flex-basis: 100%; }
  .ix-track { animation-duration: 55s; }
}

/* 5) خريطة التغطية: النقاط تظهر واحدة وراء الأخرى */
html.ix .ix-pin { transform-box: fill-box; transform-origin: center; transform: scale(0); }
html.ix .ix-pin.ix-in { transform: none; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); transition-delay: var(--ix-d, 0ms); }
html.ix .ix-pin.ix-now { transition: none; }

/* 6) لوحة المنصة: منحنى يُرسم، وصف جديد ينزلق، وإشعار حي */
html.ix .ix-area { opacity: 0; transition: opacity 1s var(--ix-ease) .6s; }
html.ix .ix-area.ix-in { opacity: 1; }
.ix-row-new { animation: ix-row .7s var(--ix-ease); }
@keyframes ix-row { from { opacity: 0; transform: translateY(-12px); background: #E3F1F8; } to { opacity: 1; transform: none; } }
.ix-toast {
  position: absolute; z-index: 5; inset-inline-start: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px;
  background: #14283F; color: #F7F3EA; border-radius: 16px; padding: 12px 16px 12px 18px; font-size: 13px; line-height: 1.5;
  box-shadow: 0 18px 40px rgba(20, 40, 63, .28); opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none;
  transition: opacity .45s var(--ix-ease), transform .45s var(--ix-ease); max-width: calc(100% - 48px);
}
.ix-toast.ix-show { opacity: 1; transform: none; }
.ix-toast b { display: block; font-size: 14px; }
.ix-toast span.ix-id { font-family: 'Manrope', sans-serif; direction: ltr; unicode-bidi: isolate; color: #78CBE8; }
.ix-toast i { width: 30px; height: 30px; border-radius: 10px; background: rgba(120, 203, 232, .18); display: grid; place-items: center; flex: none; }
.ix-ring-pop { animation: ix-pop .6s var(--ix-ease); }
@keyframes ix-pop { 40% { transform: scale(1.06); } }

/* الإنجليزي: بطاقة «Under one roof» أعرض من العربي (النص أطول) فكانت تغطي وجه الصورة.
   تُسحب للخارج ناحية الفراغ اللي جنب الصورة، وتُضيَّق، والبطاقتان الأخريان كما في التصميم. */
@media (min-width: 900px) {
  html[lang="en"] .hero-stage .hero-pill:nth-of-type(2) { left: -60px !important; top: 26px !important; max-width: 236px; }
}

@media print { html.ix .ix-r, html.ix .ix-h, html.ix .ix-pin, html.ix .ix-area { opacity: 1 !important; transform: none !important; } }
