/* ── Reviews page ── */

/* ─── Hero ─────────────────────────────────────── */
.reviews-hero {
  margin-top: 40px;
  margin-bottom: 96px;
  padding: 0 var(--padding-x);
  display: flex;
  gap: 24px;
}

.reviews-hero__content {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reviews-hero__content h2 {
  margin: 0;
}

.reviews-hero__swiper-wrap {
  width: var(--cols8-width);
  flex-shrink: 0;
  aspect-ratio: 44 / 29;
}

.reviews-hero__swiper {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.reviews-hero__slide {
  position: relative;
  display: flex;
  gap: 24px;
}

.reviews-hero__pair-item {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 32px;
}

.reviews-hero__pair-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reviews-hero__pair-item .card-badge {
  position: absolute;
}

.reviews-hero__pair-item.badge-before .card-badge {
  bottom: 24px;
  left: 24px;
}

.reviews-hero__pair-item.badge-after .card-badge {
  bottom: 24px;
  right: 24px;
}

.reviews-hero__swiper .swiper-button-prev {
  left: 24px;
}

.reviews-hero__swiper .swiper-button-next {
  right: 24px;
}

.reviews-hero__mobile-nav {
  display: none;
}

/* ─── Google Reviews ────────────────────────────── */
.reviews-google {
  margin-bottom: 96px;
  padding: 0 var(--padding-x);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.reviews-google__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reviews-google__rating {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reviews-google__logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.reviews-google__rating-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviews-google__rating-label {
  color: var(--dark);
}

.reviews-google__rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews-google__rating-score {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--black);
  font-family: 'Manrope', sans-serif;
}

.reviews-google__stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reviews-google__rating-count {
  color: var(--light);
}

/* Review grid */
.reviews-google__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Review card */
.reviews-card {
  background-color: var(--bg_beige);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 0 10px rgba(31, 27, 22, 0.15);
}

.reviews-card__stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.reviews-card__text {
  flex: 1;
  color: var(--black);
}

.reviews-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', 'Manrope', sans-serif;
}

.reviews-card__avatar--photo {
  object-fit: cover;
  font-size: 0;
}

.reviews-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviews-card__name {
  color: var(--black);
}

.reviews-card__date {
  color: var(--light);
}

.reviews-card__source {
  flex-shrink: 0;
  width: 64px;
  height: auto;
  margin-left: auto;
}

/* "Show more" button */
.reviews-google__more {
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  /* ── Hero ── */
  .reviews-hero {
    flex-direction: column;
    padding: 0 16px;
    margin-top: 0;
    margin-bottom: 48px;
    gap: 24px;
  }
  .reviews-hero__content .button {
    width: 100%;
    justify-content: center;
  }
  .reviews-hero__swiper-wrap {
    width: 100%;
    aspect-ratio: unset;
    height: auto;
  }
  .reviews-hero__swiper {
    overflow: hidden;
    height: auto;
  }
  .reviews-hero__slide {
    flex-direction: column;
    gap: 12px;
    height: auto !important;
  }
  .reviews-hero__pair-item {
    border-radius: 16px;
    flex: none;
    width: 100%;
    aspect-ratio: 329 / 271;
  }
  .reviews-hero__pair-item.badge-after .card-badge {
    right: auto;
    left: 24px;
  }
  /* Hide desktop floating swiper arrows */
  .reviews-hero__swiper .swiper-button-prev,
  .reviews-hero__swiper .swiper-button-next {
    display: none;
  }
  /* Mobile navigation row */
  .reviews-hero__mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .reviews-hero__mobile-nav .reviews-hero__mobile-prev,
  .reviews-hero__mobile-nav .reviews-hero__mobile-next {
    width: 36px;
    height: 36px;
    border-radius: 24px;
    border: 0.75px solid rgba(31, 27, 22, 0.6);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
  }
  .reviews-hero__mobile-nav .reviews-hero__mobile-prev img,
  .reviews-hero__mobile-nav .reviews-hero__mobile-next img {
    width: 18px;
    height: 18px;
  }
  /* Pagination dots */
  .reviews-hero__pagination {
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
  }
  .reviews-hero__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--dark_beige);
    opacity: 1;
    margin: 0;
    transition: all .3s;
  }
  .reviews-hero__pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 24px;
    background: var(--dark);
  }

  /* ── Google reviews ── */
  .reviews-google {
    padding: 0 16px;
    margin-bottom: 64px;
    gap: 24px;
  }
  .reviews-google__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .reviews-google__header .button {
    width: 100%;
    justify-content: center;
  }
  .reviews-google__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .reviews-card {
    border-radius: 16px;
  }
  .reviews-google__more .button {
    width: 100%;
    justify-content: center;
  }
}
