/**
 * TESTIMONIALS COMPONENT
 * Selectors genest onder .ba_testimonials voor hogere specificiteit (vs Elementor)
 */

/* Overridable design tokens */
.ba_testimonials {
  --ba-font-heading: "Barlow Condensed", sans-serif;
  --ba-font-body: "Inter", sans-serif;
  --ba-color-heading: #fff;
  --ba-color-body: #fff;
  --ba-body-opacity: 0.75;
  --ba-card-bg: #fff;
  --ba-card-radius: 4px;
  --ba-card-color: #221e1d;
  --ba-cta-bg: #fff;
  --ba-cta-color: #000;
  --ba-cta-hover-bg: #200e0e;
  --ba-cta-hover-color: #fff;
  --ba-gradient-color: #3A1B1F;
  --ba-avatar-radius: 4px;
  --ba-check-bg: #5a5555;
}

/* Main layout: left col + right grid */
.ba_testimonials {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: var(--ba-font-body);
}

/* Left column */
.ba_testimonials .ba_testimonials_left {
  flex: 0 0 auto;
  width: 100%;
  max-width: 440px;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  padding: 80px 0 32px;
}

.ba_testimonials .ba_testimonials_heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ba_testimonials .ba_testimonials_title {
  font-family: var(--ba-font-heading);
  font-weight: 700;
  font-size: 56px;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 2.9px;
  color: var(--ba-color-heading);
  margin: 0;
  padding: 0;
}

.ba_testimonials .ba_testimonials_subtitle {
  font-family: var(--ba-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ba-color-body);
  opacity: var(--ba-body-opacity);
  margin: 0;
  padding: 0;
}

/* Stars row */
.ba_testimonials .ba_testimonials_trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.ba_testimonials .ba_testimonials_stars {
  height: 20px;
  display: block;
}

/* Eigen code (bijv. review-widget) in plaats van de knop */
.ba_testimonials .ba_testimonials_cta_embed {
  margin-top: auto;
  width: 100%;
  max-width: 360px;
  align-self: flex-start;
}

/* CTA button */
.ba_testimonials .ba_testimonials_cta {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 20px;
  background: var(--ba-cta-bg);
  border-radius: var(--ba-card-radius);
  font-family: var(--ba-font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--ba-cta-color);
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
  transition-duration: 300ms;
}
.ba_testimonials .ba_testimonials_cta:hover {
  background: var(--ba-cta-hover-bg);
  color: var(--ba-cta-hover-color);
  text-decoration: none;
}

/* Review cards grid — twee kolommen naast elkaar */
.ba_testimonials .ba_testimonials_grid {
  flex: 1;
  display: flex;
  gap: 8px;
  max-height: 540px;
  max-width: 680px;
  overflow: hidden;
  position: relative;
}

.ba_testimonials .ba_testimonials_grid:before,
.ba_testimonials .ba_testimonials_grid:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(0deg, rgba(58, 27, 31, 0) 0%, var(--ba-gradient-color) 100%);
  z-index: 2;
}

/* Kolom (scrollt via GSAP) */
.ba_testimonials .ba_testimonials_col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  will-change: transform;
}

/* Individual card */
.ba_testimonials .ba_testimonial_card {
  background: var(--ba-card-bg);
  border-radius: var(--ba-card-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card header: avatar + info */
.ba_testimonials .ba_testimonial_header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ba_testimonials .ba_testimonial_avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--ba-avatar-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ba_testimonials .ba_testimonial_avatar span {
  font-family: var(--ba-font-heading);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.83px;
  color: var(--ba-card-color);
  line-height: 20px;
}

.ba_testimonials .ba_testimonial_info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ba_testimonials .ba_testimonial_name {
  font-family: var(--ba-font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 1.04px;
  color: var(--ba-card-color);
}

.ba_testimonials .ba_testimonial_verified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ba-font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--ba-card-color);
  opacity: 0.7;
}

.ba_testimonials .ba_testimonial_check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--ba-check-bg);
  border-radius: 3px;
  flex-shrink: 0;
}

/* Stars in card */
.ba_testimonials .ba_testimonial_rating {
  height: 20px;
  display: block;
  max-width: min-content;
}

/* Review title */
.ba_testimonials .ba_testimonial_card h4.ba_testimonial_title {
  font-family: var(--ba-font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 1.25px;
  color: var(--ba-card-color);
  margin: 0;
  padding: 0;
}

/* Review text */
.ba_testimonials .ba_testimonial_card p.ba_testimonial_text {
  font-family: var(--ba-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ba-card-color);
  opacity: 0.7;
  margin: 0;
  padding: 0;
}

/* Responsive — tablet & mobiel: horizontaal scrollen */
@media (max-width: 1024px) {
  .ba_testimonials {
    flex-direction: column;
    padding: 40px 0;
    gap: 32px;
    overflow: hidden;
  }
  .ba_testimonials .ba_testimonials_left {
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 0 24px;
    gap: 24px;
    align-items: center;
  }
  .ba_testimonials .ba_testimonials_cta,
  .ba_testimonials .ba_testimonials_cta_embed {
    margin-inline: auto;
  }
  .ba_testimonials .ba_testimonials_title {
    font-size: 40px;
    text-align: center;
    padding: 0 24px;
  }
  .ba_testimonials .ba_testimonials_subtitle {
    text-align: center;
  }
  .ba_testimonials .ba_testimonials_grid {
    max-height: none;
    max-width: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
  }
  .ba_testimonials .ba_testimonials_grid:before,
  .ba_testimonials .ba_testimonials_grid:after {
    display: none;
  }
  .ba_testimonials .ba_testimonials_col {
    flex-direction: row;
    gap: 8px;
    width: max-content;
  }
  .ba_testimonials .ba_testimonial_card {
    width: 300px;
    flex-shrink: 0;
  }
  .ba_testimonials .ba_testimonials_trust {
    margin: 0;
  }
  .ba_testimonials .ba_testimonials_cta {
    height: 48px;
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .ba_testimonials .ba_testimonials_title {
    font-size: 36px;
    letter-spacing: 1.86px;
  }
  .ba_testimonials .ba_testimonial_card {
    width: 260px;
  }
}
