/* Menu Bundle Mínimo - CSS */
/* Carregado em TODAS as páginas (home + landings + PT/EN/ES) */

:root {
    --primary-color: #164F39;
    --primary-light: #1a5f47;
    --text-dark: #333;
    --border-light: #e0e0e0;
}

/* Header */
header.header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo img {
    height: 50px;
    width: auto;
}

/* Navigation Links */
nav.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

nav.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav.nav-links a:hover {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin-top: 0.5rem;
}

.dropdown-menu.active,
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: normal;
    word-wrap: break-word;
}

.dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-light);
    background-color: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    display: none;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

.language-selector.mobile-lang {
    display: none;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 998;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 997;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
}

.mobile-menu-nav a {
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
}

.mobile-menu-nav a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 968px) {
    nav.nav-links {
        display: none;
    }
    
    .language-selector:not(.mobile-lang) {
        display: none;
    }
    
    .mobile-controls {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .language-selector.mobile-lang {
        display: flex;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .mobile-menu-btn {
        font-size: 1.25rem;
    }
}
