/* =========================================================================
   Component: fm-testimonial
   Two-column testimonial with photo left, big quote + attribution right.
   Includes a large decorative quote mark behind the copy.
   ========================================================================= */

.fm-testimonial {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--fm-sp-7);
  align-items: center;
  margin: 0;
}

@media (max-width: 720px) {
  .fm-testimonial {
    grid-template-columns: 1fr;
    gap: var(--fm-sp-5);
    text-align: left;
  }
}

.fm-testimonial__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--fm-radius);
  overflow: hidden;
  background: var(--fm-gray-50);
}
.fm-testimonial__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fm-testimonial__body {
  position: relative;
  margin: 0;
  padding-top: var(--fm-sp-6);
}

/* Oversized decorative quote mark */
.fm-testimonial__body::before {
  content: '\201C'; /* left double quotation mark */
  position: absolute;
  top: -40px;
  left: -20px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 9rem;
  line-height: 1;
  color: rgba(219, 92, 5, 0.22); /* faint orange watermark */
  pointer-events: none;
}

/* When placed on a dark section, use a soft white watermark. */
.fm-section--dark .fm-testimonial__body::before {
  color: rgba(255, 255, 255, 0.9);
}

.fm-testimonial__quote {
  position: relative;
  margin: 0 0 var(--fm-sp-5);
  font-size: var(--fm-fs-lg);
  line-height: 1.45;
  color: var(--fm-text-strong);
  font-weight: var(--fm-fw-normal);
}

/* Dark section overrides: white text, softer role line */
.fm-section--dark .fm-testimonial__quote { color: var(--fm-white); }
.fm-section--dark .fm-testimonial__name  { color: var(--fm-white); }
.fm-section--dark .fm-testimonial__role  { color: var(--fm-gray-200); }

@media (min-width: 992px) {
  .fm-testimonial__quote { font-size: var(--fm-fs-xl); }
}

.fm-testimonial__attribution {
  display: flex;
  align-items: center;
  gap: var(--fm-sp-4);
  margin: 0;
}

/* Brand mark next to the name — accepts either a text initial or an <img> logo. */
.fm-testimonial__brand {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fm-testimonial__brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* When the brand mark holds the Apple logo (which is black), invert to white on dark bg. */
.fm-section--dark .fm-testimonial__brand img { filter: invert(1); }

.fm-testimonial__name {
  margin: 0;
  font-weight: var(--fm-fw-bold);
  color: var(--fm-text-strong);
  font-size: var(--fm-fs-base);
}

.fm-testimonial__role {
  margin: 2px 0 0;
  font-size: var(--fm-fs-sm);
  color: var(--fm-text);
  line-height: 1.35;
}
