
/* ==========================================
   R3S - TRUST HIGHLIGHTS SECTION
========================================== */

.r3s-trust-section {
    position: relative;
    padding: 65px 0;
    background: var(--bg-primary);
    overflow: hidden;
}

/* GRID */

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* CARD */

.trust-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-height: 245px;
    padding: 30px 24px;

    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;

    overflow: hidden;

    transition:
        transform .4s ease,
        border-color .4s ease,
        box-shadow .4s ease,
        background .3s ease;
}

/* TOP ACCENT */

.trust-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 0;
    height: 3px;

    background: var(--r3s-primary);

    transition: width .4s ease;
}

.trust-card:hover::before {
    width: 100%;
}

/* ICON */

.trust-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 23px;

    border-radius: 12px;

    background: rgba(221,3,17,.09);
    color: var(--r3s-primary);

    font-size: 27px;

    transition:
        transform .4s ease,
        background .4s ease,
        color .4s ease;
}

.trust-card:hover .trust-icon {
    background: var(--r3s-primary);
    color: #FFFFFF;
    transform: rotate(-7deg) scale(1.08);
}

/* CONTENT */

.trust-content {
    position: relative;
    z-index: 2;
}

.trust-content h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;

    color: var(--text-primary);

    margin: 0 0 12px;

    transition: color .3s ease;
}

.trust-content p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.75;
    margin: 0;
}

/* NUMBER */

.trust-card-number {
    position: absolute;
    right: 16px;
    bottom: 8px;

    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;

    line-height: 1;
    color: var(--text-primary);

    opacity: .035;

    transition:
        opacity .3s ease,
        color .3s ease,
        transform .3s ease;

    pointer-events: none;
}

.trust-card:hover .trust-card-number {
    color: var(--r3s-primary);
    opacity: .10;
    transform: translateY(-5px);
}

/* CARD HOVER */

.trust-card:hover {
    transform: translateY(-8px);
    border-color: rgba(221,3,17,.45);
    box-shadow: 0 15px 40px rgba(0,0,0,.09);
}

/* DARK THEME */

[data-theme="dark"] .trust-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,.30);
}

/* TABLET */

@media (max-width: 1199px) {

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .trust-card {
        min-height: 225px;
        padding: 26px;
    }

}

/* MOBILE */

@media (max-width: 767px) {

    .r3s-trust-section {
        padding: 45px 0;
    }

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .trust-card {
        min-height: 225px;
        padding: 19px 15px;
        border-radius: 11px;
    }

    .trust-icon {
        width: 48px;
        height: 48px;
        font-size: 23px;
        margin-bottom: 17px;
    }

    .trust-content h3 {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 9px;
    }

    .trust-content p {
        font-size: 12px;
        line-height: 1.65;
    }

    .trust-card-number {
        font-size: 36px;
        right: 10px;
        bottom: 7px;
    }

}

/* SMALL MOBILE */

@media (max-width: 360px) {

    .trust-grid {
        gap: 9px;
    }

    .trust-card {
        padding: 15px 12px;
        min-height: 225px;
    }

    .trust-content h3 {
        font-size: 14px;
    }

    .trust-content p {
        font-size: 11px;
    }

}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .trust-card,
    .trust-icon,
    .trust-card-number,
    .trust-card::before {
        transition: none !important;
    }

}

/* SCROLL REVEAL */

.trust-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity .6s ease,
        transform .6s ease,
        border-color .4s ease,
        box-shadow .4s ease;

    transition-delay: var(--reveal-delay, 0ms);
}

.trust-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .trust-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
