/* --- المتغيرات والألوان (فخامة) --- */
:root {
    --primary: #1e3a8a;       /* أزرق كحلي فخم */
    --secondary: #3b82f6;     /* أزرق زاهي */
    --accent: #f59e0b;        /* ذهبي/برتقالي للتنبيه */
    --dark: #0f172a;          /* أسود مزرق للنصوص */
    --light: #f8fafc;         /* أبيض ثلجي للخلفيات */
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a { text-decoration: none; }
ul { list-style: none; }

/* --- الشريط العلوي --- */
.top-bar {
    background-color: var(--dark);
    color: #cbd5e1;
    padding: 10px 0;
    font-size: 0.9rem;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
}
.contact-info span { margin-left: 20px; }
.contact-info i { color: var(--accent); margin-left: 5px; }
.social-icons a { color: #fff; margin-right: 15px; transition: 0.3s; }
.social-icons a:hover { color: var(--accent); }

/* --- القائمة الرئيسية --- */
nav {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
}
.logo i { color: var(--secondary); }
.nav-links { display: flex; gap: 25px; }
.nav-links a {
    color: var(--dark);
    font-weight: 700;
    transition: 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--secondary); }
.nav-btn {
    background: var(--accent);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- الهيرو (الواجهة) --- */
header {
    height: 85vh;
    background: url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    position: relative;
}
.hero-overlay {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(30, 58, 138, 0.7));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}
.badge {
    background: var(--accent);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}
.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
    margin: 0 10px;
}
.primary-btn {
    background: var(--secondary);
    color: var(--white);
}
.primary-btn:hover { background: var(--primary); transform: translateY(-3px); }
.outline-btn {
    border: 2px solid var(--white);
    color: var(--white);
}
.outline-btn:hover { background: var(--white); color: var(--primary); }

/* --- الإحصائيات --- */
.stats-section {
    background: var(--white);
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
    border-radius: 10px;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-box i { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; }
.stat-box h3 { font-size: 2.5rem; color: var(--primary); font-weight: 900; }
.stat-box p { color: #64748b; font-weight: 600; }

/* --- الخدمات --- */
.services-section { padding: 100px 0; background: var(--light); }
.section-head { margin-bottom: 60px; }
.section-head h2 { font-size: 2.5rem; color: var(--primary); }
.divider { width: 80px; height: 4px; background: var(--accent); margin: 15px auto; border-radius: 5px; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.4s;
    border-bottom: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary);
}
.icon-circle {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--secondary);
    transition: 0.3s;
}
.service-card:hover .icon-circle { background: var(--secondary); color: var(--white); }

/* --- الماركات --- */
.brands-section { padding: 50px 0; background: var(--white); text-align: center; border-top: 1px solid #eee; }
.brands-section h3 { margin-bottom: 30px; color: #64748b; }
.brands-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    font-weight: bold;
    color: #94a3b8;
    font-size: 1.5rem;
}

/* --- خطوات العمل --- */
.process-section { padding: 100px 0; background: var(--white); }
.process-steps { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.step { flex: 1; text-align: center; min-width: 250px; }
.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 10px #eff6ff;
}

/* --- الفوتر --- */
footer { background: var(--dark); color: #cbd5e1; padding-top: 80px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h3 { color: var(--white); margin-bottom: 25px; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col a { color: #cbd5e1; transition: 0.3s; }
.footer-col a:hover { color: var(--accent); padding-right: 5px; }
.footer-col i { width: 25px; color: var(--accent); }
.footer-bottom { text-align: center; padding: 25px 0; font-size: 0.9rem; }

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') center/cover fixed;
    position: relative;
    text-align: center;
    color: var(--white);
}
.cta-section .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30, 58, 138, 0.85);
}
.cta-content { position: relative; z-index: 2; }
.call-btn { background: var(--white); color: var(--primary); }
.whatsapp-btn { background: #25d366; color: var(--white); }

/* تجاوب */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .stats-section { width: 95%; padding: 40px 0; }
    .footer-grid { grid-template-columns: 1fr; }
}
/* تنسيق اللوجو الجديد */
.site-logo {
    max-height: 75px; /* الارتفاع المناسب للقائمة */
    width: auto;      /* العرض يظبط نفسه تلقائي */
    display: block;   /* عشان يظهر بشكل صحيح */
    transition: transform 0.3s ease; /* حركة ناعمة */
}

/* حركة بسيطة لما الماوس ييجي عليه */
.site-logo:hover {
    transform: scale(1.05); /* تكبير بسيط */
}

/* في الموبايل ممكن نصغره سنة بسيطة */
@media (max-width: 768px) {
    .site-logo {
        max-height: 40px;
    }
}
/* --- تعديلات الموبايل (Mobile Responsive) --- */
@media (max-width: 768px) {
    
    /* 1. تظبيط القائمة العلوية */
    .menu-toggle {
        display: block; /* إظهار زر القائمة */
        font-size: 1.8rem;
        color: var(--primary);
        cursor: pointer;
    }

    .nav-links {
        display: none; /* إخفاء الروابط في الوضع العادي */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* تحت اللوجو بالظبط */
        left: 0;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px;
        text-align: center;
        border-top: 2px solid var(--secondary);
    }

    /* كلاس بنضيفه بالجافا سكريبت عشان يظهر القائمة */
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-links li { margin: 15px 0; }
    .nav-btn { display: none; /* إخفاء زرار الناف بار في الموبايل لتوفير مساحة */ }

    /* 2. تظبيط الهيرو (الواجهة) */
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    
    /* 3. تظبيط العدادات والخدمات */
    .stats-grid, .process-steps { grid-template-columns: 1fr; }
    .stat-box { margin-bottom: 20px; }
    .step { margin-bottom: 30px; }
    
    /* 4. إخفاء الشريط العلوي (Top Bar) في الموبايل لتوفير مساحة */
    .top-bar { display: none; }
}
/* --- شريط الاتصال الثابت للموبايل --- */
.mobile-bottom-bar {
    display: none; /* مخفي في الكمبيوتر */
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 2000;
        height: 60px;
    }

    .float-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: bold;
        font-size: 1rem;
        transition: 0.3s;
    }

    .float-btn.call {
        background-color: var(--primary);
        color: #fff;
    }

    .float-btn.whatsapp {
        background-color: #25d366;
        color: #fff;
    }

    .float-btn i { margin-left: 8px; font-size: 1.2rem; }
    
    /* رفع الفوتر شوية عشان الشريط مايغطيش عليه */
    footer { padding-bottom: 70px; }
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important; /* ده السطر السحري اللي بيشيل الأبيض */
    scroll-behavior: smooth;
}

/* تعديل بسيط للكونتينر عشان مايلزقش في الحواف في الموبايل */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* مسافة أمان من اليمين والشمال */
}
@media (max-width: 768px) {
    
    /* إجبار الكروت إنها تاخد عرض الشاشة بالكامل */
    .services-grid, .stats-grid, .faq-grid {
        display: flex;       /* بنغير من grid لـ flex عشان نتحكم أكتر */
        flex-direction: column; /* الكروت تحت بعض */
        gap: 20px;
    }

    .service-card, .stat-box, .faq-item {
        width: 100% !important; /* الكارت ياخد العرض كله */
        margin: 0 auto;         /* سنتر الكارت */
        opacity: 1 !important;  /* إجبار الظهور في حالة الأنيميشن علق */
        transform: none !important; /* إلغاء أي حركة معلقة */
    }
}