/* ─── Reviews showcase wrapper ─────────────────────────────── */
.reviews-showcase {
  animation: heroFade 360ms ease-out both;
  position: relative;
  border-radius: 32px;
  border: 1px solid rgba(128, 105, 79, 0.16);
  background:
    radial-gradient(110% 120% at 0% 100%, rgba(200, 184, 232, 0.2), transparent 55%),
    radial-gradient(120% 130% at 100% 0%, rgba(240, 212, 74, 0.13), transparent 62%),
    linear-gradient(160deg, #fdf9f4 0%, #f2ece3 100%);
  box-shadow: 0 16px 34px rgba(88, 70, 45, 0.12);
}

.reviews-showcase__header {
  margin-bottom: 20px;
  padding: 4px 8px 0;
}

.reviews-showcase__title {
  margin: 0;
  color: #27211b;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 42px);
  line-height: 1.15;
}

.reviews-showcase__subtitle {
  margin: 8px 0 0;
  color: #5b5145;
  font-family: var(--font-main);
  font-size: 16px;
}

/* ─── Multi-column chat layout ───────────────────────────────── */
.reviews-chat {
  columns: 5;
  column-gap: 12px;
}

/* ─── Single message card ────────────────────────────────────── */
.review-msg {
  break-inside: avoid;       /* never split a card across columns */
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;

  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(128, 105, 79, 0.1);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 2px 8px rgba(88, 70, 45, 0.07);
}

/* ─── Avatar ─────────────────────────────────────────────────── */
.review-msg__avatar,
.review-msg__avatar-placeholder {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.review-msg__avatar {
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(88, 70, 45, 0.14);
}

.review-msg__avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c8b8e8; /* overridden by inline style */
  color: #7a5c9e;     /* overridden by inline style */
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(88, 70, 45, 0.14);
}

/* ─── Message body ───────────────────────────────────────────── */
.review-msg__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.review-msg__name {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  color: #7a5c9e;
}

/* ─── Bubble ─────────────────────────────────────────────────── */
.review-msg__bubble {
  position: relative;
  background: rgba(245, 240, 235, 0.7);
  border: 1px solid rgba(128, 105, 79, 0.1);
  border-radius: 4px 14px 14px 14px;
  padding: 10px 12px 8px;
}

.review-msg__bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -6px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 6px 6px 0;
  border-color: transparent rgba(128, 105, 79, 0.15) transparent transparent;
}

.review-msg__bubble::after {
  content: '';
  position: absolute;
  top: 1px;
  left: -4px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 4px 4px 0;
  border-color: transparent rgba(245, 240, 235, 0.85) transparent transparent;
}

/* ─── Text ───────────────────────────────────────────────────── */
.review-msg__text {
  margin: 0 0 6px;
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.6;
  color: #2e2620;
}

/* ─── Meta: project tag + date ──────────────────────────────── */
.review-msg__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.review-msg__project {
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 500;
  color: #7a5c9e;
  background: rgba(200, 184, 232, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.review-msg__time {
  font-family: var(--font-main);
  font-size: 10px;
  color: #a09488;
  margin-left: auto;
  white-space: nowrap;
}

/* ─── Staggered columns ──────────────────────────────────────── */
.reviews-chat > .review-msg:nth-child(odd) {
  margin-top: 0;
}

.reviews-chat > .review-msg:nth-child(even) {
  margin-top: 40px;
}

/* ─── CTA ───────────────────────────────────────────────────── */
.reviews-cta {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .reviews-chat {
    columns: 3;
  }
}

@media (max-width: 700px) {
  .reviews-chat {
    columns: 2;
  }
}

@media (max-width: 440px) {
  .reviews-chat {
    columns: 1;
  }
}
