/*
 * MediRoyal About Us — How It Works (Steps) Section
 * Source: about_us_2.html — .ab-steps-outer
 * Depends on: design-tokens.css (plum-*, sage-*, white, line, gray-*, r-*, ease, shadow-*)
 */

/* ── How It Works (diagonal stagger) ── */
.log-co-ab-steps-outer {
    max-width: 1220px;
    margin: 60px auto 0;
}

.log-co-ab-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.log-co-ab-step {
    position: relative;
    padding: 36px 28px 40px;
}

.log-co-ab-step:nth-child(odd) {
    padding-top: 70px;
}

/* Connector line between steps */
.log-co-ab-step::after {
    content: '';
    position: absolute;
    top: 48%;
    right: -1px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--sage-500), var(--plum-500));
    opacity: .2;
    z-index: 0;
}

.log-co-ab-step:last-child::after {
    display: none;
}

.log-co-ab-step-inner {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    transition: all .35s var(--ease);
}

.log-co-ab-step:hover .log-co-ab-step-inner {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.log-co-ab-step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sage-600), var(--plum-700));
    color: #fff;
    font-family: var(--display);
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(122, 31, 110, .3);
}

.log-co-ab-step-inner h4 {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 9px;
}

.log-co-ab-step-inner p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--gray-600);
}

/* ── Responsive ── */
@media (max-width: 980px) {
    .log-co-ab-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .log-co-ab-step::after {
        display: none;
    }
}

@media (max-width: 760px) {
    .log-co-ab-steps-grid {
        grid-template-columns: 1fr;
    }
}
