/* ============================================================
   TS FAST AUTO LOGISTICS, LLC — TRUST LOGOS STRIP
   File: assets/css/trust.css
   Purpose: Review-platform logos row with star ratings
   Depends on: style.css (design tokens)
   ============================================================ */

/* ------------------------------------------------------------
   1. SECTION WRAPPER
   ------------------------------------------------------------ */
.trust-section {
    padding: var(--space-12) 0;
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trust-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ------------------------------------------------------------
   2. SECTION HEADING
   ------------------------------------------------------------ */
.trust-head {
    text-align: center;
    margin-bottom: var(--space-8);
}

.trust-head h2 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* ------------------------------------------------------------
   3. TRUST LOGOS ROW
   ------------------------------------------------------------ */
.trust-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    align-items: stretch;
}

/* Individual logo + rating card */
.trust-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    text-align: center;
    transition: transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
}

.trust-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

/* Brand name */
.trust-brand {
    font-size: var(--fs-md);
    font-weight: var(--fw-extrabold);
    color: var(--color-heading);
    letter-spacing: var(--ls-tight);
    line-height: 1;
}

/* Star row */
.trust-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--color-star);
    font-size: var(--fs-sm);
    letter-spacing: 2px;
}

/* Rating number */
.trust-rating {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-text-main);
    line-height: 1;
}

/* Review count */
.trust-count {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    font-weight: var(--fw-medium);
    line-height: 1.2;
}

/* ------------------------------------------------------------
   4. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .trust-section {
        padding: var(--space-10) 0;
    }

    .trust-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

@media (max-width: 640px) {

    .trust-logos {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .trust-card {
        flex-direction: row;
        justify-content: space-between;
        padding: var(--space-4) var(--space-5);
        text-align: left;
    }

    .trust-card>* {
        flex-shrink: 0;
    }

    .trust-card .trust-count {
        display: none;
    }
}

/* Very small phones (320px): the brand, stars and rating no longer fit side by side with the full padding */
@media (max-width: 360px) {
    .trust-card {
        padding: var(--space-4) var(--space-3);
        gap: var(--space-2);
    }
}