/* ----- Navbar: sticky so it stays on scroll ----- */
.page-testimonials .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(40, 38, 67, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.page-testimonials .navbar .menu li,
.page-testimonials .navbar .menu li a {
    color: #fff;
}

.page-testimonials .navbar .menu li a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.page-testimonials .navbar .menu li a::after {
    background: #fff;
}

/* ----- Nav: selected "Testimonials" link ----- */
.page-testimonials .menu .nav-active {
    color: #fff;
}

.page-testimonials .menu .nav-active::after {
    width: 100%;
    background: #fff;
}

.page-testimonials .navbar .cta {
    background: #fff;
    color: var(--color-dark);
}

/* ----- Testimonials intro (no hero, same as about) ----- */
.testimonials-intro {
    background: #fff;
    border-left: 1px solid rgba(40, 38, 67, 0.12);
    border-right: 1px solid rgba(40, 38, 67, 0.12);
}

.testimonials-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-padding-y) var(--section-padding-x);
    border-left: 1px solid rgba(40, 38, 67, 0.12);
    border-right: 1px solid rgba(40, 38, 67, 0.12);
}

.testimonials-intro-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 12px 0;
}

.testimonials-intro-desc {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin: 0;
    max-width: 640px;
}

/* ----- Testimonials main section ----- */
/* . {
    background: #fff;
    border-top: 1px solid rgba(40, 38, 67, 0.12);
    border-left: 1px solid rgba(40, 38, 67, 0.12);
    border-right: 1px solid rgba(40, 38, 67, 0.12);
} */

.testimonials-page {
    background: #fff;
    border-top: 1px solid rgba(40, 38, 67, 0.12);
    border-left: 1px solid rgba(40, 38, 67, 0.12);
    border-right: 1px solid rgba(40, 38, 67, 0.12);
}

.testimonials-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-padding-y) var(--section-padding-x);
    border-left: 1px solid rgba(40, 38, 67, 0.12);
    border-right: 1px solid rgba(40, 38, 67, 0.12);
}

.testimonials-page-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.testimonials-page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    letter-spacing: 0.01em;
}

.testimonials-page-desc {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin: 0;
    max-width: 680px;
}

.customer-testimonials {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

/* Team section: slider left (same width as customer slider), description right */
.customer-testimonials--team {
    margin-top: 40px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
}

.customer-testimonials--team .customer-slider {
    grid-column: 1;
}

.customer-testimonials--team .customer-content {
    grid-column: 2;
}


.customer-title {
    font-size: 36px;
    line-height: var(--line-height-tight);
    letter-spacing: 0.01em;
    color: var(--color-dark);
    margin: 0 0 22px;
}

.customer-title-team {
    font-size: 36px;
    line-height: var(--line-height-tight);
    letter-spacing: 0.01em;
    color: var(--color-dark);
    margin: 0 0 22px;
    text-align: right;
}

.customer-desc {
    font-size: 15px;
    line-height: var(--line-height-loose);
    color: #282643;
    margin: 0;
    max-width: 430px;
}

.customer-desc-team {
    font-size: 15px;
    line-height: var(--line-height-loose);
    color: #282643;
    margin: 0;
    /* max-width: 430px; */
    text-align: right;
}

@media (max-width: 768px) {
    .customer-testimonials {
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .customer-testimonials--team {
        flex-direction: column-reverse;
        /* Put content/title on top */
    }

    .customer-title-team,
    .customer-desc-team {
        text-align: left;
    }

    .customer-slider {
        width: 100vw;
        margin-left: -16px;
        /* Offset parent padding */
        margin-right: -16px;
    }

    .customer-track {
        padding-left: 16px;
    }
}

.customer-slider {
    overflow: hidden;
}

.customer-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: reviewLoop 18s linear infinite;
    will-change: transform;
}

.customer-slider:hover .customer-track {
    animation-play-state: paused;
}

.customer-slider:hover .customer-card {
    animation-play-state: paused;
}

.customer-card {
    width: 352px;
    min-height: 52px;
    border-radius: 0;
    padding: 38px 38px 32px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.customer-card--sand {
    background: #f2e1ca;
    color: #fff;
}

.customer-card--rust {
    background: #e99d75;
    color: #fff;
}

.customer-card--sage {
    background: #baa9b8;
    color: #fff;
}

.customer-card--purple {
    background: #776482;
    color: #fff;
}

.customer-card--orange {
    background: #e99d75;
    color: #fff;
}

.customer-card--cream {
    background: #f2e1ca;
    color: #fff;
}

.customer-quote {
    font-size: 62px;
    line-height: 1;
    font-weight: 700;
    color: rgba(40, 38, 67, 0.28);
    margin-bottom: 16px;
}

.customer-text {
    font-size: 14px;
    line-height: var(--line-height-snug);
    font-weight: 400;
    margin: 0;
    max-width: 95%;
}

.customer-meta {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.customer-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: var(--line-height-tight);
}

.customer-role {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    opacity: 0.94;
}

.customer-avatar {
    width: 86px;
    height: 86px;
    /* border-radius: 99px; */
    object-fit: cover;
    /* border: 2px solid rgba(242, 225, 202, 0.92); */
}

.customer-card--sand .customer-text,
.customer-card--sand .customer-name,
.customer-card--sand .customer-role,
.customer-card--cream .customer-text,
.customer-card--cream .customer-name,
.customer-card--cream .customer-role {
    color: #282643;
}

.customer-card--sand .customer-quote,
.customer-card--cream .customer-quote {
    color: rgba(40, 38, 67, 0.3);
}

.customer-card--rust .customer-quote,
.customer-card--orange .customer-quote,
.customer-card--purple .customer-quote,
.customer-card--sage .customer-quote {
    color: rgba(255, 255, 255, 0.45);
}

@keyframes reviewLoop {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(var(--loop-distance, -1200px));
    }
}

@media (max-width: 900px) {
    .page-no-hero .testimonials-intro {
        padding-top: 88px;
    }

    .testimonials-intro-inner {
        padding: 28px 20px 32px;
    }

    .testimonials-intro-title {
        font-size: 30px;
    }

    .testimonials-intro-desc {
        font-size: 17px;
    }

    .testimonials-page-inner {
        padding: 56px 20px 72px;
    }

    .testimonials-page-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .page-no-hero .testimonials-intro {
        padding-top: 80px;
    }

    .testimonials-intro-inner {
        padding: 24px 16px 28px;
    }

    .testimonials-intro-title {
        font-size: 26px;
    }

    .testimonials-intro-desc {
        font-size: 16px;
    }

    .testimonials-page-inner {
        padding: 48px 16px 56px;
    }

    .testimonials-page-title {
        font-size: 26px;
        margin-bottom: 4px;
    }

    .testimonials-page-desc {
        font-size: 15px;
    }

    .customer-card {
        width: 300px;
        min-height: 380px;
        padding: 24px 22px 22px;
        border-radius: 0;
    }

    .customer-text {
        font-size: 14px;
    }

    .customer-name {
        font-size: 17px;
    }

    .customer-role {
        font-size: 13px;
    }

    .customer-avatar {
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 600px) {
    .page-no-hero .testimonials-intro {
        padding-top: 72px;
    }

    .testimonials-intro-inner {
        padding: 20px 16px 24px;
    }

    .testimonials-intro-title {
        font-size: 24px;
    }

    .testimonials-intro-desc {
        font-size: 15px;
    }

    .testimonials-page-inner {
        padding: 40px 16px 48px;
    }

    .testimonials-page-title {
        font-size: 22px;
    }

    .customer-card {
        width: 270px;
        min-height: 340px;
    }

    .customer-text {
        font-size: 13.5px;
    }

    .customer-name {
        font-size: 16px;
    }

    .customer-role {
        font-size: 12px;
    }
}

/* Footer & Global UI Overrides for Testimonials Page */
.page-testimonials .footer {
    background: #f5f5f7;
    border-top: 1px solid rgba(40, 38, 67, 0.12);
}

.page-testimonials .footer-inner {
    padding: 44px 24px 24px;
}

.page-testimonials .footer-heading {
    color: #282643;
}

.page-testimonials .footer-link {
    color: #5f6777;
}

.page-testimonials .footer-link:hover {
    color: #282643;
}

.page-testimonials .footer-contact-text,
.page-testimonials .footer-brand-text {
    color: #5f6777;
}

.page-testimonials .footer-cta-btn {
    background: #282643;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
}

.page-testimonials .nav-toggle-bar {
    background: #ffffff;
}

.page-testimonials .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .customer-track {
        animation: none;
    }

    .customer-slider {
        overflow-x: auto;
    }
}