@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&display=swap');
:root{
    --primaryColor:#E63A27;
    --middleColor:#393E46;
    --helperColor:#1C1C27;
    --lightHelper:#dce2f8;
    --hrColor: #A9B5DF;
    --transparentColor:rgba(0, 0, 0, 0.699);
    --shadow:rgba(189, 188, 188, 0.514);
   /* --------------------------------- */
    --whatsappColor:#25D366;
    --white:#ffff;
    --blue: #1877F2;
    --green: #25D366;
    --gray:  #f8f8f8;
}
* {
    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;
    }
}
