/* * 1. ABOUT-SPECIFIC LAYOUT & UTILITIES
 */
.section-padding {
    padding: 4rem 0;
}

/* UPDATED: Philosophy Grid (4 Items: Craftsmanship, Timeliness, Trust, Assurance) */
.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Legacy support if needed, or for other sections */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.text-center {
    text-align: center;
}

.section-heading {
    font-family: var(--font-heading); /* UPDATED: Cinzel */
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subheading {
    font-size: 1.1rem;
    color: var(--color-text-soft);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

/* * 2. SECTION 1 — HERO / INTRO
 */
.hero-intro {
    /* Reduced bottom padding to tighten gap to Mission section */
    padding: 4rem 2rem 1rem 2rem;
    text-align: center;
    max-width: 900px; /* Constrain width for the new legacy text */
    margin: 0 auto;
}

.hero-intro h1 {
    font-family: var(--font-heading); /* UPDATED: Cinzel */
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-text);
    line-height: 1.2;
}

/* New Tagline Style for "The Trusted Builders" */
.hero-tagline {
    display: block;
    font-family: var(--font-accent); /* Playfair Display Italic */
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--color-text-soft); 
    margin-top: 0.5rem;
    font-weight: 400;
}

.hero-intro p {
    font-size: 1.15rem; /* Slightly smaller for longer legacy text */
    color: var(--color-text-soft);
    margin-top: 1rem;
    line-height: 1.8;
}

.hero-intro .divider {
    border: 0;
    height: 1px;
    width: 60px;
    background: var(--color-border);
    margin: 2rem auto 1rem auto; /* Reduced bottom margin */
}

/* * 3. SECTION 2 — COMPANY OVERVIEW
 */
.company-overview {
    /* Reduced horizontal padding to rely on .container logic if needed, 
       but here it uses its own structure. Adjusted for cleaner look.
       Reduced top padding significantly to close gap with Hero */
    padding: 2rem 5vw 4rem 5vw; 
}

.overview-image img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.overview-text h2 {
    font-family: var(--font-heading); /* UPDATED: Cinzel */
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem; /* Add spacing between multiple H2s */
}
.overview-text h2:first-child {
    margin-top: 0;
}

.overview-text p {
    /* UPDATED: Justified Text Alignment */
    text-align: justify;
    hyphens: auto;
}

/* * 4. SECTION 3 — PHILOSOPHY / VALUES
 */
.philosophy {
    background-color: var(--color-bg-light);
}

.value-item {
    text-align: center;
    padding: 2rem 1rem; /* Adjusted padding for 4-col layout */
    border-radius: 12px;
    transition: var(--transition-speed);
}

.value-item:hover {
    transform: translateY(-5px);
    background: var(--color-bg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.value-item .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem auto;
    color: var(--color-text); /* For SVG fill */
}

.value-item .icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.value-item h3 {
    font-family: var(--font-heading); /* UPDATED: Cinzel */
    font-size: 1.15rem; /* Slightly smaller to fit 4 cols */
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* * 5. SECTION 4 — TEAM SECTION
 */
.team-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 800px; /* Constrain width for 2-person team */
    margin: 0 auto;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-speed);
}

.team-card:hover {
    transform: scale(1.03);
}

.team-card:hover .team-image {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-image {
    width: 200px; /* Slightly larger */
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 2px solid var(--color-border);
    transition: var(--transition-speed);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* New <picture> element support */
.team-image picture {
    width: 100%;
    height: 100%;
    display: block;
}
.team-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.team-card .name {
    font-family: var(--font-heading); /* UPDATED: Cinzel */
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.team-card .role {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-soft);
}

.fallback-message {
    grid-column: 1 / -1; /* Span full width if grid */
    text-align: center;
    font-size: 1.1rem;
    padding: 2rem;
    background-color: var(--color-bg-light);
    border-radius: 8px;
}

/* * 6. ABOUT-SPECIFIC RESPONSIVENESS
 */
@media (max-width: 992px) {
    /* Tablet & Small Desktop */
    .company-overview {
        padding: 4rem 5vw;
    }
    
    /* UPDATED: 2x2 Grid for Philosophy on Tablet */
    .grid-4-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile */
    .section-padding {
        /* UPDATED: Drastically reduced vertical spacing */
        padding: 2rem 0; 
    }
    
    .hero-intro {
        /* UPDATED: Tighter hero spacing */
        padding: 2.5rem 1.5rem 0.5rem 1.5rem;
    }
    
    .hero-intro .divider {
        margin: 1.5rem auto 1rem auto;
    }

    /* Stack Team */
    .team-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* UPDATED: Maintain 2x2 Grid for Philosophy even on Mobile (Icons look better) */
    .grid-4-col {
        grid-template-columns: repeat(2, 1fr); 
        gap: 1rem;
    }
    
    .value-item {
        padding: 1.5rem 1rem;
    }

    .company-overview {
        /* UPDATED: Tighter overview padding */
        padding: 1.5rem 5vw;
    }

    /* Stack image on top */
    .overview-image {
        order: 1;
        margin-bottom: 1.5rem;
    }
    .overview-text {
        order: 2;
        text-align: left; /* Align text left for readability on mobile */
    }

    .team-image {
        width: 150px;
        height: 150px;
    }
}