@import url('https://fonts.googleapis.com/css2?family=Aleo:wght@400;700&family=Baloo+2:wght@400;700&display=swap');

/* RESET */
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root
{
    --bg: #181818;
    --text: #8d8d8d;
    --text-hover: #afafaf;
    --amarelo-01: #f3a302;
    --amarelo-02: #f0a90f;
}

ul
{
    margin: 0;
    padding: 0;
}

li
{
    list-style: none;
}

a
{
    text-decoration: none;
}

/* HEADER */
#logo img
{
    height: 85px;
    padding: 0;
    margin: 0;
}

#header
{
    box-sizing: border-box;
    height: 90px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(165deg, #4e4e4e, #181818 100%);
}

/* MENU */
#menu
{
    display: flex;
    gap: 1.1rem;
}
#menu a
{
    display: block;
    font-size: 1.1rem;
    line-height: 60px;
    color: var(--text);
    border-bottom: 4px solid transparent;
    transition: all .2s;
}

#menu a:hover
{
    color: var(--text-hover);
    border-bottom: 4px solid var(--amarelo-01);
} 

#menu li.active a
{
    color: var(--text-hover);
    border-bottom: 4px solid var(--amarelo-01);
}

/* BUTTON MOBILE */
#btn-mobile
{
    display: none;
}

@media (max-width: 700px)
{
    #menu
    {
        display: block;
        position: absolute;
        width: 100%;
        top: 90px;
        right: 0;
        background: linear-gradient(65deg, #4e4e4e 20%, #181818 100%);
        transition: .6s;
        z-index: 10000;
        height: 0;
        visibility: hidden;
        overflow-y: hidden;
    }

    #nav.active #menu
    {
        height: calc(100vh - 90px);
        visibility: visible;
        overflow-y: auto;
    }

    #menu a
    {
        
        padding: 1rem 0;
        margin: 0 1rem;
        text-align: center;
        font-size: 1.5rem;
    }

    #btn-mobile
    {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        width: 45px;
        height: 50px;
        border-radius: 5px;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        border: none;
        background: none;
        cursor: pointer;
        gap: 0.5rem;
        overflow: hidden;
    }

    #btn-mobile span
    {
        position: absolute;
        width: 25px;
        height: 3px;
        background: var(--amarelo-01);
        border-radius: 4px;
        transition: .3s;
    }

    #btn-mobile span:nth-child(1)
    {
        transform: translateY(-15px);
        width: 35px;
        left: 6px;
    }

    #nav.active span:nth-child(1)
    {
        width: 30px;
        transform: translateY(0) rotate(45deg);
        transition-delay: 0.125s;
    }

    #btn-mobile span:nth-child(2)
    {
        transform: translateY(15px);
        width: 15px;
        left: 6px;
    }

    #nav.active span:nth-child(2)
    {
        width: 30px;
        transform: translateY(0) rotate(315deg);
        transition-delay: 0.25s;
    }

    #nav.active span:nth-child(3)
    {
        transform: translateX(60px);
    }
}

@media (min-width: 320px) and (max-width: 480px){
    #header{
        height: 65px;
    }

    #logo img{
        height: 60px;
    }

    #menu{
        top: 65px;
    }

    #nav.active #menu{
        height: calc(100vh - 65px);
    }
}

@media (min-width: 480.98px) and (max-width: 600px){
    #header{
        height: 70px;
    }

    #logo img{
        height: 65px;
    }

    #menu{
        top: 70px;
    }

    #nav.active #menu{
        height: calc(100vh - 70px);
    }
}
