/* ===== CORREÇÃO MENU MOBILE ===== */

/* Garantir que header acomoda logo e nav-toggle */
@media (max-width: 968px) {
    .header {
        min-height: 80px !important;
        max-height: 80px !important;
    }
    
    .nav {
        height: 80px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    /* Logo ajustada */
    .nav-logo {
        display: flex;
        align-items: center;
        height: 80px;
        overflow: visible;
        z-index: 100;
    }
    
    .nav-logo img {
        height: 100px;
        margin-top: -10px;
        margin-bottom: -10px;
    }
    
    /* Nav Toggle - SEMPRE VISÍVEL E CLICÁVEL */
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 10000;
        position: relative;
        padding: 10px;
        background: transparent;
        border: none;
        width: 48px;
        height: 48px;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
    
    .nav-toggle span {
        width: 28px;
        height: 3px;
        background: var(--primary-teal);
        border-radius: 3px;
        transition: all 0.3s ease;
        display: block;
    }
    
    /* Animação hamburger -> X */
    .nav-menu.active ~ .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .nav-menu.active ~ .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-menu.active ~ .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Menu mobile */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        background: white;
        padding: 40px 24px;
        box-shadow: var(--shadow-lg);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 24px;
        overflow-y: auto;
        z-index: 9998;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 16px 24px;
        font-size: 1.1rem;
        color: var(--primary-teal);
        border-radius: 12px;
        transition: var(--transition-fast);
    }
    
    .nav-link:hover,
    .nav-link:active {
        background: var(--bg-cream);
        color: var(--accent-warm);
    }
    
    .btn-nav {
        background: linear-gradient(135deg, var(--accent-warm) 0%, var(--warm-dark) 100%);
        color: white !important;
        padding: 16px 24px;
        margin-top: 16px;
    }
    
    .btn-nav:hover {
        transform: scale(1.02);
    }
    
    /* Overlay quando menu aberto */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 968px) {
    .nav-menu {
        width: 400px;
        left: -400px;
    }
    
    .nav-menu.active {
        left: 0;
    }
}
