
/* Desktop: Hide mobile list, show dynamic content */
@media (min-width: 769px) {
	.services-mobile-list {
		display: none !important;
	}
}

/* Mobile optimizations */
@media (max-width: 768px) {
	
	.services-layout{
		display: block !important;
	}
	
	/* Fix for internacional tab body in mobile */
	#internacional-tab .services-content-body {
		display: block !important;
		max-width: 100% !important;
		width: 100% !important;
	}
	
	/* Show mobile list, hide dynamic content in mobile */
	.services-mobile-list {
		display: flex !important;
		flex-direction: column;
	}
        
    .services-tab-content {
        padding-top: 0;
        padding-bottom: 6rem;
    }
    
        
    /* Mobile tabs navigation */
    .services-nav {
        display: flex;
        flex-direction: row;
        overflow: scroll;
        border: none;
        margin-bottom: 2rem;
    }
    
    .services-tab-link {
        text-align: center;
        padding: 1rem;
        white-space: nowrap;
        font-size: 0.8rem !important;
    }
    
    /* Hide submenu in mobile */
    .services-submenu,.services-tab-link.services-tab-active .services-submenu {
        display: none !important;
    }
    
    /* Mobile services list styles */
    .services-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .mobile-service-item {
        overflow: hidden;
        background: #ffffff;
    }
    
    .mobile-service-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem;
        background: none;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(137, 39, 22, 0.1);
    }
    
    .mobile-service-header:hover {
        background-color: rgba(137, 39, 22, 0.05);
    }
    
    .mobile-service-header h4 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: #892716;
        text-align: left;
        font-family: 'Inter', sans-serif;
    }
    
    .mobile-service-toggle {
        font-size: 1.25rem;
        font-weight: bold;
        color: #892716;
        line-height: 1;
        transition: transform 0.3s ease;
    }
    
    .mobile-service-item.active .mobile-service-toggle {
        transform: rotate(0deg);
    }
    
    .mobile-service-content {
        max-height: 0;
        overflow: hidden;
        padding: 0 1.25rem;
        background-color: rgba(244, 231, 222, 0.3);
        opacity: 0;
        transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    }
    
    .mobile-service-item.active .mobile-service-content {
        max-height: 2000px;
        padding: 1.25rem 1.25rem;
        opacity: 1;
    }
    
    .mobile-service-content .services-description {
        margin-bottom: 1rem;
    }
    
    .mobile-service-content .services-description p {
        font-size: 0.9rem;
        line-height: 1.5;
        color: #892716;
        margin: 0;
    }
    
    .mobile-service-content .services-contact-btn {
        text-align: left;
    }
    
    .mobile-service-content .btn-contact {
        font-size: 0.8rem;
        padding: 0.75rem 1.5rem;
        background-color: #892716;
        color: #ffffff;
        text-decoration: none;
        border-radius: 0.25rem;
        display: inline-block;
        transition: all 0.3s ease;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        text-transform: uppercase;
    }
    
    .mobile-service-content .btn-contact:hover {
        background-color: #6d1f11;
        transform: translateY(-1px);
    }
    
    /* Mobile team member images */
    .mobile-team-image {
        margin: 1rem 0;
        border-radius: 0.25rem;
        overflow: hidden;
    }
    
    .team-member-img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center;
        display: block;
        border: 1px solid #892816;
        border-radius: 0.25rem;
    }
    
    /* Mobile footer-bottom layout */
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
        justify-content: center !important;
    }
    
    .footer-disclaimer {
        order: 3;
    }
    
    .footer-scroll-top {
        position: static !important;
        transform: none !important;
        order: 1;
    }
    
    .footer-legal {
        order: 2;
        justify-content: center !important;
        gap: 0.75rem !important;
    }
    
    .disclaimer-text {
        font-size: 0.75rem !important;
        text-align: center;
        opacity: 0.6 !important;
    }
    
    .scroll-top-btn {
        padding: 0.75rem;
    }
    
    .scroll-top-btn svg {
        width: 10px;
        height: 40px;
    }
    
    .footer-menu a,
    .legal-link {
        font-size: 0.85rem !important;
    }
}

/* Desktop layout (769px and up) */
@media (min-width: 769px) {
    .footer-bottom {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
    }
    
    .footer-disclaimer {
        flex-shrink: 0 !important;
        z-index: 1 !important;
    }
    
    .footer-scroll-top {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 2 !important;
    }
    
    .footer-legal {
        flex-shrink: 0 !important;
        z-index: 1 !important;
    }
}

/* Services Tabs Animation Fix - Prevent jQuery conflicts */
.services-tab-content {
    /* Override any jQuery animation conflicts */
    transition: opacity 0.3s ease !important;
}

.services-tab-content.active {
    /* Ensure proper visibility when active */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prevent jQuery animation queue issues */
.services-tab-content:not(.active) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Smooth CSS transitions for elements that had jQuery animations */
.scroll-indicator {
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.form-message {
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.hero-section {
    transition: opacity 0.6s ease, visibility 0.6s ease !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Back to top button transitions */
#backToTop {
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}



/* ================================================
   SCROLL TO TOP BUTTON IMPROVEMENTS
   ================================================ */

/* Ensure scroll-top button is always visible in footer */
.footer-scroll-top {
    opacity: 1 !important;
    visibility: visible !important;
}

.scroll-top-btn {
    opacity: 0.8 !important;
    visibility: visible !important;
}

.scroll-top-btn.visible {
    opacity: 1 !important;
}