/**
 * Stats Section - "We Are Experienced Since"
 * Clean CSS with flexbox for proper responsive centering
 */

/* Main container - two column layout on desktop, stacked on mobile */
.stats-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Green box - "We Are Experienced Since" */
.stats-section__green-box {
    flex: 1 1 350px;
    min-width: 300px;
    background-color: var(--brand-green, #4E612C);
    border-radius: 20px;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-section__green-box h2 {
    color: #FFFFFF;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
}

/* Gray box - contains all 3 stats */
.stats-section__gray-box {
    flex: 2 1 500px;
    min-width: 300px;
    background-color: #3C3C3C;
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
}

/* Individual stat item */
.stats-section__stat {
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 10px;
    min-width: 120px;
}

/* Stat number (500+, 100%, 10+) */
.stats-section__number {
    color: #FFFFFF;
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 10px;
    font-family: "Poppins", sans-serif;
}

/* Stat description text */
.stats-section__text {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 15px;
    opacity: 0.9;
    min-height: 40px;
    display: flex;
    align-items: center;
}

/* Stat icon */
.stats-section__icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.stats-section__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Dividers between stats on desktop */
.stats-section__stat:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   TABLET (768px - 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    .stats-section {
        gap: 20px;
    }

    .stats-section__green-box {
        padding: 50px 30px;
    }

    .stats-section__green-box h2 {
        font-size: 36px;
    }

    .stats-section__number {
        font-size: 42px;
    }
}

/* ============================================
   MOBILE (max-width: 767px)
   ============================================ */
@media screen and (max-width: 767px) {
    .stats-section {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
        margin: 40px auto;
    }

    /* Green box - full width on mobile */
    .stats-section__green-box {
        flex: 1 1 auto;
        width: 100%;
        min-width: auto;
        padding: 40px 30px;
        border-radius: 15px;
    }

    .stats-section__green-box h2 {
        font-size: 28px;
        text-align: center;
    }

    /* Gray box - full width, stats stacked vertically */
    .stats-section__gray-box {
        flex: 1 1 auto;
        width: 100%;
        min-width: auto;
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
        border-radius: 15px;
    }

    /* Individual stat - centered on mobile */
    .stats-section__stat {
        flex: none;
        width: 100%;
        padding: 20px 10px;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .stats-section__stat:last-child {
        border-bottom: none;
    }

    .stats-section__number {
        font-size: 42px;
    }

    .stats-section__text {
        font-size: 15px;
        min-height: auto;
    }

    .stats-section__icon {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */
@media screen and (max-width: 480px) {
    .stats-section__green-box h2 {
        font-size: 24px;
    }

    .stats-section__number {
        font-size: 36px;
    }

    .stats-section__text {
        font-size: 14px;
    }
}
