

/* ================= HEADER ================= */

.main-header{
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    height: 120px;
    background: #fff;
    z-index: 9999;
    transition: top 0.3s ease;
}

/* حالات الـ navbar */
.main-header.navbar-hidden {
    top: 0 !important;
}

.main-header.navbar-visible {
    top: 10px !important;
}

/* تأكد من عدم ترك مساحة فارغة في الأعلى */
.main-header + main,
main {
    margin-top: 0;
    padding-top: 0;
}

.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ================= LOGO ================= */

.logo{width:200px;}
.logo img{width:100%;}

/* ================= COMPANY NUMBER ================= */

.company-num{
    display:none;
    font-weight:700;
}

.company-num a{
    text-decoration:none;
    color:var(--primaryColor);
    transition:.3s;
}

.company-num a:hover{
    color:var(--blue);
}

/* ================= APPOINTMENT BUTTON ================= */

.appointment{display:flex;}

.btn-appointment{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:var(--primaryColor);
    color:#fff;
    padding:14px 35px;
    border-radius:50px;
    font-weight:700;
    text-decoration:none;
    transition:.3s;
}

.btn-appointment:hover{
    background:var(--blue);
}

/* ================= DESKTOP NAV ================= */

.nav-links{
    display:flex;
    gap:20px;
    align-items:center;
}

.nav-links a{
    text-decoration:none;
    color:var(--primaryColor);
    font-weight:600;
    padding:10px 18px;
    border-radius:25px;
    transition:.3s;
}

.nav-links a:hover,
.nav-links a.active{
    background:var(--primaryColor);
    color:#fff;
}

/* ===== Desktop Dropdown ===== */

.dropdown{
    position:relative;
}

.dropdown-menu{
    position:absolute;
    top:100%;
    right:0;
    background:#fff;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
    border-radius:15px;
    padding:10px;
    min-width:200px;
    display:none;
}

@media(min-width:901px){
    .dropdown:hover .dropdown-menu{
        display:block;
    }
}

.dropdown-menu a{
    display:block;
    padding:8px 10px;
    border-radius:10px;
}

.dropdown-menu a:hover{
    background:var(--primaryColor);
    color:#fff;
}


.hamburger{
    display:none;
}
/* ================= SOCIAL ICONS ================= */

.social-icons{
    display:none;
}

/* ================= MOBILE ================= */

@media(max-width:900px){

/* Hide appointment button */
.appointment{
    display:none;
}

.main-header{
    height:auto;
    padding:15px;
}

.header-inner{
    flex-direction:column;
    align-items:flex-start;
}

.brand{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{width:60%;}

.hamburger{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    background:var(--blue);
    padding: 12px;
    border:none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger span{
    width:28px;
    height:3px;
    background:var(--primaryColor);
    border-radius:3px;
}

/* Company number under logo */
.company-num{
    display:block;
    margin-top:10px;
}

/* ===== SIDE MENU ===== */

.nav-links{
    position:fixed;
    top:0;
    right:-100%;
    width:300px;
    height:100%;
    min-height:100vh;
    background:var(--primaryColor);
    flex-direction:column;
    padding:100px 20px 30px;
    transition:.4s;
    z-index:99999;
    overflow-x:hidden;
    overflow-y:auto;
    box-sizing:border-box;
}

.nav-links.show{
    right:0;
}

.nav-links a{
    width:100%;
    text-align:center;
    padding:15px;
    margin-bottom:10px;
    border-radius:15px;
    color:#fff;
    background:transparent;
    box-sizing:border-box;
}

.nav-links a:hover,
.nav-links a.active{
    background:rgba(255,255,255,0.2);
}

/* Dropdown mobile */



.dropdown{
    width:100%;
    display:flex;
    flex-direction:column;
    cursor:pointer;
}
.dropdown > a{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px;
    margin-bottom:10px;
    border-radius:15px;
    color:#fff;
    background:transparent;
    text-align:center;
    box-sizing:border-box;
}
.dropdown > a::after{
    font-family:"Font Awesome 6 Free";
    content:"\f078";
    font-weight:900;
    font-size:13px;
    margin-right:auto;
    margin-left:0;
    transition:transform .35s ease;
}
.dropdown.open > a::after{
    transform:rotate(180deg);
}

.dropdown-menu{
    display:block;
    position:static;
    box-shadow:none;
    padding:0;
    min-width:unset;
    max-height:0;
    overflow:hidden;
    background:var(--primaryColor);
    border-radius:15px;
    transition:.4s;
    width:90%;
    margin-inline:auto;
}


.dropdown.open .dropdown-menu{
    max-height:300px;
    margin-top:0;
    margin-bottom:10px;
    padding:8px 0;
}
.dropdown-menu a{
    display:block;
    width:100%;
    text-align:center;
    padding:12px 10px;
    color:#fff;
    border-radius:10px;
    box-sizing:border-box;
}


/* ===== Social ===== */

.social-icons{
    display:flex;
    gap:15px;
    margin-top:150px;
    justify-content:center;
}

.social-icons a{
    width:30px ;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border-radius:10px;
    color:var(--primaryColor);
    font-size:18px;
}

}

/* ===== Overlay ===== */

.nav-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:9998;
}

.nav-overlay.show{
    opacity:1;
    visibility:visible;
}