/*
  section_testimonial_new — homepage testimonial wall.
  Values from spec ## Computed Styles (1440 base; 768 → @media(max-width:991px);
  375 → @media(max-width:479px), the run's canonical boundaries {479,767,991,1919}).
  Non-token colours (card border rgb(233,233,233)) inlined verbatim per rule 8.
  Shared Webflow-utility wrappers carry canonical names owned by sibling
  components (about_info / related_works); styled scoped under this component's
  root since the owner's CSS is not attached in the isolated render.
*/

/* ---------------- root + outer padding wrapper ------------------------------ */
.c-section_testimonial_new__media-wrap-2 {
  display: block;
  width: 100%;
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
}
.region-content .c-section_testimonial_new__media-wrap-2 {
  width: 100%;
  margin: 0;
}
.c-section_testimonial_new__media-wrap-2 .c-about_info__heading-wrap-5 {
  padding: var(--space-64) var(--space-40);
}

/* ---------------- container-large (capped, centred) ------------------------- */
.c-section_testimonial_new__media-wrap-2 .c-about_info__heading-wrap {
  max-width: 1280px; /* source container-large cap; no --container-max token this run */
  margin-inline: auto;
}

/* ---------------- heading + review-link row (clutch-div) -------------------- */
.c-section_testimonial_new__clutch-div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 var(--space-20);
}
.c-section_testimonial_new__media-wrap-2 .c-about_info__headin-links {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}
.c-section_testimonial_new__dot {
  flex: 0 0 auto;
  width: var(--space-8);
  height: var(--space-8);
  border-radius: var(--radius-full);
  background-color: var(--color-bg-accent);
}
.c-section_testimonial_new__eyebrow {
  margin: 0;
  font-family: var(--font-family-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}
.c-section_testimonial_new__media-wrap-2 .c-related_works__clutch-custom {
  display: block;
}
.c-section_testimonial_new__link {
  font-family: var(--font-family-body);
  font-size: var(--font-size-a);
  line-height: var(--line-height-a);
  color: var(--color-text-dark);
  text-decoration: underline;
}

/* ---------------- the bordered card (div-block-63-copy) --------------------- */
.c-section_testimonial_new__media-wrap {
  overflow: hidden;
  border: 1px solid rgb(233, 233, 233);
  border-radius: var(--radius-15);
  background-color: var(--color-bg-page);
}

/* ---- row grids: 3 stacked 2-column rows -------------------------------------*/
.c-section_testimonial_new__test-1-card,
.c-section_testimonial_new__group-2,
.c-section_testimonial_new__media-wrap-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.c-section_testimonial_new__test-1-card > *,
.c-section_testimonial_new__group-2 > *,
.c-section_testimonial_new__media-wrap-3 > * {
  min-width: 0;
}

/* row 1 — quote left, paired mockup right (source DOM order is img,quote) */
.c-section_testimonial_new__cell--quote-left {
  grid-column: 1;
  grid-row: 1;
}
.c-section_testimonial_new__photo--right {
  grid-column: 2;
  grid-row: 1;
  border-left: 1px solid rgb(233, 233, 233);
}

/* row 2 — two text-only quotes; top + inner dividers */
.c-section_testimonial_new__group-2 {
  border-top: 1px solid rgb(233, 233, 233);
}
.c-section_testimonial_new__test-left {
  border-left: 1px solid rgb(233, 233, 233);
}

/* row 3 — paired mockup left, quote right; top + inner dividers */
.c-section_testimonial_new__media-wrap-3 {
  border-top: 1px solid rgb(233, 233, 233);
}
.c-section_testimonial_new__bk-testimonial-copy {
  border-left: 1px solid rgb(233, 233, 233);
}

/* ---- paired mockup images (source img.testimonial-image-3-copy: cover) ------ */
.c-section_testimonial_new__photo,
.c-section_testimonial_new__media {
  display: block;
  width: 100%;
  height: 354px;
  object-fit: cover;
}

/* ---- quote cells ----------------------------------------------------------- */
.c-section_testimonial_new__cell--quote-left,
.c-section_testimonial_new__test-3,
.c-section_testimonial_new__test-left,
.c-section_testimonial_new__bk-testimonial-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 60px var(--space-40) var(--space-40);
  background-color: var(--color-bg-page);
}
/* Quote reserves a fixed block so the attribution lands at a consistent
   ~230px from the row top (measured from source); short quotes leave the
   remaining reserved space empty above the attribution. */
.c-section_testimonial_new__quote {
  margin: 0;
  min-height: 168px;
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--color-text-primary);
}
.c-section_testimonial_new__attribution {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-16);
  margin-top: 0;
}
.c-section_testimonial_new__name {
  font-family: var(--font-family-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-dark);
}
.c-section_testimonial_new__role {
  margin-top: var(--space-4);
  font-family: var(--font-family-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-secondary);
}
.c-section_testimonial_new__company {
  flex: 0 0 auto;
  font-family: var(--font-family-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-text-muted);
}

/* ============ tablet (spec 768) ============================================= */
@media (max-width: 991px) {
  .c-section_testimonial_new__photo,
  .c-section_testimonial_new__media {
    height: 360px;
  }
}

/* ============ mobile (spec 375) ============================================= */
@media (max-width: 479px) {
  .c-section_testimonial_new__media-wrap-2 .c-about_info__heading-wrap-5 {
    padding: 32px var(--space-16);
  }

  /* heading row stacks; review link drops below, right-aligned */
  .c-section_testimonial_new__clutch-div {
    display: block;
  }
  .c-section_testimonial_new__media-wrap-2 .c-related_works__clutch-custom {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-8);
  }

  /* all three rows collapse to one column */
  .c-section_testimonial_new__test-1-card,
  .c-section_testimonial_new__group-2,
  .c-section_testimonial_new__media-wrap-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  /* row 1: drop explicit placement so DOM order stacks (image above quote) */
  .c-section_testimonial_new__cell--quote-left,
  .c-section_testimonial_new__photo--right {
    grid-column: auto;
    grid-row: auto;
  }

  /* vertical dividers become horizontal when stacked */
  .c-section_testimonial_new__photo--right,
  .c-section_testimonial_new__bk-testimonial-copy {
    border-left: none;
  }
  .c-section_testimonial_new__test-left {
    border-left: none;
    border-top: 1px solid rgb(233, 233, 233);
  }

  /* images take their natural height when stacked full-width */
  .c-section_testimonial_new__photo,
  .c-section_testimonial_new__media {
    height: auto;
  }

  /* stacked cells: drop the desktop quote reserve; per-cell source heights
     (spec ## Computed Styles @375) keep the paired images at the correct Y
     with the attribution pinned to the cell bottom. */
  .c-section_testimonial_new__cell--quote-left,
  .c-section_testimonial_new__test-3,
  .c-section_testimonial_new__test-left,
  .c-section_testimonial_new__bk-testimonial-copy {
    justify-content: space-between;
    padding: var(--space-40) var(--space-20);
  }
  .c-section_testimonial_new__cell--quote-left { min-height: 320px; }
  .c-section_testimonial_new__test-3 { min-height: 333px; padding: 60px var(--space-40); }
  .c-section_testimonial_new__test-left { min-height: 397px; }
  .c-section_testimonial_new__bk-testimonial-copy { min-height: 296px; }
  .c-section_testimonial_new__quote {
    min-height: 0;
  }
  .c-section_testimonial_new__attribution {
    margin-top: var(--space-24);
  }
}
