/**
 * Stats Cards
 */

/* ============================================================
   Section
   ============================================================ */

.stats-cards {
    padding: 0 0 var( --section-margins-sm );
    background-color: #fff;
}

.stats-cards__heading {
    color: var( --blue );
    text-align: center;
    margin-bottom: 40px;
}

/* ============================================================
   Grid  —  mobile-first: single column, centered
   ============================================================ */

.stats-cards__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* ============================================================
   Card
   ============================================================ */

.stats-cards__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 100%;
    max-width: 331px;
    min-height: 209px;
    padding: 42px 30px;
    background-color: var( --blue );
    border-radius: 3px;
    box-shadow: 0px 6px 77px 6px rgba( 0, 61, 112, 0.12 );
    text-align: center;
}

/* ============================================================
   Number
   ============================================================ */

.stats-cards__number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 75px;
    line-height: 1;
    background: linear-gradient( 135deg, #ffffff 4%, #edfaff 107% );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Prevent layout shift during count-up */
    min-width: 4ch;
}

/* ============================================================
   Yellow divider line
   ============================================================ */

.stats-cards__divider {
    flex-shrink: 0;
    width: 111px;
    height: 4px;
    background-color: var( --yellow );
    border-radius: 2px;
}

/* ============================================================
   Label
   ============================================================ */

.stats-cards__label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.5;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ============================================================
   Tablet  —  2-up grid
   ============================================================ */

@media ( min-width: 768px ) {
    .stats-cards__grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .stats-cards__card {
        flex: 1 1 calc( 50% - 20px );
        max-width: 360px;
    }
}

/* ============================================================
   Desktop  —  3-up grid, larger cards
   ============================================================ */

@media ( min-width: 1025px ) {
    .stats-cards__grid {
        flex-wrap: nowrap;
        gap: 13px;
    }

    .stats-cards__card {
        flex: 1 1 0;
        max-width: 420px;
        min-height: 239px;
        padding: 42px 50px;
    }

    .stats-cards__number {
        font-size: 85px;
    }

    .stats-cards__label {
        font-size: 25px;
    }
}

/* ============================================================
   Reduced motion — skip count-up animation visuals
   ============================================================ */

@media ( prefers-reduced-motion: reduce ) {
    .stats-cards__number {
        transition: none;
    }
}
