/*
 * PTP process workflow (Views/Home/_ProcessWorkflow.cshtml).
 *
 * Five steps, no iconography — the outlined numeral is the only graphic, so the strip carries the
 * sequence without inventing a symbol for each stage. On desktop the cards sit on a flush baseline
 * and climb to the right, which is what reads as progress; their titles stay on one line of sight
 * so the row is still scannable. Below 992px that climb would only waste height, so the cards
 * stack flat. Colours come from the template's own variables; nothing new is introduced here.
 */

.ptp-workflow {
    --ptp-line: rgba(48, 51, 52, 0.09);
    --ptp-tint: rgba(24, 188, 199, 0.16);
    padding: 70px 0;
    background: linear-gradient(180deg, #ffffff 0%, #edf9fa 100%);
}

/* Heading */

.ptp-workflow__heading {
    max-width: 640px;
    margin: 0 auto 45px;
    text-align: center;
}

.ptp-workflow__eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

/* Steps — flat stack */

.ptp-workflow__steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ptp-workflow__step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    padding: 22px 24px;
    border: 1px solid var(--ptp-line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(48, 51, 52, 0.04);
}

/* Accent edge: down the side when stacked, along the top when the cards sit in a row. */
.ptp-workflow__step::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--base-color);
}

.ptp-workflow__number {
    flex: 0 0 auto;
    color: var(--ptp-tint);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    -webkit-text-stroke: 1px var(--base-color);
    transition: color 0.35s ease;
}

.ptp-workflow__step-title {
    margin: 0;
    color: var(--dark-gray);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

/* Rule above the title, growing on hover — the one piece of motion in the strip. */
.ptp-workflow__step-title::before {
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    margin-bottom: 12px;
    background: var(--base-color);
    opacity: 0.45;
    transition: width 0.35s ease, opacity 0.35s ease;
}

/* Steps — climbing row */

@media (min-width: 992px) {
    .ptp-workflow {
        padding: 95px 0;
    }

    .ptp-workflow__steps {
        display: flex;
        align-items: stretch;
        gap: 18px;
    }

    .ptp-workflow__step {
        flex: 1 1 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 32px 26px 30px;
        transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    }

    /* Flush bottoms, ascending tops: the stagger is the whole illustration. */
    .ptp-workflow__step:nth-child(1) {
        margin-top: 68px;
    }

    .ptp-workflow__step:nth-child(2) {
        margin-top: 51px;
    }

    .ptp-workflow__step:nth-child(3) {
        margin-top: 34px;
    }

    .ptp-workflow__step:nth-child(4) {
        margin-top: 17px;
    }

    .ptp-workflow__step::before {
        inset: 0 0 auto 0;
        width: auto;
        height: 4px;
    }

    .ptp-workflow__number {
        font-size: 62px;
    }

    /* Pinned to the foot of the card so every title shares one baseline. */
    .ptp-workflow__step-title {
        margin-top: auto;
        padding-top: 24px;
        font-size: 16px;
    }

    .ptp-workflow__step:hover {
        transform: translateY(-8px);
        border-color: rgba(24, 188, 199, 0.35);
        box-shadow: 0 18px 40px rgba(24, 188, 199, 0.18);
    }

    .ptp-workflow__step:hover .ptp-workflow__number {
        color: var(--base-color);
    }

    .ptp-workflow__step:hover .ptp-workflow__step-title::before {
        width: 48px;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ptp-workflow__step,
    .ptp-workflow__number,
    .ptp-workflow__step-title::before {
        transition: none;
    }

    .ptp-workflow__step:hover {
        transform: none;
    }
}
