/* Modern brand-trust section
   Shared by the Persian and English homepages. */

.brand-trust {
    --bt-navy: #071a35;
    --bt-navy-soft: #0c274c;
    --bt-blue: #2979ff;
    --bt-cyan: #54d6ff;
    --bt-line: rgba(255, 255, 255, 0.14);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 104px 24px 88px;
    background:
        radial-gradient(circle at 13% 25%, rgba(41, 121, 255, 0.2), transparent 27%),
        radial-gradient(circle at 88% 76%, rgba(84, 214, 255, 0.13), transparent 24%),
        linear-gradient(135deg, #06162d 0%, #0a2346 52%, #071a35 100%);
    color: #fff;
}

.brand-trust::before,
.brand-trust::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.brand-trust::before {
    width: 520px;
    height: 520px;
    top: -330px;
    left: -90px;
}

.brand-trust::after {
    width: 360px;
    height: 360px;
    right: -210px;
    bottom: -180px;
}

.brand-trust__inner {
    width: min(100%, 1380px);
    margin: 0 auto;
}

.brand-trust__heading {
    width: min(100%, 780px);
    margin: 0 auto 42px !important;
}

.brand-trust__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: #80ddff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-trust__eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--bt-cyan), var(--bt-blue));
}

.brand-trust .section_main_title h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 3vw, 48px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.brand-trust .section_main_title p {
    width: min(100%, 650px);
    margin: 17px auto 0;
    color: rgba(231, 241, 255, 0.72);
    font-size: 16px;
    line-height: 1.95;
}

.brand-trust__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 880px);
    margin: 0 auto 56px;
    border: 1px solid var(--bt-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
}

.brand-trust__metrics > div {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
}

.brand-trust__metrics > div + div {
    border-inline-start: 1px solid var(--bt-line);
}

.brand-trust__metrics strong {
    color: #fff;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.1;
}

.brand-trust__metrics strong span {
    color: var(--bt-cyan);
    font-size: 18px;
}

.brand-trust__metrics div > span {
    margin-top: 8px;
    color: rgba(231, 241, 255, 0.64);
    font-size: 12px;
    font-weight: 500;
}

.brand-trust #section-quote {
    display: grid;
    grid-template-areas:
        "left story right"
        ". controls .";
    grid-template-columns: 290px minmax(420px, 560px) 290px;
    align-items: center;
    justify-content: center;
    gap: 28px 42px;
    width: 100%;
    overflow: visible;
    text-align: center;
}

.brand-trust #section-quote .container-pe-quote {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 78px);
    justify-content: space-between;
    gap: 30px 38px;
    height: auto;
}

.brand-trust #section-quote .container-pe-quote.left {
    grid-area: left;
}

.brand-trust #section-quote .container-pe-quote.right {
    grid-area: right;
}

.brand-trust #section-quote .container-pe-quote .pp-quote {
    position: relative !important;
    inset: auto !important;
    width: 78px !important;
    height: 78px !important;
    margin: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 13px 34px rgba(0, 0, 0, 0.19);
    cursor: pointer;
    animation: none !important;
    opacity: 0.78;
    outline: none;
    transform: none;
    transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.brand-trust #section-quote .container-pe-quote .pp-quote:nth-child(even) {
    transform: translateY(20px);
}

.brand-trust #section-quote .container-pe-quote .pp-quote:hover,
.brand-trust #section-quote .container-pe-quote .pp-quote:focus-visible {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 17px 38px rgba(0, 0, 0, 0.26), 0 0 0 3px rgba(84, 214, 255, 0.34);
}

.brand-trust #section-quote .container-pe-quote .pp-quote:nth-child(even):hover,
.brand-trust #section-quote .container-pe-quote .pp-quote:nth-child(even):focus-visible {
    transform: translateY(17px);
}

.brand-trust #section-quote .container-pe-quote .pp-quote.active {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 0 3px var(--bt-cyan);
}

.brand-trust #section-quote .container-pe-quote .pp-quote:nth-child(even).active {
    transform: translateY(20px) scale(1.08);
}

.brand-trust #section-quote .container-pe-quote .pp-quote::after {
    display: none;
}

.brand-trust #section-quote .container-pe-quote .pp-quote .img {
    width: 100%;
    height: 100%;
    padding: 8px;
    border-radius: 18px;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 76%;
    filter: saturate(0.88);
}

.brand-trust #section-quote .container-quote {
    grid-area: story;
    position: relative;
    width: 100%;
    height: 310px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.95));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    perspective: none;
}

.brand-trust #section-quote .container-quote::before {
    content: "“";
    position: absolute;
    top: 18px;
    inset-inline-end: 28px;
    z-index: 0;
    color: rgba(41, 121, 255, 0.09);
    font-family: Georgia, serif;
    font-size: 116px;
    font-weight: 700;
    line-height: 1;
}

.brand-trust #section-quote .container-quote::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 46%;
    height: 4px;
    background: linear-gradient(90deg, var(--bt-blue), var(--bt-cyan));
}

.brand-trust #section-quote .container-quote .quote {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 54px 40px;
    box-sizing: border-box;
    cursor: default;
    opacity: 0;
    text-align: center;
    transform: translateY(20px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.brand-trust #section-quote .container-quote .quote.show {
    z-index: 2;
    opacity: 1;
    transform: translateY(0);
}

.brand-trust #section-quote .container-quote .quote.hide-top,
.brand-trust #section-quote .container-quote .quote.hide-bottom {
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
}

.brand-trust #section-quote .container-quote .container-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 22px !important;
    padding: 0 !important;
    text-align: start;
}

.brand-trust #section-quote .container-quote .container-info .pp {
    position: static;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid #e2eaf6;
    border-radius: 14px;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 76%;
    box-shadow: 0 8px 20px rgba(22, 57, 102, 0.1);
    transform: none;
}

.brand-trust #section-quote .container-quote .container-info .name {
    color: #0a2346;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
}

.brand-trust #section-quote .container-quote .quote p,
.brand-trust #section-quote .container-quote .middle-quote {
    max-width: 450px;
    margin: 0;
    color: #50627a;
    font-size: 15px;
    line-height: 2;
}

.brand-trust__controls {
    grid-area: controls;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.brand-trust__arrow {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.brand-trust__arrow:hover,
.brand-trust__arrow:focus-visible {
    border-color: var(--bt-cyan);
    background: rgba(84, 214, 255, 0.16);
    color: #fff;
    outline: none;
    transform: translateY(-2px);
}

.brand-trust__progress {
    width: 104px;
    height: 3px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.16);
}

.brand-trust__progress span {
    display: block;
    width: 8.333%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--bt-blue), var(--bt-cyan));
    transition: width 380ms ease;
}

.brand-trust__directory {
    position: relative;
    margin-top: 74px;
    padding-top: 58px;
    border-top: 1px solid var(--bt-line);
}

.brand-trust__directory::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    width: 130px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, var(--bt-cyan), transparent);
    transform: translateX(-50%);
}

.brand-trust__directory-heading {
    margin-bottom: 30px;
    text-align: center;
}

.brand-trust__directory-heading span {
    display: block;
    margin-bottom: 8px;
    color: #80ddff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-trust__directory-heading h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 800;
    line-height: 1.5;
}

.brand-trust__client-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brand-trust__client-grid li {
    position: relative;
    display: grid;
    min-width: 0;
    height: 108px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 255, 0.92));
    box-shadow: 0 14px 28px rgba(0, 8, 25, 0.18), inset 0 1px #fff;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.brand-trust__client-grid li::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(84, 214, 255, 0.08), transparent 48%);
    pointer-events: none;
}

.brand-trust__client-grid li:hover {
    border-color: rgba(84, 214, 255, 0.58);
    box-shadow: 0 18px 36px rgba(0, 8, 25, 0.27), 0 0 0 1px rgba(84, 214, 255, 0.12);
    transform: translateY(-4px);
}

.brand-trust__client-grid img {
    position: relative;
    z-index: 1;
    display: block;
    width: 88%;
    height: 78%;
    object-fit: contain;
    filter: saturate(0.95) contrast(1.02);
}

@media (max-width: 1199px) {
    .brand-trust #section-quote {
        grid-template-columns: 210px minmax(400px, 530px) 210px;
        gap-inline: 28px;
    }

    .brand-trust #section-quote .container-pe-quote {
        grid-template-columns: repeat(2, 66px);
        gap: 28px;
    }

    .brand-trust #section-quote .container-pe-quote .pp-quote {
        width: 66px !important;
        height: 66px !important;
        border-radius: 16px;
    }

    .brand-trust__client-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .brand-trust {
        padding: 82px 20px 72px;
    }

    .brand-trust #section-quote {
        grid-template-areas:
            "story"
            "left"
            "right"
            "controls";
        grid-template-columns: minmax(0, 660px);
        gap: 28px;
    }

    .brand-trust #section-quote .container-pe-quote {
        grid-template-columns: repeat(6, 62px);
        justify-content: center;
        gap: 18px;
    }

    .brand-trust #section-quote .container-pe-quote .pp-quote {
        width: 62px !important;
        height: 62px !important;
    }

    .brand-trust #section-quote .container-pe-quote .pp-quote:nth-child(even),
    .brand-trust #section-quote .container-pe-quote .pp-quote:nth-child(even).active {
        transform: none;
    }

    .brand-trust #section-quote .container-pe-quote .pp-quote.active {
        transform: scale(1.06);
    }

    .brand-trust__directory {
        margin-top: 58px;
        padding-top: 48px;
    }

    .brand-trust__client-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .brand-trust {
        padding: 68px 16px 60px;
    }

    .brand-trust__heading {
        margin-bottom: 30px !important;
    }

    .brand-trust .section_main_title h2 {
        font-size: 29px;
    }

    .brand-trust .section_main_title p {
        font-size: 14px;
        line-height: 1.85;
    }

    .brand-trust__metrics {
        margin-bottom: 38px;
        border-radius: 15px;
    }

    .brand-trust__metrics > div {
        min-height: 78px;
        padding: 12px 6px;
    }

    .brand-trust__metrics strong {
        font-size: 19px;
    }

    .brand-trust__metrics div > span {
        font-size: 10px;
    }

    .brand-trust #section-quote .container-quote {
        height: 340px;
        border-radius: 22px;
    }

    .brand-trust #section-quote .container-quote .quote {
        padding: 42px 24px 34px;
    }

    .brand-trust #section-quote .container-quote .container-info {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 17px !important;
        text-align: center;
    }

    .brand-trust #section-quote .container-quote .container-info .name {
        font-size: 17px;
    }

    .brand-trust #section-quote .container-quote .quote p,
    .brand-trust #section-quote .container-quote .middle-quote {
        font-size: 13px;
        line-height: 1.85;
    }

    .brand-trust #section-quote .container-pe-quote {
        grid-template-columns: repeat(3, 58px);
        gap: 16px 28px;
    }

    .brand-trust #section-quote .container-pe-quote .pp-quote {
        width: 58px !important;
        height: 58px !important;
        border-radius: 14px;
    }

    .brand-trust__directory {
        margin-top: 46px;
        padding-top: 40px;
    }

    .brand-trust__directory-heading {
        margin-bottom: 22px;
    }

    .brand-trust__directory-heading h3 {
        font-size: 21px;
    }

    .brand-trust__client-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .brand-trust__client-grid li {
        height: 84px;
        border-radius: 14px;
    }

    .brand-trust__client-grid img {
        width: 94%;
        height: 82%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-trust *,
    .brand-trust *::before,
    .brand-trust *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
