/* Process Section - Horizontal Timeline with Scroll-Driven Marquee */

.weberfx-process {
    --primary-rgb: 37, 119, 250;
    --text-color: rgb(105, 104, 110);
    --bg-color: var(--color-background);
    --white: #ffffff;

    position: relative;
    background-color: var(--bg-color);
    font-family: var(--font-family);
}

@media (max-width: 768px) {
    .weberfx-process {
        padding: 60px 0;
    }
}

.weberfx-process-track {
    position: relative;
    height: 500vh;
    width: 100%;
}

.weberfx-process-sticky {
    position: sticky;
    top: 100px;
    width: 100%;
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--bg-color);
    z-index: 1;
    padding-top: 10px;
}

/* Process Header inside sticky */
.weberfx-process-sticky .process-header {
    position: relative;
    width: 100%;
    text-align: center;
    z-index: 20;
    padding-bottom: 30px;
    margin-top: 70px;
}

.weberfx-process-sticky .process-header .section-badge {
    margin-bottom: 12px;
    font-size: 13px;
}

/* ─── Horizontal Timeline ─── */

.weberfx-process-timeline-wrapper {
    position: relative;
    width: 100%;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    z-index: 10;
    margin-top: 20px;
}

/* Dashed connecting line behind cards */
.weberfx-process-timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0;
    border-top: 2px dashed rgba(0, 0, 0, 0.1);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

/* The scrollable track of step cards */
.weberfx-process-timeline-track {
    display: flex;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    padding: 0 60px;
}

/* Individual step card */
.weberfx-process-step-card {
    flex-shrink: 0;
    width: 80px;
    height: 90px;
    background: var(--white);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.weberfx-process-step-card .step-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.weberfx-process-step-card .step-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
    transition: all 0.4s ease;
}

/* Step title shown below the card */
.weberfx-process-step-card .step-title {
    /* position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease, color 0.4s ease;
    letter-spacing: 0.3px; */
    display: none !important;
}

/* Hover */
.weberfx-process-step-card:hover {
    transform: scale(1.08) translateY(-2px);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.15);
}

.weberfx-process-step-card:hover .step-label {
    opacity: 1;
    color: rgba(var(--primary-rgb), 1);
}

.weberfx-process-step-card:hover .step-number {
    color: rgba(var(--primary-rgb), 1);
}

.weberfx-process-step-card:hover .step-title {
    opacity: 1;
    color: rgba(var(--primary-rgb), 1);
}

/* Active step */
.weberfx-process-step-card.is-active {
    background: rgba(var(--primary-rgb), 1);
    border-color: rgba(var(--primary-rgb), 1);
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.45);
    transform: scale(1.2) translateY(-4px);
    z-index: 10;
}

.weberfx-process-step-card.is-active .step-label {
    opacity: 1;
    color: rgba(255, 255, 255, 0.8);
}

.weberfx-process-step-card.is-active .step-number {
    color: #fff;
}

.weberfx-process-step-card.is-active .step-title {
    opacity: 1;
    color: rgba(var(--primary-rgb), 1);
    font-weight: 700;
}

/* Connector dots between cards */
.weberfx-process-step-card::after {
    content: '';
    position: absolute;
    right: -48px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.weberfx-process-step-card:last-child::after {
    display: none;
}

/* ─── Content Area ─── */

.weberfx-process-content-container {
    position: absolute;
    top: 60% !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    max-width: 680px;
    width: 100%;
    padding: 0 32px;
}

.weberfx-process-title {
    text-transform: var(--text-transform-base);
    font-size: 28px;
    font-weight: 500;
    color: #000;
    margin: 0 0 10px;
    line-height: 1.2;
}

.weberfx-process-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0 0 20px;
}

.weberfx-process-feature-list {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: var(--letter-spacing-base);
    color: var(--text-color);
    text-transform: var(--text-transform-base);
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding: 16px 0;
    width: 100%;
}

.weberfx-process-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-rgb), 1);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    transition: transform 0.2s;
    text-decoration: none;
}

.weberfx-process-cta-button:hover {
    transform: translateY(-2px);
    color: white;
}

.weberfx-process-pagination {
    margin-top: 20px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.weberfx-process-step-number {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-color);
}

.weberfx-process-dots-container {
    display: flex;
    gap: 8px;
}

.weberfx-process-dot {
    width: 8px;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.weberfx-process-dot.is-active {
    background-color: var(--color-primary);
}

.mobile-step-indicator {
    display: none;
}

/* ─── Responsive: Large Desktop ─── */
@media (max-width: 1400px) {
    .weberfx-process-timeline-track {
        gap: 60px;
    }
}

/* ─── Responsive: Desktop/Laptop ─── */
@media (max-width: 1200px) {
    .weberfx-process-sticky {
        padding-top: 10px;
    }

    .weberfx-process-sticky .process-header {
        padding-bottom: 20px;
    }

    .weberfx-process-timeline-track {
        gap: 50px;
    }

    .weberfx-process-step-card {
        width: 70px;
        height: 80px;
    }

    .weberfx-process-step-card .step-number {
        font-size: 20px;
    }

    .weberfx-process-step-card::after {
        right: -32px;
    }

    .weberfx-process-content-container {
        max-width: 600px;
        top: 60% !important;
    }
}

/* ─── Responsive: Tablet ─── */
@media (max-width: 992px) {
    .weberfx-process-timeline-track {
        gap: 40px;
    }

    .weberfx-process-step-card {
        width: 60px;
        height: 72px;
    }

    .weberfx-process-step-card .step-number {
        font-size: 17px;
    }

    .weberfx-process-step-card .step-label {
        font-size: 8px;
    }

    .weberfx-process-step-card::after {
        right: -28px;
        width: 6px;
        height: 6px;
    }

    .weberfx-process-title {
        font-size: 26px;
    }

    .weberfx-process-content-container {
        max-width: 550px;
        top: 60% !important;
    }
}

/* ─── Responsive: Small Tablet ─── */
@media (max-width: 768px) {
    .weberfx-process-sticky {
        top: 80px;
        height: calc(100vh - 80px);
    }

    .weberfx-process-sticky .process-header {
        padding-bottom: 15px;
    }

    .weberfx-process-timeline-track {
        gap: 32px;
        padding: 0 30px;
    }

    .weberfx-process-step-card {
        width: 54px;
        height: 64px;
    }

    .weberfx-process-step-card .step-number {
        font-size: 15px;
    }

    .weberfx-process-step-card .step-label {
        font-size: 7px;
    }

    .weberfx-process-step-card .step-title {
        /* font-size: 10px; */
        display: none !important;
    }

    .weberfx-process-step-card::after {
        right: -22px;
        width: 5px;
        height: 5px;
    }

    .weberfx-process-title {
        font-size: 24px;
    }

    .weberfx-process-desc {
        font-size: 14px;
    }

    .weberfx-process-content-container {
        max-width: 500px;
        top: 30% !important;
        padding: 0 20px;
    }
}

/* ─── Mobile Overrides ─── */
@media (max-width: 480px) {
    .weberfx-process {
        padding: 40px 0;
    }

    .weberfx-process-sticky {
        position: sticky;
        top: 60px;
        height: calc(100dvh - 60px);
        padding: 0 16px;
        overflow: hidden;
    }

    .weberfx-process-sticky .process-header {
        margin-top: 20px;
        padding-bottom: 10px;
    }

    .weberfx-process-sticky h2 {
        font-size: 22px;
    }

    /* Keep timeline visible on mobile */
    .weberfx-process-timeline-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 0;
    }

    /* Center the timeline track on mobile */
    .weberfx-process-timeline-track {
        gap: 14px;
        padding: 0 10px;
        justify-content: center;
        width: 100%;
        margin-top: 30px !important;
    }

    /* Step cards – slightly larger for better tap targets */
    .weberfx-process-step-card {
        width: 48px;
        height: 56px;
        border-radius: 10px;
    }

    .weberfx-process-step-card .step-number {
        font-size: 14px;
    }

    .weberfx-process-step-card .step-label {
        font-size: 6px;
    }

    .weberfx-process-step-card .step-title {
        display: none !important;
    }

    /* Reduce active scale on mobile to prevent overflow */
    .weberfx-process-step-card.is-active {
        transform: scale(1.1) translateY(-3px);
    }

    .weberfx-process-step-card:hover {
        transform: scale(1.05) translateY(-1px);
    }

    /* Connector dots between cards */
    .weberfx-process-step-card::after {
        right: -9px;
        width: 3px;
        height: 3px;
    }

    /* Content – use relative positioning to sit directly below timeline */
    .weberfx-process-content-container {
        position: relative;
        top: 15% !important;
        left: auto;
        transform: none;
        max-width: 100%;
        padding: 0 16px;
        margin-top: 0;
    }

    .weberfx-process-title {
        font-size: 20px;
        margin-top: 0;
        margin-bottom: 8px;
    }

    [data-weberfx-process-title] {
        margin-top: 0 !important;
    }

    .weberfx-process-desc {
        font-size: 13px;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .weberfx-process-feature-list {
        font-size: 11px;
        padding: 10px 0;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 24px;
    }

    .weberfx-process-cta-button {
        padding: 12px 24px;
        font-size: 13px;
        border-radius: 8px;
    }

    .weberfx-process-pagination,
    .process-mobile-nav,
    .mobile-step-indicator {
        display: none !important;
    }

    /* Dashed line */
    .weberfx-process-timeline-line {
        width: 85%;
        left: 7.5%;
    }
}