/*==================================================*/
/* Service Showcase — Sticky Scroll (Desktop) + Stacked Cards (Mobile) */
/*==================================================*/

.service-section-new {
    background: var(--dw-bg-base);
}

/* ════════════════════════════════════════
   DESKTOP: Native Sticky Scroll
   (overflow-x:clip on html allows sticky)
   ════════════════════════════════════════ */

.service-scroll-track {
    position: relative;
    height: 400vh; /* scroll distance that drives the animation — 100vh per service */
}

.service-scroll-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dw-bg-base);
    overflow: hidden;
}

/* subtle orange glow */
.service-scroll-pin::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(241, 85, 3, 0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.service-scroll-pin .container {
    position: relative;
    z-index: 1;
}

.service-scroll-inner {
    padding: 40px 0 60px;
}

/* Header */
.service-scroll-header {
    margin-bottom: 48px;
}

.ss-kicker-top {
    font-family: 'Rubik', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #f15503;
    margin-bottom: 10px;
}

.ss-headline {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.ss-headline span {
    color: #f15503;
}

/* Body layout: list left, detail right */
.service-scroll-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* ── Numbered list ── */
.service-scroll-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-scroll-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: default;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.service-scroll-item.active {
    background: rgba(241, 85, 3, 0.07);
    border-color: rgba(241, 85, 3, 0.2);
}

.ss-item-num {
    font-family: 'Rubik', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: rgba(241, 85, 3, 0.15);
    line-height: 1;
    min-width: 36px;
    transition: color 0.35s ease;
    padding-top: 2px;
}

.service-scroll-item.active .ss-item-num {
    color: #f15503;
}

.ss-item-title {
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.3;
}

.ss-item-desc {
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    transition: color 0.35s ease;
}

.service-scroll-item.active .ss-item-desc {
    color: #aaa;
}

/* ── Detail panel ── */
.service-scroll-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    background: var(--dw-surface-1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
}

/* Lottie container */
.ss-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.ss-lottie {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.ss-lottie.active {
    opacity: 1;
}

/* Detail content */
.ss-detail-content {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ss-detail-content.transitioning {
    opacity: 0;
    transform: translateY(8px);
}

.ss-detail-kicker {
    font-family: 'Rubik', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f15503;
    margin-bottom: 10px;
}

.ss-detail-title {
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
}

.ss-detail-desc {
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Metrics */
.ss-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ss-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 8px 14px;
}

.ss-metric-val {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #f15503;
}

.ss-metric-label {
    font-family: 'Rubik', sans-serif;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ss-detail-link {
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #f15503;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(241, 85, 3, 0.3);
    padding-bottom: 2px;
    transition: color 0.2s;
}

.ss-detail-link:hover {
    color: #ff7b3a;
}

/* Progress dots */
.ss-progress-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.ss-prog-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.35s ease, width 0.35s ease, border-radius 0.35s ease;
}

.ss-prog-dot.active {
    background: #f15503;
    width: 24px;
    border-radius: 4px;
}

/* Mobile wrap hidden on desktop */
.service-mobile-wrap {
    display: none;
}

/* ════════════════════════════════════════
   MOBILE: Stacked Cards
   ════════════════════════════════════════ */

@media (max-width: 991px) {
    /* Hide desktop sticky */
    .service-scroll-track {
        display: none;
    }

    /* Show mobile */
    .service-mobile-wrap {
        display: block;
        padding: 80px 0 60px;
        background: var(--dw-bg-base);
        position: relative;
        overflow: hidden;
    }

    .service-mobile-wrap::before {
        content: '';
        position: absolute;
        bottom: -80px;
        left: -80px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(241, 85, 3, 0.07) 0%, transparent 65%);
        pointer-events: none;
    }

    .service-mobile-header {
        margin-bottom: 36px;
    }

    .service-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 36px;
    }

    .service-mobile-card {
        background: var(--dw-surface-1);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 16px;
        padding: 22px 20px;
        transition: border-color 0.25s;
    }

    .service-mobile-card:first-child {
        border-color: rgba(241, 85, 3, 0.25);
        background: linear-gradient(135deg, rgba(241, 85, 3, 0.05) 0%, var(--dw-surface-1) 100%);
    }

    .service-mobile-card-top {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 10px;
    }

    .service-mobile-num {
        font-family: 'Rubik', sans-serif;
        font-size: 22px;
        font-weight: 900;
        color: #f15503;
        line-height: 1;
        min-width: 32px;
    }

    .service-mobile-card-title {
        font-family: 'Rubik', sans-serif;
        font-size: 16px;
        font-weight: 800;
        color: #fff;
        line-height: 1.2;
    }

    .service-mobile-card-desc {
        font-family: 'Rubik', sans-serif;
        font-size: 13px;
        color: #aaa;
        line-height: 1.65;
        margin-bottom: 14px;
        padding-left: 46px;
    }

    .service-mobile-card-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding-left: 46px;
    }

    .service-mobile-card-tags span {
        font-family: 'Rubik', sans-serif;
        font-size: 11px;
        font-weight: 600;
        color: #f15503;
        background: rgba(241, 85, 3, 0.1);
        border: 1px solid rgba(241, 85, 3, 0.2);
        padding: 3px 10px;
        border-radius: 50px;
    }

    .service-mobile-cta {
        text-align: center;
    }
}
