/* Reviews page — matches live /reviews/ (rev-measure.json geometry).
   Loaded only on the reviews template; home styles the shared carousel
   markup separately in home.css. */

/* Whole page sits on mint. */
body.page-reviews { background: var(--color-pale-green); }

/* ---- Header: Ubuntu title + wide Prompt intro, both plum, centered ---- */
.reviews-header {
  text-align: center;
  padding-top: 10px;
}
.reviews-title {
  margin: 0;
  color: var(--color-plum);
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
}
.reviews-intro {
  margin: 52px auto 0;
  max-width: 500px;
  color: var(--color-plum);
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
}

/* ---- Collage left, framed carousel right ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 480fr) minmax(0, 542fr);
  column-gap: 54px;
  align-items: start;
  padding-top: 62px;
}
.reviews-collage { justify-self: end; }
.reviews-collage img { width: 379px; height: auto; display: block; }

.reviews-main { min-width: 0; justify-self: end; margin-right: 4px; }
.review-carousel {
  min-width: 0;
  width: 538px;
  max-width: 100%;
  margin-top: 11px;
}
/* Grey frame around the white card (live: 24px solid + 10px white gap).
   overflow:hidden clips at the padding edge, so the frame keeps zero padding
   (the 10px gap lives on the card) — otherwise the next slide peeks through. */
.review-carousel__viewport {
  overflow: hidden;
  border: 24px solid #dfe5e8;
  padding: 0;
  background: var(--color-white);
}
.review-carousel__track {
  display: flex;
  transition: transform var(--duration-base) var(--ease-out-quint);
}
.review-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

/* White card inside the frame (carries the 10px frame gap as padding). */
.review-card {
  background: var(--color-white);
  padding: 10px;
  min-height: 356px;
  display: flex;
  flex-direction: column;
}
.review-card__quote {
  display: block;
  margin: 0 0 46px;
  font-size: 50px;
  color: var(--svc-ink, #121313);
}
.review-card__text {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 25px;
  color: #121313;
  margin: 0;
}
.review-card__text p { margin: 0 0 1em; max-width: none; }
.review-card__text p:last-child { margin-bottom: 0; }
.review-card__author {
  margin: auto 0 0;
  padding-top: 40px;
  text-align: right;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 25px;
  color: #121313;
}

/* Prev/Next: plain text links centered under the frame (live WP pagination look). */
.review-carousel__nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 3px;
}
.review-carousel__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 25px;
  color: #121313;
}
.review-carousel__btn:hover { color: var(--color-orange); }

/* ---- See More toggle + expanding review grid (live Happy Addons toggle) ---- */
.reviews-more {
  margin-top: 62px;
  max-width: 1240px;
  padding-inline: 0;
}
.reviews-more__toggle {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 20px 40px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  color: #2b2b2b;
}
.reviews-more__toggle i { font-size: 16px; }
.reviews-more__toggle[aria-expanded='true'] .reviews-more__icon--open { display: none; }
.reviews-more__toggle[aria-expanded='false'] .reviews-more__icon--close { display: none; }

.reviews-more__content {
  display: flex;
  gap: 16px;
  padding: 33px 10px 40px;
}
.reviews-more__content[hidden] { display: none; }
.reviews-more__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Grid card: double plum outline > grey band > white card. */
.reviews-more__item {
  background: var(--color-white);
  border: 2px double var(--color-plum);
}
.reviews-more__frame {
  border: 24px solid #dfe5e8;
  padding: 0; /* the card inside carries the 10px gap */
}
.reviews-more__frame .review-card { min-height: 0; }

/* ---- Mobile (live: tiny collage, everything stacked/centered) ---- */
@media (max-width: 768px) {
  .reviews-title { font-size: 32px; line-height: 40px; }
  .reviews-intro {
    margin-top: 44px;
    max-width: 290px;
    font-size: 24px;
    line-height: 30px;
  }
  .reviews-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 54px;
    gap: 0;
  }
  .reviews-collage { justify-self: center; }
  .reviews-collage img { width: 108px; }
  .reviews-main { justify-self: stretch; }
  .review-carousel { width: 100%; margin-top: 24px; }
  .review-card { min-height: 0; }
  .reviews-more { margin-top: 32px; }
  .reviews-more__content { flex-direction: column; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .reviews-collage { justify-self: center; margin-bottom: 24px; }
  .reviews-main { justify-self: center; }
}
