/* ============================================================
   RoboSpati — Services page
   ============================================================ */

/* ---- Service detail hero icon ---- */
.service-detail-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.service-detail-content h2 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    color: var(--heading-color);
}
.service-detail-content .lead {
    font-size: 1.08rem;
    color: var(--body-color);
}

/* ---- Process / delivery ---- */
.process-section { background: var(--white); }
.delivery-graphic-wrap img {
    width: 100%;
    display: block;
    box-shadow: 0 20px 50px rgba(3, 27, 58, 0.18);
}
.process-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.process-vertical-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.process-vertical-item:last-child { border-bottom: none; }
.process-v-num {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: var(--fw-black);
    color: var(--cta);
    flex-shrink: 0;
    margin-top: .15rem;
}
.process-vertical-item h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: var(--fw-bold);
    color: var(--heading-color);
    margin: 0 0 .25rem;
}
.process-vertical-item p {
    font-size: var(--fs-small);
    color: var(--body-color);
    margin: 0;
}

/* ---- Stacking Cards Overscroll Effect ---- */
.services-stack-section {
    background: #f8fafc;
    padding: 4rem 0 6rem;
    position: relative;
}

.services-stack-wrapper {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 2rem;
}

.service-stack-item {
    position: sticky;
    top: calc(90px + min(var(--stack-index) * 12px, 120px));
    margin-bottom: 3rem;
    transform-origin: center top;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease;
    will-change: transform, filter, opacity;
}

.services-stack-wrapper .service-card-box {
    background: #FFFFFF;
    border: 1px solid rgba(3, 22, 47, 0.08);
    border-radius: 22px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 16px 36px -6px rgba(3, 22, 47, 0.08), 0 4px 12px -2px rgba(3, 22, 47, 0.03);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.services-stack-wrapper .service-card-box:hover {
    box-shadow: 0 24px 48px -8px rgba(3, 22, 47, 0.12), 0 8px 18px -2px rgba(3, 22, 47, 0.05);
    border-color: rgba(0, 119, 200, 0.3);
}

.services-stack-wrapper .service-card-heading {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #03162F;
}

.services-stack-wrapper .service-card-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.services-stack-wrapper .service-card-index {
    font-size: 1rem;
    font-weight: 800;
    background: #e2f0fb;
    color: #0077C8;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.services-stack-wrapper .service-line-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f1f6fb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #03162F;
}

@media (max-width: 767.98px) {
    .service-stack-item {
        top: calc(75px + min(var(--stack-index) * 8px, 60px));
        margin-bottom: 2rem;
    }
    .services-stack-wrapper .service-card-box {
        padding: 1.5rem 1.4rem;
        border-radius: 18px;
    }
    .services-stack-wrapper .service-card-heading {
        font-size: 1.2rem;
    }
}

