/*
 * MediRoyal About Us — Stats Counter Section
 * Source: about_us_2.html — .ab-stats-section
 * Depends on: design-tokens.css (plum-*, sage-*, r-*, ease)
 */

/* ── Section-deep utility (dark bg for stats section) ── */
.log-co-section-deep {
    background: linear-gradient(160deg, var(--plum-950), var(--plum-900));
    color: #fff;
}

/* ── Stats Counter Section (dark bg) ── */
.log-co-ab-stats-section {
    position: relative;
    overflow: hidden;
}

.log-co-ab-stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.log-co-ab-stats-grid {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 56px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.log-co-ab-stat-card {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--r-lg);
    padding: 38px 20px;
    text-align: center;
    transition: all .3s var(--ease);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}

.log-co-ab-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sage-400), transparent);
    opacity: .7;
}

.log-co-ab-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sage-400), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.log-co-ab-stat-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .13);
    border-color: rgba(94, 238, 192, .3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.log-co-ab-stat-card:hover::after {
    opacity: 1;
}

.log-co-ab-stat-num {
    font-family: var(--display);
    font-weight: 800;
    font-size: 46px;
    color: var(--sage-400);
    line-height: 1;
    text-shadow: 0 0 40px rgba(94, 238, 192, .5);
}

.log-co-ab-stat-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-top: 12px;
    color: #fff;
}

.log-co-ab-stat-desc {
    display: block;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .5);
    margin-top: 5px;
}

.log-co-ab-stat-num.counted {
    animation: numPulse .5s var(--ease);
}

@keyframes numPulse {
    0% {
        text-shadow: 0 0 40px rgba(94, 238, 192, .5);
    }
    50% {
        text-shadow: 0 0 80px rgba(94, 238, 192, .9);
    }
    100% {
        text-shadow: 0 0 40px rgba(94, 238, 192, .5);
    }
}

/* ── Responsive ── */
@media (max-width: 980px) {
    .log-co-ab-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .log-co-ab-stats-grid {
        grid-template-columns: 1fr;
    }
}
