/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #151c23;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(21, 28, 35, 0.95);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 40px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

/* Navigation Container */
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin-left: -100px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #b8b8b8;
    /* Cinza no hover */
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #b8b8b8;
    /* Linha cinza */
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Contact Button */
.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    padding: 10px 25px !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0;
    outline: none !important; /* Remove borda de foco */
}

.contact-btn:hover {
    background: #72939c !important; /* Cor sólida no hover */
    border-color: #72939c !important; /* Mesma cor da borda */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 147, 156, 0.3); /* Sombra com a cor do hover */
}

.contact-btn:focus {
    outline: none !important; /* Remove borda de foco */
    box-shadow: none !important; /* Remove sombra de foco */
}

/* Bus Icon Styles */
.btn-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    margin-right: -4px;
}

.contact-btn:hover .btn-icon {
    filter: brightness(0) invert(1); /* Mantém branco no hover */
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
        gap: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-content {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #151c23;
        flex-direction: column;
        justify-content: flex-start;
        padding: 50px 20px;
        transition: all 0.3s ease;
        gap: 40px;
        max-width: none;
    }

    .nav-links {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        flex: none;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 0;
    }

    .logo-img {
        height: 60px;
    }

    .contact-btn {
        margin-top: 20px;
        padding: 12px 30px !important;
        font-size: 1rem;
        justify-content: center;
    }

    .btn-icon {
        width: 20px;
        height: 20px;
    }

    /* Hamburger Menu Animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 50px;
    }

    .navbar {
        padding: 10px 0;
        gap: 15px;
    }

    .contact-btn {
        padding: 10px 25px !important;
        font-size: 0.9rem;
    }

    .btn-icon {
        width: 16px;
        height: 16px;
    }
}

/* Accessibility - REMOVIDA A BORDA DE FOCO */
.nav-links a:focus {
    outline: none;
    /* Remove a borda ao clicar */
}

.contact-btn:focus {
    outline: none;
    /* Remove a borda ao clicar no botão também */
}

/* Prevent scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .header,
    .nav-links,
    .nav-links a::after,
    .bar,
    .contact-btn,
    .btn-icon {
        transition: none;
    }

    .menu-toggle.active .bar {
        transform: none;
    }

    .contact-btn:hover {
        transform: none;
        box-shadow: none;
    }
}