:root {
    --bg-primary: #f8f6f3;      /* أوف وايت / بيج فاتح جداً للخلفية */
    --bg-secondary: #ffffff;    /* أبيض صريح للبطاقات */
    --text-primary: #4a3831;    /* بني داكن */
    --text-secondary: #7a6358;
    --brand-orange: #d35400;    /* برتقالي محروق */
    --brand-orange-hover: #b84a00;
    --brand-orange-light: rgba(211, 84, 0, 0.08);
    --shadow-sm: 0 5px 40px rgba(74, 56, 49, 0.12);
    --shadow-md: 0 10px 50px rgba(74, 56, 49, 0.16);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

/* Lenis Recommended CSS */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* تمت إزالة will-change الثابت لأنه يستهلك الذاكرة ويسبب تعليق التمرير عند تطبيقه على عناصر كثيرة */
#hero-media, #hotspots-container, .hotspot-item {
    will-change: transform;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.mt-50 { margin-top: 50px; }
.mt-30 { margin-top: 30px; }
.margin-auto { margin-left: auto; margin-right: auto; }

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-primary);
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.section-padding {
    padding: 60px 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 56, 49, 0.05);
    padding: 15px 0;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.container.header-inner {
    max-width: 1550px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 2.2rem;
    font-weight: 800;
    height: 50px; /* تحديد ارتفاع الحاوية لمنع تمدد الهيدر */
}

.logo-img {
    width: 220px;
    height: auto;
    object-fit: contain;
    margin-top: -85px;    /* سحب الصورة للأعلى لإلغاء الفراغ الشفاف */
    margin-bottom: -85px; /* سحب الصورة للأسفل لإلغاء الفراغ الشفاف */
}

/* Fallback for broken image */
.logo-img:-moz-broken, .logo-img:after {
    content: "LAMSAT"; 
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-orange);
}

@media (min-width: 992px) {
    .d-none-desktop { display: none !important; }
    .nav-link i { display: none !important; } /* إخفاء الأيقونات في الديسكتوب */
}

.main-nav {
    display: block;
}

.mobile-menu-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--brand-orange);
}

.contact-link {
    background: var(--brand-orange-light);
    color: var(--brand-orange);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
}

.contact-link:hover {
    background: var(--brand-orange);
    color: #fff;
}

/* Mobile Menu Base */
.hamburger-btn, .close-menu-btn, .nav-overlay {
    display: none;
}

/* ==========================================================================
   Video Hero Banner
   ========================================================================== */
.video-hero {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 400px;
    max-height: 800px;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
    display: block;
}

.video-hero-gradient {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45%;
    height: 60%;
    background: radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.video-hero-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 50px;
    z-index: 2;
    pointer-events: none;
}

.hero-text-box {
    text-align: right;
    pointer-events: auto;
    /* initial state for GSAP */
    opacity: 0;
    transform: translateY(20px);
    max-width: 500px;
}

.hero-text-box .small-title {
    display: block;
    font-size: 1rem;
    color: #e5e5e5;
    font-weight: 500;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
}

.hero-text-box h1 {
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
}

.title-light {
    display: block;
    font-size: 1.3rem;
    font-weight: 300;
    color: #fdfaf6;
    margin-bottom: 2px;
}

.title-bold {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.video-hero-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.video-hero-btn-link .arrow {
    color: var(--brand-orange);
    transition: transform 0.3s ease;
}

.video-hero-btn-link:hover {
    color: var(--brand-orange);
}

.video-hero-btn-link:hover .arrow {
    transform: translateX(-5px); /* Move left in RTL */
}

/* Header Transparency */
header.header-transparent {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
header.header-transparent .logo,
header.header-transparent .nav-link {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
header.header-transparent .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}
header.header-transparent .contact-link {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    backdrop-filter: blur(5px);
}
header.header-transparent .contact-link:hover {
    background: var(--brand-orange);
}

/* ==========================================================================
   Hero 3D Section
   ========================================================================== */
.hero-3d {
    position: relative;
    width: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-top: 60px; /* Space for header */
    padding-bottom: 40px;
}

.hero-3d-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

#hero-media {
    max-width: 100%;
    height: auto;
    max-height: 65vh;
    display: block;
    object-fit: contain;
    /* تم نقل الظل إلى الصورة مباشرة ليتمكن المتصفح من معالجته كطبقة واحدة بدون إعادة حساب مستمرة */
    filter: drop-shadow(0 30px 60px rgba(74, 56, 49, 0.15));
    will-change: transform;
}

#hotspots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content-3d {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-top: 10px;
}

.hero-content-3d .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero-content-3d h1 {
    font-size: 2.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hero-content-3d p.lead-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content-3d .hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--brand-orange);
    color: white;
    box-shadow: 0 6px 20px rgba(211, 84, 0, 0.25);
}

.btn-primary:hover {
    background: var(--brand-orange-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid rgba(74, 56, 49, 0.1);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    transform: translateY(-3px);
}

/* --- Hotspots UI --- */
.hotspot-item {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    /* positioned via JS */
}

.hotspot-dot {
    width: 24px;
    height: 24px;
    background-color: var(--brand-orange);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
    position: relative;
}

.hotspot-dot::after {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 50%;
    border: 2px solid var(--brand-orange);
    animation: pulseHotspot 2s infinite;
    opacity: 0;
}

@keyframes pulseHotspot {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.hotspot-item:hover .hotspot-dot {
    transform: scale(1.2);
    background-color: var(--text-primary);
    border-color: var(--brand-orange);
}

/* --- Floating Card (Replaces Tooltip) --- */
.hotspot-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 16px;
    border-radius: 10px;
    width: max-content;
    max-width: 260px;
    text-align: right;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    cursor: default;
    /* Smart positioning variables */
    transform: var(--card-transform-x, translateX(-50%)) var(--card-transform-y, translateY(20px));
}

.hotspot-card::after {
    content: '';
    position: absolute;
    border-width: 8px;
    border-style: solid;
}

/* Invisible bridge to prevent hover loss between dot and card */
.hotspot-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 25px;
    background: transparent;
}

/* Smart Direction: Vertical (Up / Down) */
.hotspot-item.card-up .hotspot-card {
    bottom: calc(100% + 15px);
    --card-transform-y: translateY(20px);
}
.hotspot-item.card-up .hotspot-card::before {
    top: 100%; left: 0;
}
.hotspot-item.card-up .hotspot-card::after {
    top: 100%; border-color: rgba(255,255,255,0.85) transparent transparent transparent;
}

.hotspot-item.card-down .hotspot-card {
    top: calc(100% + 15px);
    --card-transform-y: translateY(-20px);
}
.hotspot-item.card-down .hotspot-card::before {
    bottom: 100%; left: 0;
}
.hotspot-item.card-down .hotspot-card::after {
    bottom: 100%; border-color: transparent transparent rgba(255,255,255,0.85) transparent;
}

/* Smart Direction: Horizontal (Center / Left / Right) */
.hotspot-item.card-center .hotspot-card {
    left: 50%;
    --card-transform-x: translateX(-50%);
}
.hotspot-item.card-center .hotspot-card::after {
    left: 50%; transform: translateX(-50%);
}

.hotspot-item.card-align-left .hotspot-card {
    left: 0;
    --card-transform-x: translateX(0);
}
.hotspot-item.card-align-left .hotspot-card::after {
    left: 12px; transform: translateX(-50%);
}

.hotspot-item.card-align-right .hotspot-card {
    right: 0;
    --card-transform-x: translateX(0);
}
.hotspot-item.card-align-right .hotspot-card::after {
    right: 12px; transform: translateX(50%);
}

/* Active & Hover States */
.hotspot-item.active .hotspot-card {
    opacity: 1;
    visibility: visible;
    --card-transform-y: translateY(0);
}

.hotspot-item.active .hotspot-dot {
    background-color: var(--text-primary);
    border-color: var(--brand-orange);
    transform: scale(1.2);
}

/* For Desktop: Show on hover */
@media (hover: hover) and (pointer: fine) {
    .hotspot-item:hover .hotspot-card {
        opacity: 1;
        visibility: visible;
        --card-transform-y: translateY(0);
    }

    .hotspot-item:hover .hotspot-dot {
        background-color: var(--text-primary);
        border-color: var(--brand-orange);
        transform: scale(1.2);
    }
}

.hotspot-card-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.hotspot-card-desc {
    color: #555;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 10px;
}

.hotspot-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: var(--brand-orange);
    text-decoration: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}
.hotspot-card-btn::after {
    content: "←";
    font-size: 1rem;
}

.hotspot-card-btn:hover {
    background: transparent;
    color: var(--brand-orange-hover);
    transform: translateX(-3px);
}

/* Make it responsive */
@media (max-width: 768px) {
    .hotspot-card {
        max-width: 200px;
        padding: 10px 12px;
    }
    .hotspot-card-title {
        font-size: 0.95rem;
    }
    .hotspot-card-desc {
        font-size: 0.75rem;
    }
}


.left-arrow { left: 5%; }
.right-arrow { right: 5%; }

/* ==========================================================================
   Horizontal Cards (About, Vision, Mission, B2B)
   ========================================================================== */
.horizontal-card {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid rgba(74, 56, 49, 0.04);
    height: 480px; /* توحيد الارتفاع لجميع البطاقات لتكون الصور المستقبلية بنفس المقاس */
}

.horizontal-card.flex-row-reverse {
    flex-direction: row-reverse;
}

.card-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-image-placeholder {
    flex: 1;
    background-color: var(--bg-secondary); /* Very light grey/beige for placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* تمت إزالة border-right لدمج الصورة مع النص ككتلة واحدة */
}

.flex-row-reverse .card-image-placeholder {
    /* تمت إزالة border-left لدمج الصورة مع النص ككتلة واحدة */
}

.card-image-placeholder img {
    width: 150px;
    opacity: 0.5; /* Temporary logo style */
    filter: grayscale(100%);
    transition: var(--transition);
}

/* Modifier for actual images to fill the container */
.card-image-placeholder img.real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
}

.card-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.card-content .lead-text {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.b2b-services-list {
    list-style: none;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.b2b-services-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.b2b-services-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--brand-orange);
    font-weight: bold;
}

/* ==========================================================================
   Stats Section (Numbers)
   ========================================================================== */
.stats-section {
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number-wrapper {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 10px;
    direction: ltr; /* Ensure numbers format correctly */
    display: inline-block;
}

.stat-plus {
    color: var(--brand-orange);
}

.stat-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   Grids & Cards (Why Us & Values)
   ========================================================================== */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.info-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(74, 56, 49, 0.06);
    text-align: right;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(211, 84, 0, 0.1);
}

.info-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
    margin-bottom: 20px;
    transition: var(--transition);
}

.info-card .card-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: var(--transition);
}

.info-card:hover .card-icon {
    transform: translateY(-4px);
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Specific Values Grid Tweaks */
.values-grid .info-card {
    padding: 30px 20px;
}
.values-grid .info-card h3 {
    font-size: 1.2rem;
}
.values-grid .info-card p {
    font-size: 0.95rem;
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */
.cta-card {
    background: #ffffff;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    border-top: 4px solid var(--brand-orange);
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* ==========================================================================
   New Footer
   ========================================================================== */
.site-footer {
    background: #ffffff;
    padding: 20px 0 20px 0;
}

.footer-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo-new {
    width: 220px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-brand-title {
    color: #a35a26;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-about {
    text-align: right;
}

.footer-col-title {
    color: #a35a26;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-links-new {
    text-align: center;
    margin-top: 65px; /* محاذاة مع عنوان العمود الأول أسفل الشعار */
}

.footer-links-new ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-new ul li {
    margin-bottom: 8px;
}

.footer-links-new a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links-new a:hover {
    color: var(--brand-orange);
    padding-right: 5px;
}

.footer-contact-new {
    text-align: center;
    margin-top: 65px; /* محاذاة مع عنوان العمود الأول أسفل الشعار */
}

.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    max-width: 260px; /* لضمان نزولهم في سطرين 5 و 5 */
    margin-left: auto;
    margin-right: auto;
}

.social-circle {
    display: flex; /* تغيير لـ flex لتفادي أخطاء سفاري */
    position: relative;
    z-index: 10;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    -webkit-tap-highlight-color: transparent; /* إزالة مربع التحديد الرمادي في الجوال */
}

.social-circle i {
    font-size: 18px;
    stroke-width: 1.7;
    -webkit-text-stroke: 0.2px; /* Slight enhancement for outline fonts if needed */
    pointer-events: none; /* مهم جداً جداً لمنع الأيقونة الداخلية من سرقة ضغطة الإصبع في سفاري */
}

.social-circle:hover {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-payments {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    justify-content: center;
    direction: ltr;
}

.pay-icon {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.footer-trust-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.trust-col {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.trust-title {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.trust-number {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

.trust-logo-box {
    width: 40px;
    height: 40px;
    color: var(--text-primary);
}

.footer-bottom-new {
    text-align: center;
    color: var(--text-secondary);
    padding-top: 10px;
    font-size: 0.8rem;
}

/* Responsiveness */
@media (max-width: 991px) {
    h1 { font-size: 2.8rem; }
    .hero-3d { min-height: auto; padding-top: 100px; }
    
    header {
        padding: 5px 0; /* صغر البار */
    }
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 50px;
        position: relative;
    }
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .logo-img {
        width: 320px;
        margin-top: -100px;
        margin-bottom: -100px;
        max-width: 65vw; /* لمنع تداخله مع أزرار الهيدر في الشاشات الصغيرة جداً */
    }
    .header-actions {
        display: flex;
        align-items: center;
        order: 2; /* اليسار */
    }
    
    .main-nav { 
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* تفتح من اليمين */
        width: 82vw;
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        background: #ffffff; /* أبيض صلب */
        z-index: 1005;
        padding: 0;
        visibility: hidden;
        transition: right 0.3s ease, visibility 0.3s ease;
        overflow: hidden; /* لمنع تسرب الصورة خارج تدوير الزوايا */
        box-shadow: -5px 0 20px rgba(0,0,0,0.15); /* ظل أنعم */
        border-radius: 15px 0 0 15px; /* تدوير الزاويتين اليسريين */
    }
    
    .main-nav.active {
        right: 0;
        visibility: visible;
    }

    .mobile-menu-header {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 190px;
        padding-top: max(20px, env(safe-area-inset-top));
        border-bottom: none;
        flex-shrink: 0;
        overflow: hidden;
    }
    
    .mobile-menu-header::before {
        content: '';
        position: absolute;
        top: -10px; left: -10px; right: -10px; bottom: -10px;
        background-color: #4a352d; /* لون خلفية صلب مع الصورة لتفادي تسرب الشفافية */
        background-image: url('Images/hero-poster.webp');
        background-size: cover;
        background-position: center;
        filter: blur(3px);
        transform: scale(1.1); /* منع تآكل الأطراف بسبب الفلتر الضبابي */
        z-index: -2;
    }
    
    .mobile-menu-header::after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.25); /* تعتيم أسود خفيف بدل البرتقالي */
        box-shadow: inset 0 0 50px rgba(0,0,0,0.3);
        z-index: -1;
    }

    .mobile-menu-logo {
        width: 250px; 
        height: auto;
        position: relative;
        z-index: 1;
        margin-top: -85px;
        margin-bottom: -85px;
        max-width: 80%;
        filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.4)); /* تحويل الشعار إلى أبيض مثل الهيدر */
    }
    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-grow: 1;
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* دعم التمرير السلس في iOS */
        gap: 0;
    }

    .mobile-menu-links .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1.1rem;
        font-weight: 600 !important; /* وزن خط واضح */
        color: #4A352D !important; /* بني داكن ثابت */
        text-shadow: none !important; /* إلغاء أي ظل من الهيدر الشفاف */
        opacity: 1 !important;
        filter: none !important;
        border: none;
        padding: 0 24px;
        height: 60px;
        text-align: right;
        transition: background 0.3s ease, color 0.3s ease;
        width: 100%;
        position: relative;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }
    
    .mobile-menu-links .nav-link i {
        color: var(--brand-orange) !important;
        font-size: 1.25rem;
        font-weight: 300;
        flex-shrink: 0;
        opacity: 0.9;
        text-shadow: none !important;
    }

    .mobile-menu-links .nav-link.active-link {
        color: var(--brand-orange) !important;
        background: rgba(230, 92, 25, 0.04);
    }
    .mobile-menu-links .nav-link.active-link::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background-color: var(--brand-orange);
        border-radius: 0;
        transform: none;
    }
    .mobile-menu-links .nav-link.active-link::after {
        display: none;
    }

    .mobile-menu-footer {
        display: flex;
        justify-content: center;
        padding: 20px 24px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        border-top: 1px solid rgba(0,0,0,0.04);
        flex-shrink: 0;
        background: #fff;
    }

    .menu-cta-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 52px;
        font-size: 1.1rem;
        border-radius: 12px;
        background: var(--brand-orange);
        color: white;
        text-decoration: none;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(230, 92, 25, 0.2);
        transition: var(--transition);
    }
    .menu-cta-btn i {
        font-size: 1.3rem;
    }
    .menu-cta-btn:hover {
        background: var(--brand-orange-hover);
        transform: translateY(-2px);
    }
    
    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 2rem;
        cursor: pointer;
        padding: 0;
        transition: var(--transition);
        order: -1;
        margin-right: 0;
        z-index: 1010;
        position: relative;
    }
    
    header.header-transparent .hamburger-btn {
        color: #ffffff;
        text-shadow: 0 1px 4px rgba(0,0,0,0.6);
        filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
    }
    
    body.menu-open header.header-transparent .hamburger-btn,
    body.menu-open .hamburger-btn {
        color: #ffffff !important;
        text-shadow: 0 1px 4px rgba(0,0,0,0.6) !important;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)) !important;
    }
    
    .hamburger-btn i {
        display: inline-block;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }
    
    body.menu-open .hamburger-btn i {
        animation: quickSwap 0.3s ease;
    }
    
    @keyframes quickSwap {
        0% { transform: scale(1); opacity: 1; }
        50% { transform: scale(0.6); opacity: 0; }
        100% { transform: scale(1); opacity: 1; }
    }
    
    .nav-overlay {
        display: block !important; /* إعادة تفعيل الـ Overlay */
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.35); /* داكن متوسط 35% */
        z-index: 1004; /* تحت القائمة، فوق الباقي */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .d-none-mobile {
        display: none !important;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    .hero-3d-wrapper { height: 50vh; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    
    .horizontal-card {
        flex-direction: column !important;
        min-height: auto;
        height: auto; /* إلغاء الارتفاع الثابت على الجوال */
    }
    .card-content {
        padding: 40px 30px;
        order: 2;
    }
    .card-image-placeholder {
        padding: 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(74, 56, 49, 0.03) !important;
        order: 1;
        aspect-ratio: 16 / 9;
        width: 100%;
        height: auto;
    }
    .footer-grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-links-new, .footer-contact-new {
        margin-top: 0;
    }
    .footer-about {
        text-align: center;
    }
    .footer-logo-new {
        margin: 0 auto 15px auto;
        display: block;
    }
    .b2b-services-list {
        grid-template-columns: 1fr; /* On tablet/mobile return to single column */
    }
}

@media (max-width: 768px) {
    .video-hero {
        aspect-ratio: 16 / 9; /* على الجوال نعود للنسبة الطبيعية */
        height: auto;
        max-height: none;
    }
    .video-hero-gradient {
        width: 100%; 
        height: 50%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    }
    .video-hero-content {
        padding-bottom: 20px;
    }
    .hero-text-box {
        max-width: 90%;
    }
    .hero-text-box .small-title {
        font-size: 0.85rem;
    }
    .hero-text-box h1 {
        margin-bottom: 15px;
    }
    .title-light {
        font-size: 1.1rem;
    }
    .title-bold {
        font-size: 1.4rem;
        line-height: 1.4;
    }
    .video-hero-btn-link {
        font-size: 1rem;
    }
    .logo-img {
        width: 190px;
        margin-top: -65px;
        margin-bottom: -65px;
    }
    .card-content h2 {
        font-size: 1.8rem;
    }
    .cta-card {
        padding: 40px 20px;
    }
    .stat-text-number {
        font-size: 1.4rem !important;
        height: auto !important;
        line-height: 1.3;
    }
    
    .hero-3d {
        justify-content: center;
        padding-top: 60px; 
    }
    .hero-3d-wrapper { height: 40vh; }
    .hero-content-3d .container {
        padding: 10px 15px;
        background: transparent;
        box-shadow: none;
        border: none;
    }
    .hero-content-3d h1 { font-size: 2rem; }
    .hero-content-3d p.lead-text { font-size: 1rem; }
    .scene-nav-arrow { width: 45px; height: 45px; }
    .scene-nav-arrow svg { width: 24px; height: 24px; }
    .left-arrow { left: 2%; }
    .right-arrow { right: 2%; }
    
    .stats-grid, .why-us-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    .values-grid {
        gap: 15px;
    }
    .cta-buttons {
        flex-direction: column;
    }
}

/* Disable iOS link styling for numbers in footer */
.trust-number a, .trust-number {
    color: inherit !important;
    text-decoration: none !important;
}

/* ==========================================================================
   Facts Section
   ========================================================================== */
.facts-section {
    position: relative;
    z-index: 10;
}

.facts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.facts-grid .info-card {
    padding: 30px 20px;
}
.facts-grid .info-card h3 {
    font-size: 1.2rem;
}
.facts-grid .info-card p {
    font-size: 0.95rem;
}

@media (min-width: 576px) {
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .facts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    position: relative;
    z-index: 10;
}

.faq-accordion {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: #ffffff;
    border: 1px solid rgba(74, 56, 49, 0.06);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    box-shadow: var(--shadow-sm);
    border-color: rgba(211, 84, 0, 0.1);
}

.faq-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    color: var(--text-color);
    outline: none;
}

.faq-title {
    font-size: 1.1rem;
    font-weight: 600;
    padding-left: 16px;
    line-height: 1.4;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--brand-orange);
    transition: var(--transition);
    font-size: 1.25rem;
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-body {
    max-height: 1000px;
    transition: max-height 0.6s ease-in-out;
}

.faq-body-inner {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-body-inner p {
    margin-bottom: 12px;
}
.faq-body-inner p:last-child {
    margin-bottom: 0;
}

.faq-link {
    color: var(--brand-orange);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition);
}

.faq-link:hover {
    text-decoration: none;
    color: var(--text-color);
}

.faq-cta {
    margin-top: 50px;
}

.text-direction-ltr {
    direction: ltr;
}
.d-inline-block {
    display: inline-block;
}
