/* ============================================
   NAVBAR RESPONSIVE - MOBILE MENU
   ============================================ */

/* Botão Hambúrguer */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 102;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #1e293b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* ============================================
   DESKTOP (>768px) - Menu normal visível
   ============================================ */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
    }

    .nav-links li {
        border: none !important;
    }

    .nav-links.active {
        max-height: none !important;
    }

    .navbar-toggle {
        display: none !important;
    }
}

/* ============================================
   MOBILE (<768px) - Menu hambúrguer
   ============================================ */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: white;
        border-bottom: 2px solid #4f46e5;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        list-style: none;
    }

    .nav-links.active {
        max-height: 300px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        text-decoration: none;
        color: #1e293b;
        font-weight: 600;
        font-size: 1rem;
    }

    .nav-links a:hover {
        background-color: #f0f4ff;
        color: #4f46e5;
    }

    .nav-links a::before,
    .nav-links a::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar-content {
        padding: 0.8rem 0;
    }

    .nav-links {
        top: 60px;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
    }
}


