/* ==========================================
   1. الإعدادات العامة والخطوط والتحسينات البصرية
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f4f7fa;
    color: #2d3748;
    line-height: 1.7;
    font-weight: 400;
}

.container {
    width: 88%;
    margin: 0 auto;
    max-width: 1200px;
}

/* ==========================================
   2. الهيدر وشريط التنقل (Header)
========================================== */
header {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #edf2f7;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0056b3;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* تأثير تمرير الماوس على الشعار */
.logo:hover img {
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 0 18px rgba(0, 86, 179, 0.35);
    border-color: #e2a400;
}

.logo h1 {
    font-size: 1.25rem;
    color: #1a202c;
    font-weight: 700;
    white-space: pre-line;
}

.logo .en-text {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

nav ul li a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

/* حركة الخط السفلي الأنيق عند الوقوف على روابط القائمة */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: #0056b3;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #0056b3;
}

nav ul li a:hover::after {
    width: 100%;
}

/* التميز الخاص بموقعنا الرياض */
.nav-location {
    color: #e2a400 !important;
}
.nav-location:hover {
    color: #b88300 !important;
}
.nav-location::after {
    background-color: #e2a400 !important;
}

/* الأزرار العلوية السريعة */
.quick-contact {
    display: flex;
    gap: 12px;
}

.quick-contact a {
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #1ebd54;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-call {
    background-color: #0056b3;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.btn-call:hover {
    background-color: #004085;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.35);
}

/* ==========================================
   2. مضاف حديثاً: شريط الشحن المميز (Shipping Bar)
========================================== */
.shipping-bar {
    background: linear-gradient(90deg, #101f30, #1e3a5f);
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border-bottom: 2px solid #e2a400;
}

.shipping-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    animation: pulseTruck 2.5s infinite ease-in-out;
}

.shipping-icon {
    color: #e2a400;
    font-size: 1.2rem;
}

/* تأثير حركي خفيف لسيارة الشحن يشد الانتباه بفخامة */
@keyframes pulseTruck {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); text-shadow: 0 0 10px rgba(226, 164, 0, 0.4); }
    100% { transform: scale(1); }
}

/* ==========================================
   3. الواجهة الرئيسية العصرية (Hero Section)
========================================== */
.hero {
    background: linear-gradient(135deg, #0b1522 0%, #1e3a5f 50%, #2b5c8f 100%);
    color: white;
    text-align: center;
    padding: 110px 0;
    position: relative;
    box-shadow: inset 0 -30px 40px rgba(0,0,0,0.15);
}

.hero-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 22px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.btn-main {
    text-decoration: none;
    background-color: #e2a400;
    color: #0b1522;
    padding: 14px 38px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 5px 18px rgba(226, 164, 0, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-main i {
    transition: transform 0.3s ease;
}

.btn-main:hover {
    background-color: #c68f00;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(226, 164, 0, 0.5);
    color: #fff;
}

.btn-main:hover i {
    transform: translateX(-5px);
}

/* ==========================================
   4. التنسيقات المشتركة للأقسام
========================================== */
section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 50px;
    position: relative;
    color: #1a202c;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #0056b3;
    margin: 12px auto 0 auto;
    border-radius: 4px;
}

/* ==========================================
   5. قسم من نحن (About)
========================================== */
.about-section {
    text-align: center;
    background-color: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

.about-section p {
    max-width: 880px;
    margin: 0 auto 30px auto;
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 2;
}

.about-section strong {
    color: #0056b3;
    font-weight: 700;
}

.why-us h3 {
    font-size: 1.4rem;
    color: #1a202c;
    margin-top: 20px;
    margin-bottom: 35px;
    font-weight: 800;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-item {
    background-color: #f8fafc;
    padding: 30px 22px;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.why-icon-box {
    width: 65px;
    height: 65px;
    background-color: rgba(0, 86, 179, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.why-item i {
    font-size: 1.8rem;
    color: #0056b3;
}

.why-item:hover .why-icon-box {
    background-color: #0056b3;
    transform: scale(1.05);
}

.why-item:hover i {
    color: #fff;
}

.why-item h4 {
    font-size: 1.2rem;
    color: #1a202c;
    margin-bottom: 10px;
    font-weight: 700;
}

.why-item p {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 0;
    line-height: 1.7;
}

/* ==========================================
   6. قسم الخدمات (Services)
========================================== */
.services-section {
    background-color: #f4f7fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.015);
    border: 1px solid #edf2f7;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.08);
    border-color: #0056b3;
}

.icon-box {
    width: 75px;
    height: 75px;
    background-color: rgba(0, 86, 179, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px auto;
    transition: all 0.3s ease;
}

.service-card i {
    font-size: 2.3rem;
    color: #0056b3;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.service-card:hover .icon-box {
    background-color: #0056b3;
    transform: rotate(10deg);
}

.service-card:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 14px;
    color: #1a202c;
    font-size: 1.35rem;
    font-weight: 700;
}

.service-card p {
    color: #4a5568;
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ==========================================
   7. قسم المنتجات الاحترافي (Products)
========================================== */
.products-section {
    background-color: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
    text-align: center;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* تكبير وحركة الكرت عند مرور السهم */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.09);
    border-color: #edf2f7;
}

.product-img-box {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden; /* يقص أطراف الصورة أثناء التكبير السلس */
    margin-bottom: 18px;
    position: relative;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0;
    transition: transform 0.5s ease;
}

/* تأثير التكبير الداخلي للصورة الفاخرة */
.product-card:hover img {
    transform: scale(1.12);
}

.product-card h3 {
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: #1a202c;
    font-weight: 700;
    padding: 0 4px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .btn-order {
    justify-content: center;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.15);
    transition: all 0.3s ease;
}

.product-card .btn-order:hover {
    background-color: #1ebd54;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
}

/* ==========================================
   8. قسم اتصل بنا وتنسيق الخريطة (Contact)
========================================== */
.contact-section {
    background-color: #f4f7fa;
    border-top: 1px solid #edf2f7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.contact-item {
    background-color: #ffffff;
    padding: 30px 24px;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 86, 179, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.contact-item i {
    font-size: 1.8rem;
    color: #0056b3;
    margin-bottom: 0;
}

/* تأثير التفاعل مع وسائل الاتصال */
.contact-item:hover .contact-icon {
    background-color: #0056b3;
    transform: scale(1.05);
}

.contact-item:hover i {
    color: #ffffff;
}

.contact-item h3 {
    font-size: 1.25rem;
    color: #1a202c;
    margin-bottom: 12px;
    font-weight: 700;
}

.contact-item a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #0056b3;
}

/* صندوق احتواء الخريطة */
.map-container {
    width: 100%;
    margin-top: 15px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #edf2f7;
}

.map-container iframe {
    display: block;
    width: 100% !important;
    height: 240px;
}

/* تنسيق التوسيط النهائي للخريطة */
.map-section-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 45px;
    width: 100%;
}

.map-section-center .map-item {
    width: 100%;
    max-width: 700px;
    background-color: #ffffff;
}

/* ==========================================
   9. تذييل الصفحة (Footer)
========================================== */
footer {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 55px 0 30px 0;
    text-align: center;
    border-top: 3px solid #e2a400;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background-color: #fff;
    transition: transform 0.4s ease, border-color 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.1) rotate(-6deg);
    border-color: #e2a400;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-logo h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-logo .en-text {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.footer-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #e2a400;
}

.copyright {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 15px;
    width: 100%;
}

/* ==========================================
   10. شاشات الجوال والتجاوب (Responsive)
========================================== */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    .quick-contact {
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }
    .hero-content h2 {
        font-size: 1.65rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
        gap: 18px;
    }
    .product-card {
        padding: 10px;
        border-radius: 12px;
    }
    .product-img-box {
        height: 140px;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    .product-card h3 {
        font-size: 0.95rem;
        min-height: 42px;
        margin-bottom: 12px;
    }
    .product-card .btn-order {
        padding: 9px 12px;
        font-size: 0.85rem;
    }
    .footer-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}