/* Homepage Statistics Section */

.stats-section {
    background-color: #F9FAFB;
    padding: 43px 0 80px 0;  /* Reduced top padding: 80px -> 55px -> 43px (total -37px) */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    background-color: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 50px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    /* Force equal card sizes */
    min-width: 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(62, 126, 108, 0.15);
}

.stat-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;  /* Increased from 16px for more breathing room after icons */
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 100px;
    height: 100px;
    fill: none;
    stroke: rgb(93, 190, 163);
    stroke-width: 1;
}

/* Cool Guys PNG Icons */
.stat-icon .cool-guy-icon {
    width: 100px;
    height: 100px;
    filter: invert(60%) sepia(50%) saturate(400%) hue-rotate(110deg) brightness(90%);
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 15px;
    font-weight: 600;
    color: rgb(62, 126, 108);
    line-height: 1.5;
    margin-bottom: 8px;
    white-space: nowrap;  /* Keep labels like "Tax Dollars Corrected" on one line */
}

.stat-sublabel {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    margin-top: 0;
    font-style: italic;
    white-space: nowrap;  /* Keep "Per Homeowner | Since 2024" on one line */
}

/* Responsive Design */

/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-card {
        padding: 32px;
    }

    .stat-number {
        font-size: 48px;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .stats-section {
        padding: 3px 0 40px 0;  /* Reduced top padding: 40px -> 15px -> 3px (total -37px) */
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 32px 24px;
    }

    .stat-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }

    .stat-icon svg {
        width: 70px;
        height: 70px;
    }

    .stat-icon .cool-guy-icon {
        width: 70px;
        height: 70px;
    }

    .stat-number {
        font-size: 42px;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 14px;
    }

    .stat-sublabel {
        font-size: 11px;
    }
}

/* Extra small mobile (max-width: 430px) */
@media (max-width: 430px) {
    .stat-number {
        font-size: 38px;
    }
}
