.header {
    /* min-height: 10vh; */
    
    overflow: hidden;
    padding: 10px 20px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid white;
    background-color: var(--graphite);

    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); */
    /* border: 1px solid rgba(0, 0, 0, 0.04); */

    /* background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 
    1px 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 10px 5px rgba(255, 255, 255, 0.1); */ 

}

.header-title {
    margin-top: 10px;
    margin-left: 30px;

    position: relative;
}

.header-title::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -7px;
    width: 15%;
    height: 80%;
    border-top: 2px solid white;
    border-left: 2px solid white;
}



.header-text {    
    color: white;
    line-height: 1;
}

.header-title-name {
    font-size: var(--font-display);
}

.header-title-psy {
    font-size: clamp(1.5rem, 1.1rem + 1vw, 2.2rem);
    margin-top: 4px;
    padding-left: 0.5%;
}


.nav {
    display: flex;
    width: 50%;
    justify-content: space-between ;
    /* column-gap: 50px; */
}

.nav-link {
    padding: 13px 15px;

    position: relative;

    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem);
    font-family: var(--body-font-light);
}

.nav-link:active {
    transform: scale(0.95);
}

.nav-link.underline::after {
    content: '';
    position: absolute;
    height: 3px;
    left: 0;
    bottom: 0;
    width: 0;
    background: white;
    transition: width .6s;
}

.nav-link.underline:hover::after {
    width: 100%;
}


.nav-link.nav-appointment::after, .nav-link.nav-appointment::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid white;
    transition: width 0.6s, height 0.6s;
}

.nav-link.nav-appointment::before {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;   
}

.nav-link.nav-appointment::after {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
} 


.nav-link.nav-appointment:hover::after, .nav-link.nav-appointment:hover::before {
    width: 97%;
    height: 94%;
}

.menu-toggle {
    display: none;
}
/* 
@media (max-width: 1400px) {
    .header-title-name {
        font-size: 40px;
    }

    .header-title-psy {
        font-size: 30px;
    }

    .nav-link {
        font-size: 20px;
        padding: 10px 10px;
    }
} */

@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    .header {
        height: fit-content;
        width: 100%;

        padding-top: 20px;

        position: fixed;
        top: 0;
        left: 0;
        box-sizing: border-box;
        overflow: visible;
        z-index: 20;
    }

    .header-title {
        margin: 0;
        z-index: 2;
    }
    /* 
    .header-title::before,
    .header-title-psy {
        display: none;
        } */
        
    .header-title-name {
        font-size: clamp(1.15rem, 1.3rem + 2vw, 1.7rem);
    }
    
    .header-title-psy {
        font-size: clamp(1.15rem, 1.3rem + 2vw, 1.7rem);
    }

    .menu-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        padding: 8px 4px;
        border: 0;
        background: transparent;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        z-index: 2;
    }

    .menu-toggle span {
        display: block;
        width: 34px;
        height: 1px;
        background: white;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100svh - 90px);
        box-sizing: border-box;
        padding: 5rem 2rem 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(1.25rem, 4vh, 2.25rem);
        background: linear-gradient(rgba(25, 25, 25, 0.35), rgba(25, 25, 25, 0.35)), url(../img/main-bg4.jpg) center / cover no-repeat;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .header.menu-open .nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .header.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .header.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-link {
        padding: 0;
        font-size: clamp(1.15rem, 4vw, 1.5rem);
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .nav-link.underline::after {
        height: 1.5px;
        bottom: -3px;
    }

    .nav-link.nav-appointment {
        margin-top: clamp(1rem, 4vh, 2rem);
        padding: 1.1rem;
    }

}






