/*
   BRITOL GROUP — Stats Section
   Purpose: Display key business metrics with count-up animation
*/

.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    color: var(--blue-50);
    line-height: 1;
}

.stat-percent,
.stat-plus {
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-300);
    display: inline;
    margin-left: 4px;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 12px;
    letter-spacing: 0.5px;
}

/* Animation for stat cards when they come into view */
.stat-card {
    opacity: 0;
    transform: translateY(20px);
}

.stat-card.animate {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .stats-section {
        padding: 60px 0;
    }

    .stats-grid {
        gap: 24px;
    }

    .stat-card {
        padding: 24px;
    }

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

    .stat-percent,
    .stat-plus {
        font-size: 24px;
    }

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

@media (max-width: 480px) {
    .stats-section {
        padding: 50px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

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

    .stat-percent,
    .stat-plus {
        font-size: 18px;
    }

    .stat-label {
        font-size: 12px;
        margin-top: 8px;
    }
}
