/* Global Impact Counter Section - Premium Dark Theme */

.toonz-impact-wrapper {
    width: 100%;
    position: relative;
    padding: 100px 0 220px 0;
    /* Extra padding at bottom for Earth image */
    background-color: #050505;
    /* Deep dark background */
    color: #fff;
    overflow: hidden;
    text-align: center;
}

/* Background Earth Image */
.toonz-impact-earth-bg {
    position: absolute;
    bottom: -10%;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 400px;
    background-image: var(--earth-bg-url);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.8;
    mix-blend-mode: lighten;
    /* Transition for zoom on scroll and hover */
    transform: scale(1);
    transition: transform 12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

/* Scroll trigger zoom */
.toonz-impact-wrapper.is-in-view .toonz-impact-earth-bg {
    transform: scale(1.04);
}

/* Hover trigger zoom */
.toonz-impact-wrapper:hover .toonz-impact-earth-bg {
    transform: scale(1.3);
    transition-duration: 8s;
}

/* Header Content */
.toonz-impact-header {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.toonz-impact-eyebrow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.toonz-impact-eyebrow-line {
    width: 40px;
    height: 1px;
    background-color: #E87722;
    opacity: 0.6;
}

.toonz-impact-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #E87722;
}

.toonz-impact-heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.toonz-impact-heading .accent {
    color: #E87722;
}

.toonz-impact-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #A0A0A0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Metrics Grid */
.toonz-impact-grid {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Adding visual grid lines */
    gap: 0;
}

/* Grid Dividers */
.toonz-impact-item {
    padding: 50px 30px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.toonz-impact-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Top Row Bottom Border */
.toonz-impact-item:nth-child(1),
.toonz-impact-item:nth-child(2),
.toonz-impact-item:nth-child(3) {
    border-bottom: 1px solid rgba(232, 119, 34, 0.2);
    /* Subtle orange/gold glow line */
}

/* Middle Column Side Borders */
.toonz-impact-item:nth-child(2),
.toonz-impact-item:nth-child(5) {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Metric Content */
.toonz-impact-icon {
    font-size: 36px;
    color: #E87722;
    margin-bottom: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.toonz-impact-icon i {
    font-size: 36px;
    line-height: 1;
}

.toonz-impact-icon svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
    /* Inherits the color from the wrapper control */
}

.toonz-impact-custom-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.toonz-impact-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 10px;
}

.toonz-impact-number {
    font-family: 'Inter', sans-serif;
    font-size: clamp(50px, 6vw, 72px);
    font-weight: 800;
    color: #EBEBEB;
    line-height: 1;
    letter-spacing: -2px;
}

.toonz-impact-suffix {
    font-family: 'Inter', sans-serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    color: #E87722;
    margin-left: 2px;
}

.toonz-impact-metric-divider {
    width: 30px;
    height: 2px;
    background-color: #E87722;
    /* Default, overridden by Elementor control */
    margin: 15px auto;
}

.toonz-impact-label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #A0A0A0;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .toonz-impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .toonz-impact-item:nth-child(1),
    .toonz-impact-item:nth-child(2),
    .toonz-impact-item:nth-child(3),
    .toonz-impact-item:nth-child(4) {
        border-bottom: 1px solid rgba(232, 119, 34, 0.2);
    }

    .toonz-impact-item:nth-child(2),
    .toonz-impact-item:nth-child(5) {
        border-left: none;
        border-right: none;
    }

    .toonz-impact-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .toonz-impact-wrapper {
        padding-bottom: 250px;
    }

    .toonz-impact-grid {
        grid-template-columns: 1fr;
    }

    .toonz-impact-item {
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .toonz-impact-item:last-child {
        border-bottom: none !important;
    }
}