/*
Theme Name: TS-alkhair-shipping
Version: 1.5
Description: حل نهائي لمشكلة تداخل الهيرو، ترتيب العناصر في الجوال، وإصلاح زر القائمة.
*/

:root {
    --primary-blue: #002e5b;
    --accent-orange: #ff6a00;
    --light-gray: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

/* 1. القواعد العامة */
* { box-sizing: border-box; }
body {
    background-color: var(--white);
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. الهيدر والقائمة */
.nav-wrapper {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.header-main-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { max-height: 50px; width: auto; }

.main-nav-ul {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
}

.main-nav-ul li a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
}

/* 3. الهيرو المطور (الصورة فوق والنص تحت في الجوال) */
.hero-main-container {
    display: flex;
    flex-direction: column;
}

.hero-image-only img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text-under {
    padding: 30px 20px;
    background: var(--light-gray);
    position: relative;
    z-index: 5; /* لضمان عدم ظهور أي شيء خلفه */
}

.hero-bordered-box {
    border: 3px solid var(--accent-orange);
    padding: 25px;
    background: var(--primary-blue);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-bordered-box p {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    line-height: 1.6;
}

/* 4. تنسيق الديسك توب (إعادة النص فوق الصورة بجمالية) */
@media (min-width: 992px) {
    .hero-main-container {
        position: relative;
        height: 450px;
        overflow: hidden;
    }

    .hero-image-only {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .hero-image-only img {
        height: 100%;
        object-fit: cover;
    }

    .hero-text-under {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 46, 91, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .hero-bordered-box {
        max-width: 800px;
        background: rgba(0, 46, 91, 0.85);
    }
    
    .hero-bordered-box p { font-size: 22px; }
}

/* 5. زر القائمة والجوال */
.mobile-menu-trigger {
    display: none;
    cursor: pointer;
    background: var(--primary-blue);
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
}

@media (max-width: 991px) {
    .main-nav-ul { display: none; }
    .mobile-menu-trigger { display: flex; align-items: center; gap: 8px; }

    /* القائمة عند فتحها */
    .desktop-menu-nav.mobile-active .main-nav-ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 20px;
        right: 20px;
        background: #fff;
        padding: 20px;
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        z-index: 1000;
    }
}

/* 6. منع تداخل أزرار الواتساب (Floating Buttons) */
.floating-contact-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}