/* ==========================================
   SECTION: Trust Bar / Stats
   ========================================== */

.trust-bar {
    background: var(--warg-blue-navy);
    color: #FFFFFF;
    padding: 60px 20px;
    overflow: hidden;
}

.trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Stat Block */
.stat-block {
    position: relative;
    padding: 0 20px;
}

.stat-block::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.stat-block:last-child::after {
    display: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.stat-number .stat-prefix {
    font-size: 1.5rem;
    opacity: 0.7;
    margin-right: 2px;
}

.stat-number .stat-suffix {
    font-size: 1.5rem;
    opacity: 0.7;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Stars */
.stat-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.stat-stars svg {
    width: 28px;
    height: 28px;
    fill: #FACC15;
    filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.3));
}

/* Counter animation */
.stat-block .stat-number {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-block.animate-in .stat-number {
    animation: countUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-block.animate-in .stat-label {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 0.7;
        transform: translateY(0);
    }
}

/* ------------------------------------------
   Responsive
   ------------------------------------------ */
@media (max-width: 768px) {
    .trust-bar {
        padding: 48px 20px;
    }

    .trust-bar-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
    }

    .stat-block {
        padding: 0 12px;
    }

    .stat-block:nth-child(2)::after {
        display: none;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-number .stat-prefix,
    .stat-number .stat-suffix {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-stars svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .trust-bar {
        padding: 36px 16px;
    }

    .trust-bar-inner {
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
    }

    .stat-block {
        padding: 0 8px;
    }

    .stat-block::after {
        display: none;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-number .stat-prefix,
    .stat-number .stat-suffix {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.02em;
    }

    .stat-stars svg {
        width: 18px;
        height: 18px;
    }
}
