
/* =========================================
   STEP 10: R3S COMPANY STATISTICS
========================================= */

.r3s-stats-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background: #080808;
    color: #ffffff;
    isolation: isolate;
}

.r3s-stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            120deg,
            rgba(8, 8, 8, 1),
            rgba(20, 0, 2, 0.96)
        );
}

/* BACKGROUND DECORATION */

.stats-bg-circle {
    position: absolute;
    z-index: -1;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(221, 3, 17, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.stats-bg-circle-one {
    top: -220px;
    left: -100px;
}

.stats-bg-circle-two {
    right: -180px;
    bottom: -250px;
}

/* HEADING */

.stats-heading {
    max-width: 750px;
    margin: 0 auto 50px;
}

.stats-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #ff626b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.stats-eyebrow span {
    width: 30px;
    height: 2px;
    background: #DD0311;
}

.stats-heading h2 {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.5vw, 43px);
    font-weight: 800;
    line-height: 1.25;
}

.stats-heading h2 span {
    display: block;
    color: #DD0311;
}

.stats-heading p {
    max-width: 620px;
    margin: 17px auto 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.8;
}

/* STATISTICS GRID */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stats-card {
    position: relative;
    min-height: 230px;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    transition: all 0.35s ease;
}

.stats-card::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #DD0311;
    transition: all 0.35s ease;
    transform: translateX(-50%);
}

.stats-card:hover {
    transform: translateY(-7px);
    background: rgba(221, 3, 17, 0.07);
    border-color: rgba(221, 3, 17, 0.5);
}

.stats-card:hover::after {
    width: 65%;
}

/* ICON */

.stats-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(221, 3, 17, 0.13);
    border-radius: 10px;
    color: #ff424d;
    font-size: 24px;
}

/* COUNTER */

.stats-number {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
}

.stats-suffix {
    margin-left: 3px;
    color: #DD0311;
    font-size: 30px;
}

.stats-number-static {
    color: #ffffff;
    font-size: 38px;
}

/* TEXT */

.stats-card h3 {
    margin: 12px 0 6px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
}

.stats-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    line-height: 1.6;
}

/* BOTTOM LINE */

.stats-bottom-line {
    margin-top: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 600;
}

.stats-bottom-line i {
    color: #DD0311;
    font-size: 19px;
}

/* RESPONSIVE */

@media (max-width: 991px) {

    .r3s-stats-section {
        padding: 75px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .stats-card {
        min-height: 210px;
    }
}

@media (max-width: 767px) {

    .r3s-stats-section {
        padding: 65px 0;
    }

    .stats-heading {
        margin-bottom: 32px;
    }

    .stats-heading h2 {
        font-size: 30px;
    }

    .stats-heading p {
        font-size: 13px;
    }

    .stats-grid {
        gap: 12px;
    }

    .stats-card {
        min-height: 185px;
        padding: 20px 10px;
    }

    .stats-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 14px;
        font-size: 21px;
    }

    .stats-number,
    .stats-number-static {
        font-size: 32px;
    }

    .stats-suffix {
        font-size: 25px;
    }

    .stats-card h3 {
        font-size: 13px;
    }

    .stats-card p {
        font-size: 11px;
    }
}

@media (max-width: 380px) {

    .stats-card {
        min-height: 175px;
    }

    .stats-card h3 {
        font-size: 12px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .stats-card,
    .stats-card::after {
        transition: none;
    }

    .stats-card:hover {
        transform: none;
    }
}
