/**
 * FIFE Stats / Numbers — Elementor widget styles.
 *
 * Scoped entirely under .fife-elementor-stats so this can never collide
 * with page-our-impact.php's ".impact-stats-*", archive-fife_project.php's
 * ".projects-stats-*", page-our-works.php's ".ow-stats-*", or
 * page-who-we-are.php's "FIFE in Numbers" markup/CSS — none of that is
 * touched. Literal values below are copied from page-our-impact.php's
 * own inline <style> block (the canonical source, see the widget's PHP
 * file header for why), not computed from style.css custom properties,
 * so this widget has no live dependency on it.
 */

.fife-elementor-stats {
    --fife-stats-columns: 3;
    --fife-stats-gap: 2rem;
    --fife-stats-icon-box: 4rem;
}

.fife-elementor-stats--card .fife-elementor-stats__card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid hsl(0, 0%, 89.8%);
    padding: 2rem 3rem;
    transition: var(--transition-smooth);
}

.fife-elementor-stats--card .fife-elementor-stats__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.3);
}

.fife-elementor-stats--no-card .fife-elementor-stats__card {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
}

.fife-elementor-stats__heading {
    margin: 0 0 3rem;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.3;
    color: hsl(0, 0%, 3.9%);
}

.fife-elementor-stats--align-center .fife-elementor-stats__heading {
    text-align: center;
}

.fife-elementor-stats__grid {
    display: grid;
    grid-template-columns: repeat(var(--fife-stats-columns), minmax(0, 1fr));
    gap: var(--fife-stats-gap);
}

.fife-elementor-stats__stat {
    min-width: 0;
}

.fife-elementor-stats--align-center .fife-elementor-stats__stat {
    text-align: center;
}

.fife-elementor-stats__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--fife-stats-icon-box);
    height: var(--fife-stats-icon-box);
    margin: 0 0 1rem;
    border-radius: 1rem;
    background-color: rgba(147, 49, 131, 0.1);
    color: hsl(310, 58%, 35%);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.fife-elementor-stats--align-center .fife-elementor-stats__icon {
    margin-inline: auto;
}

.fife-elementor-stats__icon svg {
    width: 50%;
    height: 50%;
    stroke: currentColor;
}

.fife-elementor-stats__stat:hover .fife-elementor-stats__icon {
    background-color: hsl(310, 58%, 35%);
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(147, 49, 131, 0.3);
}

.fife-elementor-stats__value {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: hsl(310, 58%, 35%);
}

.fife-elementor-stats__label {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: hsl(0, 0%, 45.1%);
}

@media (min-width: 768px) {
    .fife-elementor-stats__value {
        font-size: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fife-elementor-stats__icon {
        transition-duration: 0.01ms !important;
    }
}
