/* Services Carousel Styles */

/* Make the entire services section full width */
#services.services {
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

#services .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

#services .section-header {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    margin-bottom: 3rem;
}

/* Force services-grid to be full width */
.services-grid {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.services-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    padding: 3rem 0;
    overflow: visible;
}

.services-carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 1rem 3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.services-carousel-track::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 0;
}

.services-carousel-track::-webkit-scrollbar {
    display: none;
}

.services-carousel-item {
    flex: 0 0 auto;
    width: 380px;
}

.services-carousel-item:first-child {
    margin-left: 0;
}

/* Adjust service card for carousel */
.services-carousel-item .service-card {
    height: 100%;
    min-height: 500px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-carousel-item .service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Service card content adjustments */
.services-carousel-item .service-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.services-carousel-item .service-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Service CTA Button */
.btn-service {
    width: 100%;
    margin-top: auto;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    text-decoration: none;
}

.services-carousel-item .service-overlay {
    display: none;
}

/* Navigation Buttons */
.services-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
    pointer-events: none;
}

.services-carousel-nav .carousel-nav-btn {
    pointer-events: auto;
}

.carousel-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #E0E0E0;
    background-color: white;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.carousel-nav-btn:hover:not(:disabled) {
    background-color: #D4A574;
    border-color: #D4A574;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav-btn i {
    pointer-events: none;
}

/* Gradient fade on edges */
.services-carousel-wrapper::before,
.services-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 80px;
    width: 80px;
    pointer-events: none;
    z-index: 1;
}

.services-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #FAFAFA, transparent);
}

.services-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #FAFAFA, transparent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .services-carousel-item {
        width: 300px;
        min-width: 300px;
    }
    
    .services-carousel-item .service-card {
        min-height: 450px;
    }
    
    .services-carousel-track {
        padding: 1rem 1.5rem;
        gap: 1.5rem;
    }
    
    .services-carousel-nav {
        padding: 0 0.5rem;
    }
    
    .carousel-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .services-carousel-wrapper::before,
    .services-carousel-wrapper::after {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .services-carousel-item {
        width: 280px;
        min-width: 280px;
    }
    
    .services-carousel-track {
        gap: 1rem;
    }
}

/* Tablet and Small Desktop - 768px to 1200px */
@media (min-width: 768px) and (max-width: 1200px) {
    #services .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .services-carousel-wrapper {
        width: 100vw !important;
        left: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }
    
    .services-carousel-track {
        padding: 1rem 2rem;
    }
    
    .services-carousel-nav {
        padding: 0 0.5rem;
    }
    
    .services-carousel-item {
        width: 350px;
    }
}

/* Large screens - show multiple cards */
@media (min-width: 1400px) {
    .services-carousel-item {
        width: 420px;
    }
    
    .services-carousel-track {
        gap: 2.5rem;
    }
}
