/* =========================================
   BERA SOFTWARE — CLIENT TRUST
========================================= */

.bs-client-trust {
    --trust-dark: #111719;
    --trust-text: #182025;
    --trust-muted: #687174;
    --trust-gold: #e5a900;
    --trust-yellow: #f6c329;
    --trust-cream: #fbf7ed;
    --trust-white: #ffffff;
    --trust-line: rgba(24, 32, 37, 0.1);

    position: relative;
    isolation: isolate;

    padding: 85px 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 76% 45%,
            rgba(246, 195, 41, 0.15),
            transparent 28%
        ),
        linear-gradient(
            110deg,
            #ffffff 0%,
            #ffffff 38%,
            #fbf7ed 38%,
            #fffaf0 100%
        );

    color: var(--trust-text);
}


/* Decorative background */

.bs-client-trust-decoration {
    position: absolute;
    inset: 0;
    z-index: -1;

    overflow: hidden;
    pointer-events: none;
}

.bs-client-trust-decoration::before {
    content: "";

    position: absolute;
    top: -260px;
    left: -240px;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(229, 169, 0, 0.13);
    border-radius: 50%;
}

.bs-client-trust-decoration span {
    position: absolute;

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: var(--trust-gold);
}

.bs-client-trust-decoration span:first-child {
    top: 20%;
    left: 8%;
}

.bs-client-trust-decoration span:last-child {
    right: 7%;
    bottom: 15%;

    width: 4px;
    height: 4px;

    opacity: 0.55;
}


/* Main layout */

.bs-client-trust-container {
    width: min(calc(100% - 70px), 1380px);
    min-height: 520px;
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(360px, 0.85fr)
        minmax(520px, 1.15fr);

    gap: clamp(60px, 9vw, 145px);
    align-items: center;
}


/* Left content */

.bs-client-trust-content {
    position: relative;
    z-index: 3;

    max-width: 610px;
}

.bs-client-trust-kicker {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 25px;

    color: #6a665901;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2em;
}

.bs-client-trust-kicker span {
    width: 34px;
    height: 2px;

    background: var(--trust-gold);
}

.bs-client-trust-content h2 {
    margin: 0;

    color: var(--trust-dark);

    font-size: clamp(52px, 5.1vw, 79px);
    font-weight: 600;
    line-height: 0.97;
    letter-spacing: -0.06em;
}

.bs-client-trust-content h2 em {
    display: block;

    color: var(--trust-gold);

    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.bs-client-trust-content > p {
    max-width: 505px;
    margin: 29px 0 0;

    color: var(--trust-muted);

    font-size: 16px;
    line-height: 1.75;
}


/* Business proof */

.bs-client-trust-proof {
    margin-top: 37px;

    display: flex;
    align-items: center;
    gap: 17px;
}

.bs-client-trust-proof strong {
    color: var(--trust-dark);

    font-size: 36px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.05em;
}

.bs-client-trust-proof span {
    padding-left: 17px;

    border-left: 1px solid rgba(24, 32, 37, 0.17);

    color: #777b78;

    font-size: 10px;
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}


/* =========================================
   VERTICAL LOGO STAGE
========================================= */

.bs-client-logo-stage {
    position: relative;

    height: 520px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;

    padding: 0 17px;

    overflow: hidden;

    border: 1px solid rgba(229, 169, 0, 0.16);
    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.88),
            rgba(255, 249, 231, 0.88)
        );

    box-shadow:
        0 35px 80px rgba(79, 62, 15, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.bs-client-logo-stage::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 72%;
    height: 165px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: rgba(246, 195, 41, 0.13);
    filter: blur(58px);

    pointer-events: none;
}

.bs-client-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;

    width: 65%;
    height: 1px;

    transform: translate(-50%, -50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(229, 169, 0, 0.45),
            transparent
        );

    pointer-events: none;
}


/* Logo columns */

.bs-client-logo-column {
    position: relative;
    z-index: 1;

    overflow: hidden;
}

.bs-client-logo-column:first-of-type {
    margin-top: -46px;
}

.bs-client-logo-column:nth-of-type(2) {
    margin-bottom: -46px;
}


/* Moving tracks */

.bs-client-logo-track {
    display: flex;
    flex-direction: column;

    width: 100%;

    will-change: transform;
}

.bs-client-logo-track[data-logo-direction="up"] {
    animation:
        bsClientLogosUp 46s linear infinite;
}

.bs-client-logo-track[data-logo-direction="down"] {
    animation:
        bsClientLogosDown 49s linear infinite;
}

.bs-client-logo-group {
    display: flex;
    flex-direction: column;
    gap: 13px;

    padding-bottom: 13px;
}


/* Individual logo card */


.bs-client-logo-group figure {
    --bs-logo-opacity: 1;
    --bs-logo-scale: 1;
    --bs-logo-blur: 0px;

    position: relative;

    flex: 0 0 auto;

    width: 100%;
    height: 105px;
    margin: 0;

    display: grid;
    place-items: center;

    overflow: hidden;

    border: 1px solid rgba(229, 169, 0, 0.1);
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.48);

    opacity: var(--bs-logo-opacity);

    transform: scale(var(--bs-logo-scale));

    box-shadow:
        0 8px 22px rgba(66, 51, 11, 0.025);

    transition:
        opacity 0.18s linear,
        transform 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.bs-client-logo-group figure::after {
    content: "";

    position: absolute;
    right: 18%;
    bottom: 0;
    left: 18%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--trust-yellow),
            transparent
        );

    opacity: 0;

    transition: opacity 0.3s ease;
}

.bs-client-logo-group img {
    display: block;

    width: 82%;
    height: 72%;

    object-fit: contain;
    object-position: center;

    opacity: 0.62;

    filter:
        grayscale(100%)
        blur(var(--bs-logo-blur));

    transition:
        filter 0.35s ease,
        opacity 0.35s ease,
        transform 0.35s ease;
}


/* Pause animation while exploring logos */

.bs-client-logo-stage:hover .bs-client-logo-track {
    animation-play-state: paused;
}


/* Logo hover */

.bs-client-logo-group figure:hover {
    z-index: 5;

    opacity: 1;

    transform: scale(1.035);

    border-color: rgba(229, 169, 0, 0.42);
    background: rgba(255, 255, 255, 0.92);

    box-shadow:
        0 16px 36px rgba(66, 51, 11, 0.1);
}

.bs-client-logo-group figure:hover img {
    opacity: 1;

    filter:
        grayscale(0%)
        blur(0);

    transform: scale(1.025);
}


/* Top and bottom fading layers */

.bs-client-stage-fade {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 4;

    height: 105px;

    pointer-events: none;
}

.bs-client-stage-fade-top {
    top: 0;

    background:
        linear-gradient(
            to bottom,
            #fffaf0 4%,
            rgba(255, 250, 240, 0.82) 34%,
            rgba(255, 250, 240, 0) 100%
        );
}

.bs-client-stage-fade-bottom {
    bottom: 0;

    background:
        linear-gradient(
            to top,
            #fffaf0 4%,
            rgba(255, 250, 240, 0.82) 34%,
            rgba(255, 250, 240, 0) 100%
        );
}


/* Seamless vertical animations */

@keyframes bsClientLogosUp {
    from {
        transform: translateY(0);
    }

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

@keyframes bsClientLogosDown {
    from {
        transform: translateY(-50%);
    }

    to {
        transform: translateY(0);
    }
}


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

@media (max-width: 1000px) {
    .bs-client-trust {
        padding: 70px 0;
    }

    .bs-client-trust-container {
        grid-template-columns:
            minmax(300px, 0.8fr)
            minmax(420px, 1.2fr);

        gap: 48px;
    }

    .bs-client-trust-content h2 {
        font-size: clamp(46px, 5.5vw, 65px);
    }

    .bs-client-logo-stage {
        height: 480px;
    }

    .bs-client-logo-group figure {
        height: 98px;
    }
}


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

@media (max-width: 767px) {
    .bs-client-trust {
        padding: 62px 0 55px;

        background:
            radial-gradient(
                circle at 50% 72%,
                rgba(246, 195, 41, 0.15),
                transparent 34%
            ),
            linear-gradient(
                180deg,
                #ffffff 0%,
                #ffffff 40%,
                #fbf7ed 40%,
                #fffaf0 100%
            );
    }

    .bs-client-trust-container {
        width: calc(100% - 30px);
        min-height: auto;

        grid-template-columns: 1fr;
        gap: 42px;
    }

    .bs-client-trust-content {
        max-width: 580px;
    }

    .bs-client-trust-kicker {
        margin-bottom: 20px;
    }

    .bs-client-trust-content h2 {
        font-size: clamp(43px, 12vw, 60px);
        line-height: 1;
    }

    .bs-client-trust-content > p {
        margin-top: 22px;

        font-size: 15px;
        line-height: 1.7;
    }

    .bs-client-trust-proof {
        margin-top: 27px;
    }

    .bs-client-logo-stage {
        width: 100%;
        height: 390px;

        gap: 10px;

        padding: 0 10px;

        border-radius: 9px;
    }

    .bs-client-logo-group {
        gap: 10px;

        padding-bottom: 10px;
    }

    .bs-client-logo-group figure {
        height: 82px;

        border-radius: 5px;
    }

    .bs-client-logo-group img {
        width: 88%;
        height: 76%;
    }

    .bs-client-stage-fade {
        height: 78px;
    }
}


/* Very small mobile */

@media (max-width: 390px) {
    .bs-client-trust-container {
        width: calc(100% - 22px);
    }

    .bs-client-trust-content h2 {
        font-size: 41px;
    }

    .bs-client-logo-stage {
        height: 365px;
    }

    .bs-client-logo-group figure {
        height: 77px;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .bs-client-logo-track {
        animation: none !important;
    }

    .bs-client-logo-column {
        overflow-y: auto;
        scrollbar-width: none;
    }

    .bs-client-logo-column::-webkit-scrollbar {
        display: none;
    }

    .bs-client-logo-group figure {
        opacity: 1 !important;
        transform: none !important;
    }

    .bs-client-logo-group img {
        filter: grayscale(100%);
    }
}
/* Remove middle yellow line */
.bs-client-logo-glow {
    display: none !important;
}

/* Remove yellow circle and decorative dots */
.bs-client-trust-decoration {
    display: none !important;
}