/* ============================================
   ADICIONAR AO FINAL DO ARQUIVO main.css
   ============================================ */

/* ============================================
   MOBILE MENU STYLES
   ============================================ */

/* 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;
    transition: opacity 0.3s ease;
}

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

/* Mobile menu panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, #961c03, #d80202);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    transform: translateX(-280px);
}

/* Mobile menu header */
.mobile-menu-header {
    background: rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile menu navigation */
.mobile-menu-nav {
    padding: 20px 0;
}

.mobile-menu-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    position: relative;
}

.mobile-menu-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 35px;
}

/* Mobile menu dropdown */
.mobile-menu-dropdown {
    overflow: hidden;
}

.mobile-menu-dropdown > a::after {
    content: '▼';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s;
}

.mobile-menu-dropdown.expanded > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.mobile-menu-dropdown.expanded .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu a {
    padding-left: 45px;
    font-size: 14px;
    opacity: 0.9;
}

/* Mobile menu footer */
.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-cta {
    display: block;
    background: linear-gradient(135deg, #62a340, #4d8232);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.mobile-menu-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(98, 163, 64, 0.4);
}

.mobile-menu-phone {
    display: block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.mobile-menu-phone:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile menu toggle animation */


header.scrolled .mobile-menu-toggle span {
    background: #333;
}

/* Animação quando o menu está ativo - X tradicional */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   GO TO TOP BUTTON
   ============================================ */

.go-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #62a340, #4d8232);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(98, 163, 64, 0.3);
    z-index: 997;
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.go-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(98, 163, 64, 0.4);
}

.go-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ============================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    /* Center logo on mobile */
    .header-content {
        position: relative;
        padding: 15px 0;
        min-height: 60px;
    }
    
    .logo {
        position: absolute;
        left: 40%;
        top: 20%;
       
    }
    
    .logo img {
        height: 60px;
    }
    
   .mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}
    
    /* Adjust header height */
    .header {
        min-height: 90px;
    }
    
    .header.scrolled {
        min-height: 80px;
    }
    
    .header.scrolled .logo img {
        height: 50px;
    }
    
    /* Go to top button position on mobile */
    .go-to-top {
        bottom: 85px; /* Above mobile bottom menu */
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .go-to-top svg {
        width: 20px;
        height: 20px;
    }
    
    /* Ensure mobile menu toggle is visible */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Hide desktop navigation */
    .nav,
    .header-cta-group {
        display: none !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .go-to-top {
        bottom: 80px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .header {
        min-height: 80px;
    }
    
    .header.scrolled .logo img {
        height: 45px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .mobile-menu.active {
        transform: translateX(-100%);
    }
}