/* mission.css - Refined exact Figma match layouts */

/* Section 1: Major Clients / Designing for Impact */
.mission-hero {
    padding: 160px 0 80px;
}

.mission-hero .section-label {
    text-align: center;
    color: var(--primary-yellow);
    display: block;
    font-weight: 600;
}

.mission-hero .heading-section {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 8px;
    margin-bottom: 48px;
    font-weight: 700;
}

.impact-images-wrapper {
    max-width: 1323px;
    margin: 0 auto;
}

.impact-img-top {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.impact-img-row {
    display: grid;
    grid-template-columns: 1.42fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

.impact-img-left, .impact-img-right {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}


/* Section 2: Our Mission / Aim for the Future */
.mission-section {
    /* FIXED: Using explicit top/bottom padding to prevent the CSS variable shorthand bug */
    padding-top: clamp(3rem, 5vw, 5rem);
    padding-bottom: clamp(3rem, 5vw, 5rem);
    overflow: hidden;
}

.aim-container {
    position: relative;
    max-width: 1440px;
    min-height: 800px;
    margin: 0 auto;
}

.aim-text-block {
    width: 55%;
    padding-top: 120px;
    position: relative;
    z-index: 3;
}

.aim-text-block .heading-section {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 16px 0 32px;
    font-weight: 600;
}

.aim-text-block .about-text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    max-width: 90%;
    line-height: 1.4;
    color: #000;
    font-weight: 300;
}

.aim-img-v {
    position: absolute;
    top: 59px;
    right: 0;
    width: 33.1%; 
    height: 716px;
    border-radius: 20px;
    object-fit: cover;
    z-index: 1;
}

.aim-img-h {
    position: absolute;
    top: 412px;
    right: 0; 
    width: 63.8%; 
    height: 386px;
    border-radius: 20px;
    object-fit: cover;
    z-index: 2; 
}


/* Section 3: Technical Excellence / Vision Section */
.vision-section {
    /* FIXED: This is what was pushing your entire section to the right! */
    padding-top: clamp(3rem, 5vw, 5rem);
    padding-bottom: 120px;
    padding-left: 0; /* Ensures nothing overrides the left margin */
    padding-right: 0;
    overflow: hidden;
}

.vision-layout {
    display: flex;
    align-items: stretch;
    gap: 48px;
    width: 100%;
}

.vision-img-42 {
    width: 35%;
    max-width: 442px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
}

.vision-right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.vision-right-top {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.vision-img-43 {
    width: 270px; 
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
}

.vision-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vision-text-block .heading-section {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin: 12px 0 24px;
    font-weight: 600;
}

.vision-text-block .about-text {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.4;
    color: #000;
    font-weight: 300;
}

.vision-img-44 {
    width: 100%;
    max-width: 460px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

/* Common Separator */
.highlight-bar {
    height: 52px;
    background: var(--secondary-yellow);
    width: 100%;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    /* Section 2 Fixes */
    .aim-container { 
        min-height: auto; 
        display: flex;
        flex-direction: column;
    }
    .aim-text-block { 
        width: 100%; 
        padding-top: 0;
        margin-bottom: 32px;
    }
    .aim-text-block .about-text {
        max-width: 100%;
    }
    .aim-img-v, .aim-img-h { 
        position: relative;
        top: auto;
        right: auto; /* Removes absolute right pull */
        width: 100%; 
    }
    .aim-img-v { height: 450px; margin-bottom: 24px; }
    .aim-img-h { height: 350px; }
    
    /* Section 3 Fixes */
    .vision-layout { 
        flex-direction: column; 
    }
    .vision-img-42 { 
        width: 100%; 
        max-width: 100%; 
        height: 450px; 
    }
    .vision-img-44 { 
        max-width: 100%; /* Spans full width under text */
    }
}

@media (max-width: 768px) {
    /* Section 1 Mobile */
    .impact-img-row {
        grid-template-columns: 1fr;
    }
    
    /* Section 2 Mobile Stack */
    .aim-container {
        gap: 0;
    }
    .aim-img-v { 
        height: 350px; 
    }
    .aim-img-h { 
        height: 250px; 
        position: relative;
        margin-top: -60px; /* Overlap effect */
        z-index: 2;
    }
    
    /* Section 3 Mobile Stack */
    .vision-layout {
        gap: 40px;
    }
    .vision-img-42 { 
        height: 350px;
    }
    .vision-right-top { 
        flex-direction: column; 
        align-items: flex-start; /* Keeps things docked perfectly left */
        gap: 24px;
    }
    .vision-img-43 { 
        width: 180px; 
        height: 180px;
    }
}