/*
 * Testimonials Section
 * Figma node: 1:75 — BuddieSpace SOCIAL PROOF / TESTIMONIALS
 * Canvas: 1440 × 805 px
 * Design tokens: Navy #21254a | Green #b0f288 | White #ffffff
 * Font: Inter (400, 700, 800)
 */

/* ─── Section wrapper ────────────────────────────────────────────────────── */
.bs-testimonials {
  background-color: #ffffff;
  /* Top matches Figma header y-offset: 57px → 57/1440*100 = 3.96vw */
  padding: clamp(48px, 3.96vw, 57px) clamp(20px, 4.17vw, 60px) clamp(56px, 5.56vw, 80px);
}

/* ─── Inner container ────────────────────────────────────────────────────── */
.bs-testimonials__inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* ─── Section header ─────────────────────────────────────────────────────── */
/*
 * Figma: header frame 567px wide, centred on 1440px canvas
 * gap: 8px between headline and subtitle
 */
.bs-testimonials__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.56vw, 8px);
  align-items: center;
  margin-bottom: clamp(40px, 4.44vw, 64px);
}

/* Figma: font-extrabold 70px, navy, uppercase */
.bs-testimonials__label {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  /* 70px / 1440 * 100 = 4.86vw */
  font-size: clamp(32px, 4.86vw, 70px);
  line-height: 1.05;
  color: #21254a;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Figma: font-regular 31.707px, rgba(33,37,74,0.75) */
.bs-testimonials__subheading {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  /* 31.707px / 1440 * 100 = 2.20vw */
  font-size: clamp(16px, 2.20vw, 32px);
  line-height: 1.3;
  color: rgba(33, 37, 74, 0.75);
  margin: 0;
}

/* ─── Cards grid ─────────────────────────────────────────────────────────── */
.bs-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.08vw, 30px);
  align-items: stretch;
}

/* ─── Individual card ────────────────────────────────────────────────────── */
.bs-testimonials__card {
  background-color: #21254a;
  border-radius: clamp(12px, 1.25vw, 18px);
  padding: clamp(28px, 3.33vw, 48px) clamp(24px, 2.78vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.67vw, 24px);
  /* Subtle navy-on-navy depth */
  box-shadow: 0 4px 32px rgba(33, 37, 74, 0.12);
}

/* ─── Opening quote mark ─────────────────────────────────────────────────── */
.bs-testimonials__card::before {
  content: '\201C';
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(48px, 5.56vw, 80px);
  font-weight: 800;
  color: #b0f288;
  line-height: 0.75;
  margin-bottom: -4px;
}

/* ─── Quote text ─────────────────────────────────────────────────────────── */
.bs-testimonials__quote {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  flex: 1;
}

/* ─── Author block ───────────────────────────────────────────────────────── */
.bs-testimonials__author-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(176, 242, 136, 0.25);
  padding-top: clamp(16px, 1.67vw, 24px);
  margin-top: auto;
}

.bs-testimonials__author {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.11vw, 16px);
  line-height: 1.2;
  color: #b0f288;
  margin: 0;
}

.bs-testimonials__role {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 0.97vw, 14px);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ─── Tablet: 1023px — 2 columns ─────────────────────────────────────────── */
@media (max-width: 1023px) {
  .bs-testimonials {
    padding: 48px clamp(20px, 4vw, 40px) 56px;
  }

  .bs-testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Push the third card to full-width centred */
  .bs-testimonials__card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
    margin: 0 auto;
  }
}

/* ─── Mobile: 599px — single column ─────────────────────────────────────── */
@media (max-width: 599px) {
  .bs-testimonials {
    padding: 40px 16px 48px;
  }

  .bs-testimonials__header {
    margin-bottom: 32px;
  }

  .bs-testimonials__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Reset the third-card override for mobile */
  .bs-testimonials__card:nth-child(3) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  .bs-testimonials__card {
    padding: 28px 22px;
    border-radius: 12px;
  }

  .bs-testimonials__card::before {
    font-size: 48px;
  }
}
