
/* =========================================================
   DEVSID.IN — TRUST / PROOF SECTION
   ========================================================= */

.trust-section {
    position: relative;
    z-index: 5;
    background: #f5f3ed;
    color: #111111;
}

/* ---------------------------------------------------------
   TOP CLIENT STRIP
   --------------------------------------------------------- */

.trust-top {
    position: relative;
    min-height: 245px;
    padding: 52px 0 105px;
    overflow: hidden;
    background: #111111;
    color: #ffffff;
}

.trust-container {
    width: min(1240px, calc(100% - 80px));
    margin: 0 auto;
}

.trust-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    color: #777777;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.trust-heading span:first-child {
    color: #a8a8a8;
}

.trust-heading span:last-child {
    color: var(--orange);
}

/* ---------------------------------------------------------
   INFINITE CLIENT MARQUEE
   --------------------------------------------------------- */

.client-marquee {
    width: 100%;
    overflow: hidden;
    margin-top: 48px;
    position: relative;
}

.client-track {
    display: flex;
    width: max-content;
    animation: client-marquee-scroll 28s linear infinite;
    will-change: transform;
}

/* Pause on hover */

.client-marquee:hover .client-track,
.client-marquee:focus-within .client-track {
    animation-play-state: paused;
}

.client-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 65px;
    padding-right: 65px;
    white-space: nowrap;
}

/* Individual client item */

.client-item {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    opacity: .85;
    transition: opacity .25s ease;
}

.client-item:hover {
    opacity: 1;
}

/* LOGO MODE */

.client-logo {
    display: block;
    width: auto;
    height: 34px;
    object-fit: contain;

    /* Makes dark logos white on dark background */
    filter: grayscale(100%) brightness(0) invert(1);
    transition:
        filter .3s ease,
        transform .3s ease;
}

.client-item:hover .client-logo {
    filter: none;
    transform: translateY(-2px);
}

/* TEXT MODE */

.client-item.has-text span {
    color: #f2f2f2;
    font-family: "Manrope", sans-serif;
    font-size: clamp(18px, 2vw, 27px);
    font-weight: 500;
    letter-spacing: -.055em;
    transition: opacity .25s ease;
}

.client-item.has-text:nth-child(2) span {
    font-weight: 800;
}

.client-item.has-text:nth-child(3) span {
    font-family: "DM Mono", monospace;
    font-size: clamp(11px, 1.25vw, 16px);
    font-weight: 400;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.client-item.has-text .client-more {
    color: #777777;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .03em;
}

/* MARQUEE ANIMATION */

@keyframes client-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------------------------------------------------------
   STATS CARD
   --------------------------------------------------------- */

.trust-stats-wrap {
    position: relative;
    margin-top: -67px;
    z-index: 3;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 136px;

    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;

    background: var(--paper);

    box-shadow:
        0 25px 55px rgba(0,0,0,.11),
        0 3px 12px rgba(0,0,0,.04);
}

.trust-stat {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 28px 30px;
}

.trust-stat:not(:last-child)::after {
    content: "";

    position: absolute;
    right: 0;
    top: 25%;
    bottom: 25%;

    width: 1px;
    background: #e8e8e8;
}

.trust-stat-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--border-dark);
    color: #ff914d;

    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 500;
}

.trust-stat-copy strong {
    display: block;

    color: var(--orange);
    font-family: "Manrope", sans-serif;
    font-size: clamp(27px, 2.4vw, 38px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.06em;
}

.trust-stat-copy span {
    display: block;
    margin-top: 8px;

    color: var(--black-soft);
    font-family: "Manrope", sans-serif;
    font-size: 10px;
    line-height: 1.2;
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1050px) {

    .client-group {
        gap: 45px;
        padding-right: 45px;
    }

    .client-logo {
        height: 30px;
        max-width: 130px;
    }

    .trust-stat {
        padding: 25px 20px;
        gap: 12px;
    }

    .trust-stat-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 850px) {

    .trust-top {
        min-height: 225px;
        padding: 45px 0 95px;
    }

    .trust-container {
        width: calc(100% - 30px);
    }

    .client-marquee {
        margin-top: 40px;
    }

    .client-group {
        gap: 40px;
        padding-right: 40px;
    }

    .client-logo {
        height: 27px;
        max-width: 115px;
    }

    .client-item.has-text span {
        font-size: 18px;
    }

    .client-item.has-text:nth-child(3) span {
        font-size: 11px;
    }

    .trust-stats-wrap {
        margin-top: -55px;
    }

    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 14px;
    }

    .trust-stat {
        min-height: 105px;
    }

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

    .trust-stat:nth-child(-n+2) {
        border-bottom: 1px solid #e8e8e8;
    }
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 520px) {

    .trust-heading span:last-child {
        display: none;
    }

    .trust-top {
        min-height: 215px;
    }

    .client-marquee {
        margin-top: 38px;
    }

    .client-group {
        gap: 32px;
        padding-right: 32px;
    }

    .client-logo {
        height: 24px;
        max-width: 100px;
    }

    .client-item.has-text span {
        font-size: 17px;
    }

    .client-item.has-text:nth-child(3) span {
        font-size: 10px;
    }

    .trust-stats {
        grid-template-columns: 1fr;
    }

    .trust-stat {
        min-height: 88px;
        padding: 20px;
    }

    .trust-stat:not(:last-child)::after {
        display: none;
    }

    .trust-stat:not(:last-child) {
        border-bottom: 1px solid #e8e8e8;
    }

    .trust-stat-copy strong {
        font-size: 29px;
    }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

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

    .client-track {
        animation: none;
    }

}
