/* ==========================================================
   NAVBAR ADAPTADA PARA A IDENTIDADE VISUAL DA APE
========================================================== */

/* --- 1. ESTILO BASE DA NAVBAR --- */
.ape-nav {
    position: fixed; 
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 95%;
    max-width: 900px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 3.8rem;
    /* ADAPTADO: Fundo com as cores da nossa página */
    background-color: rgba(28, 28, 31, 0.8); /* Cor var(--bg-card) com opacidade */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* ADAPTADO: Borda com a cor de destaque */
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: border-radius 0.3s ease;
}

.navbar-logo {
    height: 28px;
    display: block;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    gap: 0.5rem;
}

.nav-highlight {
    position: absolute;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    width: 0;   
    border-radius: 50px;
    /* ADAPTADO: Destaque com o gradiente da nossa página */
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    transition: transform 350ms cubic-bezier(.2,.9,.3,1), width 350ms cubic-bezier(.2,.9,.3,1);
    pointer-events: none;
    z-index: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    color: var(--text-muted); /* ADAPTADO */
    text-decoration: none;
    border-radius: 50px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.link-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-link > i:first-child {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.nav-item:not(.active) .nav-link:hover {
    color: var(--text-light); /* ADAPTADO */
}

.nav-item.active .nav-link {
    color: var(--text-light); /* ADAPTADO */
}

/* ADAPTADO: Botão CTA agora usa o gradiente da página */
.nav-link.btn-cta {
    background: var(--highlight-gradient);
    color: #fff;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.nav-link.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    color: #fff;
}


/* --- 2. RESPONSIVIDADE E MENU HAMBÚRGUER --- */
.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-light); /* ADAPTADO */
    margin: 3px 0;
    transition: 0.4s;
}

@media (max-width: 999px) {
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        /* ADAPTADO: Cores do menu mobile */
        background-color: rgba(28, 28, 31, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border: 1px solid var(--border-color);
    }
    
    .nav-list.active { display: flex; }
    .nav-highlight { display: none; }
    
    .navbar-container { padding: 0.5rem 1rem; }
    .navbar-container.menu-open {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .hamburger-menu { display: flex; flex-direction: column; }
    
    .hamburger-menu.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 5px); }
    .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
    .hamburger-menu.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -5px); }
}