/* =============================================
   Scroll Container
   ============================================= */
.rc-scroll-container {
    position: relative;
    /* 100vh viewport + ~250vh scroll space for 3 slides (60vh gap × 3 + 50vh duration + 50vh dwell) */
    height: 350vh;
}

/* =============================================
   Pinned Section
   ============================================= */
.rc-scroll-container > .elementor-element-fc2f876 {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* =============================================
   Slides
   ============================================= */
.rc-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 10;
    /* transform is driven directly by JS on every scroll frame — no CSS transition */
    will-change: transform;
}

/* =============================================
   Gradient Overlay (bottom to top dark fade)
   ============================================= */
.rc-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.55) 30%,
        rgba(0, 0, 0, 0.15) 60%,
        rgba(0, 0, 0, 0)    100%
    );
    z-index: 1;
    pointer-events: none;
}

/* =============================================
   Bottom-Left Content
   ============================================= */
.rc-slide-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-width: 480px;
}

.rc-slide-title {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.rc-slide-description {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.rc-slide-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    transition: border-color 0.2s, color 0.2s;
}

.rc-slide-link:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.rc-slide-link-arrow {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s;
}

.rc-slide-link:hover .rc-slide-link-arrow {
    transform: translateX(4px);
}

/* =============================================
   Progress Dots
   ============================================= */
.rc-dots {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 20;
    display: flex;
    gap: 8px;
}

.rc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.3s, transform 0.3s;
}

.rc-dot.rc-dot-active {
    background: #ffffff;
    transform: scale(1.3);
}

/* =============================================
   Mobile: disable pinning, stack slides
   ============================================= */
@media (max-width: 768px) {
    .rc-scroll-container {
        height: auto;
    }

    .rc-scroll-container > .elementor-element-fc2f876 {
        position: relative !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .rc-slide {
        position: relative;
        height: 100vh;
        transform: none !important; /* override JS-set inline transform on mobile */
    }

    .rc-slide-content {
        position: absolute;
        bottom: 40px;
        left: 24px;
        right: 24px;
        max-width: none;
    }

    .rc-slide-title {
        font-size: 28px;
    }

    .rc-slide-description {
        font-size: 14px;
    }

    .rc-dots {
        display: none;
    }
}

/* =============================================
   Accessibility: reduced motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    /* JS skips easing and snaps transforms directly when this is set */
}
