/* ============================================================
   JOHNSON — نظام التصميم "حافة الفيلم"
   الألوان مستمدة من الشعار ولوحة المحل: أحمر الفيلم، الحافة
   الفضية للشريط الشفاف، وأسود الليل.
   ============================================================ */

:root {
    /* --- الأسطح --- */
    --ink: #08090c;
    --ink-2: #0e1116;
    --ink-3: #161a21;
    --ink-4: #1e242d;

    /* --- أحمر الفيلم (من الشعار) --- */
    --red: #e31b18;
    --red-hot: #ff3b2f;
    --red-deep: #9c0f0d;
    --red-glow: rgba(227, 27, 24, 0.35);

    /* --- الحافة الفضية (انكسار الضوء على الشريط الشفاف) --- */
    --steel: #93b8dc;
    --steel-soft: rgba(147, 184, 220, 0.55);
    --steel-dim: rgba(147, 184, 220, 0.22);
    --steel-faint: rgba(147, 184, 220, 0.08);

    /* --- النص --- */
    --paper: #eef3f8;
    --text: #e4eaf1;
    --mute: #838e9c;
    --mute-2: #75808e;

    /* --- الحدود --- */
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.12);

    /* --- الخطوط --- */
    --font-display: 'Readex Pro', 'Tajawal', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
    --font-data: 'IBM Plex Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
    /* الوسوم الصغيرة: خط عربي كامل — الـMono يترك فراغات كلمات ضخمة في العربية */
    --font-label: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;

    /* --- الحركة --- */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 0.22s var(--ease);
    --t: 0.4s var(--ease);
    --t-slow: 0.75s var(--ease-out);

    /* --- الإيقاع --- */
    --gap: clamp(16px, 2vw, 24px);
    --section-y: clamp(72px, 9vw, 132px);
    --radius: 14px;
    --radius-lg: 20px;

    /* --- الهيرو: صورة ليلية للوضع الليلي وأخرى نهارية للفاتح --- */
    --hero-img: url('hero-night.jpg');
    --hero-bg: #08090c;
    --hero-bg-0: rgba(8, 9, 12, 0);
    --hero-fg: #eef3f8;
    --hero-fg-mute: #c3cdd9;
    --hero-accent: #93b8dc;
    --hero-line: rgba(255, 255, 255, 0.18);
    --hero-chip: rgba(8, 9, 12, 0.5);
    --hero-edge-core: #ffffff;
    --hero-scrim:
        linear-gradient(to top, var(--hero-bg) 4%, rgba(8, 9, 12, 0.94) 22%, rgba(8, 9, 12, 0.62) 44%, rgba(8, 9, 12, 0.12) 70%, rgba(8, 9, 12, 0.6) 100%);
    --hero-raw-filter: saturate(0.3) brightness(0.62) contrast(0.9);
    --hero-film-filter: saturate(1.2) contrast(1.14) brightness(0.95);

    --hero-ink: #08090c;
    --on-dark: #eef3f8;
    --on-dark-mute: #9aa6b4;
    --on-dark-steel: #93b8dc;
    --on-dark-line: rgba(255, 255, 255, 0.16);

    /* --- رموز تتبدّل بين الليلي والفاتح --- */
    --header-bg: rgba(8, 9, 12, 0.82);
    --overlay: rgba(4, 5, 7, 0.86);
    --overlay-soft: rgba(4, 5, 7, 0.7);
    --veil-card: rgba(14, 17, 22, 0.35);
    --shadow-card: 0 32px 60px -34px rgba(0, 0, 0, 0.95);
    --shadow-img: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
    --shadow-modal: 0 40px 90px -30px rgba(0, 0, 0, 1);
    --shadow-nav: -30px 0 70px -30px rgba(0, 0, 0, 1);
    --img-filter: saturate(0.8) brightness(0.78);
    --img-filter-hover: saturate(1.12) brightness(0.94);
    --work-filter: saturate(0.72) brightness(0.8);
    --work-filter-hover: saturate(1.1) brightness(1);
    --map-filter: saturate(0.7) brightness(0.74) contrast(1.04);

    /* توافق مع شاشة البداية القديمة (تبقى ليلية دائماً) */
    --dark-bg: #08090c;
    --light-bg: #0e1116;
    --primary-red: #e31b18;
    --primary-gold: #eef3f8;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.09);
    --text-primary: #e4eaf1;
    --text-secondary: #838e9c;
    --transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   الثيم الفاتح
   نفس الهوية: أحمر الفيلم + الحافة الفضية، لكن على ورق بارد
   بدل الأسود الليلي. الحافة الفضية تُعتم لتبقى مقروءة.
   ============================================================ */
[data-theme="light"] {
    --ink: #eff3f8;
    --ink-2: #ffffff;
    --ink-3: #f6f9fc;
    --ink-4: #e6ecf3;

    --red: #d1120f;
    --red-hot: #e31b18;
    --red-deep: #9c0f0d;
    --red-glow: rgba(209, 18, 15, 0.3);

    --steel: #2f6f9e;
    --steel-soft: rgba(47, 111, 158, 0.6);
    --steel-dim: rgba(47, 111, 158, 0.3);
    --steel-faint: rgba(47, 111, 158, 0.07);

    --paper: #0a0e13;
    --text: #1b232d;
    --mute: #56626f;
    --mute-2: #67717d;

    --line: rgba(10, 14, 19, 0.11);
    --line-2: rgba(10, 14, 19, 0.18);

    --header-bg: rgba(255, 255, 255, 0.86);
    --overlay: rgba(18, 26, 36, 0.62);
    --overlay-soft: rgba(18, 26, 36, 0.45);
    --veil-card: rgba(255, 255, 255, 0.4);

    --shadow-card: 0 24px 50px -30px rgba(16, 28, 44, 0.4);
    --shadow-img: 0 24px 55px -28px rgba(16, 28, 44, 0.35);
    --shadow-modal: 0 40px 90px -34px rgba(16, 28, 44, 0.45);
    --shadow-nav: -30px 0 70px -34px rgba(16, 28, 44, 0.32);

    /* الهيرو النهاري */
    --hero-img: url('hero-day.jpg');
    --hero-bg: #eff3f8;
    --hero-bg-0: rgba(239, 243, 248, 0);
    --hero-fg: #0a0e13;
    --hero-fg-mute: #35434f;
    --hero-accent: #1f5b86;
    --hero-line: rgba(10, 14, 19, 0.22);
    --hero-chip: rgba(255, 255, 255, 0.78);
    --hero-edge-core: #0a0e13;
    --hero-scrim:
        linear-gradient(to top, var(--hero-bg) 2%, rgba(239, 243, 248, 0.88) 15%, rgba(239, 243, 248, 0.42) 36%, rgba(239, 243, 248, 0.02) 60%, rgba(239, 243, 248, 0.28) 100%);
    --hero-raw-filter: saturate(0.25) brightness(0.95) contrast(0.85);
    --hero-film-filter: saturate(1.18) contrast(1.1) brightness(1.02);

    /* الصور لا تُعتَّم على خلفية فاتحة */
    --img-filter: saturate(0.95) brightness(0.97);
    --img-filter-hover: saturate(1.08) brightness(1.02);
    --work-filter: saturate(0.95) brightness(0.99);
    --work-filter-hover: saturate(1.08) brightness(1.02);
    --map-filter: none;

    /* شاشة البداية تبقى ليلية — الشعار أبيض ولا يظهر على خلفية فاتحة */
    --dark-bg: #08090c;
    --light-bg: #0e1116;
}

/* ===== إعادة الضبط ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--ink);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-locked {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

::selection {
    background: var(--red);
    color: #fff;
}

/* شريط التمرير */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--ink-4) transparent;
}

*::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: var(--ink-4);
    border-radius: 99px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--red-deep);
}

/* ============================================================
   شاشة البداية — «مرور ضوء»
   سيارة تمر ليلاً = شعاع ضوء يعبر السطح. الشعاع يكشف الشعار
   وهو يمر، ثم يختفي كل شيء. المدة الكاملة أقل من ثانية.
   ============================================================ */
#splash-screen {
    background: radial-gradient(125% 95% at 50% 46%, #12161d 0%, #08090c 58%, #050608 100%) !important;
    transition: opacity 0.23s ease, transform 0.23s ease;
}

#splash-screen.is-done {
    opacity: 0;
    transform: scale(1.025);
}

.splash-stage {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    text-align: center;
    padding-inline: 24px;
}

.splash-logo {
    width: clamp(92px, 21vw, 138px);
    height: auto;
    opacity: 0;
    transform: scale(0.93);
    animation: splashLogo 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.13s forwards;
}

.splash-word {
    margin-top: 15px;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 5vw, 2rem);
    font-weight: 700;
    line-height: 1;
    color: #eef3f8;
    opacity: 0;
    transform: translateY(9px);
    animation: splashRise 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.26s forwards;
}

.splash-tag {
    margin-top: 10px;
    font-family: var(--font-data);
    font-size: 0.6rem;
    letter-spacing: 0.26em;
    color: #93b8dc;
    opacity: 0;
    transform: translateY(6px);
    animation: splashRise 0.34s cubic-bezier(0.16, 1, 0.3, 1) 0.33s forwards;
}

/* خيط ضوئي أسفل الاسم يتمدّد */
.splash-line {
    margin-top: 16px;
    width: min(240px, 56vw);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(147, 184, 220, 0.55), transparent);
    transform: scaleX(0);
    animation: splashLine 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.24s forwards;
}

/* الشعاع: نواة بيضاء بذيل طويل — يعبر الشاشة من اليمين لليسار */
.splash-beam {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 3;
    width: 62vw;
    height: 2px;
    margin-top: -18px;
    background: linear-gradient(to left,
            transparent 0%,
            rgba(147, 184, 220, 0.28) 34%,
            rgba(255, 255, 255, 0.9) 78%,
            #ffffff 88%,
            transparent 100%);
    box-shadow: 0 0 30px 6px rgba(147, 184, 220, 0.35);
    transform: translate3d(115vw, 0, 0);
    animation: splashBeam 0.46s cubic-bezier(0.36, 0, 0.18, 1) 0.03s forwards;
}

/* الشعاع الخلفي الأحمر — الضوء الخلفي للسيارة */
.splash-beam--tail {
    width: 42vw;
    height: 1px;
    margin-top: 16px;
    background: linear-gradient(to left,
            transparent 0%,
            rgba(227, 27, 24, 0.45) 42%,
            #ff5a4f 88%,
            transparent 100%);
    box-shadow: 0 0 22px 5px rgba(227, 27, 24, 0.32);
    animation-delay: 0.12s;
    animation-duration: 0.42s;
}

@keyframes splashBeam {
    from {
        transform: translate3d(115vw, 0, 0);
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    to {
        transform: translate3d(-75vw, 0, 0);
        opacity: 0;
    }
}

@keyframes splashLogo {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splashRise {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes splashLine {
    to {
        transform: scaleX(1);
    }
}

/* تقليل الحركة: الشعار فقط بلا شعاع */
#splash-screen.is-still .splash-beam {
    display: none;
}

#splash-screen.is-still .splash-logo,
#splash-screen.is-still .splash-word,
#splash-screen.is-still .splash-tag {
    opacity: 1;
    transform: none;
    animation: none;
}

#splash-screen.is-still .splash-line {
    transform: scaleX(1);
    animation: none;
}

/* ===== الحاوية والأقسام ===== */
.container {
    width: min(1240px, 100% - clamp(32px, 6vw, 96px));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-y);
    position: relative;
}

/* الروابط الداخلية لا تختفي تحت الهيدر الثابت */
:where(section, .hero)[id] {
    scroll-margin-top: 84px;
}

/* ===== نظام العناوين ===== */
/* الشريط الأحمر تحت العنوان — مأخوذ من لوحة المحل نفسها */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-label);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--steel);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--steel-soft);
}

.section-head {
    margin-bottom: clamp(40px, 5vw, 68px);
    max-width: 62ch;
}

.section-head.is-centered {
    margin-inline: auto;
    text-align: center;
}

.section-head.is-centered .eyebrow::before {
    display: none;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.9rem, 4.4vw, 3.3rem);
    line-height: 1.22;
    letter-spacing: -0.01em;
    color: var(--paper);
    position: relative;
    padding-bottom: 20px;
}

/* الشريط الأحمر يُرسم عند الظهور */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    height: 3px;
    width: 84px;
    background: var(--red);
    border-radius: 2px;
    transform-origin: inline-start;
    transform: scaleX(0);
    transition: transform 0.85s var(--ease-out) 0.15s;
}

.section-head.is-centered .section-title::after {
    inset-inline-start: auto;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
}

.is-in .section-title::after,
.section-title.is-in::after {
    transform: scaleX(1);
}

.section-head.is-centered.is-in .section-title::after {
    transform: translateX(-50%) scaleX(1);
}

.section-sub {
    color: var(--mute);
    font-size: clamp(1rem, 1.4vw, 1.09rem);
    margin-top: 20px;
    line-height: 1.85;
}

/* ===== نظام الظهور عند التمرير ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal="edge"] {
    clip-path: inset(0 0 100% 0);
    opacity: 1;
    transform: none;
    transition: clip-path 1s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="edge"].is-in {
    clip-path: inset(0 0 0 0);
}

/* ===== الأزرار ===== */
.btn {
    --btn-bg: transparent;
    --btn-fg: var(--paper);
    --btn-line: var(--line-2);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 15px 30px;
    border-radius: 99px;
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-line);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t);
}

/* التعبئة تمسح من الحافة — نفس حركة تركيب الفيلم */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--btn-fill, var(--paper));
    transform: scaleX(0);
    transform-origin: inline-end;
    transition: transform 0.45s var(--ease-out);
}

.btn:hover::before,
.btn:focus-visible::before {
    transform: scaleX(1);
    transform-origin: inline-start;
}

.btn i {
    font-size: 1.05em;
    transition: transform var(--t-fast);
}

.btn:active {
    transform: translateY(1px);
}

/* أساسي — أحمر العلامة */
.btn-primary {
    --btn-bg: var(--red);
    --btn-fg: #fff;
    --btn-line: var(--red);
    --btn-fill: var(--red-hot);
    box-shadow: 0 10px 30px -12px var(--red-glow);
}

.btn-primary:hover {
    box-shadow: 0 16px 40px -12px var(--red-glow);
}

/* واتساب */
/* أخضر أغمق من أخضر واتساب الافتراضي: النص الأبيض عليه مقروء
   (تباين 5.2:1 بدل 2.0:1) مع بقائه أخضر واتساب المعروف */
.btn-whatsapp {
    --btn-bg: #0f7d3e;
    --btn-fg: #fff;
    --btn-line: #0f7d3e;
    --btn-fill: #0b6631;
    box-shadow: 0 10px 30px -12px rgba(15, 125, 62, 0.5);
}

/* تيك توك — ثانوي: لا ينافس واتساب والاتصال */
.btn-tiktok {
    --btn-bg: var(--ink-3);
    --btn-fg: var(--paper);
    --btn-line: var(--line-2);
    --btn-fill: var(--paper);
}

.btn-tiktok:hover {
    --btn-fg: var(--ink);
    border-color: var(--paper);
}

/* شبح — يُستخدم في الهيرو فقط، فوق صورة ليلية دائماً */
.btn-ghost {
    --btn-bg: transparent;
    --btn-fg: var(--hero-fg);
    --btn-line: var(--hero-line);
    --btn-fill: var(--hero-fg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    --btn-fg: var(--hero-bg);
    border-color: var(--hero-fg);
}

.btn-sm {
    padding: 11px 20px;
    font-size: 0.92rem;
}

/* ===== شريط تقدّم القراءة ===== */
.progress-bar {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: 2px;
    z-index: 1200;
    background: linear-gradient(to left, var(--red), var(--red-hot));
    transform: scaleX(var(--progress, 0));
    transform-origin: inline-start;
    pointer-events: none;
}

/* ===== الهيدر ===== */
.header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 1000;
    transition: background var(--t), border-color var(--t);
    border-bottom: 1px solid transparent;
}

.header::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, var(--hero-bg), transparent);
    opacity: 0.5;
    opacity: 1;
    transition: opacity var(--t);
    pointer-events: none;
}

.header.is-stuck {
    background: var(--header-bg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
}

.header.is-stuck::after {
    opacity: 0;
}

.header-container {
    width: min(1240px, 100% - clamp(24px, 5vw, 96px));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 14px;
    transition: padding var(--t);
}

.header.is-stuck .header-container {
    padding-block: 9px;
}

/* مهم: backdrop-filter يجعل الهيدر الإطار المرجعي لأي عنصر fixed بداخله،
   فتنحصر قائمة الجوال داخل ارتفاع الهيدر بدل الشاشة. نُطفئه أثناء الفتح. */
.header.is-menu-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--ink-2);
    border-bottom-color: var(--line);
}

.header.is-menu-open::after {
    opacity: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 46px;
    width: auto;
    transition: height var(--t), filter var(--t);
    filter: drop-shadow(0 0 18px rgba(227, 27, 24, 0.28));
}

.header.is-stuck .logo-img {
    height: 38px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.42rem;
    font-weight: 700;
    color: var(--paper);
    letter-spacing: -0.01em;
}

/* --- التنقل --- */
/* ترويسة اللوحة وذيلها للجوال فقط */
.nav-head,
.nav-foot {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.4vw, 20px);
}

.nav-list>li>a {
    position: relative;
    display: block;
    padding: 9px 4px;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--mute);
    transition: color var(--t-fast);
}

.nav-list>li>a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    inset-inline: 0;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: inline-end;
    transition: transform 0.35s var(--ease-out);
}

.nav-list>li>a:hover,
.nav-list>li>a.active {
    color: var(--paper);
}

.nav-list>li>a:hover::after,
.nav-list>li>a.active::after {
    transform: scaleX(1);
    transform-origin: inline-start;
}

.lang-nav-btn {
    font-family: var(--font-label);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 99px;
    border: 1px solid var(--line-2);
    color: var(--mute);
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.lang-nav-btn:hover {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--paper);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-tel {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-data);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    padding: 9px 16px;
    border-radius: 99px;
    border: 1px solid var(--line);
    transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.header-tel i {
    color: var(--red);
    font-size: 0.9em;
}

.header-tel:hover {
    border-color: var(--steel-dim);
    background: var(--steel-faint);
}

/* --- مبدّل الثيم --- */
.theme-toggle {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    color: var(--mute);
    font-size: 1rem;
    overflow: hidden;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.theme-toggle:hover {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--paper);
}

/* الشمس والقمر يتبادلان مكانهما بدورة قصيرة */
.theme-toggle i {
    position: absolute;
    transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}

.theme-toggle .icon-sun {
    transform: translateY(120%) rotate(-70deg);
    opacity: 0;
}

.theme-toggle .icon-moon {
    transform: none;
    opacity: 1;
}

[data-theme="light"] .theme-toggle .icon-sun {
    transform: none;
    opacity: 1;
}

[data-theme="light"] .theme-toggle .icon-moon {
    transform: translateY(-120%) rotate(70deg);
    opacity: 0;
}

/* --- زر القائمة --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    cursor: pointer;
    z-index: 1002;
    transition: border-color var(--t-fast);
}

.hamburger span {
    display: block;
    width: 17px;
    height: 1.5px;
    margin-inline: auto;
    background: var(--paper);
    border-radius: 2px;
    transition: transform 0.4s var(--ease), opacity 0.2s var(--ease);
}

.hamburger.is-open {
    border-color: var(--red);
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* الشعار فيه شريط أبيض يذوب في الخلفية الفاتحة — نعطيه حدّاً رفيعاً
   وظلاً خفيفاً بدل خلفية داكنة، فيبقى الشعار حرّاً بلا صندوق */
[data-theme="light"] .logo-img {
    filter:
        drop-shadow(0.7px 0 0 rgba(10, 14, 19, 0.4)) drop-shadow(-0.7px 0 0 rgba(10, 14, 19, 0.4)) drop-shadow(0 0.7px 0 rgba(10, 14, 19, 0.4)) drop-shadow(0 -0.7px 0 rgba(10, 14, 19, 0.4)) drop-shadow(0 2px 4px rgba(16, 28, 44, 0.22));
}

/* فوق الهيرو الخلفية صورة (ليلية أو نهارية حسب الثيم)، فالنص يتبع
   لون نص الهيرو. بعد التثبيت يعود الهيدر لألوان الثيم العادية. */
.header:not(.is-stuck) .logo-text {
    color: var(--hero-fg);
}

.header:not(.is-stuck) .header-tel {
    color: var(--hero-fg);
    border-color: var(--hero-line);
}

.header:not(.is-stuck) .header-tel:hover {
    background: var(--hero-chip);
    border-color: var(--hero-accent);
}

.header:not(.is-stuck) .lang-nav-btn,
.header:not(.is-stuck) .theme-toggle {
    color: var(--hero-fg-mute);
    border-color: var(--hero-line);
}

.header:not(.is-stuck) .lang-nav-btn:hover,
.header:not(.is-stuck) .theme-toggle:hover {
    color: var(--hero-bg);
    background: var(--hero-fg);
    border-color: var(--hero-fg);
}

.header:not(.is-stuck) .hamburger {
    border-color: var(--hero-line);
}

.header:not(.is-stuck) .hamburger span {
    background: var(--hero-fg);
}

/* عند فتح القائمة يصير الزر فوق لوحة الثيم لا فوق الهيرو */
.header .hamburger.is-open {
    border-color: var(--red);
}

.header .hamburger.is-open span {
    background: var(--paper);
}

@media (min-width: 769px) {

    .header:not(.is-stuck) .nav-list>li>a {
        color: var(--hero-fg-mute);
    }

    .header:not(.is-stuck) .nav-list>li>a:hover,
    .header:not(.is-stuck) .nav-list>li>a.active {
        color: var(--hero-fg);
    }
}

/* ============================================================
   الهيرو — حافة الفيلم
   صورة المحل الحقيقية، وحافة تمسح الصورة: يمين الحافة سطح
   بلا حماية، ويسارها سطح محمي. نفس العرض الذي يقدمه المحل.
   ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
    background: var(--ink);
}

.hero-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-layer {
    position: absolute;
    inset: 0;
    background-image: var(--hero-img);
    background-position: center;
    background-size: cover;
    will-change: clip-path;
}

/* الطبقة السفلى: السطح بلا حماية — باهت، ضبابي، بارد */
.hero-layer--raw {
    filter: var(--hero-raw-filter);
}

/* الطبقة العليا: السطح المحمي — عمق ولمعان */
.hero-layer--film {
    filter: var(--hero-film-filter);
    clip-path: inset(0 calc(100% - var(--wipe, 0%)) 0 0);
}

/* الحافة نفسها: خط فضي + انكسار ضوء */
.hero-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--wipe, 0%);
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--hero-accent) 12%, var(--hero-edge-core) 50%, var(--hero-accent) 88%, transparent);
    box-shadow: 0 0 22px 2px rgba(147, 184, 220, 0.5);
    z-index: 2;
    pointer-events: none;
}

/* هالة الانكسار على جانبي الحافة */
.hero-edge::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -14px;
    width: 28px;
    background: linear-gradient(to right, transparent, rgba(147, 184, 220, 0.14), transparent);
    filter: blur(3px);
}

/* المقبض */
.hero-edge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border: 1px solid var(--hero-line);
    border-radius: 50%;
    background: var(--hero-chip);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 0 6px rgba(147, 184, 220, 0.07), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hero-handle {
    position: absolute;
    top: 50%;
    left: var(--wipe, 0%);
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    z-index: 3;
    cursor: ew-resize;
    touch-action: none;
    display: grid;
    place-items: center;
    color: var(--hero-accent);
    font-size: 0.86rem;
    letter-spacing: 0.15em;
}

.hero-handle::before {
    content: '\f337';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    opacity: 0.9;
    transition: transform var(--t-fast);
}

.hero-handle:hover::before {
    transform: scale(1.18);
}

.hero-handle:focus-visible {
    outline: 2px solid var(--hero-accent);
    outline-offset: 6px;
    border-radius: 50%;
}

/* وسوم الجانبين */
.hero-tag {
    position: absolute;
    top: clamp(84px, 13vh, 128px);
    z-index: 2;
    font-family: var(--font-label);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 99px;
    border: 1px solid var(--hero-line);
    background: var(--hero-chip);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
    transition: opacity var(--t);
}

.hero-tag--raw {
    right: clamp(16px, 4vw, 48px);
    color: var(--hero-fg-mute);
}

.hero-tag--film {
    left: clamp(16px, 4vw, 48px);
    color: var(--hero-accent);
    border-color: var(--hero-line);
    background: var(--hero-chip);
}

/* تعتيم متدرّج لضمان قراءة النص */
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--hero-scrim);
    pointer-events: none;
}

/* هالة خفيفة خلف عمود النص وحده — تحمي القراءة دون طمس الصورة */
.hero-content::before {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-end: -6vw;
    width: min(58ch, 62vw);
    z-index: -1;
    background: radial-gradient(70% 60% at 78% 62%, var(--hero-bg) 0%, transparent 72%);
    opacity: 0.72;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    width: min(1240px, 100% - clamp(32px, 6vw, 96px));
    margin-inline: auto;
    padding-block: clamp(48px, 9vh, 96px) clamp(56px, 10vh, 104px);
    max-width: min(1240px, 100%);
}

.hero-inner {
    max-width: 40ch;
}

.hero-welcome {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-label);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--hero-accent);
    margin-bottom: 20px;
}

.hero-welcome::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--hero-accent);
    opacity: 0.6;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 6.4vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--hero-fg);
    margin-bottom: 22px;
}

.hero-title .hero-title-en {
    display: block;
    font-family: var(--font-display);
    font-size: 0.36em;
    font-weight: 300;
    letter-spacing: 0.28em;
    color: var(--hero-accent);
    margin-top: 14px;
}

/* الشريط الأحمر تحت الاسم — من لوحة المحل */
.hero-rule {
    height: 3px;
    width: 118px;
    background: var(--red);
    border-radius: 2px;
    margin-bottom: 26px;
    transform: scaleX(0);
    transform-origin: inline-start;
    animation: ruleIn 0.9s var(--ease-out) 0.5s forwards;
    box-shadow: 0 0 20px var(--red-glow);
}

@keyframes ruleIn {
    to {
        transform: scaleX(1);
    }
}

.hero-description {
    font-size: clamp(1.02rem, 1.7vw, 1.2rem);
    color: var(--hero-fg-mute);
    line-height: 1.8;
    margin-bottom: 34px;
    max-width: 46ch;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

/* مؤشر التمرير */
.hero-scroll {
    position: absolute;
    bottom: 22px;
    inset-inline-end: clamp(16px, 4vw, 48px);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-label);
    font-size: 0.72rem;
    color: var(--hero-fg-mute);
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--hero-accent), transparent);
    animation: scrollCue 2.4s var(--ease) infinite;
    transform-origin: top;
}

@keyframes scrollCue {

    0%,
    100% {
        transform: scaleY(0.35);
        opacity: 0.4;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* دخول الهيرو المنسّق */
.hero-inner>* {
    opacity: 0;
    animation: heroIn 0.9s var(--ease-out) forwards;
}

.hero-inner>*:nth-child(1) {
    animation-delay: 0.25s;
}

.hero-inner>*:nth-child(2) {
    animation-delay: 0.35s;
}

.hero-inner>*:nth-child(3) {
    animation-delay: 0.45s;
}

.hero-inner>*:nth-child(4) {
    animation-delay: 0.55s;
}

.hero-inner>*:nth-child(5) {
    animation-delay: 0.65s;
}

.hero-rule {
    opacity: 1 !important;
    animation: ruleIn 0.9s var(--ease-out) 0.5s forwards;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ===== شريط الخدمات المتحرك ===== */
.ticker {
    border-block: 1px solid var(--line);
    background: var(--ink-2);
    overflow: hidden;
    padding-block: 17px;
    position: relative;
}

.ticker::before,
.ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(48px, 10vw, 140px);
    z-index: 2;
    pointer-events: none;
}

.ticker::before {
    inset-inline-start: 0;
    background: linear-gradient(to left, transparent, var(--ink-2));
}

.ticker::after {
    inset-inline-end: 0;
    background: linear-gradient(to right, transparent, var(--ink-2));
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerRun 34s linear infinite;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    padding-inline-end: clamp(24px, 4vw, 48px);
    font-family: var(--font-display);
    font-size: clamp(0.92rem, 1.5vw, 1.12rem);
    font-weight: 500;
    color: var(--mute);
    white-space: nowrap;
}

.ticker-item::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

@keyframes tickerRun {
    to {
        transform: translateX(50%);
    }
}

[dir="ltr"] .ticker-track {
    animation-name: tickerRunLtr;
}

@keyframes tickerRunLtr {
    to {
        transform: translateX(-50%);
    }
}

/* ===== من نحن ===== */
.about-section {
    background: var(--ink);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
}

.about-text p {
    color: var(--mute);
    font-size: clamp(1rem, 1.35vw, 1.08rem);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--paper);
    font-weight: 600;
}

/* إطار الصورة بحافة الفيلم */
.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid var(--steel-dim);
    border-radius: var(--radius-lg);
    transform: translate(clamp(-18px, -2vw, -10px), clamp(-18px, -2vw, -10px));
    pointer-events: none;
    z-index: 0;
}

.rounded-image {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-img);
}

/* بطاقات النقاط المميزة */
.about-points {
    display: grid;
    gap: 2px;
    margin-top: 34px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.about-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 19px 22px;
    background: var(--ink-2);
    transition: background var(--t-fast);
}

.about-point:hover {
    background: var(--ink-3);
}

.about-point i {
    color: var(--red);
    font-size: 1.05rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.about-point h4 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--paper);
    line-height: 1.5;
    margin-bottom: 2px;
}

.about-point p {
    font-size: 0.9rem;
    color: var(--mute);
    line-height: 1.65;
    margin: 0;
}

/* ===== الأرقام — لوحة قياس ===== */
.stats {
    background: var(--ink-2);
    border-block: 1px solid var(--line);
    padding-block: clamp(56px, 7vw, 92px);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat-item {
    background: var(--ink-2);
    padding: clamp(26px, 3.4vw, 40px) clamp(18px, 2.2vw, 28px);
    text-align: center;
    position: relative;
    transition: background var(--t);
}

.stat-item::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-out);
}

.stat-item:hover {
    background: var(--ink-3);
}

.stat-item:hover::after {
    transform: scaleX(1);
}

.stat-icon {
    font-size: 1.15rem;
    color: var(--steel);
    margin-bottom: 16px;
    display: block;
    opacity: 0.75;
}

.stat-number {
    display: block;
    font-family: var(--font-data);
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--paper);
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.stat-label {
    display: block;
    margin-top: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--mute);
}

/* ===== الخدمات ===== */
.services {
    background: var(--ink);
}

/* ============================================================
   شريط الخدمات المتحرك
   يمرّ تلقائياً ويتوقف عند المرور أو اللمس. قبل تشغيل الجافاسكربت
   يبقى شريطاً قابلاً للسحب يدوياً، فلا يضيع أي محتوى لو تعطّلت.
   ============================================================ */
.services-marquee {
    position: relative;
    margin-inline: calc(-1 * clamp(16px, 3vw, 48px));
    padding-inline: clamp(16px, 3vw, 48px);
    padding-block: 4px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.services-marquee::-webkit-scrollbar {
    display: none;
}

/* بعد أن يجهّز الجافاسكربت النسخ المكرّرة تبدأ الحركة */
.services-marquee.is-running {
    overflow: hidden;
    scroll-snap-type: none;
    /* pan-y يترك تمرير الصفحة رأسياً للمتصفح ويمنحنا الأفقي */
    touch-action: pan-y;
    cursor: grab;
}

.services-marquee.is-dragging {
    cursor: grabbing;
    user-select: none;
}

/* أثناء السحب لا تلتقط الصور ولا الروابط مؤشر الفأرة */
.services-marquee.is-dragging * {
    pointer-events: none;
}

/* تلاشٍ على الحافتين ليبدو الشريط بلا بداية ولا نهاية */
.services-marquee.is-running::before,
.services-marquee.is-running::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(28px, 6vw, 90px);
    z-index: 3;
    pointer-events: none;
}

.services-marquee.is-running::before {
    inset-inline-start: 0;
    background: linear-gradient(to left, transparent, var(--ink));
}

.services-marquee.is-running::after {
    inset-inline-end: 0;
    background: linear-gradient(to right, transparent, var(--ink));
}

.services-track {
    display: flex;
    gap: var(--gap);
    width: max-content;
}

.services-marquee.is-running .services-track {
    will-change: transform;
}

.services-track .service-card {
    flex: 0 0 clamp(255px, 27vw, 330px);
    scroll-snap-align: start;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--t), background var(--t), box-shadow var(--t);
}

/* الحافة الفضية "تُركَّب" من الأعلى للأسفل عند المرور — كتركيب الفيلم */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--steel-dim);
    border-radius: var(--radius-lg);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.55s var(--ease-out);
    pointer-events: none;
    z-index: 3;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-6px);
    background: var(--ink-3);
    box-shadow: var(--shadow-card);
}

.service-card:hover::after,
.service-card:focus-within::after {
    clip-path: inset(0 0 0 0);
}

.service-icon {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ink-3);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: var(--img-filter);
    transition: transform 0.8s var(--ease-out), filter 0.6s var(--ease);
}

.service-card:hover .service-icon img {
    transform: scale(1.06);
    filter: var(--img-filter-hover);
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--ink-2) 1%, var(--veil-card) 45%, transparent);
    transition: opacity var(--t);
}

/* شريحة المواصفة — مأخوذة من نص الخدمة نفسه، لا رقم مُختلق */
.service-spec {
    position: absolute;
    bottom: 13px;
    inset-inline-start: 15px;
    z-index: 2;
    font-family: var(--font-label);
    font-size: 0.66rem;
    font-weight: 500;
    color: var(--on-dark-steel);
    padding: 5px 11px;
    border-radius: 99px;
    border: 1px solid rgba(147, 184, 220, 0.3);
    background: rgba(8, 9, 12, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
}

.service-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 22px 24px 24px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.12rem, 1.6vw, 1.28rem);
    font-weight: 600;
    line-height: 1.45;
    color: var(--paper);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--mute);
    font-size: 0.96rem;
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--paper);
    cursor: pointer;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--line-2);
    transition: color var(--t-fast), border-color var(--t-fast), gap var(--t-fast);
}

.card-link i {
    font-size: 0.82em;
    color: var(--red);
    transition: transform var(--t-fast);
}

.card-link:hover {
    color: var(--red-hot);
    border-bottom-color: var(--red);
    gap: 14px;
}

.card-link:hover i {
    transform: translateX(-3px);
}

[dir="ltr"] .card-link:hover i {
    transform: translateX(3px);
}

/* ===== أعمالنا — شبكة بأبعاد مختلطة ===== */
.our-work {
    background: var(--ink-2);
    border-top: 1px solid var(--line);
}

.work-grid {
    columns: 3;
    column-gap: var(--gap);
}

.work-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: var(--gap);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    background: var(--ink-3);
    display: block;
    width: 100%;
    isolation: isolate;
}

.work-item img {
    width: 100%;
    height: auto;
    filter: var(--work-filter);
    transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease);
}

.work-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--steel-dim);
    border-radius: var(--radius);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease-out);
    pointer-events: none;
}

.work-item:hover img,
.work-item:focus-visible img {
    transform: scale(1.045);
    filter: var(--work-filter-hover);
}

.work-item:hover::after,
.work-item:focus-visible::after {
    clip-path: inset(0 0 0 0);
}

.work-item:focus-visible {
    outline: 2px solid var(--steel);
    outline-offset: 3px;
}

/* أيقونة التكبير */
.work-item .work-zoom {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(8, 9, 12, 0.68);
    border: 1px solid rgba(147, 184, 220, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--on-dark-steel);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--t), transform var(--t);
}

.work-item:hover .work-zoom,
.work-item:focus-visible .work-zoom {
    opacity: 1;
    transform: none;
}

/* ===== معرض الصور المكبّر ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 48px);
    background: rgba(4, 5, 7, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 100%;
    max-height: 84vh;
    width: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-modal);
    transform: scale(0.94);
    transition: transform 0.5s var(--ease-out);
}

.lightbox.is-open img {
    transform: scale(1);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(14, 17, 22, 0.8);
    color: #eef3f8;
    font-size: 1.05rem;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--red);
    border-color: var(--red);
}

.lightbox-close {
    top: clamp(14px, 3vw, 30px);
    inset-inline-end: clamp(14px, 3vw, 30px);
}

.lightbox-nav--prev {
    inset-inline-start: clamp(10px, 2.5vw, 30px);
}

.lightbox-nav--next {
    inset-inline-end: clamp(10px, 2.5vw, 30px);
}

.lightbox-counter {
    position: absolute;
    bottom: clamp(14px, 3vw, 30px);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    font-family: var(--font-data);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--on-dark-mute);
    direction: ltr;
}

/* ===== تواصل معنا ===== */
.contact-page {
    background: var(--ink);
    border-top: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.contact-info-section {
    display: grid;
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-detail-card {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 20px 22px;
    background: var(--ink-2);
    position: relative;
    transition: background var(--t-fast);
}

.contact-detail-card::before {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 2px;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s var(--ease-out);
}

.contact-detail-card:hover {
    background: var(--ink-3);
}

.contact-detail-card:hover::before {
    transform: scaleY(1);
}

.contact-detail-card i {
    font-size: 1rem;
    color: var(--steel);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    border: 1px solid var(--line-2);
    flex-shrink: 0;
    margin-top: 3px;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.contact-detail-card:hover i {
    color: var(--red-hot);
    border-color: var(--red-deep);
}

.contact-detail-card h3 {
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--mute-2);
    margin-bottom: 5px;
}

.contact-detail-card p {
    color: var(--text);
    font-size: 0.99rem;
    line-height: 1.65;
    margin: 0;
}

.contact-detail-card p[dir="ltr"] {
    font-family: var(--font-data);
    letter-spacing: 0.01em;
}

.contact-detail-card a {
    color: var(--text);
    border-bottom: 1px solid var(--line-2);
    transition: color var(--t-fast), border-color var(--t-fast);
}

.contact-detail-card a:hover {
    color: var(--red-hot);
    border-bottom-color: var(--red);
}

/* الخريطة */
.map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--ink-2);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    /* عرض قمر صناعي: نخفت الصورة لتجلس في الخلفية الداكنة بلا عكس ألوان */
    filter: var(--map-filter);
    transition: filter 0.6s var(--ease);
}

.map-container:hover iframe {
    filter: saturate(1) brightness(1) contrast(1);
}

/* عمود الخريطة + شريط "تابعونا" تحتها مباشرة */
.contact-map-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.follow-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 20px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.follow-label {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--paper);
}

/* ===== التذييل ===== */
.footer {
    background: var(--ink-2);
    border-top: 1px solid var(--line);
    padding-block: clamp(34px, 4vw, 48px) 30px;
    color: var(--mute);
    font-size: 0.96rem;
}

.footer-note {
    text-align: center;
    font-size: 0.88rem;
    color: var(--mute-2);
    line-height: 2;
}

.footer-note a {
    color: var(--mute);
    border-bottom: 1px solid transparent;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.footer-note a:hover {
    color: var(--paper);
    border-bottom-color: var(--steel-dim);
}

.footer-bottom {
    margin-top: 8px;
}

.privacy-link {
    font-size: 0.82rem;
    color: var(--mute-2);
}

/* ===== الأزرار العائمة ===== */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    inset-inline-start: 22px;
    z-index: 999;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #0f7d3e;
    color: #fff;
    font-size: 1.65rem;
    box-shadow: 0 10px 30px -8px rgba(15, 125, 62, 0.55);
    transition: transform var(--t), box-shadow var(--t);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid #16a557;
    animation: ripple 2.6s var(--ease-out) infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 16px 40px -8px rgba(15, 125, 62, 0.7);
}

.scroll-top-btn {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ink-3);
    border: 1px solid var(--line-2);
    color: var(--paper);
    font-size: 0.92rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity var(--t), visibility var(--t), transform var(--t), background var(--t-fast), border-color var(--t-fast);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.scroll-top-btn:hover {
    background: var(--red);
    border-color: var(--red);
}

/* ===== النافذة المنبثقة ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 32px);
    background: var(--overlay);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 780px;
    max-height: 88vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(30px, 4vw, 48px) clamp(22px, 3.4vw, 44px);
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    transform: translateY(26px) scale(0.98);
    opacity: 0;
    transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease);
}

.modal-overlay.active .modal-container {
    transform: none;
    opacity: 1;
}

.modal-close {
    position: sticky;
    top: 0;
    float: inline-end;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--ink-3);
    color: var(--paper);
    font-size: 1.4rem;
    line-height: 1;
    z-index: 10;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.modal-close:hover {
    background: var(--red);
    border-color: var(--red);
    transform: rotate(90deg);
}

.modal-content .section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.modal-content .section-title::after {
    transform: scaleX(1);
    width: 64px;
}

.modal-content .service-detail-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 28px;
    border: 1px solid var(--line);
}

.modal-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.08rem, 1.9vw, 1.28rem);
    font-weight: 600;
    color: var(--paper);
    margin: 30px 0 12px;
}

.modal-content p {
    color: var(--mute);
    font-size: 0.99rem;
    line-height: 1.9;
    margin-bottom: 16px;
}

.modal-content .service-list {
    display: grid;
    gap: 2px;
    margin: 20px 0 26px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.modal-content .service-list li {
    background: var(--ink-3);
    color: var(--text);
    padding: 14px 18px;
    font-size: 0.96rem;
    line-height: 1.7;
    transition: background var(--t-fast);
}

.modal-content .service-list li:hover {
    background: var(--ink-4);
}

.modal-content .service-cta {
    text-align: center;
    margin: 36px 0 24px;
}

.modal-content .service-signature {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--steel);
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.modal-content .sidebar-card {
    background: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-top: 28px;
}

.modal-content .sidebar-card h3 {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
}

.modal-content .sidebar-links li {
    margin-bottom: 4px;
}

.modal-content .sidebar-links a {
    display: block;
    padding: 8px 0;
    color: var(--mute);
    font-size: 0.94rem;
    transition: color var(--t-fast), padding-inline-start var(--t-fast);
}

.modal-content .sidebar-links a:hover {
    color: var(--red-hot);
    padding-inline-start: 8px;
}

/* ===== تفاصيل الخدمات المخفية ===== */
.hidden-service-detail {
    display: none;
}

/* ============================================================
   الاستجابة
   ============================================================ */
@media (max-width: 1100px) {
    .work-grid {
        columns: 2;
    }

    .header-tel span {
        display: none;
    }

    .header-tel {
        padding: 9px 12px;
    }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
        max-width: 560px;
    }

    .about-image::before {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-inner {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        inset-block: 0;
        inset-inline-end: 0;
        width: min(330px, 86vw);
        padding: 0;
        display: flex;
        flex-direction: column;
        background: var(--ink-2);
        border-inline-start: 1px solid var(--line-2);
        box-shadow: var(--shadow-nav);
        z-index: 1001;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.5s var(--ease-out), visibility 0.5s;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    [dir="ltr"] .nav-menu {
        transform: translateX(100%);
    }

    .nav-menu.active {
        transform: none;
        visibility: visible;
    }

    /* ترويسة اللوحة: الشعار واسم المركز */
    .nav-head {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 66px;
        padding: 16px 24px;
        border-bottom: 1px solid var(--line);
        background: var(--ink-3);
    }

    .nav-logo {
        height: 34px;
        width: auto;
        flex-shrink: 0;
    }

    .nav-brand {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .nav-brand strong {
        font-family: var(--font-display);
        font-size: 1.12rem;
        font-weight: 700;
        line-height: 1.1;
        color: var(--paper);
    }

    /* مسافة تفصل السطر الوصفي عن الاسم — يعطي اتزاناً أوضح */
    .nav-brand small {
        margin-top: 7px;
        font-family: var(--font-data);
        font-size: 0.6rem;
        letter-spacing: 0.1em;
        line-height: 1;
        color: var(--steel);
        white-space: nowrap;
    }

    .nav-list {
        flex: 1;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 24px;
        overflow-y: auto;
    }

    /* ذيل اللوحة: أزرار التواصل وساعات العمل */
    .nav-foot {
        display: grid;
        gap: 9px;
        padding: 18px 24px calc(20px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--line);
        background: var(--ink-3);
    }

    .nav-foot .btn {
        width: 100%;
        justify-content: center;
        font-size: 0.94rem;
        padding: 13px 16px;
    }

    .nav-hours {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 4px;
        font-size: 0.74rem;
        line-height: 1.5;
        color: var(--mute);
        text-align: center;
    }

    .nav-hours i {
        color: var(--steel);
        font-size: 0.8em;
        flex-shrink: 0;
    }

    .nav-list>li>a {
        padding: 14px 2px;
        font-size: 1.05rem;
        font-weight: 500;
        border-bottom: 1px solid var(--line);
    }

    .nav-list>li:last-child>a,
    .nav-list>li:nth-last-child(2)>a {
        border-bottom-color: transparent;
    }

    .nav-list>li>a::after {
        bottom: -1px;
    }

    /* دخول متدرّج لعناصر القائمة */
    .nav-list>li {
        opacity: 1;
    }

    .nav-menu.active .nav-list>li {
        animation: navItemIn 0.5s var(--ease-out) backwards;
    }

    .nav-menu.active .nav-list>li:nth-child(1) {
        animation-delay: 0.08s;
    }

    .nav-menu.active .nav-list>li:nth-child(2) {
        animation-delay: 0.13s;
    }

    .nav-menu.active .nav-list>li:nth-child(3) {
        animation-delay: 0.18s;
    }

    .nav-menu.active .nav-list>li:nth-child(4) {
        animation-delay: 0.23s;
    }

    .nav-menu.active .nav-list>li:nth-child(5) {
        animation-delay: 0.28s;
    }

    .nav-menu.active .nav-list>li:nth-child(6) {
        animation-delay: 0.33s;
    }

    @keyframes navItemIn {
        from {
            opacity: 0;
            transform: translateX(24px);
        }
    }

    [dir="ltr"] .nav-menu.active .nav-list>li {
        animation-name: navItemInLtr;
    }

    @keyframes navItemInLtr {
        from {
            opacity: 0;
            transform: translateX(-24px);
        }
    }

    .lang-nav-btn {
        width: 100%;
        margin-top: 12px;
        padding: 12px;
        font-size: 0.86rem;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: var(--overlay-soft);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--t), visibility var(--t);
    }

    .nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    /* الهالة خلف النص تصير بعرض الشاشة على الجوال */
    .hero-content::before {
        inset-inline: 0;
        width: auto;
        background: linear-gradient(to top, var(--hero-bg) 26%, var(--hero-bg-0) 88%);
        opacity: 0.88;
    }

    /* الهيرو على الجوال — نسخة أخف من الصورة */
    :root {
        --hero-img: url('hero-night-sm.jpg');
    }

    [data-theme="light"] {
        --hero-img: url('hero-day-sm.jpg');
    }

    /* الشاشة طولية والصورة عرضية، فالتغطية تقصّ السيارة والبرج.
       نعرض الصورة كاملة في شريط بنسبتها الأصلية، والنص أسفلها. */
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 0;
        padding-top: 62px;
    }

    .hero-stage {
        position: relative;
        inset: auto;
        width: 100%;
        aspect-ratio: 1537 / 1023;
        flex: none;
    }

    .hero-layer {
        background-size: contain;
        background-repeat: no-repeat;
    }

    /* التعتيم يخدم وسوم الجانبين فقط — النص لم يعد فوق الصورة */
    .hero-scrim {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0%, transparent 26%, transparent 74%, var(--hero-bg) 99%);
    }

    .hero-content {
        position: relative;
        z-index: 4;
        padding-block: 22px 30px;
        max-width: 100%;
    }

    /* لم نعد بحاجة لهالة خلف النص — صار على خلفية صافية */
    .hero-content::before {
        display: none;
    }

    .hero-title {
        text-shadow: none;
    }

    .hero-tag {
        top: 10px;
        font-size: 0.66rem;
        padding: 5px 10px;
    }

    .hero-handle,
    .hero-edge::after {
        top: 50%;
    }

    .hero-title {
        text-shadow: 0 2px 22px var(--hero-bg);
    }

    /* سطر واحد — يوفّر مساحة رأسية فيظهر الشعار على شبك السيارة */
    .hero-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
    }

    .hero-buttons .btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        padding: 13px 12px;
        font-size: 0.9rem;
        gap: 8px;
        white-space: nowrap;
    }

    .hero-buttons .btn i {
        font-size: 0.95em;
    }

    .hero-scroll {
        display: none;
    }

    .services-track .service-card {
        flex: 0 0 min(285px, 78vw);
    }

    .work-grid {
        columns: 2;
        column-gap: 12px;
    }

    .work-item {
        margin-bottom: 12px;
    }

    .map-container {
        min-height: 300px;
        aspect-ratio: 1 / 1;
    }

    .follow-strip {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 520px) {
    .logo-text {
        display: none;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 22px 12px;
    }

    .work-grid {
        columns: 1;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 16px;
        inset-inline-start: 16px;
    }

    .scroll-top-btn {
        width: 40px;
        height: 40px;
        bottom: 16px;
        inset-inline-end: 16px;
    }

    .contact-detail-card {
        padding: 16px 16px;
        gap: 13px;
    }
}

/* تلميح التمرير الأفقي للخدمات */
.services-hint {
    display: none;
    align-items: center;
    gap: 9px;
    margin-top: 4px;
    font-family: var(--font-label);
    font-size: 0.68rem;
    color: var(--mute-2);
}

.services-hint i {
    animation: hintSlide 1.8s var(--ease) infinite;
}

@keyframes hintSlide {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.4;
    }

    50% {
        transform: translateX(-6px);
        opacity: 1;
    }
}

/* ============================================================
   دعم الإنجليزية (LTR)
   ============================================================ */
[dir="ltr"] body {
    font-family: var(--font-body);
    line-height: 1.7;
}

[dir="ltr"] .hero-tag--raw {
    right: auto;
    left: clamp(16px, 4vw, 48px);
}

[dir="ltr"] .hero-tag--film {
    left: auto;
    right: clamp(16px, 4vw, 48px);
}

[dir="ltr"] .hero-layer--film {
    clip-path: inset(0 0 0 calc(100% - var(--wipe, 0%)));
}

[dir="ltr"] .hero-edge,
[dir="ltr"] .hero-handle {
    left: auto;
    right: var(--wipe, 0%);
}

[dir="ltr"] .hero-edge {
    transform: none;
}

[dir="ltr"] .hero-handle {
    transform: translate(50%, -50%);
}

/* التباعد الحرفي مسموح في الإنجليزية فقط — الحروف العربية متصلة */
[dir="ltr"] .eyebrow,
[dir="ltr"] .hero-welcome,
[dir="ltr"] .hero-tag,
[dir="ltr"] .hero-scroll,
[dir="ltr"] .service-spec,
[dir="ltr"] .services-hint,
[dir="ltr"] .contact-detail-card h3,
[dir="ltr"] .lang-nav-btn {
    letter-spacing: 0.14em;
}

[dir="ltr"] .eyebrow,
[dir="ltr"] .hero-tag,
[dir="ltr"] .hero-scroll,
[dir="ltr"] .services-hint,
[dir="ltr"] .contact-detail-card h3 {
    text-transform: uppercase;
}

/* يُضاف للحظة أثناء تبديل الثيم فقط، ثم يُزال */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
        border-color 0.35s var(--ease), fill 0.35s var(--ease) !important;
}

/* ============================================================
   إمكانية الوصول
   ============================================================ */
:where(a, button, [tabindex]):focus-visible {
    outline: 2px solid var(--steel);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    inset-inline-start: 50%;
    top: -100px;
    transform: translateX(-50%);
    z-index: 2000;
    padding: 12px 24px;
    background: var(--red);
    color: #fff;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    transition: top var(--t);
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   احترام تقليل الحركة
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }

    .hero-inner>* {
        opacity: 1 !important;
    }

    .section-title::after {
        transform: scaleX(1) !important;
    }

    .section-head.is-centered .section-title::after {
        transform: translateX(-50%) scaleX(1) !important;
    }

    .hero-rule {
        transform: scaleX(1) !important;
    }

    .ticker-track {
        animation: none !important;
    }

    .services-marquee.is-running {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .services-marquee.is-running::before,
    .services-marquee.is-running::after {
        display: none;
    }

    .services-track [data-clone] {
        display: none;
    }

    .whatsapp-float::before {
        display: none;
    }
}

/* الطباعة */
@media print {

    .header,
    .whatsapp-float,
    .scroll-top-btn,
    .ticker,
    .progress-bar,
    #splash-screen {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* ============ العروض ============ */

.offers-marquee {
    position: relative;
    margin-inline: calc(-1 * clamp(16px, 3vw, 48px));
    padding-inline: clamp(16px, 3vw, 48px);
    padding-block: 4px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.offers-marquee::-webkit-scrollbar { display: none; }

.offers-marquee.is-running {
    overflow: hidden;
    scroll-snap-type: none;
    touch-action: pan-y;
}

.offers-track {
    display: flex;
    gap: clamp(14px, 2vw, 22px);
    width: max-content;
}

.offers-track .offer-card {
    flex: 0 0 clamp(230px, 24vw, 290px);
    scroll-snap-align: start;
}

.offer-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-1, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

a.offer-card:hover,
a.offer-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* الصورة طولية 4:5 — تملأ أعلى البطاقة */
.offer-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.offer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

a.offer-card:hover .offer-media img { transform: scale(1.06); }

/* تدرّج يضمن قراءة الشارة فوق أي صورة */
.offer-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 45%);
    pointer-events: none;
}

.offer-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 1;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--brand, #c8102e);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.offer-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.offer-spec {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.72rem;
    opacity: 0.75;
}

.offer-title { margin: 0; font-size: 1.05rem; line-height: 1.4; }

.offer-desc {
    margin: 0;
    font-size: 0.86rem;
    opacity: 0.72;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
    flex-wrap: wrap;
}

.offer-now {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand, #c8102e);
}

.offer-was {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.92rem;
    opacity: 0.55;
    text-decoration: line-through;
}

/* رمز الريال السعودي.
   الاحتياطي: صورتان ملوّنتان تتبدّلان مع الثيم. */
.riyal {
    display: inline-block;
    width: 0.82em;
    height: 0.82em;
    background-image: url('/assets/riyal-dark.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: -0.04em;
}

:root[data-theme="light"] .riyal {
    background-image: url('/assets/riyal-light.webp');
}

/* حيث يُدعم القناع — وهو الغالب — يأخذ الرمز لون النص المجاور نفسه:
   أحمر بجانب السعر الجديد، وباهت بجانب السعر المشطوب، وصحيح في
   الثيمين بلا ملف ثانٍ. صورة ملوّنة ثابتة تبدو خطأ بجانب نص بلون آخر. */
@supports (mask-image: url('')) or (-webkit-mask-image: url('')) {
    .riyal,
    :root[data-theme="light"] .riyal {
        background-image: none;
        background-color: currentColor;
        -webkit-mask-image: url('/assets/riyal-mask.webp');
        mask-image: url('/assets/riyal-mask.webp');
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
    }
}

/* على الجوال يتوقف الشريط ويصير تمريراً يدوياً:
   بطاقة متحركة يصعب الضغط عليها بالإصبع */
@media (max-width: 860px) {
    .offers-marquee.is-running {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .offers-marquee.is-running .offers-track {
        animation: none !important;
        transform: none !important;
    }
}

/* ============ صفحة سياسة الخصوصية ============ */

.header.is-static { position: static; }

.privacy-main { padding: 120px 0 60px; }

.privacy-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px clamp(20px, 4vw, 48px);
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.privacy-title { text-align: center; margin-bottom: 6px; }

.privacy-updated {
    text-align: center;
    color: var(--mute);
    font-size: 0.86rem;
    margin-bottom: 28px;
}

.privacy-card h2 {
    margin: 32px 0 12px;
    font-size: 1.15rem;
    color: var(--brand);
}

.privacy-card p, .privacy-list li { line-height: 1.9; color: var(--text); }
.privacy-list { padding-inline-start: 20px; }
.privacy-list li { margin-bottom: 10px; }

.privacy-contact { margin-top: 14px; }
.privacy-contact dt { font-weight: 600; margin-top: 12px; color: var(--mute); }
.privacy-contact dd { margin: 2px 0 0; }
.privacy-value { direction: ltr; unicode-bidi: plaintext; }
