/* ===== MENU STYLES - CANONICAL VERSION ===== */

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.1));
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--dark, #2C3E50);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green, #0e5030);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green, #0e5030);
}

.nav-links a:hover::before {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    color: var(--dark, #2C3E50);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    color: var(--primary-green, #0e5030);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white, #fff);
    box-shadow: var(--shadow-md, 0 6px 22px rgba(0,0,0,0.12));
    border-radius: 12px;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0.5rem 0;
    min-width: 220px;
    max-width: 420px;
    z-index: 1001;
}

.dropdown-menu a {
    padding: 0.8rem 1.2rem;
    color: var(--dark, #2C3E50);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--light-bg, #f5f9f6);
    color: var(--primary-green, #0e5030);
}

.dropdown:hover .dropdown-menu {
    display: flex;
    visibility: visible !important;
    opacity: 1 !important;
}

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

.lang-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark, #2C3E50);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
}

.lang-btn.active {
    background: var(--primary-green, #0e5030);
    color: #fff;
}

.lang-btn:hover {
    background: var(--primary-green, #0e5030);
    color: #fff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark, #2C3E50);
    padding: 0;
    margin: 0;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    left: 0;
}

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

.mobile-menu-header img {
    height: 40px;
    width: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark, #2C3E50);
    padding: 0;
    margin: 0;
}

.mobile-menu-nav {
    display: none !important;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-nav a {
    padding: 1rem;
    color: var(--dark, #2C3E50);
    text-decoration: none;
    border-bottom: 1px solid #e8efe8;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-nav a:hover {
    background: var(--light-bg, #f5f9f6);
    color: var(--primary-green, #0e5030);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Mobile Language Selector */
.mobile-lang {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.mobile-lang .lang-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
}

/* Responsive Design */
/* Desktop: Garantir que mobile nav fica oculta */
@media (min-width: 969px) {
    .mobile-menu-nav {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 968px) {
    .nav-links {
        display: none !important;
    }
    
    .language-selector:not(.mobile-lang) {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }
    
    .mobile-controls {
        display: flex !important;
    }
    
    .mobile-menu-nav {
        display: flex !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .nav-container {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
    
    .nav-container {
        padding: 0.6rem 1rem;
    }
    
    .logo img {
        height: 40px;
    }
}
.hero-image { display: none !important; }

/* Active state for dropdown */
.dropdown.active .dropdown-menu {
    display: flex;
    visibility: visible !important;
    opacity: 1 !important;
}