/* ============================================
   Alavanka — Navigation CSS
   CORRIGIDO: 2026-02-03
   - Logo usando imagem PNG
   ============================================ */

/* ══════════════════════════════════════════════
   1. RESET & BODY
   ══════════════════════════════════════════════ */
body {
    padding-top: 72px;
}

/* ══════════════════════════════════════════════
   2. NAV BAR
   ══════════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #E5E7EB;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

/* ══════════════════════════════════════════════
   3. LOGO - IMAGEM PNG
   ══════════════════════════════════════════════ */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.logo:hover .nav-logo-img {
    opacity: 0.8;
    transition: opacity 0.2s;
}

/* ══════════════════════════════════════════════
   4. CONTROLES MOBILE
   ══════════════════════════════════════════════ */
.lang-toggle-mobile {
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-left: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 9999;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0D1B2A;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ══════════════════════════════════════════════
   5. SIDEBAR MENU (Mobile)
   ══════════════════════════════════════════════ */
.nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    z-index: 9998;
    padding-top: 80px;
    overflow-y: auto;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nav-links.active {
    right: 0;
}

.nav-links > a {
    display: block;
    padding: 16px 24px;
    color: #0D1B2A;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.nav-links > a:hover,
.nav-links > a.active {
    background: #f0f4f8;
    color: #1B3A5C;
}

/* ══════════════════════════════════════════════
   6. DROPDOWNS (Mobile)
   ══════════════════════════════════════════════ */
.nav-dropdown {
    border-bottom: 1px solid #f0f0f0;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    background: none;
    border: none;
    color: #0D1B2A;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.nav-dropdown-trigger:hover {
    background: #f0f4f8;
    color: #1B3A5C;
}

.dropdown-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.nav-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    background: #f8f9fa;
    padding: 8px 0;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 24px 12px 40px;
    color: #4A5568;
    text-decoration: none;
    font-size: 15px;
}

.nav-dropdown-menu a:hover {
    background: #e8ecf0;
    color: #1B3A5C;
}

/* ══════════════════════════════════════════════
   7. LANG TOGGLE SIDEBAR
   ══════════════════════════════════════════════ */
.nav-links .lang-toggle {
    display: block;
    margin: 20px 24px;
    padding: 12px 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    text-align: center;
}

/* ══════════════════════════════════════════════
   8. OVERLAY
   ══════════════════════════════════════════════ */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

/* ══════════════════════════════════════════════
   9. TABLET (768px+)
   ══════════════════════════════════════════════ */
@media (min-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    nav {
        height: 80px;
        padding: 0 32px;
    }
    
    .nav-logo-img {
        height: 50px;
    }
}

/* ══════════════════════════════════════════════
   10. DESKTOP (1024px+)
   ══════════════════════════════════════════════ */
@media (min-width: 1024px) {
    body {
        padding-top: 88px;
    }
    
    nav {
        height: 88px;
        padding: 0 5%;
    }
    
    .nav-logo-img {
        height: 56px;
    }
    
    .hamburger,
    .lang-toggle-mobile {
        display: none;
    }
    
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        border: none;
        padding: 0;
        overflow: visible;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }
    
    .nav-links > a {
        padding: 8px 0;
        font-size: 14px;
        border: none;
    }
    
    .nav-links > a:hover {
        background: transparent;
        color: #1B3A5C;
    }
    
    .nav-dropdown {
        position: relative;
        border: none;
    }
    
    .nav-dropdown-trigger {
        padding: 8px 4px;
        font-size: 14px;
        gap: 4px;
    }
    
    .nav-dropdown-trigger:hover {
        background: transparent;
    }
    
    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 200px;
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        padding: 8px 0;
        display: none;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-dropdown:hover .nav-dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-dropdown-menu a {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .nav-links .lang-toggle {
        display: inline-block;
        margin: 0;
        padding: 8px 16px;
        background: transparent;
        border: 1px solid #e0e0e0;
    }
    
    .nav-links .lang-toggle:hover {
        border-color: #1B3A5C;
        color: #1B3A5C;
    }
}

/* ══════════════════════════════════════════════
   11. UTILITIES
   ══════════════════════════════════════════════ */
.mobile-menu-content {
    display: contents;
}

.nav-home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-home svg {
    stroke: #4A5568;
    transition: stroke 0.2s;
}

.nav-home:hover svg {
    stroke: #1B3A5C;
}
