/* ==========================================================
   Process Timeline
========================================================== */

.process-timeline-section {
    padding: 88px 50px;
}

.process-timeline--white {
    background: var(--white);
}

.process-timeline--off-white {
    background: var(--off-white);
}

.process-timeline {
    max-width: var(--content-max-width);;
    margin: 0 auto;
}

.process-timeline--light {
    color: var(--color-black);
}

.process-timeline--dark {
    color: var(--white);
}

/* ==========================================================
   Header
========================================================== */

.process-timeline__header {
    max-width: 760px;
    margin: 0 auto 70px;
    text-align: center;
}

.process-timeline__heading {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-lightbold);
    line-height: 1.2;
    letter-spacing: var(--letter-spacing-tight);
    color: inherit;
}

/* ==========================================================
   Timeline Wrapper
========================================================== */

.process-timeline__steps-wrapper {
    position: relative;
    margin-bottom: 70px;
}

/* ==========================================================
   Background Line
========================================================== */

.process-timeline__line {
    position: absolute;
    top: 18px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
    overflow: hidden;
}

/* ==========================================================
   Animated Green Line
========================================================== */

.process-timeline__line-fill {
    display: block;
    width: 0%;
    height: 100%;
    background: var(--green);
    transition: width .8s ease;
}

/* ==========================================================
   Steps
========================================================== */

.process-timeline__steps {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 36px;
}

.process-timeline__step {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: transform .35s ease;
}

/* ==========================================================
   Number Circle
========================================================== */

.process-timeline__circle {
    width: 38px;
    height: 38px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--color-border);
    transition: background .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}

.process-timeline__circle span {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    color: var(--color-light-gray);
    transform: translateY(1px);
    transition: color .35s ease;
}

/* ==========================================================
   Active State
========================================================== */

.process-timeline__step.is-active .process-timeline__circle {
    background: var(--green);
    border-color: var(--green);
    transform: scale(1.12);
    box-shadow: 0 0 0 8px var(--light-dim-green);
}

.process-timeline__step.is-active .process-timeline__circle span {
    color: var(--white);
}

.process-timeline__step.is-active .process-timeline__content h3 {
    color: var(--green);
}

.process-timeline__step.is-active .process-timeline__content p {
    color: var(--color-black);
}

.process-timeline--dark .process-timeline__step.is-active .process-timeline__content p {
    color: var(--white);
}

/* ==========================================================
   Complete State
========================================================== */

.process-timeline__step.is-complete .process-timeline__circle {
    background: var(--green);
    border-color: var(--green);
}

.process-timeline__step.is-complete .process-timeline__circle span {
    color: var(--white);
}

/* ==========================================================
   Hover State
========================================================== */

.process-timeline__step:hover .process-timeline__circle {
    background: var(--green);
    border-color: var(--green);
    transform: scale(1.08);
}

.process-timeline__step:hover .process-timeline__circle span {
    color: var(--white);
}

.process-timeline__step:hover .process-timeline__content h3 {
    color: var(--green);
}

/* ==========================================================
   Step Content
========================================================== */

.process-timeline__content {
    max-width: 240px;
    margin: 0 auto;
}

.process-timeline__content h3 {
    min-height: 2lh;
    margin-bottom: 12px;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.35;
    color: inherit;
}

.process-timeline__content p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-body);
    color: var(--color-gray);
}

.process-timeline--dark .process-timeline__content p {
    color: var(--text-muted);
}

/* ==========================================================
   Image
========================================================== */

.process-timeline__image {
    max-width: 660px;
    height: 300px;
    margin: 0 auto;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.process-timeline__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}



/* ==========================================================
   Caption
========================================================== */

.process-timeline__caption {
    max-width: 860px;
    margin: 40px auto 0;
    text-align: center;
}

.process-timeline__caption p {
    margin: 0;
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
    color: var(--color-gray);
}

.process-timeline--dark .process-timeline__caption p {
    color: var(--text-muted);
}

/* ==========================================================
   Responsive - Tablet
========================================================== */

@media (max-width: 1024px) {
    
    .process-timeline__steps-wrapper {
        margin-bottom: 56px;
    }

    .process-timeline__steps {
        flex-direction: column;
        gap: 42px;
        align-items: flex-start;
    }

    .process-timeline__line {
        left: 18px;
        top: 18px;
        bottom: 18px;
        width: 2px;
        height: auto;
        right: auto;
    }

    .process-timeline__line-fill {
        width: 100%;
        height: 0%;
        transition: height .8s ease;
    }

    .process-timeline__step {
        width: 100%;
        display: flex;
        align-items: flex-start;
        gap: 20px;
        text-align: left;
    }

    .process-timeline__circle {
        margin: 0;
        flex-shrink: 0;
    }

    .process-timeline__content {
        max-width: none;
        margin: 0;
    }

    .process-timeline__content h3 {
        min-height: auto;
    }

    .process-timeline__image {
        max-width: 100%;
    }
}

/* ==========================================================
   Responsive - Mobile
========================================================== */

@media (max-width: 768px) {
    .process-timeline-section {
        padding: 50px 24px;
    }

    .process-timeline__header {
        margin-bottom: 50px;
    }

    .process-timeline__steps {
        gap: 34px;
    }

    .process-timeline__step {
        gap: 16px;
    }

    .process-timeline__circle {
        width: 34px;
        height: 34px;
    }

    .process-timeline__circle span {
        font-size: var(--base-font-size);
    }

    .process-timeline__caption {
        margin-top: 32px;
    }
}
