﻿/* =========================================================
   HOW IT WORKS - PREMIUM PROCESS SECTION
========================================================= */

.process-section {
    position: relative;
    width: 100%;
    padding: 30px 0;
    overflow: hidden;
    background: linear-gradient( 180deg, #f8fbfe 0%, #ffffff 50%, #f5f9fc 100% );
}


/* =========================================================
   95% WIDTH
========================================================= */

.process-container {
    width: 95%;
    max-width: 1700px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.process-header {
    width: 100%;
    max-width: 850px;
    margin: 0 auto 80px;
    text-align: center;
}


.process-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}


.process-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp( 2.2rem, 4vw, 4rem );
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.8px;
}


.process-header p {
    max-width: 700px;
    margin: 24px auto 0;
    color: var(--soft);
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   PROCESS WRAPPER
========================================================= */

.process-wrapper {
    display: grid;
    grid-template-columns: 1fr 80px 1fr 80px 1fr;
    align-items: center;
    width: 100%;
    min-height: 390px;
}


/* =========================================================
   PROCESS ITEM
========================================================= */

.process-item {
    position: relative;
    min-height: 350px;
    padding: 42px;
    background: #ffffff;
    border: 1px solid rgba(225, 232, 240, .9);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(12, 47, 87, .07);
    transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease;
}


    .process-item:hover {
        transform: translateY(-10px);
        border-color: rgba(35, 110, 176, .25);
        box-shadow: 0 30px 75px rgba(12, 47, 87, .13);
    }


/* =========================================================
   NUMBER
========================================================= */

.process-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 42px;
    border-radius: 50%;
    background: var(--navy);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 12px 30px rgba(12, 47, 87, .22);
}


/* Different accent colours */

.process-left .process-number {
    background: linear-gradient( 135deg, var(--blue), var(--blue-dark) );
}


.process-middle .process-number {
    background: linear-gradient( 135deg, var(--gold), var(--gold-dark) );
}


.process-right .process-number {
    background: linear-gradient( 135deg, var(--green), #557c25 );
}


/* =========================================================
   LABEL
========================================================= */

.process-label {
    display: block;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* =========================================================
   TITLE
========================================================= */

.process-content h3 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: clamp( 1.45rem, 2vw, 1.9rem );
    font-weight: 800;
    line-height: 1.2;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.process-content p {
    max-width: 420px;
    margin: 0;
    color: var(--soft);
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   LINK
========================================================= */

.process-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    transition: color .3s ease, gap .3s ease;
}


    .process-link span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--paper-alt);
        color: var(--blue);
        transition: transform .3s ease, background .3s ease;
    }


.process-item:hover .process-link {
    gap: 16px;
    color: var(--blue);
}


    .process-item:hover .process-link span {
        transform: translateX(4px);
        background: rgba(35, 110, 176, .1);
    }


/* =========================================================
   CONNECTING LINE
========================================================= */

.process-line {
    position: relative;
    height: 2px;
    background: linear-gradient( 90deg, rgba(35, 110, 176, .15), rgba(35, 110, 176, .45), rgba(35, 110, 176, .15) );
}


    .process-line span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--blue);
        transform: translate(-50%, -50%);
        box-shadow: 0 0 0 6px rgba(35, 110, 176, .08);
    }


/* =========================================================
   BOTTOM
========================================================= */

.process-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 65px;
}


.process-bottom-line {
    width: 100px;
    height: 1px;
    background: var(--line);
}


.process-bottom p {
    margin: 0;
    color: var(--soft);
    font-size: 14px;
    letter-spacing: .5px;
}


.process-bottom strong {
    color: var(--navy);
}


.process-bottom span {
    margin: 0 5px;
}


/* =========================================================
   DESKTOP ANIMATION
========================================================= */

.process-left {
    animation-delay: .15s;
}


.process-middle {
    animation-delay: .30s;
}


.process-right {
    animation-delay: .45s;
}


/* =========================================================
   LARGE SCREEN
========================================================= */

@media (min-width: 1400px) {

    .process-item {
        padding: 48px;
        min-height: 390px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199.98px) {

    .process-wrapper {
        grid-template-columns: 1fr 40px 1fr 40px 1fr;
    }

    .process-item {
        padding: 30px;
    }
}


/* =========================================================
   MOBILE / SMALL TABLET
========================================================= */

@media (max-width: 991.98px) {

    .process-section {
        padding: 80px 0;
    }


    .process-header {
        margin-bottom: 55px;
    }


    .process-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0;
    }


    .process-item {
        width: 100%;
        min-height: auto;
        padding: 30px;
    }


    .process-line {
        width: 2px;
        height: 45px;
        background: linear-gradient( 180deg, rgba(35, 110, 176, .15), rgba(35, 110, 176, .45), rgba(35, 110, 176, .15) );
    }


        .process-line span {
            top: 50%;
            left: 50%;
        }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .process-section {
        padding:0;
    }


    .process-container {
        width: 92%;
    }


    .process-header h2 {
        font-size: 2.15rem;
        letter-spacing: -1px;
    }


    .process-header p {
        font-size: 14px;
        line-height: 1.7;
    }


    .process-item {
        padding: 26px;
        border-radius: 22px;
    }


    .process-number {
        width: 60px;
        height: 60px;
        margin-bottom: 30px;
        font-size: 17px;
    }


    .process-content h3 {
        font-size: 1.45rem;
    }


    .process-content p {
        font-size: 14px;
        line-height: 1.7;
    }


    .process-bottom {
        gap: 12px;
        margin-top: 45px;
    }


    .process-bottom-line {
        width: 35px;
    }


    .process-bottom p {
        font-size: 11px;
        text-align: center;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .process-item {
        transition: none;
    }

    .animate__animated {
        animation: none !important;
    }
}

/* =========================================================
   SCROLL ANIMATION INITIAL STATE
========================================================= */

[data-animation] {
    opacity: 0;
}


    /* Animation becomes visible after JS adds animate__animated */

    [data-animation].animate__animated {
        opacity: 1;
    }


#how-it-works {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient( 180deg, #c9e2f3 0%, #e3f0f9 22%, #ffffff 50%, #e8f3fa 76%, #c7e1f2 100% );
}