/* ==========================================================================
   Process Section ("Sådan arbejder vi")
   Figma source of truth: Node 2:52 (03 Forside / section-process)
   ========================================================================== */

.process {
    background-color: var(--color-white, #FFFFFF);
    color: var(--color-primary, #0F1C2E);
    padding-block: clamp(4rem, 8vw, 10rem);
}

.process__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 6rem);
}

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

.process__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    margin-inline: 0;
    width: 100%;
}

.process__eyebrow {
    margin: 0;
    color: var(--color-text, #525F70);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold, 600);
    line-height: 1.25;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
}

.process__eyebrow::before {
    content: "// ";
}

.process__title {
    margin: 0;
    color: var(--color-primary, #0F1C2E);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: var(--font-weight-semibold, 600);
    line-height: 1.26;
    letter-spacing: 0;
    text-align: left;
}

/* ==========================================================================
   Process Flow & List (Desktop 4-column layout)
   ========================================================================== */

.process__flow {
    position: relative;
    width: 100%;
}

.process__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Horizontal connecting line across steps on desktop */
.process__list::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background-color: rgba(15, 28, 46, 0.12);
    z-index: 1;
}

/* Step Item */

.process__step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Indicators (Dot & Arrow) */

.process__indicator {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 10px;
    width: 100%;
}

.process__dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-accent, #00A0A2);
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.process__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: calc(100% + 1rem);
    transform: translateX(-50%);
    color: var(--color-accent, #00A0A2);
    width: 8px;
    height: 8px;
}

.process__arrow--last {
    display: none;
}

/* Step Content */

.process__step-content {
    display: flex;
    flex-direction: column;
}

.process__step-number {
    color: var(--color-primary, #0F1C2E);
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold, 700);
    line-height: 1.22;
    margin-bottom: 1.25rem;
}

.process__step-title {
    margin: 0 0 0.875rem 0;
    color: var(--color-primary, #0F1C2E);
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold, 600);
    line-height: 1.44;
}

.process__step-text {
    margin: 0;
    color: var(--color-text, #525F70);
    font-size: 0.875rem;
    line-height: 1.57;
}

/* ==========================================================================
   Responsiveness
   ========================================================================== */

/* 1200px Desktop scale */
@media (max-width: 1200px) {
    .process__list {
        gap: 1.5rem;
    }

    .process__step-number {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* 980px, 768px, 390px: Switch to robust vertical timeline */
@media (max-width: 980px) {
    .process__list {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        padding-left: 2.5rem;
    }

    /* Continuous vertical line running down left side */
    .process__list::before {
        top: 5px;
        bottom: 5px;
        left: 4px;
        right: auto;
        width: 1px;
        height: auto;
    }

    .process__step {
        gap: 0.75rem;
    }

    .process__indicator {
        position: absolute;
        left: -2.5rem;
        top: 5px;
        height: auto;
    }

    .process__dot {
        position: absolute;
        left: 0;
        top: 0;
        transform: none;
    }

    .process__arrow {
        position: absolute;
        left: 1px;
        top: 2rem;
        transform: rotate(90deg);
    }

    .process__step-number {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .process__step-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .process__step-text {
        font-size: 0.875rem;
        max-width: 36rem;
    }
}

@media (max-width: 390px) {
    .process__list {
        padding-left: 2rem;
        gap: 2rem;
    }

    .process__indicator {
        left: -2rem;
    }

    .process__title {
        font-size: 1.75rem;
    }

    .process__step-number {
        font-size: 1.5rem;
    }
}
