/* ==========================================================================
   Trust chapters — the testimonial section and the partner wall.
   Both sit on bone: it is the only surface on which seventeen different
   brand palettes can appear in their own colours without fighting.
   ========================================================================== */

/* ---- Testimonials ----------------------------------------------------------
   The brief forbids inventing quotes, so credibility is carried by a real
   photograph and a plain statement of the club's own policy instead. */

.testimonial__head {
  position: relative;
  max-width: 40ch;
  margin-bottom: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
}

.testimonial__title {
  margin-top: var(--space-5);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
}

/* Oversized kufi quote mark, set in the flow above the label so it anchors to
   the same inline-start edge as the heading. Absolute placement of a quote
   glyph is unreliable in RTL — the glyph's own bidi run moves it. */
.testimonial__mark {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-weight: 700;
  line-height: 0.62;
  color: var(--bone-fg);
  opacity: 0.16;
}

.testimonial__figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 38%;
}

.testimonial__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  margin-top: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  padding-top: clamp(1.5rem, 1rem + 1.4vw, 2rem);
  border-top: 1px solid var(--rule-on-bone);
}

.testimonial__note {
  max-width: 62ch;
  color: var(--bone-fg-soft);
  font-size: var(--fs-sm);
  line-height: 1.9;
}

/* ---- Partner wall ------------------------------------------------------------
   A wall rather than a second carousel: seventeen real partners visible at
   once is the whole point of the section. */

.partners { border-top: 1px solid var(--rule-on-bone-soft); }

.wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  /* Tuned so seventeen logos land as 6 / 6 / 5 rather than 5 / 5 / 5 / 2 */
  column-gap: clamp(2rem, 1rem + 3.4vw, 4rem);
  row-gap: clamp(2.25rem, 1.2rem + 3.5vw, 4rem);
}

/* An identical box per logo, sized on the image itself rather than the cell:
   a percentage max-height on a stretched flex/grid item has no definite
   height to resolve against and is ignored. object-fit letterboxes each mark
   inside the same footprint, which is what makes seventeen very differently
   proportioned logos read as one wall. */
.wall li { display: flex; }

.wall img {
  width: clamp(6.5rem, 4.5rem + 6vw, 9rem);
  height: clamp(3.25rem, 2.6rem + 2.2vw, 4.5rem);
  object-fit: contain;
  transition: transform var(--dur-mid) var(--ease);
}

.wall li:hover img { transform: translateY(-3px); }
