/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonials {
  padding: 6rem 1rem;
  overflow: hidden;
  background: #fff;
}

/* GRID */

.testimonials__grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  align-items: center;
  padding-inline: 3rem;
}

/* --------------------------------
   LEFT / INTRO
-------------------------------- */

.testimonials__pretitle {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-dark-blue);
  font-weight: 600;
}

.testimonials__intro h2 {
  margin: 0.5rem 0 1rem;
}

.testimonials__intro p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.testimonials__nav {
  display: flex;
  gap: 0.5rem;
}

.testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-dark-blue);
  color: #fff;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.testimonials__btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.testimonials__btn:first-child {
  background-color: var(--blue-grey-50);
  color: var(--color-dark-blue);
  border: 1px solid var(--color-dark-blue);
}

/* --------------------------------
   SLIDER (EMBLA VIEWPORT)
-------------------------------- */

.testimonials__slider {
  position: relative;
  overflow: hidden; /* EMBLA viewport */
  user-select: none;
  touch-action: pan-y;
}

/* --------------------------------
   TRACK (EMBLA CONTAINER)
-------------------------------- */

.testimonials__track {
  display: flex;
  will-change: transform;

  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.testimonials__track:hover {
  cursor: grab;
}
.testimonials__track:active {
  cursor: grabbing;
}
/* --------------------------------
   CARD (SLIDE)
-------------------------------- */

.testimonial-card {
  flex: 0 0 auto;
  width: 300px;
  min-width: 300px;

  background: var(--blue-grey-50);
  color: var(--blue-grey-900);

  border: solid 1px #00000020;

  padding: 2rem;
  border-radius: 20px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ODSTĘP MIĘDZY KARTAMI — ZAMIENNIK GAP */
.testimonial-card + .testimonial-card {
  margin-left: 1.5rem;
}

.testimonial-card:nth-child(even) {
  background: var(--color-blue-grey-900);
  color: var(--blue-grey-50);
}

/* ⭐ STARS */

.testimonial-card__stars {
  color: #ff9f43;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-card__stars span {
  opacity: 0.3;
}

.testimonial-card__stars span.active {
  opacity: 1;
}

/* TEXT */
.testimonial-card:nth-child(even) .testimonial-card__text {
  color: var(--blue-grey-50);
}

.testimonial-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.95;

  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* AUTHOR */

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-weight: 600;
}

.testimonial-card .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/*   GOOGLE BUTTON */
.testimonial__nav_box {
  display: flex;
  gap: 15px;
}
.google-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #3c4043;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.google-review-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.google-review-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-review-btn__text {
  white-space: nowrap;
}

/* --------------------------------
   MOBILE
-------------------------------- */

@media (max-width: 768px) {
  .testimonials {
    padding: 4rem 0.5rem;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-inline: 1.5rem;
  }

  .testimonial-card {
    width: 260px;
    min-width: 260px;
  }

  .testimonials__intro {
    text-align: center;
  }

  .testimonials__nav {
    justify-content: center;
  }
  .testimonial__nav_box {
    flex-direction: column-reverse;
    gap: 15px;
  }
  .google-review-btn {
    width: fit-content;
    margin: auto;
  }
}
