
/* ==========================================================
   INVOMIZE AMAZON FBA — PREMIUM PERFORMANCE STATS

   Shortcode: [invomize_stats]

   Features:
   - Premium outer container
   - Four individual statistic panels
   - Mint gradient highlights
   - 2x2 grid on desktop and mobile
   - Global SF Pro and Inter fonts
   - No JavaScript required
   ========================================================== */

/* ==========================================================
   01. RESET
   ========================================================== */

.iaf-stats,
.iaf-stats *,
.iaf-stats *::before,
.iaf-stats *::after {
    box-sizing: border-box;
}

/* ==========================================================
   02. SECTION
   ========================================================== */

.iaf-stats {
    width: 100%;
    margin: 0;
    padding: 0 24px 75px;

    background: #FAFAFA;
}

/* ==========================================================
   03. MAIN CONTAINER
   ========================================================== */

.iaf-stats__container {
    position: relative;
    isolation: isolate;

    width: 100%;
    max-width: 1425px;

    margin: 0 auto;
    padding: 24px;

    background: #FFFFFF;

    border: 1px solid #E0E8E5;
    border-radius: 24px;

    box-shadow:
        0 5px 20px rgba(22, 35, 43, 0.035),
        0 15px 45px rgba(22, 35, 43, 0.025);

    overflow: hidden;
}

/* Very subtle ambient accent */

.iaf-stats__container::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: -160px;
    right: -100px;

    width: 400px;
    height: 400px;

    background: radial-gradient(
        circle,
        rgba(73, 185, 154, 0.08) 0%,
        rgba(73, 185, 154, 0) 70%
    );

    pointer-events: none;
}

/* ==========================================================
   04. STATS GRID — 2 x 2
   ========================================================== */

.iaf-stats__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

/* ==========================================================
   05. INDIVIDUAL STAT CARDS
   ========================================================== */

.iaf-stats__item {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    width: 100%;
    min-width: 0;
    min-height: 160px;

    margin: 0;
    padding: 27px 32px;

    background: linear-gradient(
        135deg,
        #F5FAF8 0%,
        #F9FBFA 70%,
        #FFFFFF 100%
    );

    border: 1px solid #E4EEE9;
    border-radius: 18px;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Hover treatment */

.iaf-stats__item:hover {
    border-color: #B7DCCD;

    box-shadow:
        0 8px 24px rgba(22, 35, 43, 0.045);
}

/* Small top-right accent */

.iaf-stats__item::after {
    content: "";

    position: absolute;

    top: 24px;
    right: 25px;

    width: 8px;
    height: 8px;

    background: #49B99A;
    border-radius: 50%;

    opacity: 0.8;
}

/* ==========================================================
   06. GRADIENT STAT VALUES
   ========================================================== */

.iaf-stats__value {
    display: inline-block;

    max-width: 100%;
    margin: 0;
    padding: 0;

    font-family: var(--iaf-font-heading);
    font-size: clamp(34px, 3.2vw, 47px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.045em;

    background: linear-gradient(
        95deg,
        #16232B 0%,
        #2E6E5D 55%,
        #49B99A 100%
    );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    color: #16232B;

    overflow-wrap: normal;
}

/* ==========================================================
   07. SUPPORTING DESCRIPTION
   ========================================================== */

.iaf-stats__description {
    max-width: 100%;

    margin: 12px 0 0;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.012em;

    color: #697386;
}

/* ==========================================================
   08. SMALL DESKTOP
   ========================================================== */

@media (max-width: 1199px) {

    .iaf-stats {
        padding: 0 24px 65px;
    }

    .iaf-stats__container {
        padding: 20px;
        border-radius: 21px;
    }

    .iaf-stats__grid {
        gap: 15px;
    }

    .iaf-stats__item {
        min-height: 145px;
        padding: 24px 26px;
    }

    .iaf-stats__value {
        font-size: clamp(32px, 3.5vw, 43px);
    }

    .iaf-stats__description {
        font-size: 14px;
    }
}

/* ==========================================================
   09. TABLET
   ========================================================== */

@media (max-width: 900px) {

    .iaf-stats {
        padding: 0 22px 55px;
    }

    .iaf-stats__container {
        padding: 16px;
        border-radius: 19px;
    }

    .iaf-stats__grid {
        gap: 13px;
    }

    .iaf-stats__item {
        min-height: 135px;

        padding: 22px;
        border-radius: 15px;
    }

    .iaf-stats__value {
        font-size: 35px;
    }

    .iaf-stats__description {
        margin-top: 9px;
        font-size: 13px;
    }
}

/* ==========================================================
   10. MOBILE — MAINTAIN 2 x 2 GRID
   ========================================================== */

@media (max-width: 600px) {

    .iaf-stats {
        padding: 0 14px 45px;
    }

    .iaf-stats__container {
        padding: 10px;

        border-radius: 17px;
    }

    .iaf-stats__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }

    .iaf-stats__item {
        min-height: 135px;

        padding: 17px 13px;

        border-radius: 12px;
    }

    .iaf-stats__item::after {
        top: 13px;
        right: 12px;

        width: 6px;
        height: 6px;
    }

    .iaf-stats__value {
        font-size: clamp(26px, 6.3vw, 36px);
        line-height: 1.1;
        letter-spacing: -0.04em;
    }

    .iaf-stats__description {
        margin-top: 10px;

        font-size: 11px;
        line-height: 1.45;
        letter-spacing: -0.01em;
    }
}

/* ==========================================================
   11. SMALL MOBILE
   ========================================================== */

@media (max-width: 375px) {

    .iaf-stats {
        padding-left: 10px;
        padding-right: 10px;
    }

    .iaf-stats__container {
        padding: 8px;
    }

    .iaf-stats__grid {
        gap: 7px;
    }

    .iaf-stats__item {
        min-height: 130px;
        padding: 14px 10px;
    }

    .iaf-stats__value {
        font-size: 25px;
    }

    .iaf-stats__description {
        font-size: 10px;
        line-height: 1.4;
    }
}

/* ==========================================================
   12. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .iaf-stats__item {
        transition: none;
    }
}
