/* ===================================
   HEADER
=================================== */


#mainheader{

    width:100%;
    background:var(--secondary);
    color:#111;
    z-index:1000;

}



/* بخش اصلی هدر */

.header-container{

    width:95%;
    max-width:1200px;
    margin:auto;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:25px;

    padding:15px 0;

}



/* لوگو */

.logo{

    width:80px;
    height:80px;

    object-fit:contain;

    border-radius:10px;

}



/* متن معرفی */

.header-info{

    flex:1;
    text-align:center;

}


.header-info h1{

    font-size:26px;
    margin:0 0 8px;

}


.header-info p{

    font-size:16px;
    line-height:2;

    margin:0;

}



/* شماره تماس */

.header-phone a{

    display:block;

    background:#02003d;

    color:#fff;

    padding:12px 22px;

    border-radius:30px;

    text-decoration:none;

    font-weight:bold;

    transition:.3s;

}


.header-phone a:hover{

    background:#fff;

    color:#02003d;

}



/* ===================================
   QUICK BAR
=================================== */


.quick-bar{

    width:100%;

    background:#02003d;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:15px;

    padding:15px;

    direction:rtl;

}



/* دکمه ها */

.quick-item,
.platform-btn{


    display:flex;

    align-items:center;

    justify-content:center;


    min-width:170px;

    padding:12px 25px;


    border-radius:30px;

    border:none;

    text-decoration:none;

    font-family:inherit;

    font-size:15px;

    font-weight:bold;

    cursor:pointer;

    transition:.3s;

}



/* ثبت بار */

.load{

    background:#ffb000;

    color:#000;

}



/* تماس */

.call{

    background:#009b45;

    color:white;

}



/* شبکه اجتماعی */

.platform-btn{

    background:#0077c8;

    color:white;

}



/* هاور */

.quick-item:hover,
.platform-btn:hover{

    transform:translateY(-3px);

}



/* ===================================
   SOCIAL DROPDOWN
=================================== */


.platform-dropdown{

    position:relative;

}



.platform-menu{


    display:none;

    position:absolute;

    top:55px;

    right:0;


    width:180px;


    background:#fff;

    border-radius:15px;


    box-shadow:0 5px 20px rgba(0,0,0,.2);


    overflow:hidden;

    z-index:2000;

}



.platform-menu a{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;


    padding:12px;


    color:#222;

    text-decoration:none;


    border-bottom:1px solid #eee;

}



.platform-menu img{

    width:30px;

    height:30px;

}



.platform-menu a:hover{

    background:#ffb000;

}



.platform-dropdown:hover .platform-menu{

    display:block;

}





/* ===================================
   NAVIGATION
=================================== */

#mainnav{

    display:flex;
    flex-wrap:wrap;

    justify-content:center;
    align-items:center;

    gap:10px;

    padding:15px;

    white-space:normal;
     background:#17145d;
}



.nav-link{

    color:#fff;

    text-decoration:none;

    font-weight:bold;

    position:relative;
margin:5px;

}



.nav-link::after{


    content:"";


    position:absolute;


    right:0;

    bottom:-8px;


    width:0;

    height:3px;


    background:var(--secondary);


    transition:.3s;


}



.nav-link:hover{

    color:var(--secondary);

}



.nav-link:hover::after{

    width:100%;

}




@media (max-width:700px){

    /* ===================================
       HEADER MOBILE
    =================================== */

    #mainheader{
        width:100%;
    }

    .header-container{
        width:94%;
        margin:auto;

        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;

        gap:5px;

        padding:10px 0 12px;
    }

    /* لوگو */
    .logo{
        width:60px;
        height:60px;
        border-radius:9px;
    }

    /* متن */
    .header-info{
        width:100%;
        flex:none;
        text-align:center;
    }

    .header-info h1{
        font-size:21px;
        line-height:1.5;
        margin:3px 0 5px;
    }

    .header-info p{
        font-size:13px;
        line-height:1.8;
        margin:0 auto;
        max-width:95%;
    }

    /* شماره تماس */
    .header-phone{
        margin-top:5px;
    }

    .header-phone a{
        padding:9px 22px;
        font-size:14px;
        border-radius:28px;
    }


    /* ===================================
       QUICK BAR
    =================================== */

    .quick-bar{
        width:100%;
        padding:12px 8px;

        display:flex;
        flex-direction:column;

        align-items:center;
        justify-content:center;

        gap:8px;
    }

    .quick-item,
    .platform-btn{
        width:90%;
        min-width:0;

        padding:10px 18px;

        font-size:15px;
        line-height:1.5;

        border-radius:30px;
    }

    /* شبکه های اجتماعی */
    .platform-dropdown{
        width:90%;
        display:flex;
        justify-content:center;
    }

    .platform-menu{
        position:absolute;
        top:48px;
        right:5%;

        width:90%;
        max-width:300px;
    }


    /* ===================================
       NAVIGATION
    =================================== */

    #mainnav{
        width:100%;

        display:flex;
        flex-wrap:nowrap;

        justify-content:flex-start;
        align-items:center;

        gap:5px;

        padding:10px 12px;

        overflow-x:auto;
        overflow-y:hidden;

        white-space:nowrap;

        min-height:45px;

        scrollbar-width:none;
    }

    #mainnav::-webkit-scrollbar{
        display:none;
    }

    .nav-link{
        flex:0 0 auto;

        font-size:13px;

        margin:2px 7px;

        white-space:nowrap;
    }

    .nav-link::after{
        bottom:-5px;
        height:2px;
    }

}