/*-------HEADER STYLES----------*/
header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    min-height: 80px;
    opacity: 0.8;
}

@media screen and (max-width: 640px) {
    header .wp-block-site-logo {
        width: 60px!important;
    }

    header .wp-block-site-logo  a img{
        width: 40px!important;
        height: 40px!important;
    }
}

body.admin-bar .header{
    margin-top: 32px;
    z-index: 999999;
}

.header{
    transition: background-color 0.35s ease-in-out;
}

.header.scrolled{
    background-color: var(--wp--preset--color--ji-black)!important;
    backdrop-filter: blur(60px);
}

.header .header__container{
    max-width: calc(100% - 40px)!important;
}

.header .header__container:nth-child(3){
    flex-basis: 45%!important;
}

@media (min-width: 1650px){
    .header .header__container {
        max-width: calc(100% - 80px) !important;
        padding-right: 40px;
        margin-left: 10px !important;
    }
}

@media (min-width: 1440px){
    .header .header-phone {
            display: flex;
            flex-direction: row !important;
            align-items: center;
        }
    
        .header .header-phone p:nth-child(1) {
            border-right: 1px solid #727272;
            padding-right: 1rem;
        }
}

.header .header-phone {
    margin-top: 0!important;
    color: var(--wp--preset--color--ji-white);
    text-shadow: 2px 2px 4px #000000;
}
.header .header-phone p a,
.mobile-menu .header-phone p a{
    transition: 0.35s ease-in-out;
}

.header .header-phone p a:hover,
.mobile-menu .header-phone p a:hover{
    color: var(--wp--preset--color--ji-red);
}

/* Hide navigation on desktop by default and show when scrolled */
.header .wp-block-navigation{
    display: none;
    width: 50%;
}

.header.scrolled .wp-block-navigation{
    display: flex;
    font-family: 'Muli', sans-serif!important;
}

.header .wp-block-navigation ul li:not(:last-child){
    margin-right: 40px;
}

@media screen and (max-width: 1200px) {
    .header .header__container {
        max-width: 100% !important;
    }

    .header .header-phone{
        display: none;
    }
}

/* Menu Toggle */
.menu-toggle{
    margin-bottom: -0.25rem!important;
    cursor: pointer;
}

.menu-toggle::before{
    font-size: 2rem;
    color: var(--wp--preset--color--ji-white);
    background-color: transparent;
    border-radius: 50%;
    padding: 4px;
}

/*-------------WEBSITE MOBILE MENU-----------------------*/
.mobile-menu{
    backdrop-filter: blur(5px);
    transform: translateX(100%);
    transition: all 0.35s ease-in-out;
    position: absolute;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    padding: 0 1rem!important;
    z-index: 99999s;
}

.mobile-menu.active{
    transform: translateX(0%);
}

.mobile-menu.close{
    transform: translateX(100%);
}

.mobile-menu .mobile-menu__container {
    background-color: var(--wp--preset--color--ji-black);
    opacity: 1 !important;
    width: 100%!important;
    max-width: 400px!important;
    margin-left: auto;
    margin-right: 0!important;
    padding: 2rem 1rem!important;
    float: right;
    height: 80vh;
    font-family: 'Muli', sans-serif !important;
    overflow-y: auto;
    transition: all 0.35s ease-in-out;
    position: relative;
}

/* Hide and reduce the opacity of the menu when the container is not active */
.mobile-menu .mobile-menu__container nav ul li{
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.35s, opacity 0.35s ease-in-out;
}

/* Show the nav items when the container is active */
.mobile-menu.active .mobile-menu__container.show nav ul li{
    transform: translateX(0%);
    opacity: 1;
}

.mobile-menu .mobile-menu__container a{
    color: var(--wp--preset--color--ji-white);
}

.mobile-menu::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    right: 1.35rem;
    top: -0.5rem;
    rotate: 45deg;
    background-color: var(--wp--preset--color--ji-white);
}

@media screen and (max-width: 1024px) {
    .mobile-menu .mobile-menu__container {
        width: 100% !important;
    }

    .mobile-menu .mobile-menu__container::before{
        right: 0.5rem;
    }

    .mobile-menu .row {
        flex-direction: row-reverse;
    }
}

/*--- Menu Items Styles for Desktop and Mobile ---*/
.header .header__container nav ul li a,
.mobile-menu .mobile-menu__container nav ul li a {
    color: var(--wp--preset--color--ji-white) !important;
    transition: all 0.35s ease-in-out;
}

.header .header__container nav ul li a:hover,
.mobile-menu .mobile-menu__container nav ul li a:hover{
    text-decoration: none;
    color: var(--wp--preset--color--ji-red) !important;
}