/* Explain: CSS for section layout, including responsive adjustments for location cards. */
.process-line {
    position: relative;
}

@media (min-width: 1024px) {
    .process-line::before {
        content: "";
        position: absolute;
        left: 8%;
        right: 8%;
        top: 3.5rem;
        height: 1px;
        background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary-color) 62%, transparent), transparent);
    }

    .process-line > article {
        z-index: 1;
    }
}

@media (max-width: 640px) {
    .hero-cinematic h1 {
        text-wrap: balance;
    }

    .service-card,
    .project-card,
    .timeline-card {
        min-height: auto;
    }
}

.locations-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.locations-layout > .loc-panel {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .locations-layout {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .locations-layout {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1023px) {
    .locations-layout > .loc-card:nth-child(1) {
        order: 1;
    }

    .locations-layout > .loc-panel:nth-child(4) {
        order: 2;
    }

    .locations-layout > .loc-card:nth-child(2) {
        order: 3;
    }

    .locations-layout > .loc-panel:nth-child(5) {
        order: 4;
    }

    .locations-layout > .loc-card:nth-child(3) {
        order: 5;
    }

    .locations-layout > .loc-panel:nth-child(6) {
        order: 6;
    }
}
