@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,600;1,600&family=Poppins:wght@800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

html {
    scroll-behavior: smooth;
}

header {
    width: 100%;
    padding: 0 5%;
    display: flex;   
    justify-content: space-between;
    align-items: center;
    background: gray;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/*Estilização da Logo em Imagem*/
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

/*Menu Desktop*/
#nav_list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-item a {
    text-decoration: none;
    color: #03234d;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    display: inline-block;
    transition: color 0.3s ease;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #e11b1b;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-item a:hover {
    color: #e11b1b;
}

.nav-item a:hover::after {
    width: 100%;
}

.nav-item.nav-item-active a {
    color: #e11b1b;
}

.nav-item.nav-item-active a::after {
    width: 100%;
}

#mobile_btn, 
#mobile_menu {
    display: none;
}

/*RESPONSIVIDADE (DISPOSITIVOS MÓVEIS)*/
@media (max-width: 768px) {
    #nav_list {
        display: none; /* Esconde o menu desktop */
    }

    /* Botão Hambúrguer */
    #mobile_btn {
        display: block;
        color: #ffffff;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        padding: 5px;
        transition: color 0.3s ease;
    }

    #mobile_btn:hover {
        color: #e11b1b;
    }

    /*Gaveta/Menu Suspenso Mobile*/
    #mobile_menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #03234d;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease;
    }

    /*Classe ativada via JavaScript ao clicar no ícone*/
    #mobile_menu.active {
        max-height: 320px;
        padding: 20px 0;
    }

    #mobile_nav_list {
        list-style: none;
        width: 100%;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    #mobile_nav_list .nav-item {
        margin: 12px 0;
    }

    #mobile_nav_list .nav-item a {
        font-size: 18px;
        font-weight: 600;
        color: #ffffff;
        padding: 10px 20px;
        display: block;
    }

    #mobile_nav_list .nav-item a:hover {
        color: #e11b1b;
    }
}