/* ================= MENU ================= */
.menu {
    position: fixed;
    top: 60px;
    /* abaixo do header fixo */
    left: 0;
    width: 240px;
    height: calc(100% - 60px);
    /* altura do menu abaixo do header */
    background-color: var(--white-color);
    z-index: 9999;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);

    /* menu fechado inicialmente */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

/* menu aberto */
#close-menu:checked~.menu {
    transform: translateX(0);
}

/* ================= LINKS ================= */
.menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.menu nav ul li {
    margin: 1rem 0;
}

.menu nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 2rem;
    display: block;
    font-family: Montserrat, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.menu nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 1rem;
    left: 25%;
    width: 0;
    height: 0.2rem;
    background: crimson;
    transition: all 300ms ease-in-out;
}

.menu nav ul li a:hover::after {
    width: 50%;
    left: 25%;
}

/* ================= HEADER FIXO ================= */
.header-fixed {
    position: fixed;
    /* fixo no topo */
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background-color: var(--white-color);
    z-index: 10001;
    /* acima do menu */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-fixed .logo-img img {
    width: 33px;
    height: auto;
    display: block;
    margin-right: 1rem;
}

.header-fixed h1 {
    font-family: Montserrat, sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
}

/* ================= BOTÃO HAMBURGER ================= */
.close-menu {
    display: none;
}

.close-menu-label {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10002;
    /* acima do header */
}

.close-menu-label::after {
    content: '☰';
}

#close-menu:checked+.close-menu-label::after {
    content: '×';
}

/* ================= LAYOUT DESKTOP ================= */
@media(min-width: 768px) {
    .menu {
        position: relative;
        top: 0;
        height: auto;
        width: 100%;
        flex-direction: row;
        transform: translateX(0);
        box-shadow: none;
    }

    .menu nav ul {
        flex-direction: row;
        justify-content: flex-end;
        align-items: relative;
    }

    .menu nav ul li {
        margin: 0 1rem;
    }

    .close-menu-label {
        display: none;
    }

    .header-fixed {
        position: relative;
        box-shadow: none;
    }
}