/*
|--------------------------------------------------------------------------
| RESET
|--------------------------------------------------------------------------
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #f4f2ee;
}

a {
    color: inherit;
    text-decoration: none;
}


/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #111827;
    border-bottom: 1px solid #374151;
    color: #fff;
}

.header .container {
    width: 100%;
    max-width: 1200px;
    min-height: 74px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/*
|--------------------------------------------------------------------------
| LOGO
|--------------------------------------------------------------------------
*/

.header-logo {
    flex-shrink: 0;
}

.header-logo a {
    display: inline-flex;
    align-items: center;

    color: #fff;

    font-size: 24px;
    font-weight: 700;

    letter-spacing: -0.5px;
}


/*
|--------------------------------------------------------------------------
| CONTEÚDO DO HEADER
|--------------------------------------------------------------------------
*/

.header-conteudo {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex: 1;
    gap: 35px;
}


/*
|--------------------------------------------------------------------------
| MENU
|--------------------------------------------------------------------------
*/

.header-menu {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 30px;
}

.header-menu a {
    position: relative;

    padding: 27px 0;

    color: #d1d5db;

    font-size: 15px;
    font-weight: 500;

    transition:
        color 0.2s ease;
}

.header-menu a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 18px;

    width: 0;
    height: 2px;

    background: #c5a16d;

    transition:
        width 0.2s ease;
}

.header-menu a:hover {
    color: #fff;
}

.header-menu a:hover::after {
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| USUÁRIO
|--------------------------------------------------------------------------
*/

.header-usuario {
    display: flex;
    align-items: center;

    gap: 18px;

    flex-shrink: 0;
}

.header-usuario a {
    color: #d1d5db;

    font-size: 14px;
    font-weight: 500;

    transition:
        color 0.2s ease;
}

.header-usuario a:hover {
    color: #fff;
}

.header-usuario a:last-child {
    padding: 10px 18px;

    border: 1px solid #c5a16d;
    border-radius: 7px;

    background: #c5a16d;
    color: #111827;

    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.header-usuario a:last-child:hover {
    background: #d4b47f;
    border-color: #d4b47f;
}

.usuario-nome {
    color: #fff;

    font-size: 14px;
    font-weight: 500;
}


/*
|--------------------------------------------------------------------------
| BOTÃO DO MENU MOBILE
|--------------------------------------------------------------------------
*/

.header-menu-botao {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid #374151;
    border-radius: 7px;

    background: transparent;

    cursor: pointer;
}

.header-menu-botao span {
    display: block;

    width: 20px;
    height: 2px;

    margin: 4px auto;

    background: #fff;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1000px) {

    .header .container {
        gap: 20px;
    }

    .header-conteudo {
        gap: 20px;
    }

    .header-menu {
        gap: 20px;
    }

    .header-menu a {
        font-size: 14px;
    }

    .header-usuario {
        gap: 12px;
    }

    .usuario-nome {
        display: none;
    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 750px) {

    .header .container {
        position: relative;

        min-height: 68px;

        padding-top: 13px;
        padding-bottom: 13px;
    }


    /*
    |----------------------------------------------------------------------
    | LOGO
    |----------------------------------------------------------------------
    */

    .header-logo a {
        font-size: 21px;
    }


    /*
    |----------------------------------------------------------------------
    | BOTÃO
    |----------------------------------------------------------------------
    */

    .header-menu-botao {
        display: block;

        flex-shrink: 0;
    }


    /*
    |----------------------------------------------------------------------
    | CONTEÚDO
    |----------------------------------------------------------------------
    */

    .header-conteudo {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        padding: 20px;

        border-top: 1px solid #374151;
        border-bottom: 1px solid #374151;

        background: #111827;

        flex-direction: column;
        align-items: stretch;

        gap: 20px;

        box-shadow:
            0 12px 25px rgba(0, 0, 0, .20);
    }


    /*
    |----------------------------------------------------------------------
    | MENU ABERTO
    |----------------------------------------------------------------------
    */

    .header-conteudo.aberto {
        display: flex;
    }


    /*
    |----------------------------------------------------------------------
    | MENU
    |----------------------------------------------------------------------
    */

    .header-menu {
        width: 100%;

        flex-direction: column;
        align-items: stretch;

        gap: 0;
    }

    .header-menu a {
        display: block;

        padding: 13px 5px;

        border-bottom: 1px solid #283244;

        font-size: 14px;
    }

    .header-menu a:last-child {
        border-bottom: 0;
    }

    .header-menu a::after {
        display: none;
    }


    /*
    |----------------------------------------------------------------------
    | USUÁRIO
    |----------------------------------------------------------------------
    */

    .header-usuario {
        width: 100%;

        padding-top: 15px;

        border-top: 1px solid #374151;

        flex-direction: column;
        align-items: stretch;

        gap: 8px;
    }

    .header-usuario a {
        display: flex;

        min-height: 40px;

        align-items: center;
        justify-content: center;

        border: 1px solid #374151;
        border-radius: 6px;

        font-size: 13px;
    }

    .header-usuario a:last-child {
        border-color: #c5a16d;
    }

    .usuario-nome {
        display: block;

        padding: 5px 0;

        text-align: center;

        font-size: 12px;
    }

}