/* =========================================================
   CLIENT TRUST SECTION
========================================================= */

.client-trust {
    position: relative;
    width: 100%;
    margin-top: 60px;
    padding: 18px 30px 0;
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
}


.client-trust-inner {
    position: relative;
    width: 100%;
    max-width: 1700px;
    /* height increase */
    min-height: 620px;
    margin: 0 auto;
    padding: 145px 0 0;
    box-sizing: border-box;
    background: #050505;
    border-radius: 70px;
    overflow: hidden;
}


/* =========================================================
   RATING
========================================================= */

.trust-rating {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 105px;
    color: #aaa;
    font-family: "DM Sans", sans-serif;
    transform: translateY(-20px);
}

.trust-score {
    display: flex;
    align-items: center;
    gap: 15px;

    font-size: 25px;
    font-weight: 600;
}

.trust-score-number {
    white-space: nowrap;
}

.trust-stars {
    color: #ffc928;

    font-size: 26px;
    letter-spacing: 2px;
    line-height: 1;
    white-space: nowrap;
}


/* =========================================================
   CLIENT COUNT
========================================================= */

.trust-clients {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-top: 28px;
}

.client-avatars {
    display: flex;
    align-items: center;
}


/* =========================================================
   REAL CLIENT AVATARS
========================================================= */

.avatar {
    position: relative;

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

    width: 60px;
    height: 60px;

    margin-left: -8px;

    border: 2px solid #151515;
    border-radius: 50%;

    overflow: hidden;

    background: #333;

    box-sizing: border-box;

    z-index: 1;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;
}

.avatar:nth-child(1) {
    z-index: 4;
}

.avatar:nth-child(2) {
    z-index: 3;
}

.avatar:nth-child(3) {
    z-index: 2;
}

.avatar:nth-child(4) {
    z-index: 1;
}


.clients-text {
    color: #aaa;

    font-size: 25px;
    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   CAROUSEL
========================================================= */

.client-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;

    transform: translateY(-35px);
}

/* =========================================================
   LEFT + RIGHT FADE
========================================================= */

.client-carousel::before,
.client-carousel::after {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    width: 130px;

    z-index: 10;

    pointer-events: none;
}

.client-carousel::before {
    left: 0;

    background: linear-gradient(
        to right,
        #050505 0%,
        rgba(5, 5, 5, 0) 100%
    );
}

.client-carousel::after {
    right: 0;

    background: linear-gradient(
        to left,
        #050505 0%,
        rgba(5, 5, 5, 0) 100%
    );
}


/* =========================================================
   MOVING TRACK
========================================================= */

.client-track {
    display: flex;
    align-items: stretch;

    width: max-content;

    animation: clientCarousel 30s linear infinite;

    will-change: transform;
}

@keyframes clientCarousel {

    from {
        transform: translateX(0);
    }

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


/* =========================================================
   CLIENT ITEM

   IMPORTANT:
   NO LEFT BORDER
   NO FULL BORDER
   ONLY RIGHT CURVED CAPSULE
========================================================= */

.client-item {
    position: relative;

    width: 280px;
    min-width: 280px;

    height: 155px;

    margin-right: 8px;

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

    box-sizing: border-box;

    /* REMOVE ALL STRAIGHT BORDERS */
    border: none;

    color: #fff;
}


/* =========================================================
   RIGHT SIDE CURVED CAPSULE

   ONLY THIS BORDER IS VISIBLE
========================================================= */

.client-item::after {
    content: "";

    position: absolute;

    top: 0;
    right: -1px;

    width: 125px;
    height: 155px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.13);

    /* IMPORTANT */
    border-left: 0;

    border-radius: 0 80px 80px 0;

    pointer-events: none;
}


/* =========================================================
   LOGO
========================================================= */

.client-logo {
    position: relative;

    z-index: 2;

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

    height: 62px;
    min-width: 70px;

    margin-bottom: 13px;

    color: #fff;

    font-family: Arial, sans-serif;

    font-size: 57px;
    font-weight: 900;

    line-height: 1;

    transition: transform 0.25s ease;
}


/* =========================================================
   ALPINE
========================================================= */

.logo-alpine {
    font-family: Arial, sans-serif;

    font-size: 70px;
    font-weight: 900;

    transform: scaleX(.75);
}


/* =========================================================
   PINNACLE
========================================================= */

.logo-pinnacle {
    font-size: 63px;
    font-weight: 900;

    transform: rotate(-8deg);
}


/* =========================================================
   ZENITH
========================================================= */

.logo-zenith {
    font-size: 62px;
    font-weight: 900;

    transform: skewX(-10deg);
}


/* =========================================================
   SECOND ZENITH
========================================================= */

.logo-zenith-two {
    font-size: 59px;
    font-weight: 900;

    letter-spacing: -8px;
}


/* =========================================================
   BREWFEST
========================================================= */

.logo-brewfest {
    font-size: 65px;
    font-weight: 900;

    transform: rotate(-8deg);
}


/* =========================================================
   SUMMIT
========================================================= */

.logo-summit {
    font-size: 60px;
    font-weight: 900;
}


/* =========================================================
   CLIENT NAME
========================================================= */

.client-name {
    position: relative;

    z-index: 2;

    color: #858585;

    font-family: "DM Sans", sans-serif;

    font-size: 26px;
    font-weight: 500;

    white-space: nowrap;

    transition: color 0.25s ease;
}


/* =========================================================
   HOVER
========================================================= */

.client-item:hover .client-name {
    color: #fff;
}

.client-item:hover .client-logo {
    transform: scale(1.05);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .client-trust {
        padding: 15px 20px 0;
    }

    .client-trust-inner {
        min-height: 470px;

        padding-top: 110px;

        border-radius: 55px;
    }

    .trust-rating {
        margin-bottom: 75px;
    }

    .trust-score {
        font-size: 21px;
    }

    .trust-stars {
        font-size: 22px;
    }

    .trust-clients {
        gap: 14px;
    }

    .clients-text {
        font-size: 21px;
    }

    .avatar {
        width: 40px;
        height: 40px;
    }

    .client-item {
        width: 230px;
        min-width: 230px;

        height: 135px;

        border: none;
    }

    .client-item::after {
        width: 100px;
        height: 135px;

        border-left: 0;

        border-radius: 0 70px 70px 0;
    }

    .client-name {
        font-size: 22px;
    }

    .client-logo {
        transform: scale(.85);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .client-trust {
        padding: 10px 12px 0;
    }

    .client-trust-inner {
        min-height: 390px;

        padding-top: 70px;

        border-radius: 35px;
    }

    .trust-rating {
        margin-bottom: 60px;
    }

    .trust-score {
        gap: 8px;

        font-size: 17px;
    }

    .trust-stars {
        font-size: 18px;

        letter-spacing: 0;
    }

    .trust-clients {
        gap: 10px;

        margin-top: 20px;
    }

    .avatar {
        width: 34px;
        height: 34px;

        border-width: 1.5px;
    }

    .clients-text {
        font-size: 17px;
    }

    .client-item {
        width: 190px;
        min-width: 190px;

        height: 115px;

        border: none;
    }

    .client-item::after {
        width: 80px;
        height: 115px;

        border-left: 0;

        border-radius: 0 60px 60px 0;
    }

    .client-logo {
        height: 45px;
        min-width: 55px;

        margin-bottom: 8px;

        font-size: 45px;
    }

    .client-name {
        font-size: 18px;
    }

    .client-carousel::before,
    .client-carousel::after {
        width: 70px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

    .client-trust-inner {
        min-height: 360px;

        border-radius: 28px;
    }

    .trust-score {
        flex-direction: column;

        gap: 7px;
    }

    .trust-clients {
        flex-direction: column;
    }

    .client-item {
        width: 175px;
        min-width: 175px;

        border: none;
    }

    .client-item::after {
        width: 75px;
        height: 115px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

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

    .client-track {
        animation-play-state: paused;
    }

    .client-logo,
    .client-name {
        transition: none;
    }
}