/* Reviews page: image-led hero, readable intro, and accessible review gallery. */
.reviews-hero {
  position: relative;
  display: grid;
  min-height: clamp(330px, 40vw, 590px);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #eee9e3;
}

.reviews-hero > img,
.reviews-hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reviews-hero > img {
  object-fit: cover;
  object-position: center 52%;
}

.reviews-hero-shade {
  background: linear-gradient(90deg, rgb(20 15 22 / 62%) 0%, rgb(20 15 22 / 32%) 43%, rgb(20 15 22 / 4%) 100%);
}

.reviews-hero-content {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding-block: 76px;
  color: #fff;
}

.reviews-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: #8554c5;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.reviews-kicker > span {
  width: 26px;
  height: 2px;
  flex: 0 0 auto;
  background: #dfa72c;
}

.reviews-hero .reviews-kicker {
  color: #fff3d2;
}

.reviews-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.reviews-hero-content > p:last-child {
  max-width: 540px;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 90%);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.7;
}

.reviews-introduction.section-wrap {
  display: grid;
  width: min(1240px, calc(100% - 64px));
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(42px, 8vw, 112px);
  padding-block: clamp(76px, 9vw, 124px);
}

.reviews-intro-copy h2,
.reviews-gallery-heading h2 {
  margin: 0;
  color: var(--ink, #2c1a48);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.reviews-intro-copy > p:not(.reviews-kicker) {
  margin: 18px 0 0;
  color: var(--muted, #667085);
  font-size: 1.05rem;
  line-height: 1.85;
}

.reviews-rule {
  width: 90px;
  height: 2px;
  margin: 22px 0;
  background: #dda72f;
}

.reviews-intro-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1.55 / 1;
  border-radius: 22px;
  background: #eee9e3;
  box-shadow: 0 24px 65px rgb(40 22 54 / 14%);
}

.reviews-intro-photo::after {
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgb(22 17 28 / 44%));
  content: "";
  pointer-events: none;
  transition: background .24s ease;
}

.reviews-intro-photo:hover::after,
.reviews-intro-photo:focus-visible::after {
  background: rgb(22 17 28 / 58%);
}

.reviews-intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}

.reviews-intro-photo:hover img {
  transform: scale(1.035);
}

.reviews-intro-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 18px;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.reviews-intro-photo .reviews-photo-overlay {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .24s ease, transform .24s ease;
}

.reviews-photo-overlay span:first-child {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.2;
}

.reviews-photo-overlay span:last-child {
  max-width: 34ch;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.55;
}

.reviews-intro-photo:hover .reviews-photo-overlay,
.reviews-intro-photo:focus-visible .reviews-photo-overlay {
  opacity: 1;
  transform: translateY(0);
}

.reviews-intro-photo:focus-visible {
  outline: 3px solid var(--gold, #dfa72c);
  outline-offset: 4px;
}

.reviews-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee8f2;
}

.reviews-stats > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.reviews-stats strong {
  color: var(--ink, #2c1a48);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

.reviews-stats span {
  color: var(--muted, #667085);
  font-size: .76rem;
  line-height: 1.45;
}

.reviews-gallery-section {
  padding-block: clamp(64px, 8vw, 96px) clamp(70px, 8vw, 104px);
  background: #fbf9fc;
}

.reviews-gallery-heading {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto 32px;
  text-align: center;
}

.reviews-gallery-heading .reviews-kicker {
  justify-content: center;
}

.reviews-gallery-heading h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.reviews-gallery-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted, #667085);
  line-height: 1.7;
}

.reviews-gallery.section-wrap {
  display: grid;
  width: min(1240px, calc(100% - 64px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  padding: 0;
}

.reviews-gallery .review-open {
  aspect-ratio: 1.2 / 1;
  border-color: #ece6f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 36px rgb(39 24 52 / 7%);
}

.reviews-gallery .review-open img {
  padding: 8px;
  object-fit: contain;
  background: #fff;
}

.review-cta.section-wrap {
  width: min(1240px, calc(100% - 64px));
  margin-block: 72px 96px;
}

.review-cta > div > p:last-child {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--muted, #667085);
  line-height: 1.7;
}

.review-cta .button {
  flex: 0 0 auto;
}

.reviews-introduction:lang(th),
.reviews-gallery-section:lang(th),
.review-cta:lang(th) {
  font-family: Prompt, Inter, system-ui, sans-serif;
}

@media (max-width: 760px) {
  .reviews-hero {
    min-height: clamp(330px, 76vw, 470px);
  }

  .reviews-hero > img {
    object-position: 54% center;
  }

  .reviews-hero-shade {
    background: linear-gradient(90deg, rgb(20 15 22 / 60%), rgb(20 15 22 / 14%));
  }

  .reviews-hero-content,
  .reviews-introduction.section-wrap,
  .reviews-gallery-heading,
  .reviews-gallery.section-wrap,
  .review-cta.section-wrap {
    width: calc(100% - 40px);
  }

  .reviews-hero-content {
    padding-block: 54px;
  }

  .reviews-hero h1 {
    max-width: 560px;
    font-size: clamp(2.45rem, 10vw, 4rem);
  }

  .reviews-introduction.section-wrap {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 62px;
  }

  .reviews-intro-photo {
    order: -1;
    aspect-ratio: 1.45 / 1;
    border-radius: 18px;
  }

  .reviews-stats {
    gap: 10px;
    margin-top: 26px;
    padding-top: 20px;
  }

  .reviews-stats span {
    font-size: .7rem;
  }

  .reviews-gallery-section {
    padding-block: 54px 64px;
  }

  .reviews-gallery.section-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .reviews-gallery .review-open {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .review-cta.section-wrap {
    margin-block: 48px 68px;
  }
}

@media (hover: none) {
  .reviews-intro-photo::after {
    background: rgb(22 17 28 / 45%);
  }

  .reviews-intro-photo .reviews-photo-overlay {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 420px) {
  .reviews-hero-content,
  .reviews-introduction.section-wrap,
  .reviews-gallery-heading,
  .reviews-gallery.section-wrap,
  .review-cta.section-wrap {
    width: calc(100% - 32px);
  }

  .reviews-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reviews-stats strong {
    font-size: 1.25rem;
  }

  .reviews-stats span {
    font-size: .65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-intro-photo img,
  .reviews-photo-overlay {
    transition-duration: .01ms;
  }
}
