/**
 * PONTE IA - Header Navigation Premium
 * Design baseado na imagem de referência
 */

/* ========================================
   NAVEGAÇÃO PREMIUM
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav-logo img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

/* Menu Desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

/* Links do Menu */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: #99F443;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #99F443;
}

.nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

/* Ícones nos links */
.nav-link i,
.nav-link [data-lucide] {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Botão CTA "Fale Conosco" */
.cta-nav {
    background: #99F443;
    color: #000000 !important;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(153, 244, 67, 0.2);
}

.cta-nav::after {
    display: none !important;
}

.cta-nav:hover {
    background: #7FCF39;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(153, 244, 67, 0.4);
}

.cta-nav [data-lucide] {
    width: 20px;
    height: 20px;
}

/* Nav Scrolled */
.nav.scrolled {
    height: 70px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav.scrolled .nav-content {
    height: 70px;
}

.nav.scrolled .nav-logo img {
    height: 48px;
}

/* Hamburger Menu (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 48px;
    height: 48px;
    padding: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESPONSIVE - TABLET & MOBILE
   ======================================== */

@media (max-width: 1024px) {
    .nav-content {
        padding: 0 30px;
    }

    .nav-menu {
        gap: 1.75rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .cta-nav {
        padding: 0.65rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        height: 70px;
    }

    .nav-content {
        height: 70px;
        padding: 0 20px;
    }

    .nav-logo img {
        height: 42px;
    }

    /* Mostrar hamburger */
    .nav-toggle {
        display: flex;
    }

    /* Menu mobile full screen */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 0;
        padding: 2rem 1rem;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
        max-width: 340px;
        margin: 0.5rem 0;
    }

    .nav-link {
        width: 100%;
        min-height: 56px;
        padding: 1rem 1.5rem;
        font-size: 1.25rem;
        font-weight: 600;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:active {
        background: rgba(153, 244, 67, 0.2);
        transform: scale(0.98);
    }

    .cta-nav {
        width: 100%;
        padding: 1.25rem 1.5rem;
        font-size: 1.25rem;
    }

    /* Animação hamburger → X */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Small phones */
@media (max-width: 374px) {
    .nav-content {
        padding: 0 16px;
    }

    .nav-logo img {
        height: 38px;
    }

    .nav-link {
        font-size: 1.125rem;
        padding: 0.875rem 1.25rem;
    }

    .cta-nav {
        font-size: 1.125rem;
        padding: 1rem 1.25rem;
    }
}

/* ========================================
   ACTIVE STATES & INTERACTIONS
   ======================================== */

/* Desktop hover states */
@media (min-width: 769px) {
    .nav-link:not(.cta-nav):hover {
        color: #99F443;
    }

    .nav-link:not(.cta-nav):hover::after {
        width: 100%;
    }
}

/* Touch feedback mobile */
@media (max-width: 768px) {
    .nav-link:active {
        background: rgba(153, 244, 67, 0.15);
        transform: scale(0.98);
        transition: all 0.1s ease;
    }

    .cta-nav:active {
        background: #7FCF39;
        transform: scale(0.98);
    }
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */

/* Focus visible para keyboard navigation */
.nav-link:focus-visible {
    outline: 2px solid #99F443;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nav,
    .nav-link,
    .nav-link::after,
    .nav-toggle span,
    .nav-menu {
        transition: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .nav {
        border-bottom: 2px solid #ffffff;
    }

    .nav-link {
        font-weight: 700;
    }

    .cta-nav {
        border: 2px solid #000000;
    }
}
