/* Customer reviews: an editorial feature closing "Our Collection".
   Cards read as workshop notes laid on the sand surface, held down with a
   strip of walnut-grain tape (the same grain as the product frames). The
   customer's key phrase is underlined with a wavy river-blue line. */

.collection-reviews {
  position: relative;
  margin-top: clamp(64px, 8vw, 110px);
}

.reviews-heading {
  margin: 0 auto 44px;
  text-align: center;
}

.reviews-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
}

.reviews-title em {
  color: var(--walnut);
  font-weight: 500;
}

.reviews-intro {
  max-width: 540px;
  margin: 16px auto 0;
  color: var(--text-dark-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-card {
  grid-column: span 2;
  min-width: 0;
}

/* Two wide lead cards, then three. */
.review-card:nth-child(-n+2) {
  grid-column: span 3;
}

/* Hand-laid rhythm: a couple of notes sit a little lower than their neighbours. */
.review-card:nth-child(2) {
  margin-top: 22px;
}

.review-card:nth-child(4) {
  margin-top: 18px;
}

.review-card:nth-child(5n+1) { --tilt: -0.9deg; }
.review-card:nth-child(5n+2) { --tilt: 0.8deg; }
.review-card:nth-child(5n+3) { --tilt: 0.6deg; }
.review-card:nth-child(5n+4) { --tilt: -1.1deg; }
.review-card:nth-child(5n+5) { --tilt: 0.7deg; }

.review-note {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 30px 26px 22px;
  border: 1px solid rgba(11, 26, 16, 0.16);
  border-radius: 3px;
  background: var(--cream);
  box-shadow: 0 10px 26px rgba(18, 29, 26, 0.12);
  color: var(--ink);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 260ms ease;
}

/* Picking the note up: it straightens and lifts. */
.review-note:hover,
.review-note:focus-within {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 18px 36px rgba(18, 29, 26, 0.18);
}

.review-tape {
  position: absolute;
  top: -9px;
  left: 22px;
  width: 66px;
  height: 18px;
  background: repeating-linear-gradient(105deg, var(--walnut-dark) 0 7px, var(--walnut) 7px 10px, var(--walnut-dark) 10px 15px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  opacity: 0.9;
  transform: rotate(-3deg);
}

.review-card:nth-child(even) .review-tape {
  right: 24px;
  left: auto;
  transform: rotate(3deg);
}

.review-stars {
  margin: 0;
  color: var(--walnut);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.review-text {
  flex: 1 1 auto;
  margin: 0;
}

.review-text p {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-accent);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-style: italic;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.review-text p:last-child {
  margin-bottom: 0;
}

.review-text mark {
  background: transparent;
  color: inherit;
  text-decoration: underline wavy var(--river-blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.review-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 26, 16, 0.14);
}

.review-name {
  color: var(--walnut-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.review-source {
  flex: 0 0 auto;
  border-bottom: 1px solid transparent;
  color: var(--text-dark-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease;
}

.review-source:hover,
.review-source:focus-visible {
  border-bottom-color: var(--river-blue);
  color: var(--river-blue);
}

.reviews-all {
  margin: 36px 0 0;
  text-align: center;
}

/* Same button treatment as "Open in Maps" in the workshop section. */
.reviews-all a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--walnut-dark);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.reviews-all a:hover,
.reviews-all a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--river-blue);
  background: var(--river-blue);
  color: var(--white);
}

.reviews-swipe-hint {
  display: none;
}

/* Entrance: notes rise into place one after another when scrolled into view. */
.collection-reviews.is-motion-ready .review-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.collection-reviews.is-motion-ready.is-visible .review-card {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }

  .review-card,
  .review-card:nth-child(-n+2) {
    grid-column: span 1;
  }

  .review-card:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .review-card:nth-child(2),
  .review-card:nth-child(4) {
    margin-top: 0;
  }

  .review-card:nth-child(even) {
    margin-top: 14px;
  }
}

/* Phones: a swipeable strip of notes, one in view at a time. */
@media (max-width: 680px) {
  .collection-reviews {
    margin-top: 56px;
  }

  .reviews-heading {
    margin-bottom: 22px;
  }

  .reviews-title {
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
  }

  /* Phones: "From our workshop," on one row, "to their homes." on the next. */
  .reviews-title em {
    display: block;
  }

  .reviews-intro {
    font-size: 0.92rem;
  }

  .reviews-grid {
    display: flex;
    gap: 16px;
    margin: 0 -16px;
    padding: 14px 16px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .reviews-grid::-webkit-scrollbar {
    display: none;
  }

  .reviews-grid > .review-card:nth-child(n) {
    flex: 0 0 min(80vw, 330px);
    margin-top: 0;
    scroll-snap-align: center;
  }

  .review-note {
    padding: 26px 22px 20px;
  }

  .review-text p {
    font-size: 1rem;
  }

  .reviews-swipe-hint {
    display: block;
    margin: 6px 0 0;
    color: var(--text-dark-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
  }

  .reviews-all {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-note,
  .review-source,
  .reviews-all a {
    transition: none;
  }

  .review-note:hover,
  .review-note:focus-within {
    transform: rotate(var(--tilt, 0deg));
  }

  .collection-reviews.is-motion-ready .review-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
