/* ==========================================================================
   SUPPLY CHAIN FLOW SECTION
   ========================================================================== */

.gnv-supply-section {
    width: 100vw;
    /* Soft gradient matching the misty left side of the target design without ugly text */
    background: linear-gradient(to right, #EBE6DF 0%, #F8F5F2 40%);
    padding: 100px 0;
    overflow: hidden;
}

.gnv-supply-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Left Column */
.gnv-supply-left {
    width: 32%;
    display: flex;
    flex-direction: column;
    /* Scroll Animation Initial State */
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gnv-supply-left .section-badge {
    color: #666;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.gnv-supply-left h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 3.8vw, 3.5rem);
    line-height: 1.1;
    color: var(--gnv-black);
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: -1px;
}

.gnv-supply-left p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 95%;
}

/* Right Column (Flow Grid) */
.gnv-supply-right {
    width: 68%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px; /* Space between steps */
}

/* Individual Step */
.flow-step {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0; 
    /* Scroll Animation Initial State */
    opacity: 0;
    transform: translateY(50px);
}

.flow-img-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.flow-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.4s ease;
}

.flow-img-wrapper:hover {
    transform: translateY(-8px);
}

.flow-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-img-wrapper:hover img {
    transform: scale(1.08);
}

.flow-step h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--gnv-black);
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.flow-step p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Scroll Animation Active States */
.gnv-supply-section.is-animated .gnv-supply-left {
    opacity: 1;
    transform: translateX(0);
}

.gnv-supply-section.is-animated .flow-step {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for the 5 flow steps */
.gnv-supply-section.is-animated .flow-step:nth-child(1) { transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s; }
.gnv-supply-section.is-animated .flow-step:nth-child(2) { transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s; }
.gnv-supply-section.is-animated .flow-step:nth-child(3) { transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s; }
.gnv-supply-section.is-animated .flow-step:nth-child(4) { transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s; }
.gnv-supply-section.is-animated .flow-step:nth-child(5) { transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s; }


/* The Arrow connecting steps */
.flow-arrow {
    position: absolute;
    top: 50%;
    right: -18px; /* Push it halfway into the gap */
    transform: translateY(-50%);
    color: #888;
    font-size: 1.3rem;
    font-weight: 300;
    pointer-events: none; /* Let clicks pass through if needed */
    z-index: 10;
}

/* Responsive Layout */
@media (max-width: 1200px) {
    .gnv-supply-container {
        flex-direction: column;
    }
    .gnv-supply-left {
        width: 100%;
        max-width: 700px;
        text-align: center;
        align-items: center;
        margin-bottom: 60px;
    }
    .gnv-supply-left p {
        max-width: 100%;
    }
    .gnv-supply-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .gnv-supply-section {
        padding: 60px 0;
        background: #F8F5F2; /* Solid background on mobile for cleaner look */
    }
    
    /* Horizontal scrolling for the supply flow on mobile */
    .gnv-supply-right {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding: 0 20px 20px;
        margin: 0 -20px; /* Bleed to edges */
    }
    
    .flow-step {
        flex: 0 0 55%; /* Show 1.5 cards on mobile */
        scroll-snap-align: center;
    }
    
    .flow-arrow {
        display: none; /* Hide arrows on mobile scroll to save space */
    }
}
