/* Testimonials — premium glass section */

.testimonials {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 30px;
    background: linear-gradient(165deg, #f8f9fc 0%, #eef2fa 45%, #f8f9fc 100%);
    overflow: visible;
    box-sizing: border-box;
}

.testimonials__blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.testimonials__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: testimonialBlob 14s ease-in-out infinite;
}

.testimonials__blob--1 {
    width: min(480px, 55vw);
    height: min(480px, 55vw);
    top: -12%;
    left: -8%;
    background: rgba(232, 81, 38, 0.22);
}

.testimonials__blob--2 {
    width: min(400px, 45vw);
    height: min(400px, 45vw);
    bottom: -15%;
    right: -6%;
    background: rgba(232, 81, 38, 0.14);
    animation-delay: -5s;
}

.testimonials__blob--3 {
    width: min(280px, 35vw);
    height: min(280px, 35vw);
    top: 40%;
    right: 25%;
    background: rgba(255, 255, 255, 0.9);
    animation-delay: -9s;
}

@keyframes testimonialBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -18px) scale(1.06); }
}

.testimonials__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.testimonials__head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto clamp(20px, 0vw, 0px);
}

.testimonials__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.testimonials__title span {
    color: var(--accent-yellow);
}

.testimonials__subtitle {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Full-width stage — vans on section sides */
.testimonials__stage {
    position: relative;
    width: 100%;
    padding: clamp(28px, 4vw, 52px) clamp(64px, 11vw, 130px);
    box-sizing: border-box;
    overflow: visible;
}

.testimonials__slider {
    position: relative;
    width: 100%;
    overflow: visible;
}

.testimonials__van {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    transform: translate3d(0, -50%, 0);
    -webkit-tap-highlight-color: transparent;
}

.testimonials__van--prev {
    left: clamp(0px, 1vw, 8px);
}

.testimonials__van--next {
    right: clamp(0px, 1vw, 8px);
}

.testimonials__van-motion {
    position: relative;
    display: block;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
}

.testimonials__van-motion::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 58%;
    width: 140%;
    height: 55%;
    transform: translate3d(-50%, -50%, 0);
    background: radial-gradient(
        ellipse at center,
        rgba(232, 81, 38, 0.22) 0%,
        rgba(48, 67, 143, 0.08) 42%,
        transparent 72%
    );
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonials__van img {
    display: block;
    width: clamp(64px, 9vw, 110px);
    height: auto;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    backface-visibility: hidden;
    filter:
        drop-shadow(0 12px 28px rgba(48, 67, 143, 0.16))
        drop-shadow(0 0 24px rgba(232, 81, 38, 0.1));
    transition: filter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonials__van.is-parallax-active .testimonials__van-motion::before {
    opacity: 0.85;
    transform: translate3d(-50%, -50%, 0) scale(1.08);
}

.testimonials__van.is-parallax-active img {
    filter:
        drop-shadow(0 18px 36px rgba(48, 67, 143, 0.22))
        drop-shadow(0 0 42px rgba(232, 81, 38, 0.22))
        drop-shadow(0 4px 12px rgba(255, 255, 255, 0.35));
}

.testimonials__van:hover img {
    filter:
        drop-shadow(0 16px 34px rgba(48, 67, 143, 0.2))
        drop-shadow(0 0 36px rgba(232, 81, 38, 0.28));
}

.testimonials__van.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Legacy arrow class — kept if referenced elsewhere */
.testimonials__arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.testimonials__arrow:hover {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(232, 81, 38, 0.35);
}

.testimonials__arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.testimonials-swiper {
    flex: 1;
    width: 100%;
    min-width: 0;
    overflow: hidden !important;
    padding: 12px 0 16px !important;
    box-sizing: border-box;
}

.testimonials-swiper .swiper-wrapper {
    align-items: stretch !important;
}

.testimonials-swiper .swiper-slide {
    height: auto !important;
    display: flex !important;
    box-sizing: border-box;
    padding: 14px 6px;
}

/* Card */
.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: clamp(22px, 2.5vw, 28px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.04),
        0 20px 50px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition:
        box-shadow 0.55s ease,
        border-color 0.45s ease;
    overflow: hidden;
    --glow-x: 50%;
    --glow-y: 50%;
    transform-style: preserve-3d;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(232, 81, 38, 0.35) 0%,
        rgba(255, 255, 255, 0.2) 40%,
        rgba(232, 81, 38, 0.15) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.45s ease;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    left: var(--glow-x);
    top: var(--glow-y);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(232, 81, 38, 0.18) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonials-swiper:not(.swiper-dragging) .testimonial-card:hover {
    border-color: rgba(232, 81, 38, 0.35);
    box-shadow:
        0 8px 32px rgba(232, 81, 38, 0.12),
        0 28px 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonials-swiper .swiper-slide-active .testimonial-card,
.testimonial-card.is-active-glow {
    border-color: rgba(232, 81, 38, 0.32);
    box-shadow:
        0 12px 40px rgba(232, 81, 38, 0.14),
        0 24px 56px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(232, 81, 38, 0.12);
}

/* Cards stay stable — float reserved for side vans only */
.testimonial-card__float {
    animation: none;
}

.testimonial-card__quote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.testimonial-card__quote-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(232, 81, 38, 0.2), rgba(232, 81, 38, 0.06));
    color: var(--accent-yellow-dark);
    animation: quotePulse 4s ease-in-out infinite;
}

.testimonial-card__quote-icon svg {
    width: 22px;
    height: 22px;
}

@keyframes quotePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.9; }
}

.testimonial-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2d8a4e;
    background: rgba(45, 138, 78, 0.1);
    padding: 5px 10px;
    border-radius: 100px;
}

.testimonial-card__stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
    color: var(--accent-yellow);
}

.testimonial-card__stars svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.testimonial-card__text {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-body);
    margin-bottom: 24px;
}

.testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-card__avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(232, 81, 38, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimonial-card__meta strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.testimonial-card__meta span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Pagination */
.testimonials-pagination {
    position: relative !important;
    margin-top: 8px !important;
    bottom: auto !important;
}

.testimonials-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    transition: all 0.35s ease;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 4px;
    background: var(--accent-yellow);
    box-shadow: 0 0 12px rgba(232, 81, 38, 0.45);
}

.testimonials-pagination .swiper-pagination-bullet-active-main {
    background: var(--accent-yellow);
}

/* Desktop — vans beside slider, no overlap */
@media (min-width: 992px) {
    .testimonials {
        padding: 24px 30px 12px;
    }

    .testimonials__head {
        margin-bottom: 14px;
    }

    .testimonials__stage {
        display: grid;
        grid-template-columns: minmax(72px, auto) minmax(0, 1fr) minmax(72px, auto);
        align-items: center;
        gap: clamp(10px, 1.5vw, 24px);
        padding: 12px 0 4px;
    }

    .testimonials__van {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        z-index: 2;
        justify-self: center;
        align-self: center;
    }

    .testimonials__van--prev {
        grid-column: 1;
        grid-row: 1;
    }

    .testimonials__slider {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        z-index: 3;
    }

    .testimonials__van--next {
        grid-column: 3;
        grid-row: 1;
    }

    .testimonials__van img {
        width: clamp(56px, 5.5vw, 84px);
    }

    .testimonials-swiper {
        padding: 6px 0 6px !important;
    }

    .testimonials-swiper .swiper-slide {
        padding: 12px 5px;
    }

    .testimonial-card {
        padding: 22px 24px;
        border-radius: 24px;
    }

    .testimonial-card__text {
        margin-bottom: 18px;
    }

    .testimonials-pagination {
        margin-top: 2px !important;
    }
}

/* Tablet & mobile */
@media (max-width: 991.98px) {
    .testimonials {
        padding: 16px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
    }

    .testimonials__blob--1 {
        width: 260px;
        height: 260px;
        top: -10%;
        left: -18%;
    }

    .testimonials__blob--2 {
        width: 220px;
        height: 220px;
        bottom: -12%;
        right: -20%;
    }

    .testimonials__blob--3 {
        width: 160px;
        height: 160px;
        right: 10%;
    }

    .testimonials__inner {
        padding: 0;
    }

    .testimonials__head {
        margin-bottom: 22px;
        max-width: 100%;
    }

    .testimonials__label.section-badge {
        margin-bottom: 12px;
        padding: 7px 14px;
        font-size: 0.625rem;
    }

    .testimonials__title {
        font-size: clamp(1.65rem, 6.5vw, 2.1rem);
        margin-bottom: 10px;
    }

    .testimonials__subtitle {
        font-size: 0.875rem;
        line-height: 1.65;
        max-width: 100%;
    }

    .testimonials__stage {
        padding: 8px 0 0;
    }

    .testimonials__van,
    .testimonials__arrow {
        display: none;
    }

    .testimonials-swiper {
        padding: 0 0 24px !important;
    }

    .testimonials-swiper .swiper-slide {
        padding: 14px 6px 4px;
    }

    .testimonial-card {
        min-height: 0;
        padding: 22px 18px;
        border-radius: 20px;
    }

    .testimonial-card__quote {
        margin-bottom: 14px;
    }

    .testimonial-card__quote-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .testimonial-card__quote-icon svg {
        width: 20px;
        height: 20px;
    }

    .testimonial-card__stars {
        margin-bottom: 12px;
    }

    .testimonial-card__stars svg {
        width: 15px;
        height: 15px;
    }

    .testimonial-card__text {
        font-size: 0.875rem;
        line-height: 1.65;
        margin-bottom: 18px;
    }

    .testimonial-card__footer {
        gap: 12px;
        padding-top: 6px;
    }

    .testimonial-card__meta strong {
        font-size: 0.875rem;
    }

    .testimonial-card__meta span {
        font-size: 0.6875rem;
    }

    .testimonials-pagination {
        margin-top: 4px !important;
    }

    .testimonials-pagination .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
    }

    .testimonials-pagination .swiper-pagination-bullet-active {
        width: 24px;
    }
}

@media (max-width: 575.98px) {
    .testimonials {
        padding: 14px max(14px, env(safe-area-inset-right)) 4px max(14px, env(safe-area-inset-left));
    }

    .testimonials__head {
        margin-bottom: 18px;
    }

    .testimonials__title {
        font-size: clamp(1.5rem, 7vw, 1.85rem);
    }

    .testimonials__subtitle {
        font-size: 0.8125rem;
    }

    .testimonials__stage {
        padding: 4px 0 0;
    }

    .testimonials-swiper {
        padding: 0 0 20px !important;
    }

    .testimonials-swiper .swiper-slide {
        padding: 10px 4px 2px;
    }

    .testimonial-card {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .testimonial-card__quote-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .testimonial-card__quote-icon svg {
        width: 18px;
        height: 18px;
    }

    .testimonial-card__text {
        font-size: 0.8125rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .testimonials-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px !important;
    }

    .testimonials-pagination .swiper-pagination-bullet-active {
        width: 22px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .testimonials__stage {
        display: grid;
        grid-template-columns: minmax(56px, auto) minmax(0, 1fr) minmax(56px, auto);
        align-items: center;
        gap: 10px;
        padding: 16px 0 10px;
    }

    .testimonials__van {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        justify-self: center;
    }

    .testimonials__van--prev {
        grid-column: 1;
    }

    .testimonials__slider {
        grid-column: 2;
        min-width: 0;
    }

    .testimonials__van--next {
        grid-column: 3;
    }

    .testimonials__van,
    .testimonials__arrow {
        display: block;
    }

    .testimonials__van img {
        width: clamp(48px, 6vw, 68px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials__blob,
    .testimonial-card__quote-icon {
        animation: none !important;
    }

    .testimonials__van-motion,
    .testimonials__van img {
        transform: none !important;
        will-change: auto;
    }

    .testimonial-card:hover {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    }

    .testimonials-swiper .swiper-slide {
        opacity: 1 !important;
        transform: none !important;
    }
}
