/**
 * Testimonial callout — [fc_testimonial] (inc/testimonial-shortcode.php)
 *
 * Styles: card (blue-grey box), navy, quote (no box: a rule and a large mark).
 * Colours and spacing match the link callouts and CTA boxes.
 */

.fc-testimonial {
  position: relative;
  isolation: isolate;
  margin: 2.75rem 0 3rem;
  padding: 40px 44px 36px 92px;
  border-radius: 16px;
  background: #f2f4f9;
  color: #3e4352;
  font-family: tenon, sans-serif;
}
/* Large opening quote mark, top left */
.fc-testimonial::before {
  content: "\201C";
  position: absolute;
  z-index: -1;
  top: 22px;
  left: 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  font-weight: 700;
  line-height: 0.8;
  color: rgba(0, 86, 247, 0.22);
  pointer-events: none;
}
.fc-testimonial .fc-testimonial__quote {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.fc-testimonial .fc-testimonial__quote::before,
.fc-testimonial .fc-testimonial__quote::after {
  content: none;
}
.fc-testimonial .fc-testimonial__quote p {
  margin: 0;
  font-family: tenon, sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #041670;
  text-wrap: pretty;
}
.fc-testimonial .fc-testimonial__quote p:first-of-type {
  font-size: 1.35rem;
  font-weight: 400;
}
.fc-testimonial .fc-testimonial__who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.fc-testimonial .fc-testimonial__media {
  flex: none;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}
.fc-testimonial .fc-testimonial__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}
.fc-testimonial .fc-testimonial__by {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fc-testimonial .fc-testimonial__name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #041670;
}
.fc-testimonial .fc-testimonial__role {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.4;
  color: #6b7080;
}
.fc-testimonial .fc-testimonial__role a {
  color: #041670;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(4, 22, 112, 0.3);
}
.fc-testimonial .fc-testimonial__role a:hover {
  color: #0056f7;
  border-bottom-color: currentColor;
}

/* ---------- Navy ---------- */
.fc-testimonial--navy {
  background: #041670;
  color: #fff;
}
.fc-testimonial--navy::before {
  color: rgba(157, 188, 255, 0.3);
}
.fc-testimonial--navy .fc-testimonial__quote p,
.fc-testimonial--navy .fc-testimonial__name {
  color: #fff;
}
.fc-testimonial--navy .fc-testimonial__role {
  color: rgba(255, 255, 255, 0.78);
}
.fc-testimonial--navy .fc-testimonial__role a {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}
.fc-testimonial--navy .fc-testimonial__role a:hover {
  color: #9dbcff;
}

/* ---------- Quote: no box, a rule down the left ---------- */
.fc-testimonial--quote {
  padding: 8px 0 8px 92px;
  border-radius: 0;
  background: none;
}
.fc-testimonial--quote::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #041670 0%, #0056f7 100%);
}
.fc-testimonial--quote::before {
  left: 28px;
  top: -6px;
}
.fc-testimonial--quote .fc-testimonial__quote p {
  font-size: 1.5rem;
}

/* ---------- Centred ---------- */
.fc-testimonial--align-center {
  padding-left: 44px;
  padding-top: 72px;
  text-align: center;
}
.fc-testimonial--align-center::before {
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
}
.fc-testimonial--align-center .fc-testimonial__quote p {
  max-width: 44ch;
  margin-inline: auto;
}
.fc-testimonial--align-center .fc-testimonial__who {
  justify-content: center;
}
.fc-testimonial--align-center .fc-testimonial__by {
  align-items: center;
}
.fc-testimonial--quote.fc-testimonial--align-center {
  padding-left: 0;
}
.fc-testimonial--quote.fc-testimonial--align-center::after {
  display: none;
}

/* ---------- Phones ---------- */
@media (max-width: 575.98px) {
  .fc-testimonial {
    padding: 64px 22px 26px;
  }
  .fc-testimonial::before {
    top: 16px;
    left: 20px;
    font-size: 5.5rem;
  }
  .fc-testimonial--quote {
    padding: 56px 0 8px 22px;
  }
  .fc-testimonial--quote::before {
    left: 18px;
    top: 6px;
  }
  .fc-testimonial .fc-testimonial__quote p,
  .fc-testimonial--quote .fc-testimonial__quote p {
    font-size: 1.15rem;
  }
  .fc-testimonial--align-center::before {
    left: 50%;
  }
}

/* Editor-only notice when a saved testimonial is missing or unpublished */
.fc-testimonial-missing {
  margin: 2rem 0;
  padding: 12px 16px;
  border: 1px dashed #c0392b;
  border-radius: 8px;
  background: #fdf3f2;
  color: #8e2a20;
  font-family: tenon, sans-serif;
  font-size: 0.9rem;
}
