/* =============================================================================
   TW Library — Testimonial card (ampeco/tw-testimonial) — Figma 11007:7607
   -----------------------------------------------------------------------------
   Self-contained, hand-authored component styles SCOPED under `.tw-testimonial`
   (track 2 — see README). The card fills its container so it can drop into a
   Gutenberg/Kadence column beside other blocks; the page composes the dark
   section + 2-column layout around it. Dark card, light text, brand-blue
   border. Colours are literal NDS values so the subtree renders identically
   regardless of host page theme. Lexend is the theme's site-wide body font.
   ============================================================================= */
.tw-testimonial {
  font-family: var(--font-body);
}
.tw-testimonial *,
.tw-testimonial *::before,
.tw-testimonial *::after {
  box-sizing: border-box;
}

.tw-testimonial__card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px;
  border: 1px solid var(--p-primary-500); /* NDS brand blue */
  border-radius: var(--radius-m);
  background: var(--p-raven-500);          /* NDS clean-dark surface */
}

.tw-testimonial__quote-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.tw-testimonial__mark {
  flex: 0 0 auto;
  width: 67px;
  height: 72px;
  line-height: 0;
}
.tw-testimonial__mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.tw-testimonial__quote {
  margin: 0;
  padding: 0;
  border: 0;
  quotes: none;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.4;
  color: var(--p-frost-100); /* Ghost-white */
}

.tw-testimonial__divider {
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--p-frost-100) 12%, transparent);
}

.tw-testimonial__author {
  display: flex;
  align-items: center;
  gap: 40px;
}
.tw-testimonial__photo {
  flex: 0 0 auto;
  display: block;
  width: 177px;
  height: 177px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--p-frost-100) 28%, transparent);
  border-radius: var(--radius-m);
  background: var(--gradient-blue);
}
.tw-testimonial__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.tw-testimonial__meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.tw-testimonial__name {
  margin: 0;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
  color: var(--p-frost-100);
}
.tw-testimonial__role {
  margin: 0;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  color: var(--p-secondary-500); /* brand secondary (light vibrant blue) */
}

@media (max-width: 639.98px) {
  .tw-testimonial__card { padding: 24px; gap: 32px; }
  /* Quote mark stacks above the quote (icon top row, quote below). */
  .tw-testimonial__quote-row { flex-direction: column; gap: 16px; }
  .tw-testimonial__quote { font-size: 20px; }
  /* Author block (photo + name + role) centered on mobile only. */
  .tw-testimonial__author { flex-direction: column; align-items: center; gap: 24px; text-align: center; }
  .tw-testimonial__meta { align-items: center; text-align: center; }
}
