/* =========================================================
   SITE HEADER
========================================================= */

.site-header {
    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    width: 100%;
    height: 92px;

    z-index: 1000;

    background: transparent;

    transition:
        background-color .35s ease,
        backdrop-filter .35s ease,
        -webkit-backdrop-filter .35s ease,
        box-shadow .35s ease,
        height .35s ease;
}


/* =========================================================
   HEADER CONTAINER
========================================================= */

.site-header__container {

    width: min(1200px, calc(100% - 40px));

    height: 100%;

    margin: 0 auto;

    display: flex;

    align-items: center;

    gap: 28px;
}


/* =========================================================
   LOGO
========================================================= */

.site-header__logo {

    flex: 0 0 auto;

    display: flex;

    align-items: center;

    color: #ffffff !important;

    text-decoration: none !important;

    white-space: nowrap;
}


.site-header__logo span {

    display: block;

    padding-right: 20px;

    border-right: 1px solid rgba(255, 255, 255, .30);

    color: #ffffff;

    font-size: 23px;

    line-height: 1;

    font-weight: 700;
}


.site-header__logo:hover {

    color: #ffffff !important;
}


/* =========================================================
   NAVIGATION
========================================================= */

.site-header__nav {

    flex: 1 1 auto;

    min-width: 0;
}


.site-header__menu {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 3px;

    margin: 0;

    padding: 0;

    list-style: none;
}


.site-header__menu li {

    flex: 0 0 auto;

    margin: 0;

    padding: 0;

    list-style: none;
}


.site-header__menu li a {

    display: flex;

    align-items: center;

    justify-content: center;

    height: 42px;

    padding: 0 14px;

    border-radius: 22px;

    color: #ffffff !important;

    font-size: 14px;

    font-weight: 500;

    line-height: 1;

    white-space: nowrap;

    text-decoration: none !important;

    transition:
        background-color .25s ease,
        color .25s ease,
        transform .25s ease;
}


.site-header__menu li a:hover {

    background: rgba(255, 255, 255, .12);

    color: #ffffff !important;

    transform: translateY(-1px);
}


.site-header__menu li a.active {

    background: rgba(255, 255, 255, .16);

    color: #ffffff !important;
}


/* =========================================================
   SEARCH
========================================================= */

.site-header__search {

    flex: 0 0 210px;

    direction: rtl;
}


.site-header__search form {

    position: relative;

    width: 100%;

    margin: 0;
}


.site-header__search input {

    width: 100%;

    height: 42px;

    padding: 0 18px 0 45px;

    border: 1px solid rgba(255, 255, 255, .16);

    outline: none;

    border-radius: 24px;

    background: rgba(255, 255, 255, .10);

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    transition:
        background-color .25s ease,
        border-color .25s ease;
}


.site-header__search input::placeholder {

    color: rgba(255, 255, 255, .75);
}


.site-header__search input:focus {

    background: rgba(255, 255, 255, .16);

    border-color: rgba(255, 255, 255, .30);
}


.site-header__search button {

    position: absolute;

    top: 50%;
    left: 6px;

    transform: translateY(-50%);

    display: flex;

    align-items: center;

    justify-content: center;

    width: 34px;

    height: 34px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: transparent;

    color: #ffffff;

    cursor: pointer;
}


.site-header__search button i {

    font-size: 14px;
}


/* =========================================================
   SCROLLED HEADER - HOME
========================================================= */

.site-header.is-scrolled {

    position: fixed;

    top: 0;
    right: 0;
    left: 0;

    height: 76px;

    background: rgba(122, 106, 216, .90);

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, .12);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

.site-header__toggle {

    display: none;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    padding: 7px;

    border: 0;

    border-radius: 10px;

    background: rgba(255, 255, 255, .10);

    cursor: pointer;
}


.site-header__toggle span {

    display: block;

    width: 24px;

    height: 2px;

    margin: 5px auto;

    border-radius: 2px;

    background: #ffffff;

    transition: .3s ease;
}


/* =========================================================
   INNER PAGES
   مثل project_list
========================================================= */

body.inner-page {

    padding-top: 92px;
}


body.inner-page .site-header {

    position: fixed;

    top: 0;
    right: 0;
    left: 0;

    width: 100%;

    height: 76px;

    background: rgba(122, 106, 216, .96);

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, .12);

    border-radius: 0 0 18px 18px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);
}


/*
    در صفحات داخلی اسکرول نباید ظاهر هدر
    را خراب کند.
*/

body.inner-page .site-header.is-scrolled {

    position: fixed;

    top: 0;
    right: 0;
    left: 0;

    height: 76px;

    background: rgba(122, 106, 216, .98);

    border-radius: 0 0 18px 18px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .site-header__container {

        gap: 18px;
    }


    .site-header__logo span {

        font-size: 20px;

        padding-right: 14px;
    }


    .site-header__menu li a {

        padding: 0 10px;

        font-size: 13px;
    }


    .site-header__search {

        flex-basis: 170px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .site-header {

        height: 78px;
    }


    .site-header.is-scrolled {

        height: 70px;
    }


    .site-header__container {

        width: min(100% - 30px, 720px);

        gap: 12px;
    }


    .site-header__logo {

        margin-right: auto;
    }


    .site-header__logo span {

        font-size: 20px;
    }


    .site-header__search {

        display: none;
    }


    .site-header__toggle {

        display: block;
    }


    .site-header__nav {

        position: absolute;

        top: calc(100% + 8px);

        right: 15px;
        left: 15px;

        display: none;

        padding: 10px;

        border-radius: 18px;

        background: rgba(35, 28, 75, .97);

        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);

        box-shadow:
            0 15px 40px rgba(0, 0, 0, .20);
    }


    .site-header__nav.is-open {

        display: block;
    }


    .site-header__menu {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 4px;
    }


    .site-header__menu li a {

        justify-content: flex-start;

        width: 100%;

        height: 46px;

        padding: 0 18px;
    }


    /* INNER PAGE MOBILE */

    body.inner-page {

        padding-top: 78px;
    }


    body.inner-page .site-header {

        height: 70px;

        border-radius: 0 0 16px 16px;
    }


    body.inner-page .site-header.is-scrolled {

        height: 70px;

        border-radius: 0 0 16px 16px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {

    .site-header__container {

        width: calc(100% - 24px);
    }


    .site-header__logo span {

        font-size: 17px;

        padding-right: 10px;
    }


    body.inner-page {

        padding-top: 72px;
    }


    body.inner-page .site-header {

        height: 66px;

        border-radius: 0 0 14px 14px;
    }


    body.inner-page .site-header.is-scrolled {

        height: 66px;

        border-radius: 0 0 14px 14px;
    }
}