/* ============================================================
   RAEES IMPORT & EXPORT
   HOMEPAGE STATS SECTION
   ULTRA PREMIUM RESPONSIVE
   File: /assets/css/home/stats.css
   ============================================================ */


/* ============================================================
   STATS SECTION
   ============================================================ */

.stats-section {
    position: relative;
    z-index: 5;

    width: 100%;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 34px 0 !important;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #171512 0%,
            #211d18 52%,
            #171512 100%
        );
}


/* Premium top highlight */

.stats-section::before {
    content: "";

    position: absolute;
    top: 0;
    left: 50%;

    width: 70%;
    height: 1px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(193, 145, 73, 0.65),
            transparent
        );

    pointer-events: none;
}


/* Soft background glow */

.stats-section::after {
    content: "";

    position: absolute;

    top: -180px;
    left: 50%;

    width: 500px;
    height: 300px;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(178, 128, 57, 0.13),
            transparent 70%
        );

    pointer-events: none;
}


/* ============================================================
   CONTAINER
   ============================================================ */

.stats-section .container {
    position: relative;
    z-index: 2;

    height: auto !important;
    min-height: 0 !important;
}


/* ============================================================
   GRID
   ============================================================ */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    width: 100%;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;

    gap: 0;
}


/* ============================================================
   STAT CARD
   ============================================================ */

.stat-card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 92px;

    gap: 16px;

    margin: 0;
    padding: 15px 24px;

    color: #ffffff;

    background: transparent;
}


/* Divider */

.stat-card:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 15%;
    right: 0;

    width: 1px;
    height: 70%;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255, 255, 255, 0.14),
            transparent
        );
}


/* ============================================================
   ICON
   ============================================================ */

.stat-icon {
    display: grid;

    flex: 0 0 auto;

    width: 50px;
    height: 50px;

    place-items: center;

    border:
        1px solid
        rgba(193, 145, 73, 0.28);

    border-radius: 14px;

    color: #d3a25c;

    background:
        rgba(193, 145, 73, 0.08);

    font-size: 1.05rem;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.04);

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
}


.stat-card:hover .stat-icon {
    transform: translateY(-3px);

    border-color:
        rgba(193, 145, 73, 0.48);

    background:
        rgba(193, 145, 73, 0.14);
}


/* ============================================================
   TEXT
   ============================================================ */

.stat-card > div {
    min-width: 0;
}


.stat-card strong {
    display: block;

    margin: 0 0 4px;

    color: #ffffff;

    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 700;
    line-height: 1.15;

    letter-spacing: -0.02em;
}


.stat-card span:not(.stat-icon) {
    display: block;

    color:
        rgba(255, 255, 255, 0.60);

    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;

    letter-spacing: 0.025em;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991.98px) {

    .stats-section {
        padding:
            28px 0 !important;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .stat-card {
        min-height: 100px;

        justify-content: flex-start;

        padding:
            18px 28px;
    }


    /* Remove desktop dividers */

    .stat-card::after {
        display: none;
    }


    /* Vertical middle divider */

    .stat-card:nth-child(odd) {
        border-right:
            1px solid
            rgba(255, 255, 255, 0.09);
    }


    /* Horizontal divider */

    .stat-card:nth-child(-n+2) {
        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.09);
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 575.98px) {

    .stats-section {
        padding:
            18px 0 !important;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 0;
    }

    .stat-card {
        min-height: 105px;

        align-items: center;
        justify-content: flex-start;

        gap: 11px;

        padding:
            16px 10px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;

        border-radius: 11px;

        font-size: 0.88rem;
    }

    .stat-card strong {
        margin-bottom: 3px;

        font-size: 0.92rem;
    }

    .stat-card span:not(.stat-icon) {
        font-size: 0.63rem;
        line-height: 1.35;
    }

}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .stat-card {
        gap: 8px;

        padding:
            14px 7px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;

        font-size: 0.78rem;
    }

    .stat-card strong {
        font-size: 0.84rem;
    }

    .stat-card span:not(.stat-icon) {
        font-size: 0.58rem;
    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .stat-icon {
        transition: none;
    }

    .stat-card:hover .stat-icon {
        transform: none;
    }

}

/* ============================================================
   FINAL STATS HEIGHT FIX
   Must remain at END of stats.css
   ============================================================ */

.stats-section {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 28px 0 !important;
}

.stats-section .container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.stats-section .stats-grid {
    display: grid !important;

    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    align-items: stretch !important;
}

.stats-section .stat-card {
    height: auto !important;
    min-height: 90px !important;
    max-height: none !important;

    margin: 0 !important;
}


/* TABLET */

@media (max-width: 991.98px) {

    .stats-section {
        padding: 22px 0 !important;
    }

    .stats-section .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .stats-section .stat-card {
        min-height: 90px !important;
    }
}


/* MOBILE */

@media (max-width: 575.98px) {

    .stats-section {
        padding: 16px 0 !important;
    }

    .stats-section .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        height: auto !important;
        min-height: 0 !important;
    }

    .stats-section .stat-card {
        height: auto !important;
        min-height: 82px !important;

        padding: 12px 10px !important;
    }
}