/* ============================================================
   Hero — جهاز التسكين الذاتي · City2Day
   ملف: /Assets/css/hero-kiosk.css
   كل الكلاسات بادئة khx- عشان ماتتعارضش مع باقي الموقع
   الألوان مأخوذة Sample من فريمات الفيديو نفسه للدمج الكامل
   ============================================================ */

.khx-hero {
    --khx-bg-0: #161f35;          /* لون زوايا الفيديو بالظبط */
    --khx-bg-1: #253355;          /* درجة الوسط الأفتح */
    --khx-glow: 91, 174, 226;     /* لون توهج الجهاز rgb */
    --khx-accent: #14b8a6;        /* CTA تيل */
    --khx-accent-dark: #0E9488;
    --khx-accent-2: #35c4d7;
    --khx-text: #F2F7FA;
    --khx-text-dim: rgba(226, 238, 245, .68);
    --khx-text-faint: rgba(226, 238, 245, .45);
    --khx-radius: 14px;

    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    isolation: isolate;
    overflow: hidden;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    color: var(--khx-text);
    background:
        radial-gradient(ellipse 90% 70% at 26% 46%, rgba(var(--khx-glow), .10), transparent 62%),
        radial-gradient(ellipse 70% 55% at 78% 30%, rgba(var(--khx-glow), .05), transparent 65%),
        linear-gradient(180deg, var(--khx-bg-0) 0%, var(--khx-bg-1) 55%, var(--khx-bg-0) 100%);
}

.khx-inner {
    max-width: 1360px;
    min-height: inherit;
    margin: 0 auto;
    padding: 90px 64px 40px;
    display: grid;
    grid-template-columns: 1.06fr .94fr;   /* RTL: النص يمين والجهاز شمال */
    align-items: center;
    gap: 24px;
}

/* ============ جانب النص ============ */
.khx-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(var(--khx-glow), .28);
    background: rgba(var(--khx-glow), .07);
    color: #d9f6ff;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 26px;
}
.khx-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--khx-accent-2);
    box-shadow: 0 0 10px 2px rgba(var(--khx-glow), .7);
}
.khx-title {
    font-size: clamp(34px, 3.6vw, 54px);
    line-height: 1.32;
    font-weight: 800;
    margin: 0 0 22px;
}
.khx-hl {
    font-weight: 800;
    background: linear-gradient(90deg, #7fe3f0 0%, #35c4d7 45%, #0E9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.khx-sub {
    font-size: clamp(16px, 1.35vw, 19.5px);
    line-height: 1.95;
    font-weight: 400;
    color: var(--khx-text-dim);
    max-width: 560px;
    margin: 0 0 38px;
}
.khx-ctas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 46px;
}
.khx-btn-primary {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(135deg, var(--khx-accent), var(--khx-accent-dark));
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 16px 40px;
    border-radius: var(--khx-radius);
    box-shadow: 0 12px 34px -10px rgba(20, 184, 166, .55);
    transition: transform .25s ease, box-shadow .25s ease;
}
.khx-btn-primary:hover,
.khx-btn-primary:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(20, 184, 166, .7);
}
.khx-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #eafcff;
    font-size: 17px;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: var(--khx-radius);
    border: 1px solid rgba(var(--khx-glow), .30);
    background: rgba(var(--khx-glow), .05);
    transition: background .25s ease, border-color .25s ease;
}
.khx-btn-ghost:hover,
.khx-btn-ghost:focus-visible {
    color: #fff;
    background: rgba(var(--khx-glow), .12);
    border-color: rgba(var(--khx-glow), .5);
}
.khx-btn-primary:focus-visible,
.khx-btn-ghost:focus-visible {
    outline: 2px solid var(--khx-accent-2);
    outline-offset: 3px;
}
.khx-play {
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(var(--khx-glow), .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #aef0ff;
}
.khx-trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}
.khx-trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--khx-text-faint);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.khx-trust-item svg { flex: none; }
.khx-trust-sep { width: 1px; height: 22px; background: rgba(255,255,255,.12); }

/* ============ جانب الجهاز ============ */
.khx-stage {
    position: relative;
    height: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* الهالة بتكمّل توهج الفيديو خارج حدوده — وبتتنفس بعد ما الفيديو يخلص */
.khx-halo {
    position: absolute;
    width: 150%; height: 110%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(ellipse 46% 42% at 50% 46%, rgba(var(--khx-glow), .17), transparent 68%),
        radial-gradient(ellipse 60% 18% at 50% 88%, rgba(var(--khx-glow), .12), transparent 70%);
    z-index: 1;
    pointer-events: none;
}
.khx-media {
    position: relative;
    z-index: 2;
    height: min(88vh, 820px);
    aspect-ratio: 2 / 3;
    max-width: 100%;
    /* دوبان حواف الفيديو المستطيلة في خلفية السيكشن */
    -webkit-mask-image:
        linear-gradient(to left,  transparent 0%, #000 12%, #000 88%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 8%, #000 95%, transparent 100%);
    mask-image:
        linear-gradient(to left,  transparent 0%, #000 12%, #000 88%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 8%, #000 95%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
.khx-video,
.khx-still {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* الافتراضي: الفيديو ظاهر وبيلف باستمرار (autoplay + loop من غير أي شروط) */
.khx-video { opacity: 1; }
.khx-still { opacity: 0; transition: opacity .45s ease; pointer-events: none; }
/* لو الفيديو فشل أو المتصفح منعه: الـ JS يضيف khx-fallback فتظهر الصورة الثابتة */
.khx-hero.khx-fallback .khx-video { opacity: 0; }
.khx-hero.khx-fallback .khx-still { opacity: 1; }
.khx-floor {
    position: absolute;
    z-index: 1;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%; height: 60px;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(var(--khx-glow), .20), transparent 70%);
    filter: blur(6px);
}

/* تلميح السكرول */
.khx-scroll-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: var(--khx-text-faint);
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.khx-scroll-hint .khx-line {
    width: 1px; height: 26px;
    background: linear-gradient(180deg, rgba(var(--khx-glow), .5), transparent);
}

/* ============ حركة الهالة (ديسكتوب فقط) ============ */
@media (min-width: 992px) {
    @media (prefers-reduced-motion: no-preference) {
        .khx-halo { animation: khxBreathe 6s ease-in-out infinite alternate; }
    }
}
@keyframes khxBreathe {
    from { opacity: .8; }
    to   { opacity: 1; }
}

/* ============ Responsive ============ */
@media (max-width: 991.98px) {
    .khx-inner {
        grid-template-columns: 1fr;
        padding: 80px 22px 40px;
        gap: 8px;
        text-align: center;
    }
    .khx-copy { order: 1; }
    .khx-stage { order: 2; min-height: 0; }
    .khx-sub { margin-left: auto; margin-right: auto; }
    .khx-ctas { justify-content: center; }
    .khx-trust { justify-content: center; gap: 12px; }
    .khx-trust-sep { display: none; }
    .khx-media { height: min(58vh, 560px); }
    .khx-scroll-hint { display: none; }
}
@media (max-width: 575.98px) {
    .khx-trust { flex-direction: column; gap: 8px; }
    .khx-btn-primary, .khx-btn-ghost { width: 100%; justify-content: center; text-align: center; }
}

/* تقليل الحركة: نوقف تنفّس الهالة فقط — الفيديو حركة ناعمة ومطلوب يفضل شغال */
@media (prefers-reduced-motion: reduce) {
    .khx-halo { animation: none; }
}

/* النسخة الإنجليزية: خط Montserrat */
body.lang-en .khx-hero { font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; }

/* Arabic homepage: full-width hotel photograph. Legacy English styles stay above. */
:root {
    --khx-hotel-bg: #101B2C;
    --khx-hotel-white: #FFFFFF;
    --khx-hotel-copy: #E1E7EF;
    --khx-hotel-muted: #C8D4E2;
    --khx-hotel-blue: #1E3C96;
    --khx-hotel-blue-hover: #294DB2;
    --khx-hotel-sky: #8CD7FF;
    --khx-hotel-line: rgba(255, 255, 255, .22);
    --khx-hotel-radius: 12px;
    --khx-hotel-ease: cubic-bezier(.23, 1, .32, 1);
}
.khx-hero.khx-hero--hotel {
    background: var(--khx-hotel-bg);
    color: var(--khx-hotel-white);
    min-height: 0;
    isolation: isolate;
    overflow: hidden;
}
.khx-hero--hotel .khx-hotel-scene {
    position: absolute;
    inset: 0 0 auto;
    height: 540px;
    overflow: hidden;
    display: block;
    z-index: 0;
    pointer-events: none;
}
.khx-hero--hotel .khx-hotel-scene img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}
.khx-hero--hotel .khx-hotel-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(16,27,44,.02) 0, rgba(16,27,44,.04) 180px, rgba(16,27,44,.52) 315px, var(--khx-hotel-bg) 515px);
}
.khx-hero--hotel .khx-inner {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: 1360px;
    min-height: 0;
    margin: 0 auto;
    padding: 355px 22px 34px;
    text-align: start;
}
.khx-hero--hotel .khx-copy { min-width: 0; }
.khx-hero--hotel .khx-badge {
    display: inline-flex;
    gap: 9px;
    max-width: 100%;
    padding: 0;
    margin-bottom: 18px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--khx-hotel-white);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
}
.khx-hero--hotel .khx-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    box-shadow: none;
    background: var(--khx-hotel-sky);
}
.khx-hero--hotel .khx-title {
    color: var(--khx-hotel-white);
    font-size: clamp(29px, 7.4vw, 42px);
    font-weight: 800;
    line-height: 1.58;
    margin: 0 0 16px;
    letter-spacing: 0;
}
.khx-hero--hotel .khx-hl {
    color: var(--khx-hotel-white);
    background: none;
    -webkit-text-fill-color: currentColor;
}
.khx-hero--hotel .khx-sub {
    max-width: 500px;
    color: var(--khx-hotel-copy);
    font-size: 15px;
    line-height: 1.95;
    margin: 0 0 26px;
}
.khx-hero--hotel .khx-ctas {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    margin: 0 0 26px;
    gap: 12px;
}
.khx-hero--hotel .khx-btn-primary,
.khx-hero--hotel .khx-btn-ghost {
    display: inline-flex;
    width: auto;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--khx-hotel-radius);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 700;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms var(--khx-hotel-ease);
}
.khx-hero--hotel .khx-btn-primary {
    background: var(--khx-hotel-blue);
    border-color: rgba(255,255,255,.18);
    color: var(--khx-hotel-white);
}
.khx-hero--hotel .khx-btn-ghost {
    background: rgba(16,27,44,.28);
    border-color: rgba(255,255,255,.5);
    color: var(--khx-hotel-white);
}
.khx-hero--hotel .khx-ctas svg { flex-shrink: 0; }
.khx-hero--hotel .khx-btn-primary:hover {
    color: var(--khx-hotel-white);
    background: var(--khx-hotel-blue-hover);
    transform: translateY(-1px);
    box-shadow: none;
}
.khx-hero--hotel .khx-btn-ghost:hover {
    color: var(--khx-hotel-white);
    background: rgba(255,255,255,.13);
    border-color: var(--khx-hotel-white);
}
.khx-hero--hotel .khx-btn-primary:focus-visible,
.khx-hero--hotel .khx-btn-ghost:focus-visible {
    outline: 3px solid var(--khx-hotel-white);
    outline-offset: 4px;
    color: var(--khx-hotel-white);
    transform: none;
    box-shadow: none;
}
.khx-hero--hotel .khx-btn-primary:active,
.khx-hero--hotel .khx-btn-ghost:active { transform: translateY(1px); }
.khx-hero--hotel .khx-trust {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 14px 20px;
    padding-top: 20px;
    border-top: 1px solid var(--khx-hotel-line);
}
.khx-hero--hotel .khx-trust-item {
    color: var(--khx-hotel-muted);
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    white-space: normal;
}
.khx-hero--hotel .khx-trust-item svg { color: var(--khx-hotel-sky); }
@media (max-width: 575.98px) {
    .khx-hero--hotel .khx-ctas { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .khx-hero--hotel .khx-btn-primary,
    .khx-hero--hotel .khx-btn-ghost { padding-inline: 10px; font-size: 13px; gap: 8px; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
    .khx-hero--hotel .khx-inner { padding: 390px 40px 48px; }
    .khx-hero--hotel .khx-hotel-scene { height: 620px; }
    .khx-hero--hotel .khx-hotel-scene img { object-position: center 20%; }
}
@media (min-width: 768px) {
    .khx-hero.khx-hero--hotel { min-height: 620px; }
    .khx-hero--hotel .khx-hotel-scene { height: 100%; left: 0; right: auto; width: 100%; }
    .khx-hero--hotel .khx-hotel-scene img { position: absolute; left: min(0px, calc(50vw - 660px)); width: auto; max-width: none; height: 100%; object-fit: contain; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%); mask-image: linear-gradient(90deg, #000 70%, transparent 100%); }
    .khx-hero--hotel .khx-hotel-shade {
        background: linear-gradient(270deg, rgba(16,27,44,1) 0%, rgba(16,27,44,.93) 23%, rgba(16,27,44,.65) 42%, rgba(16,27,44,.06) 66%, rgba(16,27,44,.02) 100%);
    }
    .khx-hero--hotel .khx-inner {
        display: flex;
        align-items: center;
        min-height: 620px;
        padding: 48px 32px;
    }
    .khx-hero--hotel .khx-copy { width: 48%; margin-inline-end: auto; }
    .khx-hero--hotel .khx-title { font-size: clamp(32px, 3.7vw, 48px); line-height: 1.6; }
    .khx-hero--hotel .khx-badge { font-size: 13px; margin-bottom: 22px; }
    .khx-hero--hotel .khx-sub { font-size: 16px; margin-bottom: 30px; }
    .khx-hero--hotel .khx-ctas { margin-bottom: 32px; }
}
@media (min-width: 992px) {
    .khx-hero.khx-hero--hotel { min-height: clamp(640px, 80svh, 780px); }
    .khx-hero--hotel .khx-inner { min-height: clamp(640px, 80svh, 780px); padding: 60px 44px; }
    .khx-hero--hotel .khx-copy { width: 44%; }

    .khx-hero--hotel .khx-title { font-size: clamp(38px, 3.55vw, 54px); }
    .khx-hero--hotel .khx-sub { font-size: 17px; }
    .khx-hero--hotel .khx-badge { font-size: 14px; }
    .khx-hero--hotel .khx-trust-item { font-size: 12px; }
}
@media (min-width: 1600px) {
    .khx-hero--hotel .khx-hotel-scene { left: 0; }
    .khx-hero--hotel .khx-copy { width: 45%; }
    .khx-hero--hotel .khx-title { font-size: 54px; }
    .khx-hero--hotel .khx-sub { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .khx-hero--hotel .khx-btn-primary,
    .khx-hero--hotel .khx-btn-ghost { transition: none; transform: none; }
}
