
/* ### QUOTE ### */
.quote {
    padding-block: 2rem;
    transition: var(--trans-3);
}

.quote .head {
    max-width: 30rem;
    text-align: center;
    margin: 0 auto 1.25rem;
    transition: max-width var(--trans-3), 
                margin-bottom var(--trans-3);
}

.quote .head > :first-child {
    font-size: var(--fs-xl, 2rem);
}

.quote .wrapper {
    display: grid;
    gap: 1.25rem;
    transition: gap var(--trans-3);
}

.quote .steps {
    max-width: 38rem;
    display: grid;
    gap: 1.125rem;
    margin-inline: auto;
    transition: gap var(--trans-3);
}

.quote .steps li {
    --_step-height: 4.75rem;
    position: relative;
    height: var(--_step-height);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: height var(--trans-3),
                gap var(--trans-3);
}

.quote .steps li:not(:last-of-type):before {
    --_border-width: 4.5rem;
    --_border-height: 1.25rem;
    content: '';
    position: absolute;
    inset: 0;
    width: calc(100% - var(--_border-width));
    height: calc(100% + var(--_border-height));
    border-bottom: 1px solid var(--c-border);
    margin: auto;
    z-index: -1;
    transition: width var(--trans-3), 
                height var(--trans-3);
}

.quote .steps .icon {
    position: relative;
    flex: none;
    width: 4.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--br-sm, 2px);
    transition: width var(--trans-3),
                height var(--trans-3);
}

.quote .steps .icon::before {
    --_border-position: -1rem;
    --_border-height: 2rem;
    content: '';
    position: absolute;
    inset: var(--_border-position) 0 0;
    width: 1px;
    height: calc(100% + var(--_border-height));
    background-color: var(--c-border);
    margin-inline: auto;
    z-index: -1;
    transition: top var(--trans-3), 
                height var(--trans-3);
}

.quote .steps li:first-of-type .icon::before {
    --_border-position: 0;
    --_border-height: 1rem
}

.quote .steps li:last-of-type .icon::before {
    --_border-position: -1rem;
    --_border-height: 1rem
}

.quote .steps li:nth-of-type(even) .icon {
    order: 2;
    margin-left: auto;
}

.quote .text > :first-child {
    display: block;
    font-size: var(--fs-sm, 1rem);
    font-weight: 500;
    color: var(--c-dark);
    margin-bottom: 0.25rem;
    transition: margin-bottom var(--trans-3);
}

.quote .text p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}


/* ~~~~~ MEDIA QUERIES ~~~~~ */
/* ===== MOBILE (Potrait) : 480px ===== */
@media screen and (min-width: 30rem) {
    .quote .steps li {
        gap: 1.25rem;
    }
}

/* ===== MOBILE (Lanscape) : 608px ===== */
@media screen and (min-width: 38rem) {
    .quote .head {
        margin-bottom: 1.875rem;
    }
}

/* ===== TABLET (Potrait) : 768px ===== */
@media screen and (min-width: 48rem) {
    .quote .wrapper {
        gap: 1.75rem;
    }
    
    .quote .steps {
        gap: 2rem;
    }

    .quote .steps li {
        --_step-height: 5rem;
    }
    
    .quote .steps .icon {
        width: 5.5rem;
        height: 5rem;
    }

    .quote .steps li:not(:last-of-type):before {
        --_border-width: 5.5rem;
        --_border-height: 2rem;
    }
}

/* ===== LAPTOP : 992px ===== */
@media screen and (min-width: 62rem) {
    .quote {
        padding-block: 3.75rem;
    }

    .quote .wrapper {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        gap: 2rem;
    }

    .quote .head {
        max-width: 38rem;
        margin-bottom: 2.5rem;
    }
}

/* ===== DESKTOP : 1200px ===== */
@media screen and (min-width: 75rem) {
    .quote .wrapper {
        grid-template-columns: 1fr 38rem;
        gap: 2.25rem;
    }

    .quote .steps {
        gap: 1.375rem;
    }

    .quote .steps li {
        --_step-height: 6rem;
    }
    
    .quote .steps .icon {
        width: 6.25rem;
        height: 6rem;
    }

    .quote .steps li:not(:last-of-type):before {
        --_border-width: 6.25rem;
        --_border-height: 1.5rem;
    }

    .quote .steps .icon::before {
        --_border-position: -0.75rem;
        --_border-height: 1.5rem;
    }

    .quote .steps li:first-of-type .icon::before,
    .quote .steps li:last-of-type .icon::before {
        --_border-height: 0.75rem;
    }

    .quote .steps li:last-of-type .icon::before {
        --_border-position: -0.75rem;
    }

    .quote .steps .icon img {
        width: auto;
        height: 3.25rem;
    }

    .quote .text > :first-child {
        margin-bottom: 0.5rem;
    }
}