.main-header{
    margin-inline: auto;
    position: fixed;
    top: 1rem;
    z-index: 10;
    width: 100%;
    transform: translateY(-100%);
    opacity: 0;
    transition: all .3s;
    /* display: none; */
}
.main-header.on{
    transform: translateY(0);
    opacity: 1;    
}
.main-header .wrapper{
    width: 100vw;
}
.main-header-wrapper{
    width: 100%;
    align-items: center;
    background-color: #fff;
    border-radius: 100px;
    padding: .5rem .5rem .5rem 1.5rem;
    justify-content: center;
    border:1px solid #704516;
    position: relative;
}

.main-header .logo{
    /* margin-right: auto; */
    overflow: hidden;
    position: absolute;
    left: -2rem;
    width: 200px;
}
.main-header.therapy .logo{
    width: 80px;
    border-radius: 50%;
}

.main-header h2{
    margin-inline: 5rem auto;
    font-weight: 100;
}

.main-nav ul{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    gap: 2rem;
}

.nav-item{
    letter-spacing: .9px;
    font-size: 18px;
}

.menu-btn{
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 50%;
    background-color: #704516;
    margin-left: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: none;
}
.menu-btn::after{
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--colorBg);
    position: absolute;
    left:0; top:100%;
    transition: top .3s;
    z-index: 2;
}
.menu-btn:hover::after{
    top: 0;
}

.menu-btn-wrapper{
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
}
.menu-btn .line{
    position: absolute;
    width: 100%;
    border-top: 2px solid #fff;
    border-radius: 5px;
    left: 0;
    top: 50%;
    transform-origin: center;
    transition: all .3s;
}
.menu-btn .line:first-of-type{top: calc(20%);}
.menu-btn .line:last-of-type{top: calc(80%)}

.menu-btn:hover .line{
    border-color: #704516;
}

.menu-btn.on .line:first-of-type{top: 50%; transform: rotate(45deg);}
.menu-btn.on .line:last-of-type{top: 50%; transform: rotate(-45deg);}
.menu-btn.on .line:nth-of-type(2){opacity: 0;}


.book-btn .mob-btn{display: none;}

@media screen and (max-width: 1280px) {
    .menu-btn{
        display: block;
    }
    .main-nav{
        position: absolute;
        right: 0; top: calc(100% + 1rem);
        width: 300px;
        border-radius: 30px;
        max-height: 0;
        transition: max-height .3s;
        overflow: hidden;
    }
    .main-header:has(.menu-btn.on) .main-nav{
        max-height: 1000px;
    }
    .main-nav ul{
        flex-direction: column;
        gap: 1rem;
        align-items: flex-end;
        position: relative;
        left: unset; top: unset;
        transform: translate(0);
        padding: 2rem 1rem;
        border-radius: 30px;
        border: 1px solid #704516;
        background-color: rgba(255,255,255,0.7);
        -webkit-backdrop-filter: blur(10px);
                backdrop-filter: blur(10px);
    }
    .main-header-wrapper{
        position: relative;
    }
}

@media screen and (max-width: 1020px) {
    .main-header .logo{
        width: 150px;
    }
    .main-header h2{
        margin-left: 3rem;
        font-size: 22px;
    }
}
@media screen and (max-width: 620px) {
    .book-btn .btn{
        padding:.5rem;
        width: 48px;
        height: 48px;
        display: grid;
        place-content: center;
    }
    .book-btn span,
    .book-btn .btn-arrow{
        display: none;
    }
    .book-btn .mob-btn{
        display: block;
        filter: var(--filterGold);
        width: 1.75rem;
    }
}

@media screen and (max-width: 440px) {
    .main-header .logo{
        width: 135px;
    }
    .main-header h2{
        margin-left: 2.5rem;
        font-size: 20px;
    }
    .menu-btn,
    .book-btn .btn{
        width: 36px;
        height:36px;
    }
    .menu-btn{
        margin-left: .5rem;
        padding: 8px;
    }

    .book-btn .mob-btn{
        width: 1.25rem;
    }
}