/* ============================================
   PROCESS COMPONENT - STICKY HORIZONTAL SCROLL
   Reusable component for step-by-step processes
   ============================================ */

.process {
    position: relative;
    width: 100%;
    background: #0a0a0a;
    /* Create scroll room: 300vh gives plenty of scroll distance */
    height: 300vh;
}

.process-sticky-wrap {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: #0a0a0a;
}

.process-inner {
    display: flex;
    flex-direction: column;
    padding: 80px 0;
    width: 100%;
    box-sizing: border-box;
    background: #0a0a0a;
}

.process-header {
    position: relative;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 80px;
    z-index: 10;
    margin-bottom: 16px;
    text-align: left;
}

.process-title {
    font-family: var(--font-hero);
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    color: var(--color-white);
    margin-bottom: 24px;
}

.process-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-light-grey);
    line-height: 1.6;
    max-width: 500px;
}

.process-container {
    position: relative;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 80px;
    overflow: visible;
}

.process-track {
    display: flex;
    gap: 0;
    will-change: transform;
}

.process-step {
    position: relative;
    flex-shrink: 0;
    width: 400px;
    padding: 32px 40px 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Default state - all grey */
.process-step .process-step-icon {
    background: var(--color-dark-grey);
}

.process-step .process-step-title,
.process-step .process-step-number {
    background: var(--color-dark-grey);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-step .process-step-description {
    color: var(--color-dark-grey);
}

.process-step .process-connector {
    border-color: var(--color-dark-grey);
    opacity: 1;
}

/* Active state (in focus) - colored */
.process-step.active .process-step-icon {
    background: linear-gradient(178deg, var(--color-orange) 0%, var(--color-yellow) 100%);
}

.process-step.active .process-step-title,
.process-step.active .process-step-number {
    background: linear-gradient(178deg, var(--color-orange) 0%, var(--color-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-step.active .process-step-description {
    color: var(--color-white);
}

/* Passed state (completed) - grey (only active is colored) */
.process-step.passed .process-step-icon {
    background: var(--color-dark-grey);
}

.process-step.passed .process-step-title,
.process-step.passed .process-step-number {
    background: var(--color-dark-grey);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-step.passed .process-step-description {
    color: var(--color-dark-grey);
}

/* Icon Styling */
.process-step-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.process-step-icon img {
    display: none;
}

/* Content Styling */
.process-step-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.process-step-number {
    font-family: var(--font-numbers);
    font-size: 36px;
    font-weight: 400;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.process-step-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.3s ease;
}

.process-step-description {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
    max-width: 340px;
}

/* Connector line between steps - from icon to icon */
.process-connector {
    position: absolute;
    top: 48px;
    /* Center on icon (32px padding + 16px half icon) */
    left: calc(32px + 8px);
    /* Icon width + 8px padding */
    width: 0;
    /* Starts at 0, grows via JS */
    max-width: calc(400px - 32px - 8px - 8px);
    /* Step width - icon - padding on both sides */
    height: 0;
    border-top: 2px dashed var(--color-dark-grey);
    transition: width 0.1s linear, border-color 0.3s ease;
}

/* Connector always stays grey */
.process-step.active .process-connector,
.process-step.passed .process-connector {
    border-color: var(--color-dark-grey);
}

/* Last step has no connector */
.process-step:last-child .process-connector {
    display: none;
}

/* Progress indicator */
.process-progress {
    position: relative;
    max-width: 1800px;
    margin: 32px auto 0;
    padding: 0 80px;
}

.process-progress-bar {
    position: relative;
    width: 100%;
    height: 2px;
    background: var(--color-dark-grey);
    border-radius: 1px;
    overflow: hidden;
}

.process-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-yellow) 100%);
    transition: width 0.05s linear;
}

/* ============================================
   RESPONSIVE BREAKPOINTS - PROCESS COMPONENT
   ============================================ */

/* 1440px Breakpoint */
@media (max-width: 1440px) {
    .process-header {
        padding: 0 80px;
    }

    .process-container {
        padding: 0 80px;
    }

    .process-progress {
        padding: 0 80px;
    }
}

/* 1024px Breakpoint */
@media (max-width: 1024px) {
    .process-inner {
        padding: 60px 0;
    }

    .process-header {
        padding: 0 40px;
    }

    .process-title {
        font-size: 32px;
    }

    .process-container {
        padding: 0 40px;
    }

    .process-step {
        width: 350px;
    }

    .process-step-icon {
        width: 28px;
        height: 28px;
    }

    .process-step-title {
        font-size: 16px;
    }

    .process-step-description {
        font-size: 14px;
        max-width: 300px;
    }

    .process-connector {
        top: 46px;
        left: calc(28px + 8px);
        max-width: calc(350px - 28px - 16px);
    }

    .process-progress {
        padding: 0 40px;
    }
}

/* 768px Breakpoint */
@media (max-width: 768px) {
    .process-inner {
        padding: 40px 0;
    }

    .process-header {
        padding: 0 20px;
        margin-bottom: 32px;
    }

    .process-title {
        font-size: 32px;
    }

    .process-container {
        padding: 0 20px;
    }

    .process-step {
        width: 320px;
    }

    .process-step-icon {
        width: 24px;
        height: 24px;
    }

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

    .process-step-title {
        font-size: 16px;
    }

    .process-step-description {
        font-size: 13px;
        max-width: 280px;
    }

    .process-connector {
        top: 44px;
        left: calc(24px + 8px);
        max-width: calc(320px - 24px - 16px);
    }

    .process-progress {
        padding: 0 20px;
        margin-top: 24px;
    }
}

/* 480px Breakpoint */
@media (max-width: 480px) {
    .process-inner {
        padding: 40px 0;
    }

    .process-title {
        font-size: 28px;
    }

    .process-step {
        width: 280px;
    }

    .process-step-icon {
        width: 20px;
        height: 20px;
    }

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

    .process-step-title {
        font-size: 14px;
    }

    .process-step-description {
        font-size: 12px;
        max-width: 240px;
    }

    .process-connector {
        top: 42px;
        left: calc(20px + 8px);
        max-width: calc(280px - 20px - 16px);
    }
}