/* ==========================================================================
   VELA DENTAL — GSAP STACKING CARD DECK: 4-STAGE SWISS STERILE PROTOCOL
   ========================================================================== */

.vd-process-section {
    padding: 96px 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.vd-process-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: start;
}

.vd-process-sticky {
    position: sticky;
    top: 112px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vd-process-title {
    font-size: clamp(2rem, 3.5vw, 3.05rem);
}

.vd-process-desc {
    font-size: 0.96rem;
    color: var(--ink-muted);
    line-height: 1.74;
}

.vd-sterile-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
}

.vd-sterile-chip {
    padding: 16px;
    border-radius: var(--radius-md);
    background-color: var(--bg-canvas);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vd-sterile-chip strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--primary-dark);
}

.vd-sterile-chip span {
    font-size: 0.8rem;
    color: var(--ink-muted);
}

/* Stacking Card Deck Track */
.vd-stack-deck {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.vd-stack-card {
    position: sticky;
    top: 112px;
    background-color: var(--bg-canvas);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 18px 42px rgba(12, 27, 42, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 28px;
    align-items: center;
    transform-origin: top center;
    will-change: transform;
}

.vd-stack-card:nth-child(2) {
    top: 128px;
    background-color: #eef6f8;
}

.vd-stack-card:nth-child(3) {
    top: 144px;
    background-color: #e4f2f5;
}

.vd-stack-card:nth-child(4) {
    top: 160px;
    background-color: var(--bg-deep);
    color: #ffffff;
    border-color: var(--bg-deep);
}

.vd-stack-step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.vd-stack-card:nth-child(4) .vd-stack-step {
    color: var(--mint);
}

.vd-stack-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.vd-stack-text {
    font-size: 0.92rem;
    color: var(--ink-muted);
    line-height: 1.68;
    margin-bottom: 14px;
}

.vd-stack-card:nth-child(4) .vd-stack-text {
    color: rgba(255, 255, 255, 0.78);
}

.vd-stack-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.85);
}

.vd-stack-card:nth-child(4) .vd-stack-meta {
    background-color: rgba(32, 194, 183, 0.16);
    color: #96f2ea;
}

.vd-stack-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.vd-stack-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .vd-process-section {
        padding: 68px 0;
    }

    .vd-process-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .vd-process-sticky {
        position: static;
    }

    .vd-stack-card,
    .vd-stack-card:nth-child(2),
    .vd-stack-card:nth-child(3),
    .vd-stack-card:nth-child(4) {
        position: static;
        grid-template-columns: minmax(0, 1fr);
        padding: 24px 20px;
    }

    .vd-stack-thumb {
        aspect-ratio: 16 / 9;
    }
}
