/*-------------------------------------------Menu CSS-----------------------------------------*/

.header{
    display: flex;
    position: relative;
    align-items: center;
    margin-bottom: -13%;
}

.menu{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    z-index: 1;
}

#logo{
    width: 20%;
    z-index: 0;
    transition: 0.3s ease-in-out;
    margin-left: 5%;
}

#wave{
    position: absolute;
    width: 100%;
    z-index: -1;
}

.menuItens{
    list-style-type: none;
    text-decoration: none;
    margin-right: 5%;
}

.itemMenu{
    display: inline-block;
    font-family: 'Fira Sans', sans-serif;
    font-weight: bolder;
    text-decoration: none;
    z-index: 1;
}

.Amenu{
    font-size: max(3vh, 10%);
    margin-left: 3rem;
    text-decoration: none;
    color: #ff7000;
    transition: 0.5s ease;
}


/*-------------------------------------------Menu Animation CSS-----------------------------------------*/

/* A animação só se aplica a telas maiores onde o menu hamburguer não é usado */
@media (min-width: 1801px) {
    .menu {
        animation: slide-down 1s ease-out forwards;
    }
}

/* Keyframe para a animação do menu descendo */
@keyframes slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (min-width: 1500px) {
    .Amenu:hover{
        color: #FFd4ae;
        text-shadow: 
            4px 4px 0px #FF7000;
    }
    #logo:hover{
        transform: scale(1.05);
    }
    .itemMenuSticky:hover{
        transform: scale(1.05);
    }
}

/*-------------------------------------------Menu Sticky CSS-----------------------------------------*/

.menuSticky{
    position: fixed;
    top: 0; 
    left: 0;
    background: linear-gradient(to right, #fcc49a, #FF7000);
    width: 100%;
    z-index: 1002;
    box-shadow: 
        0 0.5vh 1vh rgba(0,0,0,0.2);
    /* O menu começa escondido acima da tela e invisível */
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* Quando o JS adiciona a classe .active, o menu desliza para a visão */
.menuSticky.active {
    transform: translateY(0);
    opacity: 1;
}

.menuStickyContent{
    display: flex;
    justify-content: space-between; /* Alinha logo e itens */
    align-items: center;
}

.menuStickyItens{
    display: flex;
    list-style-type: none;
    text-decoration: none;
    margin-right: 15%;
}

.itemMenuSticky{
    transition: 0.6s ease-in-out;
    margin-left: 5%;
}

.AmenuSticky{
    text-decoration: none;
    font-family: 'Fira Sans', sans-serif;
    font-weight: bolder;
    color: #FFFFFF;
    font-size: 1.5em;
    transition: 0.6s ease-in-out;
}

#logoSticky{
    width: clamp(50px, 4%, 70px); /* Tamanho responsivo com limites */
    margin-left: 5%;
    transition: 0.3s ease-in-out;
}
/*-------------------------------------------Hamburger Menu CSS-----------------------------------------*/
.hamburger, .hamburger-sticky {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1005;
}

.hamburger .bar {
    display: block;
    width: 30px;
    height: 4px;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
    background-color: #FF7000; 
    border-radius: 2px;
}

.hamburger-sticky .bar-sticky {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #FFFFFF; /* Cor para o menu sticky */
    border-radius: 2px;
}

/*-------------------------------------------Responsive Menu (Mobile)-----------------------------------*/
@media (max-width: 1800px) {
    .header{
        margin-top: 0%;
    }

    .menuItens {
        position: fixed;
        display: flex;
        flex-direction: column;
        top: 0;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 158, 67, 0.603);
        backdrop-filter: blur(5px);
        width: 100%;
        height: 100vh;
        left: 0;
        transform: translateX(-100%);
        margin: 0;
        z-index: 1004; 
        transition: 1s ease-in-out;
    }

    .menuItens.active {
        left: 0;
        transform: translateX(0);
        transition: 1s ease-in-out;
    }

    .itemMenu { 
        margin: 0; 
        align-items: center;
        text-align: justify;
        color: #FFFFFF;
    }

    .Amenu { 
        font-size: 1.5rem;
        color: #FFFFFF;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 10%;
        right: 6%;
    }

    /* Animação do Hamburger para 'X' */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

    /* --- Sticky Menu --- */
    .menuStickyContent {
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
        align-items: center;
        padding: 0 2%;
    }

    .menuStickyItens {
        display: none;
        margin-left: 0;
    }

    #logoSticky {
        margin-left: 5%;
        width: clamp(40px, 5vh, 50px);
    }

    .hamburger-sticky {
        display: block;
        position: relative;
        right: 6%;
    }

    /* Animação do Hamburger Sticky para 'X' */
    .hamburger-sticky.active .bar-sticky:nth-child(2) { opacity: 0; }
    .hamburger-sticky.active .bar-sticky:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-sticky.active .bar-sticky:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
