/* Reviews page. Shared nav, buttons and footer live in site.css. */

.reviews-page {
  padding: calc(var(--nav-h) + 76px) 48px 100px;
}

.reviews-shell {
  max-width: 1320px;
  margin: 0 auto;
}

/* "Reviews", centred over the cards */
.reviews-title {
  text-align: center;
  margin-bottom: 42px;
}

/* Read all Google reviews and Leave a Google review, centred under the cards */
.review-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* Three cards to a row; a last, shorter row sits centred */
.reviews-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.review-card {
  flex: 0 1 calc((100% - 44px) / 3);
}

@media (min-width: 861px) and (max-width: 1100px) {
  .review-card {
    flex-basis: calc((100% - 22px) / 2);
  }
}

.review-card {
  min-height: 100%;
  padding: 32px;
  background: var(--white);
  border: 1px solid rgba(28, 53, 83, 0.08);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 46px rgba(28, 53, 83, 0.09);
}

.review-card-top {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-source {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.stars {
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

blockquote p {
  font-size: 1.02rem;
  line-height: 1.68;
}

blockquote p + p {
  margin-top: 0.8em;
}

@media (max-width: 860px) {
  .reviews-page {
    padding: calc(var(--nav-h) + 54px) 24px 80px;
  }

  .review-card {
    flex-basis: 100%;
  }
}

@media (max-width: 520px) {
  .reviews-page {
    padding: calc(var(--nav-h) + 42px) 16px 64px;
  }

  .reviews-grid {
    gap: 14px;
  }

  /* Phones: the two Google buttons stack at the same width */
  .review-links .btn {
    width: min(100%, 280px);
  }

  .review-card {
    padding: 24px 20px;
    border-radius: var(--r-md);
  }

  .review-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  blockquote p {
    font-size: 0.98rem;
  }
}
