/* ==========================================================================
   Motomarine v3 · Process
   .cs-steprow (one bordered row split by dividers, step badges and arrow
   circles between columns), .cs-step-card (numbered circle in a card),
   .cs-stepper (numbered circles on a line with cards below). Each has a
   --dark modifier for .bg-dark sections.
   ========================================================================== */
/* --- Step row: one bordered row, columns split by dividers, arrows between --- */
.cs-steprow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
}
.cs-steprow__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 40px 44px;
    border-right: 1px solid var(--border);
}
.cs-steprow__item:last-child {
    border-right: 0;
}
.cs-steprow__item:not(:last-child)::after {
    content: "\f138";
    font-family: "bootstrap-icons";
    position: absolute;
    right: -23px;
    top: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 18px;
    line-height: 1;
    color: var(--heading);
}
.cs-steprow__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-bottom: 14px;
}
.cs-steprow__head h3,
.cs-steprow__head .h3 {
    font-size: 1.1875rem;
    margin: 0;
}
.cs-steprow__badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 0;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--primary-text);
    background: var(--primary-tint-10);
}
.cs-steprow__item p {
    margin: 0 0 24px;
}
.cs-steprow__item .cs-btn {
    margin-top: auto;
}
.bg-lighter .cs-steprow {
    border-color: transparent;
    box-shadow: var(--shadow);
}
.cs-steprow--dark {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}
.cs-steprow--dark .cs-steprow__item {
    border-right-color: rgba(255, 255, 255, .12);
}
.cs-steprow--dark .cs-steprow__item:not(:last-child)::after {
    border-color: rgba(255, 255, 255, .2);
    background: var(--heading);
    color: var(--white);
}
.cs-steprow--dark h3,
.cs-steprow--dark .h3 {
    color: var(--white);
}
.cs-steprow--dark .cs-steprow__badge {
    background: var(--primary);
    color: var(--white);
}

/* --- Numbered stepper: outlined number circles on a line, cards below --- */
ol.cs-stepper {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.cs-stepper::before {
    content: "";
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 23px;
    height: 2px;
    background: var(--border);
}
.cs-stepper__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cs-stepper__num {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 6px var(--white);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}
.cs-stepper__card {
    flex: 1 1 auto;
    width: 100%;
    padding: 26px 24px 28px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
}
.cs-stepper__card h3,
.cs-stepper__card .h3 {
    font-size: 1.0625rem;
    margin-bottom: 8px;
}
.cs-stepper__card p {
    margin: 0;
    font-size: 15px;
}
.bg-lighter .cs-stepper__num {
    box-shadow: 0 0 0 6px var(--bg-light);
}
.bg-lighter .cs-stepper__card {
    border-color: transparent;
    box-shadow: var(--shadow);
}
.cs-stepper--dark::before {
    background: rgba(255, 255, 255, .15);
}
.cs-stepper--dark .cs-stepper__num {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 6px var(--heading);
}
.cs-stepper--dark .cs-stepper__card {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}
.cs-stepper--dark h3,
.cs-stepper--dark .h3 {
    color: var(--white);
}

/* --- Step cards: numbered circle in a card --- */
.cs-step-card {
    height: 100%;
    padding: 36px 34px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
}
.cs-step-card__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    background: var(--primary);
}
.cs-step-card h3,
.cs-step-card .h3 {
    font-size: 1.1875rem;
    margin-bottom: 10px;
}
.cs-step-card p {
    margin: 0;
}
.bg-lighter .cs-step-card {
    border-color: transparent;
    box-shadow: var(--shadow);
}
.cs-step-card--dark {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}
.cs-step-card--dark h3,
.cs-step-card--dark .h3 {
    color: var(--white);
}

/* --- Numbered list, two columns: bordered box (or navy box) with a square number badge beside title + copy --- */
.cs-steplist-box {
    padding: 56px 60px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
}
.cs-steplist-box .cs-sechead {
    margin-bottom: 40px;
}
.cs-steplist-box--dark {
    border-color: transparent;
    background: var(--heading);
}
ol.cs-steplist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 48px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.cs-steplist__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.cs-steplist__num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}
.cs-steplist__item h3 {
    margin-bottom: 8px;
}
.cs-steplist__item p {
    margin-bottom: 0;
}
.cs-steplist-box--dark .cs-steplist__item h3 {
    color: var(--white);
}
.cs-steplist-box--dark .cs-steplist__item p {
    color: rgba(255, 255, 255, .72);
}

@media (max-width: 991px) {
    .cs-steplist-box {
        padding: 44px 40px;
    }
    .cs-steprow {
        grid-template-columns: 1fr;
    }
    .cs-steprow__item {
        padding: 32px 28px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .cs-steprow__item:last-child {
        border-bottom: 0;
    }
    .cs-steprow--dark .cs-steprow__item {
        border-bottom-color: rgba(255, 255, 255, .12);
    }
    .cs-steprow__item:not(:last-child)::after {
        content: "\f128";
        right: auto;
        left: 50%;
        top: auto;
        bottom: -23px;
        margin: 0 0 0 -23px;
    }
    ol.cs-stepper {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }
    .cs-stepper::before {
        display: none;
    }
}
@media (max-width: 575px) {
    .cs-step-card {
        padding: 28px 24px;
    }
    .cs-steplist-box {
        padding: 36px 24px;
    }
    .cs-steplist-box .cs-sechead {
        margin-bottom: 28px;
    }
    ol.cs-steplist {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cs-steplist__item {
        gap: 16px;
    }
    .cs-steplist__num {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .cs-steprow__item {
        padding: 26px 20px 30px;
    }
    ol.cs-stepper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}



/* ==========================================================================
   v5 · Modern process layouts
   .cs-steprow--modern      Step row: separate cards, pill badges, arrows between
   .cs-stepcards            Step cards: outlined numeral, lifting cards
   .cs-steplist-box--modern Numbered list: gradient hairline box, round numbers
   .cs-milestones--modern   Milestone rail: grey rail, ringed dots, year pills
   .cs-stepper--modern      Numbered stepper: gradient line, glowing numbers
   ========================================================================== */

/* ==========================================================================
   Step row: separate cards, pill badges
   ========================================================================== */
.cs-steprow--modern,
.bg-lighter .cs-steprow--modern,
.cs-steprow--modern.cs-steprow--dark {
    gap: 24px;
    border: 0;
    background: none;
    box-shadow: none;
}
.cs-steprow--modern .cs-steprow__item,
.cs-steprow--modern .cs-steprow__item:last-child {
    position: relative;
    border: 1px solid var(--border);
    background: var(--white);
    transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
.cs-steprow--modern .cs-steprow__item:not(:last-child)::after {
    right: -19px;
    z-index: 2;
    color: var(--white);
    border-color: var(--primary);
    background: var(--primary);
}
.cs-steprow--modern .cs-steprow__badge {
    border-radius: 40px;
    padding-right: 12px;
    padding-left: 12px;
}
.bg-lighter .cs-steprow--modern .cs-steprow__item {
    border-color: transparent;
    box-shadow: rgba(0, 0, 0, .1) 0 0 5px 0, rgba(0, 0, 0, .1) 0 0 1px 0;
}
.cs-steprow--modern.cs-steprow--dark .cs-steprow__item {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}

/* ==========================================================================
   Step cards: outlined numeral, lifting cards
   ========================================================================== */
.cs-stepcards .cs-step-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
.cs-stepcards .cs-step-card__num {
    position: absolute;
    top: 14px;
    right: 18px;
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
    font-family: var(--font-heading);
    font-size: 88px;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    background: none;
    -webkit-text-stroke: 1.5px var(--border-strong);
    transition: -webkit-text-stroke-color .3s ease;
}
.cs-stepcards .cs-step-card h3 {
    position: relative;
    margin-top: 44px;
    padding-top: 16px;
}
.cs-stepcards .cs-step-card h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--primary);
}
.cs-stepcards .cs-step-card--dark .cs-step-card__num {
    -webkit-text-stroke-color: rgba(255, 255, 255, .25);
}

/* ==========================================================================
   Numbered list: gradient hairline box, round numbers
   ========================================================================== */
.cs-steplist-box--modern {
    border: 1px solid transparent;
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, var(--primary), var(--border) 40%, var(--border) 60%, var(--secondary)) border-box;
    box-shadow: 0 30px 60px rgba(15, 23, 43, .06);
}
.cs-steplist-box--modern.cs-steplist-box--dark {
    background:
        linear-gradient(var(--heading), var(--heading)) padding-box,
        linear-gradient(135deg, var(--primary), rgba(255, 255, 255, .12) 40%, rgba(255, 255, 255, .12) 60%, var(--secondary)) border-box;
    box-shadow: none;
}
.cs-steplist-box--modern .cs-steplist__num {
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(var(--primary-rgb), .12);
}
.cs-steplist-box--modern .cs-steplist__item {
    padding: 16px;
    transition: background .25s ease;
}

/* ==========================================================================
   Milestone rail: grey rail, ringed dots, year pills
   ========================================================================== */
.cs-milestones--modern .cs-milestones__item {
    border-left: 0;
}
.cs-milestones--modern .cs-milestones__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 11px;
    bottom: -11px;
    left: -1px;
    width: 2px;
    background: var(--border);
}
.cs-milestones--modern .cs-milestones__item::before {
    z-index: 1;
    box-sizing: border-box;
    top: 3px;
    left: -8px;
    width: 16px;
    height: 16px;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 1px var(--primary);
}
.cs-milestones--modern .cs-milestones__year {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 40px;
    letter-spacing: 1px;
    background: var(--primary-tint-10);
}
.bg-lighter .cs-milestones--modern .cs-milestones__item::before {
    border-color: var(--bg-light);
}
.bg-dark .cs-milestones--modern .cs-milestones__item::before {
    border-color: var(--heading);
}
.bg-dark .cs-milestones--modern .cs-milestones__item:not(:last-child)::after {
    background: rgba(255, 255, 255, .15);
}
.bg-dark .cs-milestones--modern .cs-milestones__year {
    color: var(--white);
    background: rgba(255, 255, 255, .1);
}

/* ==========================================================================
   Numbered stepper: gradient line, glowing numbers, lifting cards
   ========================================================================== */
.cs-stepper--modern::before {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.cs-stepper--modern .cs-stepper__num {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(var(--primary-rgb), .12);
}
.cs-stepper--modern .cs-stepper__card {
    transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
.cs-stepper--modern.cs-stepper--dark .cs-stepper__num {
    box-shadow: 0 0 0 6px rgba(var(--primary-rgb), .25);
}

/* --- Modern process: responsive --- */
@media (max-width: 991px) {
    .cs-steprow--modern,
    .bg-lighter .cs-steprow--modern,
    .cs-steprow--modern.cs-steprow--dark {
        gap: 28px;
    }
    .cs-steprow--modern .cs-steprow__item,
    .cs-steprow--modern .cs-steprow__item:last-child {
        border: 1px solid var(--border);
    }
    .cs-steprow--modern.cs-steprow--dark .cs-steprow__item {
        border-color: rgba(255, 255, 255, .12);
    }
    .cs-steprow--modern .cs-steprow__item:not(:last-child)::after {
        right: auto;
        bottom: -21px;
    }
    .cs-stepper--modern::before {
        background: linear-gradient(180deg, var(--primary), var(--secondary));
    }
}
@media (max-width: 575px) {
    .cs-stepcards .cs-step-card__num {
        font-size: 64px;
    }
    .cs-steplist-box--modern .cs-steplist__item {
        padding: 12px 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .cs-steprow--modern .cs-steprow__item,
    .cs-stepcards .cs-step-card,
    .cs-stepper--modern .cs-stepper__card {
        transition: none;
    }
}
