/* ==========================================================================
   Services Slider — Scroll-driven vertical slider
   ========================================================================== */

/* Force Elementor wrappers to not break sticky */
.elementor-widget-ohwow_services_grid,
.elementor-widget-ohwow_services_grid > .elementor-widget-container {
    overflow: visible !important;
}

.ohwow-services-slider {
    position: relative;
    background: #0A0A0A;
    /* NO overflow:hidden — breaks sticky */
}

/* Sticky container that fills viewport */
.ohwow-services-slider__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Layout: image left, content right */
.ohwow-services-slider__inner {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 0;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    align-items: center;
}

/* ---- Left: Images container (stacked) ---- */
.ohwow-services-slider__images {
    position: relative;
    width: 100%;
    height: 85vh;
    max-height: 750px;
}

.ohwow-services-slider__image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 1s ease, transform 1s ease;
}

.ohwow-services-slider__image.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Pulse: image zooms in/out subtly within its container */
@keyframes ohwow-img-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.ohwow-services-slider__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: ohwow-img-pulse 5s ease-in-out infinite;
}

/* ---- Right: Content area ---- */
.ohwow-services-slider__content {
    padding-left: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Slides wrapper */
.ohwow-services-slider__slides {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Individual slide */
.ohwow-services-slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    pointer-events: none;
}

.ohwow-services-slider__slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

/* Step number */
.ohwow-services-slider__number {
    font-family: var(--ohwow-font-display, 'Outfit', sans-serif);
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0 16px;
    line-height: 1;
}

/* Slide title */
.ohwow-services-slider__title {
    font-family: var(--ohwow-font-display, 'Outfit', sans-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
    line-height: 1.2;
}

/* Description */
.ohwow-services-slider__desc {
    font-family: var(--ohwow-font-body, 'Inter', sans-serif);
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 32px;
    line-height: 1.6;
    max-width: 500px;
}

/* Bullet list */
.ohwow-services-slider__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ohwow-services-slider__list li {
    font-family: var(--ohwow-font-body, 'Inter', sans-serif);
    font-size: 0.9375rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.ohwow-services-slider__list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

/* ---- Progress bar ---- */
.ohwow-services-slider__progress {
    display: flex;
    gap: 8px;
    margin-top: 48px;
}

.ohwow-services-slider__bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ohwow-services-slider__bar.is-active {
    background: #BCED09;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
    .ohwow-services-slider__inner {
        grid-template-columns: 1fr;
        padding: 48px 32px;
        gap: 40px;
    }

    .ohwow-services-slider__images {
        height: 50vh;
        max-height: 500px;
    }

    .ohwow-services-slider__content {
        padding-left: 0;
    }

    .ohwow-services-slider__title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .ohwow-services-slider__inner {
        padding: 32px 20px;
    }

    .ohwow-services-slider__images {
        height: 40vh;
    }

    .ohwow-services-slider__number {
        font-size: 2rem;
    }

    .ohwow-services-slider__title {
        font-size: 1.5rem;
    }

    .ohwow-services-slider__desc {
        font-size: 0.875rem;
    }
}
