:root {
    --blue : rgb(43, 47, 131);
    --green : #1F562A;
    --dark-blue : rgba(34, 113, 94, 60%);
    --light-blue : rgba(83, 255, 161, 30%);
}

@font-face {
    font-family: 'BNazanin';
    src: url(../fonts/B\ Nazanin\ Bold_YasDL.com.ttf) format('ttf');
}
  
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'),
        url('../fonts/Vazirmatn-Bold.ttf') format('ttf');
    font-weight: 800;
    font-display: swap;
}
  
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'),
        url('../fonts/Vazirmatn-Regular.ttf') format('ttf');
    font-weight: 600;
    font-display: swap;
}

body{
    font-family: 'Vazirmatn' !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 !important;
    padding: 0 !important;
}

/* header */

.header-div {
    background-image: url(../img/contact.png);
    height: 500px;
    background-repeat: no-repeat;
}

.header-div ul {
    padding: 10px 15px;
    height: 80px;
    background-color: rgb(34, 113, 94, 2%);
    box-shadow: 0 0px 20px rgba(34, 113, 94, 0.2);
}

.header-div li{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 0 13px;
}

.header-div li:hover{
    background-color: var(--blue);
    border-radius: 20px;
    transition: all 0.3s ease;;
}

.header-div li:hover a{
    color: white !important;
}

.menu-icon{
    width: 26px;
    height: 23px;
    margin-left: 15px;
    transition: all 0.3s ease;;
}

.header-div li:hover path{
    fill: white !important;
}

li a{
    font-size: 19px !important;
    font-weight: 800 !important;
}

.datara-img {
    width: 200px;
    height: 117px;
}

/* ---------- mobile resposive -------------- */
   /* --- Mobile redesigned navigation --- */
   @media (max-width: 991px) {
    .navbar { padding: 12px 8px; }

    /* make toggler visually stable */
    .navbar-toggler { border: none; z-index: 1200; }
    .navbar-toggler img.navbar-toggler-icon { display: block; width: 34px; height: 34px; object-fit: contain; }

    /* mobile slide panel */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0; /* RTL: menu slides in from right */
        left: auto;
        width: 82%;
        max-width: 360px;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        z-index: 1150;
        padding: 110px 16px 30px;
        transform: translateX(105%); /* hidden by default */
        transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
        overflow-y: auto; /* scroll inside panel only */
        -webkit-overflow-scrolling: touch;
        box-shadow: -6px 0 30px rgba(0,0,0,0.25);
    }

    /* when opened */
    .navbar-collapse.show { transform: translateX(0); }

    /* make sure background (body) doesn't scroll when menu open */
    body.menu-open { height: 100%; overflow: hidden; }

    /* menu items animation */
    .navbar-nav { width: 100%; }
    .navbar-nav .nav-item { margin-bottom: 12px; opacity: 0; transform: translateY(20px); transition: all 0.38s ease; }
    .navbar-collapse.show .nav-item { opacity: 1; transform: translateY(0); }

    /* list styles */
    .navbar-nav .btn { width: 100%; text-align: right; font-weight: 800; font-size: 16px; }

    /* dropdown menu (mobile) */
    .dropdown-menu { width: 95%; margin: 6px auto; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.12); }

    /* keep desktop layout unaffected */
    .header-div ul { box-shadow: none; }
}

/* desktop reset */
@media (min-width: 992px) {
    .navbar-collapse { position: static; transform: none !important; height: auto; padding: 0; background: none; box-shadow: none; }
    .navbar-nav .nav-item { opacity: 1; transform: none; }
}

h1 {
    font-size: 30px;
    font-weight: 800;
}

/* -----main content----- */


h2 {
    font-size: 27px !important;
    font-weight: 800 !important;
    color: var(--blue);
    text-align: start;
}

p{
    font-size: 16px !important;
    font-weight: 600 !important;
    color: black !important;
}

h6{
    font-size: 14px;
    font-weight: 600;
}

.form-datara{
    padding: 0 50px;
}

.form-datara svg{
    width: 20px;
    height: 20px;
}

.form-datara path{
    fill: var(--green) !important;
}

.form-control, .form-select{
    font-family: 'Vazirmatn';
    font-size: 11px;
    font-weight: 600;
    padding: 10px;
}

.form-label{
    font-family: 'Vazirmatn';
    font-size: 13px;
    font-weight: 600;
    padding-bottom: 5px;
}

.service-form {
    box-shadow: 0 4px 20px rgba(25, 117, 74, 0.5);
    padding: 20px 30px;
    border-radius: 10px;
    border: 1px solid #BDBDBD;
    height: fit-content;
}

.service-form input, .form-select{
    direction: rtl !important;
    height: 50px;
    border-radius: 10px;
    background-color: #F9F9F9;
    border: 1.5px solid var(--blue);
}

.service-form textarea{
    direction: rtl !important;
    height: 140px;
    border-radius: 10px;
    background-color: #F9F9F9;
    border: 1.5px solid var(--blue);
}

.service-form .btn{
    width: 100%;
    height: 45px;
    border-radius: 10px;
    background-color: var(--green);
    border: 1px solid var(--green);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.service-form .btn:hover{
    margin: 0 auto;
    border-radius: 20px;
    font-size: 15px;
    background-color: #22715fab;
    box-shadow: 6px 6px 20px rgba(34, 113, 94, 0.5);
    transform: scale(1.04, 1.04);
}

/* -----footer----- */

footer{
    background: linear-gradient(to right, var(--dark-blue), var(--light-blue)) ;
    padding: 30px 50px 10px;
    margin-top: 90px;
}

.footer-h{
    font-size: 14px;
    font-weight: 800;
    color: var(--blue);
}

.custom-border {
    position: relative;
    padding: 10px 0;
    margin: 10px 0;
}

.custom-border::after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

.border-right::after {
    right: 0;
    width: 15%;
}

footer img{
    width: 115px;
    height: 67px;
}

footer svg{
    width: 20px;
    height: 20px;
}

footer path{
    fill: #ffffff;
}

.icons div {
    width: 45px;
    height: 45px;
    background-color: var(--green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 15px;
}

.main-div{
    margin-right: 100px;
}

.main-div a{
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    display: block;
    margin-top: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.main-div a:hover{
    font-size: 13px;
    color: var(--green);
    border-bottom: 1px solid var(--green);
    padding-bottom: 3px;
    margin: 0 1%; /* این مقدار طول border را کنترل می‌کند */
    display: inline-block;
}

.trust {
    margin-right: 100px;
    margin-left: 50px;
}

.trust img{
    width: 17px;
    height: 17px;
}

.trust span{
    font-size: 12px;
    font-weight: 600;
    color: #000000;
}

.trust div:nth-child(2), .trust div:nth-child(3), .trust div:nth-child(4){
    background: rgba(43, 47, 131, 0.25);
    border-radius: 20px;
    width: fit-content;
    padding: 2px 7px;
    margin-top: 15px;
}

.contact span{
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    margin: 0 15px;
}

.contact-icons {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--blue);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.contact-icons svg{
    width: 15px;
    height: 15px;
}

footer p{
    margin-top: 20px;
    font-size: 12px !important;
    text-align: center;
}


/* ------------ responsive ---------- */

@media (max-width: 768px) {

    .header-div {
        background-image: url(../img/contact-bg.png);
        height: 350px;
        background-repeat: no-repeat;
    }
    
    .datara-img {
        width: 130px;
        height: 80px;
    }

    h1 {
        font-size: 23px !important;
        font-weight: 800;
    }

    /* -----main content----- */


    h2 {
        font-size: 20px !important;
        text-align: center;
    }

    p{
        font-size: 14px !important;
    }

    h6{
        font-size: 14px;
    }

    .form-datara{
        padding: 0 20px;
        margin-top: 10px !important;

    }

    .form-text {
        margin-top: 10px !important;
    }

    .form-text, .form-text p{
        padding: 0 1px !important;
        text-align: center;
    }


    .form-datara svg{
        width: 17px;
        height: 17px;
    }

    .form-label{
        font-size: 12px !important;
        padding-bottom: 3px;
    }

    .service-form {
        padding: 20px;
    }

    .service-form input, .form-select{
        height: 40px;
    }

    .service-form textarea{
        height: 110px;
        border-radius: 10px;
    }

    .service-form .btn{
        height: 35px;
        font-size: 12px;
    }

    .service-form .btn:hover{
        font-size: 14px;
        transform: scale(1.03, 1.03);
    }

    /* -------- footer -------- */

    footer{
        padding: 30px 50px 10px;
    }

    footer img{
        width: 86px;
        height: 50px;
    }

    .footer-h{
        font-size: 13px !important;
    }

    .custom-border {
        position: relative;
        padding: 10px 0;
        margin: 10px 0;
    }

    .custom-border::after {
        width: 10px;
        bottom: 0;
        height: 2px;
        
    }

    .border-right::after {
        right: 0;
        width: 15%;
    }

    footer svg{
        width: 18px;
        height: 18px;
    }

    .icons div {
        width: 35px;
        height: 35px;
        margin: 0 15px;
    }

    .main-div{
        margin-right: 0;
        margin-left: auto;
        width: fit-content;
    }

    .main-div a{
        font-size: 11px;
        margin-top: 10px;
    }

    .main-div a:hover{
        font-size: 12px;
        padding-bottom: 3px;
        margin: 0 1%; /* این مقدار طول border را کنترل می‌کند */
    }

    .trust {
        margin: 20px auto 20px;
    }

    .trust img{
        width: 16px;
        height: 16px;
    }

    .trust span{
        font-size: 11px;
    }

    .trust div:nth-child(2), .trust div:nth-child(3), .trust div:nth-child(4){
        padding: 2px 7px;
        margin-top: 15px;
    }

    .contact span{
        font-size: 10px;
        margin: 0 13px;
    }

    .contact-icons {
        width: 27px;
        height: 27px;
    }

    .contact-icons svg{
        width: 13px;
        height: 13px;
    }

    footer p{
        margin-top: 25px;
        font-size: 10px !important;
    }


}