/**
 * Stepped Process Module - Styles
 */

.cj-stepped {
    position: relative;
    font-family: "Saira", sans-serif;
    color: #15130f;
}

.cj-stepped__header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 0.8fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: end;
}

.cj-stepped__title {
    margin: 0;
    font-family: "Saira Condensed", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(46px, 7vw, 116px);
    line-height: 0.82;
    letter-spacing: 0;
}

.cj-stepped--title-black .cj-stepped__title {
    color: #15130f;
}

.cj-stepped--title-white .cj-stepped__title {
    color: #f5f2ec;
}

.cj-stepped__accent {
    color: #eb5d0f;
}

.cj-stepped__intro {
    margin: 0;
    max-width: 680px;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.55;
}

.cj-stepped--intro-dark .cj-stepped__intro {
    color: #544e45;
}

.cj-stepped--intro-light .cj-stepped__intro {
    color: #e0d9cf;
}

.cj-stepped__header + .cj-stepped__timeline {
    margin-top: 46px;
}

.cj-stepped__step-time,
.cj-stepped__step-link {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cj-stepped__button {
    display: inline-flex;
    align-items: stretch;
    min-height: 48px;
    color: #0b0a09;
    text-decoration: none;
    font-family: "Saira Condensed", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.cj-stepped__button span:first-child {
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #eb5d0f;
}

.cj-stepped__button span:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    background: #f5f2ec;
}

.cj-stepped__button--dark span:first-child {
    background: #15130f;
    color: #f5f2ec;
}

.cj-stepped__button--dark span:last-child {
    background: #eb5d0f;
}

.cj-stepped__timeline {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(21, 19, 15, 0.22);
    border-bottom: 1px solid rgba(21, 19, 15, 0.22);
}

.cj-stepped__step {
    position: relative;
    min-height: 330px;
    padding: 34px 26px 32px;
    border-left: 1px solid rgba(21, 19, 15, 0.16);
}

.cj-stepped__step:first-child {
    border-left: none;
}

.cj-stepped__step::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 26px;
    width: 52px;
    height: 9px;
    background: #eb5d0f;
}

.cj-stepped__step-number {
    margin-bottom: 16px;
    font-family: "Saira Condensed", sans-serif;
    font-size: 62px;
    font-weight: 900;
    line-height: 0.78;
    color: #eb5d0f;
}

.cj-stepped__step-time {
    margin-bottom: 18px;
    color: #807a70;
}

.cj-stepped__step h3 {
    margin: 0 0 18px;
    font-family: "Saira Condensed", sans-serif;
    font-size: clamp(25px, 2vw, 34px);
    font-weight: 900;
    line-height: 0.92;
    text-transform: uppercase;
}

.cj-stepped__step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #5c564c;
}

.cj-stepped__step-link {
    display: inline-block;
    margin-top: 18px;
    color: #15130f;
    text-decoration-color: #eb5d0f;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.cj-stepped__step-cta {
    margin-top: 18px;
}

.cj-stepped__final {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.cj-stepped__timeline + .cj-stepped__final {
    margin-top: 34px;
}

@media (max-width: 1100px) {
    .cj-stepped__header {
        grid-template-columns: 1fr;
    }

    .cj-stepped__timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cj-stepped__step:nth-child(3) {
        border-left: none;
    }
}

@media (max-width: 720px) {
    .cj-stepped__intro {
        font-size: 15px;
    }

    .cj-stepped__button {
        max-width: 100%;
        font-size: 13px;
    }

    .cj-stepped__button span:first-child {
        min-width: 0;
        padding: 0 16px;
    }

    .cj-stepped__timeline {
        grid-template-columns: 1fr;
        border-bottom: none;
    }

    .cj-stepped__step,
    .cj-stepped__step:nth-child(3) {
        min-height: 0;
        padding: 30px 0 30px 28px;
        border-left: 2px solid rgba(21, 19, 15, 0.18);
    }

    .cj-stepped__step:first-child {
        border-left: 2px solid rgba(21, 19, 15, 0.18);
    }

    .cj-stepped__step::before {
        top: 30px;
        left: -5px;
        width: 9px;
        height: 52px;
    }
}
