/* =========================================================
   bwa-testimonials — Testimonials Section
   BEM scoped, no global resets
   ========================================================= */

/* --- Animations (data-anim standard BWA) --- */

.bwa-testimonials [data-anim] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bwa-testimonials [data-anim="up"] {
    transform: translate3d(0, 24px, 0);
}

.bwa-testimonials [data-anim="left"] {
    transform: translate3d(-32px, 0, 0);
}

.bwa-testimonials [data-anim="right"] {
    transform: translate3d(32px, 0, 0);
}

/* Stagger delays for cards */
.bwa-testimonials__card--delay-1 {
    animation-delay: 0s;
}

.bwa-testimonials__card--delay-2 {
    animation-delay: 0.1s;
}

.bwa-testimonials__card--delay-3 {
    animation-delay: 0.2s;
}

.bwa-testimonials.is-inview [data-anim] {
    opacity: 1;
    transform: none;
}

/* --- Root --- */

.bwa-testimonials {
    position: relative;
    padding: 5rem 0;
    background-color: hsl(220 25% 15%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Background overlay */
.bwa-testimonials__bg-overlay {
    position: absolute;
    inset: 0;
    background: hsl(220 25% 15% / 0.85);
    pointer-events: none;
}

/* --- Container --- */

.bwa-testimonials__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 85rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Header --- */

.bwa-testimonials__header {
    text-align: center;
    color: #fff;
    margin-bottom: 4rem;
}

.bwa-testimonials__label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: hsl(15 90% 55%);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bwa-testimonials__title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .bwa-testimonials__title {
        font-size: 3rem;
    }
}

.bwa-testimonials__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Rating --- */

.bwa-testimonials__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.bwa-testimonials__stars {
    display: flex;
    gap: 0.125rem;
    align-items: center;
    color: hsl(15 90% 55%);
}

.bwa-testimonials__star {
    color: hsl(15 90% 55%);
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.bwa-testimonials__rating-score {
    font-weight: 700;
    color: #fff;
    font-size: 1.125rem;
}

.bwa-testimonials__rating-source {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* --- Grid Layout --- */

.bwa-testimonials__grid {
    margin-bottom: 3rem;
}

.bwa-testimonials__grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    .bwa-testimonials__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        overflow: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
        padding-inline: 0;
        margin-inline: 0;
    }
}

@media (min-width: 1024px) {
    .bwa-testimonials__grid .swiper-wrapper {
        display: contents;
    }
    .swiper-slide {
        width: auto;
    }
}

/* --- Card --- */

.bwa-testimonials__card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 20px -2px hsla(220, 25%, 12%, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swiper-slide {
    height: auto;
    width: calc(100% - 3rem);
}

@media (min-width: 1024px) {
    .bwa-testimonials__card {
        min-width: auto;
        flex-shrink: 1;
    }
}

@media (min-width: 1024px) {
    .bwa-testimonials.is-inview .bwa-testimonials__card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px -4px hsla(220, 25%, 12%, 0.14);
    }
}


/* --- Quote Icon --- */

.bwa-testimonials__quote-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, hsl(5 85% 50%) 0%, hsl(30 95% 55%) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 1rem;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0.4rem;
}

/* --- Card Stars --- */

.bwa-testimonials__card .bwa-testimonials__stars {
    margin-bottom: 1rem;
}

/* --- Quote Text --- */

.bwa-testimonials__text {
    font-size: 1.125rem;
    line-height: 1.625;
    color: hsl(215 35% 15%);
    margin: 0 0 1.5rem 0;
    font-weight: 400;
}

/* --- Author Footer --- */

.bwa-testimonials__author {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin: 0;
}

.bwa-testimonials__author-name {
    font-weight: 700;
    color: hsl(215 35% 15%);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.bwa-testimonials__author-project {
    color: hsl(215 20% 45%);
    font-size: 0.875rem;
    margin: 0;
}

/* --- Google Link Wrapper --- */

.bwa-testimonials__google-link-wrap {
    text-align: center;
    margin-top: 2rem;
}

.bwa-testimonials__google-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(15 90% 55%);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: text-decoration 0.3s ease;
}

.bwa-testimonials__google-link:hover {
    text-decoration: underline;
}

.bwa-testimonials__google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


@media (min-width: 1024px) and (max-width: 1439px) {
    .bwa-testimonials__container {
        padding-inline: 2rem;
    }
}