/* =============================================
   STATISTICS BANNER BLOCK
   ============================================= */
:root {
    --stats-columns-width: 33%;
}
.statistics-banner-block {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    margin: var(--wp--preset--spacing--spacing-8) auto;
    padding: var(--wp--preset--spacing--spacing-6) var(--wp--preset--spacing--spacing-2);
    border-radius: var(--wp--custom--border--radius--standard, 12px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
}

/* ── Background image ── */
.statistics-banner__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.statistics-banner__bg img {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: var(--stats-focal, 50% 50%);
    display: block;
    transform: translateY(var(--stats-parallax, 0px));
}

.statistics-banner__bg-overlay {
    position: absolute;
    inset: 0;
    opacity:  0.75;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.55) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* ── Inner layout ── */
.statistics-banner__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--spacing-4);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--spacing-5);
}

:root .statistics-banner__inner.statistics-banner__content {
    margin-top: var(--wp--preset--spacing--spacing-5);
    align-items: flex-end;
    .wp-block-buttons {
        width: 100%;
        max-width: var(--stats-columns-width);
    }

    
    .wp-block-buttons {
        &>.wp-block-button.is-style-secondary {
            display: block;
            width: 100%;
            max-width: none !important;
        }
        justify-content: flex-start;
    }
}

.statistics-banner__inner.stat-cards-container {
    flex-direction: row-reverse;

}

/* ── Header ── */
.statistics-banner__header {
    display: flex;
    
    flex-direction: column;
    gap: var(--wp--preset--spacing--spacing-2);
    width: 100%;
    max-width: 40%;
    color: var(--wp--preset--color--cream-light);
    margin-left: var(--wp--preset--spacing--spacing-4);
}

.statistics-banner__heading {
    font-family: var(--wp--preset--font-family--bricolage-grotesque-condensed) !important;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--wp--preset--color--cream-light);
    margin: 0;
    line-height: 1;
}

.statistics-banner__description {
    font-size: var(--wp--preset--font-size--large);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 60ch;
}

/* ── Stats + button row ── */
.statistics-banner__cards {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--stats-columns-width);
    gap: var(--wp--preset--spacing--spacing-3);
    justify-content: space-between;
}

/* ── Individual stat box ── */
.statistics-banner__stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--wp--preset--spacing--spacing-3) var(--wp--preset--spacing--spacing-4);
    border-radius: var(--wp--custom--border--radius--standard, 12px);
    background: var(--stat-bg, var(--wp--preset--color--cream-dark));
    color: var(--stat-color, var(--wp--preset--color--primary));
    min-width: 180px;
    flex: 1;
}

.statistics-banner__stat-value {
    font-family: var(--wp--preset--font-family--bricolage-grotesque-condensed) !important;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin: 0;
}

.statistics-banner__stat-label {
    font-size: var(--wp--preset--font-size--medium, 1rem);
    margin: 0.25em 0 0;
    opacity: 0.85;
}

/* ── Button box ── */
.statistics-banner__btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--wp--preset--spacing--spacing-3) var(--wp--preset--spacing--spacing-4);
    border-radius: var(--wp--custom--border--radius--standard, 12px);
    background: var(--btn-bg, var(--wp--preset--color--secondary));
    flex: 1;
    min-width: 180px;
}

.statistics-banner__btn {
    font-family: var(--wp--preset--font-family--bricolage-grotesque-condensed) !important;
    font-size: var(--wp--preset--font-size--large);
    font-weight: 700;
    color: var(--btn-color, #ffffff);
    text-decoration: none;
    text-align: center;
    display: block;
    width: 100%;
    transition: opacity 0.2s ease;
}


.statistics-banner__btn:hover {
    opacity: 0.8;
    text-decoration: none;
    color: var(--btn-color, #ffffff);
}

/* ── Empty state ── */
.statistics-banner-block--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--wp--preset--color--primary);
    color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
}

/* ── Mobile ── */
@media (max-width: 980px) {
    :root {
        --stats-columns-width: 100%;
    }
    .statistics-banner__cards {
        flex-direction: column;
    }
    .statistics-banner__inner.stat-cards-container {
        padding: 0;
    }
    .statistics-banner__stat,
    .statistics-banner__btn-wrap {
        min-width: 0;
        flex: none;
        width: 100%;
    }

    .statistics-banner__header { 
        margin-left: 0;
        max-width: 100%;
    }

    .statistics-banner__inner.statistics-banner__content {
        flex-direction: column;
    }
}

