/* ============================================================
   Beyond Beauty Academy × Glowtech — "Social proof" section
   Section 2 (between hero and pain). Warm cream ground with a
   rail of authentic-looking WhatsApp review cards.
   .social is the query container → reflows per artboard width.
   ============================================================ */

.social {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  container-type: inline-size;
  font-family: var(--font-sans);
  direction: rtl;
  text-align: right;
  background: var(--gt-cream);
  color: var(--gt-ink);
}
.social *, .social *::before, .social *::after { box-sizing: border-box; }

.social .blob { position: absolute; border-radius: 50%; filter: blur(72px); pointer-events: none; z-index: 0; }
.social .blob-1 { width: 360px; height: 360px; background: #f3d5de; top: -150px; left: -100px; opacity: .5; }
.social .blob-2 { width: 320px; height: 320px; background: #edc9d3; bottom: -160px; right: -90px; opacity: .4; }

.social .inner {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column;
  padding: 52px 48px 56px;
}

/* ---- Header ---- */
.social .head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.social h2 {
  font-size: 42px; font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance;
}
.social h2 em { font-style: normal; color: var(--gt-burgundy); }

/* ---- Rail of review cards ---- */
.social .rail {
  display: flex; gap: 18px;
  justify-content: center; align-items: flex-start;
  flex-wrap: wrap;
  flex: 1; min-height: 0;
}

/* ---- WhatsApp card ---- */
.wa-card {
  width: 262px;
  flex: none;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(110,28,64,.16), 0 2px 6px rgba(45,18,30,.08);
  border: 1px solid rgba(45,18,30,.06);
  display: flex; flex-direction: column;
}
.wa-head {
  display: flex; align-items: center; gap: 10px;
  background: #075e54; color: #fff;
  padding: 11px 13px;
}
.wa-head .wa-back { width: 18px; height: 18px; flex: none; opacity: .9; }
.wa-ava {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 800; color: #fff;
}
.wa-meta { min-width: 0; line-height: 1.2; }
.wa-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-status { font-size: 11.5px; color: rgba(255,255,255,.75); }
.wa-icons { margin-inline-start: auto; display: flex; gap: 14px; opacity: .85; }
.wa-icons svg { width: 17px; height: 17px; }

.wa-body {
  background: #ece5dd;
  background-image: radial-gradient(rgba(0,0,0,.025) 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 14px 12px 16px;
  display: flex; flex-direction: column; gap: 9px;
  flex: 1;
}
.wa-day {
  align-self: center;
  background: rgba(225,245,254,.92); color: #4a6b75;
  font-size: 11px; font-weight: 600;
  padding: 3px 11px; border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0,0,0,.05);
  margin-bottom: 2px;
}
.wa-msg {
  position: relative;
  max-width: 92%;
  padding: 8px 11px 7px;
  font-size: 14px; line-height: 1.45;
  box-shadow: 0 1px 1.5px rgba(0,0,0,.13);
  word-break: break-word;
}
.wa-msg p { margin: 0 0 3px; }
.wa-in {
  align-self: flex-start;
  background: #fff;
  border-radius: 9px 9px 9px 2px;
  color: #1f2c33;
}
.wa-out {
  align-self: flex-end;
  background: #d9fdd3;
  border-radius: 9px 9px 2px 9px;
  color: #1f2c33;
}
.wa-foot {
  display: flex; align-items: center; gap: 4px; justify-content: flex-start;
  font-size: 10.5px; color: #8aa0a8;
}
.wa-out .wa-foot { color: #5fae7e; }
.wa-foot svg { width: 15px; height: 13px; }
/* reaction pill */
.wa-react {
  position: absolute; bottom: -9px; left: 9px;
  background: #fff; border-radius: 999px;
  padding: 1px 5px 2px; font-size: 11px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  line-height: 1;
}

/* ---- Real-screenshot gallery (variant="shots") ----
   Masonry via CSS columns: screenshots come in different heights
   (they're cropped), so each card keeps the image's natural aspect
   (no cropping) and the columns pack the varying heights tightly. */
.social .shots {
  column-count: 3;
  column-gap: 18px;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}
.shot {
  break-inside: avoid;
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(110,28,64,.16), 0 2px 6px rgba(45,18,30,.08);
  border: 1px solid rgba(45,18,30,.06);
}
.shot img { display: block; width: 100%; height: auto; }

/* medium artboards: 2 columns so cards don't get too narrow */
@container (max-width: 820px) {
  .social .shots { column-count: 2; max-width: 560px; }
}

/* ============================================================
   MOBILE — ≤ 560px artboard width
   ============================================================ */
@container (max-width: 560px) {
  .social .inner { padding: 36px 0 34px; }
  .social .head { padding: 0 22px; margin-bottom: 24px; }
  .social h2 { font-size: 28px; line-height: 1.15; }
  /* bubbles → vertical stack (no horizontal scroll) */
  .social .rail {
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 4px 22px 0;
  }
  .wa-card { width: 100%; max-width: 340px; }
  /* shots → single column (one per row). Switch to flex so we can
     set an explicit mobile order: 5, 1, 2, 3, 4, 6 (top → bottom). */
  .social .shots {
    column-count: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 340px;
    padding: 0 22px;
  }
  .shot { width: 100%; margin-bottom: 16px; }
  .shot-r5 { order: 1; }
  .shot-r1 { order: 2; }
  .shot-r2 { order: 3; }
  .shot-r3 { order: 4; }
  .shot-r4 { order: 5; }
  .shot-r6 { order: 6; }
}
