/* =========================================
   BERA SOFTWARE - OUR PROCESS
========================================= */

.bs-process {
    --process-bg: #f3f1ea;
    --process-card: #fffefa;
    --process-dark: #111416;
    --process-text: #151719;
    --process-muted: #696b68;
    --process-gold: #f6b91b;
    --process-line: rgba(17, 20, 22, 0.12);

    position: relative;
    isolation: isolate;
    padding: 120px 0 115px;
    overflow-x: clip;
    overflow-y: visible;
    background: var(--process-bg);
    color: var(--process-text);
}

.bs-process-watermark {
    position: absolute;
    top: 42px;
    right: -2vw;
    z-index: -1;
    color: transparent;
    font-size: clamp(110px, 16vw, 265px);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.08em;
    -webkit-text-stroke: 1px rgba(17, 20, 22, 0.055);
    user-select: none;
}

.bs-process-container {
    width: min(calc(100% - 70px), 1450px);
    margin: 0 auto;
}

/* Header */

.bs-process-header {
    margin-bottom: 90px;
}

.bs-process-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #535550;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.bs-process-kicker span {
    width: 38px;
    height: 2px;
    background: var(--process-gold);
}

.bs-process-heading-row {
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
    gap: clamp(45px, 8vw, 140px);
    align-items: end;
}

.bs-process-heading-row h2 {
    max-width: 940px;
    margin: 0;
    font-size: clamp(50px, 5.4vw, 86px);
    font-weight: 650;
    line-height: 0.99;
    letter-spacing: -0.058em;
}

.bs-process-heading-row h2 strong {
    display: block;
    color: #96968e;
    font-weight: inherit;
}

.bs-process-heading-row p {
    max-width: 420px;
    margin: 0 0 7px;
    color: var(--process-muted);
    font-size: 16px;
    line-height: 1.75;
}

/* Main layout */

.bs-process-layout {
    display: grid;
    grid-template-columns: minmax(390px, 0.82fr) minmax(500px, 1.18fr);
    gap: clamp(55px, 7vw, 120px);
    align-items: start;
}

/* Sticky process map */

.bs-process-visual {
    position: sticky;
    top: 135px;
    padding: 38px;
    overflow: hidden;
    border-radius: 7px;
    background:
        radial-gradient(circle at 50% 44%, rgba(19, 113, 146, 0.22), transparent 36%),
        linear-gradient(145deg, #111518, #07131a);
    box-shadow: 0 32px 75px rgba(32, 34, 29, 0.16);
}

.bs-process-map {
    position: relative;
    width: min(100%, 440px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.bs-process-map > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

/* =========================================
   COMPLETE CIRCULAR PROGRESS
========================================= */

.bs-process-progress-svg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: visible;

    /* SVG circle normally starts from right;
       this brings the starting point to Discover */
    transform: rotate(-90deg);
}

.bs-process-progress-track,
.bs-process-progress-line {
    fill: none;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

/* Full dotted background circle */
.bs-process-progress-track {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-dasharray: 1.5 2.2;
}

/* Golden progress circle */
.bs-process-progress-line {
    stroke: var(--process-gold);
    stroke-linecap: round;

    stroke-dasharray: 100;
    stroke-dashoffset: 75;

    filter:
        drop-shadow(0 0 5px rgba(246, 185, 27, 0.3));

    transition:
        stroke-dashoffset 0.85s
        cubic-bezier(.2, .75, .2, 1);
}


/* 01 — Discover: 25% */
.bs-process[data-process-step="0"]
.bs-process-progress-line {
    stroke-dashoffset: 75;
}


/* 02 — Define: 50% */
.bs-process[data-process-step="1"]
.bs-process-progress-line {
    stroke-dashoffset: 50;
}


/* 03 — Design & Build: 75% */
.bs-process[data-process-step="2"]
.bs-process-progress-line {
    stroke-dashoffset: 25;
}


/* 04 — Launch & Support: 100% */
.bs-process[data-process-step="3"]
.bs-process-progress-line {
    stroke-dashoffset: 0;
}

.bs-process-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.bs-process-ring-one {
    width: 79%;
    height: 79%;
}

.bs-process-ring-two {
    width: 48%;
    height: 48%;
    border-color: rgba(246, 185, 27, 0.13);
}

.bs-process-map-center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 38%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(246, 185, 27, 0.5);
    border-radius: 50%;
    background: #0c151a;
    box-shadow: 0 0 55px rgba(246, 185, 27, 0.08);
    text-align: center;
    transform: translate(-50%, -50%);
}

.bs-process-map-center small {
    color: var(--process-gold);
    font-size: 7px;
    font-weight: 650;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.bs-process-map-center strong {
    margin-top: 8px;
    color: #ffffff;
    font-size: clamp(17px, 2vw, 25px);
    font-weight: 600;
    line-height: 1.05;
    text-transform: uppercase;
}

.bs-process-map-node {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 7px;
    color: rgba(255, 255, 255, 0.42);
    transform: translate(-50%, -50%);
    transition: color 0.4s ease, transform 0.45s ease;
}

.bs-process-map-node i {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: #10171b;
    font-size: 9px;
    font-style: normal;
    font-weight: 650;
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.bs-process-map-node em {
    font-size: 7px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bs-map-node-one { top: 17.5%; left: 50%; }
.bs-map-node-two { top: 50%; left: 82.5%; }
.bs-map-node-three { top: 82.5%; left: 50%; }
.bs-map-node-four { top: 50%; left: 17.5%; }

.bs-process-map-node.is-active {
    color: var(--process-gold);
    transform: translate(-50%, -50%) scale(1.08);
}

.bs-process-map-node.is-active i {
    border-color: var(--process-gold);
    background: var(--process-gold);
    color: #111416;
    box-shadow: 0 0 0 7px rgba(246, 185, 27, 0.1), 0 0 28px rgba(246, 185, 27, 0.2);
}

.bs-process-status {
    margin-top: 20px;
    padding-top: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bs-process-status > span {
    color: rgba(255, 255, 255, 0.27);
    font-size: 13px;
}

.bs-process-status > span strong {
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
}

.bs-process-status > div {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
}

.bs-process-status small {
    color: rgba(255, 255, 255, 0.35);
    font-size: 7px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.bs-process-status div strong {
    margin-top: 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bs-process-status div strong.is-changing {
    opacity: 0;
    transform: translateY(5px);
}

/* Process steps */

.bs-process-steps {
    border-top: 1px solid var(--process-line);
}

.bs-process-step {
    position: relative;
    min-height: 320px;
    padding: 45px 32px 45px 0;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 18px;
    border-bottom: 1px solid var(--process-line);
    transition: padding 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}

.bs-process-step::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--process-gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(.2, .75, .2, 1);
}

.bs-process-step.is-active {
    padding-left: 31px;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: 0 22px 55px rgba(45, 44, 36, 0.07);
}

.bs-process-step.is-active::before {
    transform: scaleY(1);
}

.bs-process-step-number {
    color: transparent;
    font-size: 42px;
    font-weight: 650;
    line-height: 1;
    -webkit-text-stroke: 1px rgba(17, 20, 22, 0.28);
    transition: color 0.4s ease, -webkit-text-stroke 0.4s ease;
}

.bs-process-step.is-active .bs-process-step-number {
    color: var(--process-gold);
    -webkit-text-stroke-color: var(--process-gold);
}

.bs-process-step-content > small {
    color: #777872;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.bs-process-step-content h3 {
    margin: 8px 0 0;
    font-size: clamp(33px, 3vw, 49px);
    font-weight: 620;
    line-height: 1;
    letter-spacing: -0.05em;
}

.bs-process-step-content p {
    max-width: 620px;
    margin: 20px 0 0;
    color: var(--process-muted);
    font-size: 16px;
    line-height: 1.75;
}

.bs-process-step-content ul {
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.bs-process-step-content li {
    padding: 8px 12px;
    border: 1px solid rgba(17, 20, 22, 0.14);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.45);
    color: #5f615d;
    font-size: 10px;
    font-weight: 550;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.bs-process-step.is-active li,
.bs-process-step:hover li {
    border-color: rgba(246, 185, 27, 0.45);
    background: rgba(246, 185, 27, 0.1);
    color: #4e421d;
}

/* Terms strip */

.bs-process-terms {
    margin-top: 85px;
    padding: 24px 27px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid rgba(17, 20, 22, 0.13);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.58);
}

.bs-process-terms > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bs-process-terms > div > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--process-dark);
    color: var(--process-gold);
    font-size: 14px;
}

.bs-process-terms p {
    margin: 0;
    color: var(--process-muted);
    font-size: 14px;
    line-height: 1.6;
}

.bs-process-terms p strong {
    display: block;
    color: var(--process-text);
    font-size: 16px;
    font-weight: 620;
}

.bs-process-terms > a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--process-text);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.bs-process-terms > a i {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(17, 20, 22, 0.16);
    border-radius: 50%;
    background: var(--process-gold);
    transition: transform 0.4s ease;
}

.bs-process-terms > a:hover i,
.bs-process-terms > a:focus-visible i {
    transform: rotate(45deg);
}

.bs-process-terms svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bs-process-terms > a:focus-visible {
    outline: 2px solid var(--process-text);
    outline-offset: 5px;
}

/* Entry reveal */

.bs-process.js-process-ready .bs-process-header,
.bs-process.js-process-ready .bs-process-visual,
.bs-process.js-process-ready .bs-process-step,
.bs-process.js-process-ready .bs-process-terms {
    opacity: 0;
    transform: translateY(28px);
}

.bs-process.js-process-ready .is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.75s ease, transform 0.8s cubic-bezier(.2, .75, .2, 1);
}

/* Responsive */

@media (max-width: 1080px) {
    .bs-process-layout {
        grid-template-columns: minmax(330px, 0.8fr) minmax(430px, 1.2fr);
        gap: 40px;
    }

    .bs-process-visual {
        padding: 25px;
    }
}

@media (max-width: 850px) {
    .bs-process-layout {
        grid-template-columns: 1fr;
    }

    .bs-process-visual {
        position: relative;
        top: auto;
        width: min(100%, 570px);
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .bs-process {
        padding: 82px 0 78px;
    }

    .bs-process-container {
        width: calc(100% - 30px);
    }

    .bs-process-header {
        margin-bottom: 52px;
    }

    .bs-process-heading-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .bs-process-heading-row h2 {
        font-size: clamp(41px, 12vw, 58px);
        line-height: 1.02;
    }

    .bs-process-visual {
        padding: 19px;
    }

    .bs-process-map {
        max-width: 385px;
    }

    .bs-process-step {
        min-height: auto;
        padding: 35px 5px 35px 0;
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .bs-process-step.is-active {
        padding-left: 18px;
    }

    .bs-process-step-number {
        font-size: 33px;
    }

    .bs-process-step-content p {
        font-size: 16px;
    }

    .bs-process-terms {
        margin-top: 55px;
        padding: 22px;
        align-items: flex-start;
        flex-direction: column;
    }

    .bs-process-terms > a {
        width: 100%;
        min-height: 53px;
        padding-left: 17px;
        justify-content: space-between;
        border-radius: 100px;
        background: var(--process-gold);
    }

    .bs-process-terms > a i {
        margin-right: 6px;
        background: var(--process-dark);
        color: #ffffff;
    }
}

@media (max-width: 430px) {
    .bs-process-map-node i {
        width: 36px;
        height: 36px;
    }

    .bs-process-map-node em {
        font-size: 6px;
    }

    .bs-process-map-center strong {
        font-size: 17px;
    }

    .bs-process-step {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 10px;
    }

    .bs-process-step-content h3 {
        font-size: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bs-process-map svg path,
    .bs-process-map-node,
    .bs-process-step,
    .bs-process-header,
    .bs-process-visual,
    .bs-process-terms {
        transition: none !important;
        transform: none !important;
    }
}

/* =========================================
   PROCESS STICKY FIX
========================================= */

/* Parent must allow sticky positioning */
.bs-process {
    overflow-x: clip;
    overflow-y: visible;
}

@media (min-width: 851px) {
    .bs-process-layout {
        position: relative;
        align-items: flex-start;
    }

    .bs-process-visual {
        position: sticky;
        top: 118px;
        align-self: flex-start;

        /*
         Prevents the visual from becoming taller
         than the available desktop viewport
        */
        max-height: calc(100svh - 145px);
    }

    .bs-process-map {
        width: min(100%, 390px);
    }
}


/* Hide circular process visual on mobile/tablet */
@media (max-width: 850px) {
    .bs-process-visual {
        display: none !important;
    }

    .bs-process-layout {
        display: block;
    }

    .bs-process-steps {
        width: 100%;
    }
}
