@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&display=swap');

:root {
    --primaryColor: #212223;
    --middleColor: #1d7c47;
    --helperColor: #061f44;
    --lightHelper: #0bcae3;
    --transparentColor: rgba(0, 0, 0, 0.699);
    --shadow: rgba(189, 188, 188, 0.514);
    /* --------------------------------- */
    --whatsappColor: #25D366;
    --white: #ffff;
    --facebook-color: #1877F2;
    --green: #25D366;
    --gray: #f8f8f8;

    --container-width: 1440px;

    --radius-md: 10px;
    --radius-lg: 16px;
    --border-medium: 2px;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 24px;
    --space-xl: 30px;

    --shadow-right: 4px 0 10px var(--shadow-color);
    --shadow-sm: 0px 4px 6px var(--shadow-color);
    --shadow-md: 0 5px 12px var(--shadow-color);
    --shadow-lg: 0 10px 25px var(--shadow-color);


    --text-md: 16px;
    --text-lg: 20px;
    --text-xl: 28px;
    --text-2xl: 38px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* ✅ نافبار */
.navbar {
    background: #222;
    color: #fff;
    padding: 5px 15px;
}

.navbar-container {
    display: flex;
    align-items: center;
}

.navbar a {
    color: #fff;
    text-decoration: none;
}

.spacer {
    flex: 1;
}

.social-icons i {
    font-size: 20px;
}

/* ✅ الهيدر الرئيسي */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 99999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}

.logo img {
    height: 50px;
}

.company-name {
    font-size: 20px;
}

.pages {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.pages a {
    text-decoration: none;
    color: #333;
    font-size: 20px;
    padding: 8px 12px;
}

.dropdown a {
    padding: 0;
}

.dropdown button {
    background-color: #fff;
    border: none;
}

.pages a:hover {
    background: #f5f5f5;
    border-radius: 4px;
}

/* القائمة الفرعية */
.dropdown-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px 10px 5px;
    list-style: none;
}

.dropdown-menu li a {
    padding: 10px 15px;
    display: block;
    color: #333;
    padding: 10px 5px;
    text-decoration: none;
}

/* ✅ زر القائمة للموبايل */
.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
}

/* الكمبيوتر: تظهر بالـ hover */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: flex;
        position: absolute;
        min-width: 220px;
        z-index: 998;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: relative;
        box-shadow: none;
    }

    .dropdown.open .dropdown-menu {
        display: flex;
    }

    .pages {
        position: absolute;
        top: 100px;
        right: 0;
        background: #fff;
        flex-direction: column;
        width: 100%;
        transform: translateY(-55px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s ease, opacity 0.4s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .pages.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-btn {
        display: block;
        color: #333;
    }
}