/* =====================================================
   AVANTHY — PROCESSO V3
   Desktop horizontal / Mobile vertical
   ===================================================== */

.avt-process-v3,
.avt-process-v3 * {
    box-sizing: border-box;
}

.avt-process-v3 {
    position: relative;
    overflow: hidden;
    padding: 96px 0 100px;
    background:
        radial-gradient(
            circle at 95% 8%,
            rgba(0, 101, 163, 0.09),
            transparent 31%
        ),
        linear-gradient(
            180deg,
            #f8fbfe 0%,
            #edf5fb 100%
        );
}

.avt-process-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.avt-process-header {
    width: min(790px, 100%);
    margin: 0 auto 51px;
    text-align: center;
}

.avt-process-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: #0065a3;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.avt-process-label::before {
    content: "";
    width: 31px;
    height: 3px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #ff5700,
            #ff934d
        );
}

.avt-process-header h2 {
    margin: 0 0 16px;
    color: #00234d;
    font-family: Poppins, Arial, sans-serif;
    font-size: clamp(34px, 4vw, 49px);
    font-weight: 700;
    line-height: 1.13;
    letter-spacing: -0.04em;
}

.avt-process-header p {
    max-width: 650px;
    margin: 0 auto;
    color: #617084;
    font-size: 15px;
    line-height: 1.75;
}

/* =====================================================
   DESKTOP
   ===================================================== */

.avt-process-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 27px;
}

.avt-process-flow::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 35px;
    right: 10%;
    left: 10%;
    height: 2px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #0065a3 0%,
            #1889bb 68%,
            #ff6600 100%
        );
    opacity: 0.38;
}

.avt-process-item {
    position: relative;
    z-index: 1;
    min-width: 0;
    text-align: center;
}

.avt-process-marker {
    position: relative;
    z-index: 2;
    display: flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 7px solid #f1f7fb;
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            #00234d,
            #005b91
        );
    box-shadow:
        0 10px 25px rgba(0, 35, 77, 0.20);
    color: #ffffff;
}

.avt-process-marker::after {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: -1;
    border: 1px solid rgba(0, 101, 163, 0.13);
    border-radius: 50%;
}

.avt-process-marker span {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.avt-process-item[data-step="4"]
.avt-process-marker {
    background:
        linear-gradient(
            145deg,
            #ff5700,
            #ff8c39
        );
    box-shadow:
        0 10px 25px rgba(255, 102, 0, 0.27);
}

.avt-process-card {
    position: relative;
    padding: 0 9px;
}

.avt-process-card h3 {
    margin: 0 0 10px;
    color: #00234d;
    font-family: Poppins, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.avt-process-card p {
    max-width: 245px;
    margin: 0 auto;
    color: #657286;
    font-size: 12px;
    line-height: 1.65;
}

.avt-process-icon {
    display: none;
}

/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 900px) and (min-width: 701px) {
    .avt-process-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 25px;
    }

    .avt-process-flow::before {
        display: none;
    }

    .avt-process-card {
        min-height: 145px;
        padding: 22px;
        border: 1px solid rgba(0, 35, 77, 0.08);
        border-radius: 18px;
        background: #ffffff;
        box-shadow:
            0 12px 30px rgba(0, 35, 77, 0.07);
    }
}

/* =====================================================
   MOBILE — TIMELINE VERTICAL PREMIUM
   ===================================================== */

@media (max-width: 700px) {
    .avt-process-v3 {
        padding: 68px 0 74px;
    }

    .avt-process-shell {
        width: calc(100% - 32px);
    }

    .avt-process-header {
        margin-bottom: 38px;
        text-align: left;
    }

    .avt-process-label {
        margin-bottom: 14px;
        font-size: 10px;
    }

    .avt-process-header h2 {
        margin-bottom: 14px;
        font-size: 31px;
        line-height: 1.15;
    }

    .avt-process-header p {
        font-size: 14px;
        line-height: 1.7;
    }

    .avt-process-flow {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding-left: 73px;
    }

    .avt-process-flow::before {
        top: 29px;
        right: auto;
        bottom: 29px;
        left: 28px;
        width: 3px;
        height: auto;
        background:
            linear-gradient(
                180deg,
                #00234d 0%,
                #0065a3 72%,
                #ff6600 100%
            );
        box-shadow:
            0 0 0 5px rgba(0, 101, 163, 0.055);
        opacity: 1;
    }

    .avt-process-item {
        position: relative;
        text-align: left;
    }

    .avt-process-marker {
        position: absolute;
        top: 18px;
        left: -73px;
        width: 58px;
        height: 58px;
        margin: 0;
        border-width: 5px;
    }

    .avt-process-marker span {
        font-size: 14px;
    }

    .avt-process-card {
        position: relative;
        min-height: 137px;
        overflow: hidden;
        padding: 25px 56px 22px 21px;
        border: 1px solid rgba(0, 35, 77, 0.09);
        border-radius: 19px;
        background:
            linear-gradient(
                145deg,
                #ffffff 0%,
                #f9fbfd 100%
            );
        box-shadow:
            0 14px 34px rgba(0, 35, 77, 0.075);
    }

    .avt-process-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 21px;
        left: 21px;
        height: 3px;
        border-radius: 0 0 999px 999px;
        background:
            linear-gradient(
                90deg,
                #00234d,
                #0065a3
            );
    }

    .avt-process-item[data-step="4"]
    .avt-process-card {
        border-color: rgba(255, 102, 0, 0.20);
        background:
            linear-gradient(
                145deg,
                #ffffff,
                #fff8f3
            );
    }

    .avt-process-item[data-step="4"]
    .avt-process-card::before {
        background:
            linear-gradient(
                90deg,
                #ff5700,
                #ff934d
            );
    }

    .avt-process-icon {
        position: absolute;
        top: 17px;
        right: 16px;
        display: flex;
        width: 35px;
        height: 35px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(0, 101, 163, 0.13);
        border-radius: 11px;
        background: rgba(0, 101, 163, 0.075);
    }

    .avt-process-icon svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: #0065a3;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .avt-process-item[data-step="4"]
    .avt-process-icon {
        border-color: rgba(255, 102, 0, 0.17);
        background: rgba(255, 102, 0, 0.09);
    }

    .avt-process-item[data-step="4"]
    .avt-process-icon svg {
        stroke: #ff6600;
    }

    .avt-process-card h3 {
        margin: 7px 0 9px;
        font-size: 20px;
        text-align: left;
    }

    .avt-process-card p {
        max-width: none;
        margin: 0;
        font-size: 13px;
        line-height: 1.67;
        text-align: left;
    }
}
