/* ABOUT PAGE OVERRIDES & FIXES */

/* 1. Header Clearance: Prevent content from being hidden under sticky nav */
.about-page main {
    padding-top: 8rem;
    /* Space for the 4.5rem logo + padding */
}

/* SECTION 1: ABOUT HERO */
#about-hero {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: flex-start;
}

.label-red {
    font-size: 1rem;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.display-large {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-top: 0.5rem;
    color: #0f152d;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.lead-desc {
    margin-bottom: 1.15rem;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* SECTION 2: MISSION & VISION CARDS */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mv-card {
    padding: 4rem 3rem;
    border-radius: 0.5rem;
    min-height: 22rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}

.navy-card {
    background: var(--navy);
    color: #fff;
}

.white-card {
    background: #fff;
    border-top: 5px solid var(--red);
}

.mv-label {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.2rem;
    margin-bottom: 2rem;
    display: block;
}

.mv-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

/* SECTION 3: VALUES GRID */
/* 1. CENTER AND COLOR THE HEADING */
#about-values {
    padding: 8rem 0;
    background-color: #fff;
}

/* 2. THE UNPARENTED HEADER: Absolute Centering */
.values-header {
    text-align: center;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title-red {
    font-size: 2.25rem;
    color: var(--red) !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

.red-line-centered {
    width: 3.5rem;
    height: 3px;
    background-color: var(--red);
}

/* 3. THE FLEX WRAPPER: Fluidity and Balance */
.values-flex-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on small screens */
    justify-content: center; /* Centers the whole row of cards */
    align-items: stretch; /* Keeps all cards the same height */
    gap: 2.5rem;
    width: 100%;
}

/* 4. THE CARD: Controlled Growth */
.value-card {
    background: #FFFFFF;
    /* 
       flex: 1 1 300px; 
       - 1 (Grow): Take up available space
       - 1 (Shrink): Shrink if needed
       - 300px (Basis): Start at this width
    */
    flex: 1 1 20rem; 
    max-width: 25rem; /* Prevents cards from becoming 'giant' on wide screens */
    
    padding: 4rem 2.5rem;
    border-radius: 0.75rem;
    text-align: center;
    
    /* SHADOW: Subtle and professional */
    box-shadow: 0 1rem 3rem rgba(18, 26, 51, 0.06);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    border-top: 4px solid var(--red);
}

.value-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1.5rem 4rem rgba(18, 26, 51, 0.1);
}

/* 3. FIX THE ICON COLOR */
.value-card i, 
.value-card i svg,
.value-card [data-lucide] {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1.5rem;
    /* Forces the Lucide icon to use brand red */
    stroke: var(--red) !important; 
    color: var(--red) !important;
    stroke-width: 1.5px;
}

/* 4. TEXT HIERARCHY */
.value-card h4 {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.value-card p {
    color: var(--grey-label);
    line-height: 1.7;
    font-size: 1.15rem;
    max-width: 90%; /* Keeps text lines punchy */
}

/* SECTION 4: TEAM LEAD-IN */
.navy-full-bleed {
    background: var(--navy);
    padding: 6rem 0;
    margin-top: 4rem;
}

.expertise-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}

.expertise-flex h2 {
    font-size: 3rem;
    flex-shrink: 0;
}

.white-faded {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 35rem;
}

/* REVEAL ANIMATIONS BASE */
.reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.2s;
}

.stagger-2 {
    transition-delay: 0.4s;
}

/* RESPONSIVE */
/* --- THE SURGICAL MOBILE CALIBRATION (ABOUT PAGE) --- */

@media (max-width: 64rem) { /* 1024px - Tablets */
    .about-page main {
        padding-top: 7rem; /* Adjusted for tablet nav height */
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .intro-heading {
        text-align: center;
    }

    .display-large {
        font-size: 2.75rem; /* 44px */
    }

    .mv-grid {
        grid-template-columns: 1fr; /* Stack Mission and Vision */
        gap: 2rem;
    }

    .mv-card {
        min-height: 18rem;
        padding: 3rem 2rem;
    }
}

@media (max-width: 48rem) { /* 768px - Mobile Phones */
    /* 1. HERO SECTION */
    #about-hero {
        padding: 4rem 0;
    }

    .display-large {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.2;
    }

    .lead-text {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    .intro-copy p {
        font-size: 1.15rem;
        line-height: 1.6;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    /* 2. MISSION & VISION: The Balanced Stack */
    #mission-vision {
        padding: 5rem 0;
    }

    .mv-card {
        padding: 2.5rem 1.5rem;
        text-align: center;
        align-items: center;
        justify-content: center;
        min-height: auto; /* Allow content to define height on mobile */
    }

    .mv-label {
        margin-bottom: 1rem;
    }

    .mv-card h3 {
        font-size: 1.375rem; /* 22px */
    }

    /* 3. CORE VALUES: Matching the Homepage 'Pillar' standard */
    #about-values {
        padding: 5rem 0;
    }

    .section-title-red {
        font-size: 1.75rem !important; /* 28px */
    }

    .values-header {
        margin-bottom: 3.5rem;
    }

    .values-flex-wrapper {
        flex-direction: column; /* Force vertical row stack */
        align-items: center;
        gap: 1.5rem;
    }

    .value-card {
        flex: 1 1 100%;
        max-width: 100%; /* Match product-card footprint */
        padding: 2.5rem 2rem !important; /* Standardized with index.html */
        box-shadow: 0 1rem 3rem rgba(18, 26, 51, 0.04);
    }

    .value-card i {
        width: 2rem !important;
        height: 2rem !important;
        margin-bottom: 1.5rem;
    }

    .value-card h4 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .value-card p {
        font-size: 1.15rem;
        line-height: 1.6;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* 4. TEAM LEAD-IN: Centered Command */
    .navy-full-bleed {
        padding: 5rem 0;
    }

    .expertise-flex {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .expertise-flex h2 {
        font-size: 2.25rem;
    }

    .white-faded {
        font-size: 1rem;
        max-width: 100%;
    }
}