.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.logo {
    display: flex;
    height: 25px;
    width: 146px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.menu a {
    font-weight: 500;
    color: var(--white);
    opacity: 0.7;

    &::after {
        content: "";
        display: block;
        height: 1px;
        background-color: currentColor;
        width: 100%;
        transform: scaleX(0);
        transform-origin: left center;
        transition-duration: 0.5s;
        transition-property: transform;
    }

    &:hover,
    &.is-selected {
        opacity: 1;

        &::after {
            transform: none;
        }
    }
}

.header .icon {
    opacity: 0.5;
    transition-duration: 0.5s;
    transition-property: opacity;

    &:hover,
    &.is-selected {
        opacity: 1;
    }
}

.burger {
    align-items: stretch;
    flex-direction: column;
    height: 2rem;
    width: 2rem;
    gap: 0.5em;
    padding: 0.25rem;
    margin-left: auto;

    div {
        background-color: var(--white);
        height: 2px;
        margin: 0 0.25em;

        &:nth-child(2) {
            margin: 0;
        }
    }
}

.nav {
    display: flex;
    align-items: center;

    .buttons {
        font-size: 0.75em;
    }
}

.menu {
    display: flex;
    align-items: center;
}

@media screen and (max-width: 999px) {
    .header {
        flex-wrap: wrap;
    }

    .nav {
        flex-wrap: wrap;
        width: 100%;
        margin-top: 1em;
        gap: 1em;
        justify-content: center;

        &:not(.is-open) {
            display: none;
        }
    }

    .menu {
        justify-content: center;
        gap: 0.75em;
        flex-wrap: wrap;
        width: 100%;
    }
}

@media screen and (min-width: 1000px) {
    .header {
        padding: 3rem;
        gap: 2em;
    }

    .nav {
        flex-grow: 1;
        gap: 2em;

        .icons {
            margin-left: auto;
        }
    }

    .menu {
        gap: 1.5em;
    }

    .burger {
        display: none;
    }
}
