/* 
   Homepage Specific Styles 
   Targeting index.php structure strictly 
*/

/* 1. Hero Section */
/* Uses generic section.header from style.css but adds specific background behavior */
section.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

section.hero-section .hero-content h1 {
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

section.hero-section .hero-content h2 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 2. About Section (#about) */
section#about {
    background-color: #fff;
    text-align: center;
}

section#about p {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #abde5b;
}

.stat-label {
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* 3. Services Section (#serviceBox) */
section#serviceBox {
    background-color: #f8f9fa;
}

/* FIXED: Services Grid Layout */
.services-grid {
    display: grid;
    /* Force 4 columns on large screens to keep them in one line */
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.box.service-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    /* Equal height */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box.service-card p {
    margin-top: auto;
    /* Push text to align properly if different lengths */
}

.box.service-card:hover {
    transform: translateY(-5px);
}

.box.service-card.alternative {
    background-color: #fcefd6;
    border: 2px solid #abde5b;
}

.service-icon {
    font-size: 3rem;
    color: #abde5b;
    margin-bottom: 1.5rem;
}

/* 4. Process Section (#services in layout, "process-section" class) */
section#services.process-section {
    background-color: white;
}

.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    /* Gap between rows */
}

.row.process-step {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* ALTERNATING LAYOUT: Even children of the wrapper are reversed */
.steps-wrapper .row.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

/* Specific layout for left/right inside process-step */
.process-step .left,
.process-step .right {
    flex: 1;
    width: 50%;
    /* Ensure width is split */
}

.step-number {
    font-size: 5rem;
    color: #e0e0e0;
    font-weight: 800;
    line-height: 1;
    margin-bottom: -1rem;
    position: relative;
    z-index: -1;
}

.process-step h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.process-image {
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 5. Achievements Section (#numbers) */
section#numbers {
    background-color: #f8f9fa;
    /* Light background */
    color: #333;
    /* Dark text */
    padding: 5rem 0;
}

.achievements-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

section#numbers .left,
section#numbers .right {
    flex: 1;
}

section#numbers h2 {
    color: #333;
    /* Dark heading */
    margin-bottom: 2rem;
}

section#numbers p {
    color: #555;
    font-size: 1.2rem;
}

.impact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Side by side on desktop */
    gap: 2rem;
    margin-top: 3rem;
}

.impact-item {
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: white;
    /* Card style */
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.impact-item span {
    color: #333;
    font-weight: 600;
}

.impact-item i {
    color: #abde5b;
    font-size: 2.5rem;
}

.achievements-numbers {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: center;
}

.achievement-number .big {
    font-size: 5rem;
    /* Bigger */
    color: #abde5b;
    font-weight: 800;
    line-height: 1;
}

.achievement-number p {
    color: #666;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* 7. Final CTA */
section.final-cta {
    background-color: white;
    /* Changed for better contrast with achievements */
    text-align: center;
    padding: 5rem 0;
}

.cta-buttons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* 8. Responsive Adjustments */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 on tablets */
    }
}

@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }

    /* Reset Alternating Layout for Mobile */
    .steps-wrapper .row.process-step:nth-child(even) {
        flex-direction: column;
    }

    .row.process-step {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .process-step .left,
    .process-step .right {
        width: 100%;
    }

    .process-image {
        height: 250px;
        width: 100%;
        order: -1;
        /* Image first on mobile usually looks better, optional */
    }

    .achievements-grid {
        flex-direction: column;
        text-align: center;
    }

    .impact-stats {
        grid-template-columns: 1fr;
        /* Stack visually */
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }
}