/* ============================================================
   11-testimonials.css — customer testimonials + FB embed
   Module: <section id="testimonials">
   ============================================================ */

#testimonials { background: var(--c-white); }

.tst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) { .tst-grid { grid-template-columns: 1fr; } }

.tst-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
}
.tst-card::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 18px;
  font-family: var(--f-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--c-amber);
  opacity: 0.7;
}
.tst-stars {
  color: var(--c-yellow);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 1px var(--c-yellow-dark);
}
.tst-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-ink-soft);
  flex: 1;
  margin: 0;
}
.tst-author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  border-top: 1px solid var(--c-line);
  padding-top: var(--s-3);
}
.tst-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-amber);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
}
.tst-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--c-ink);
}
.tst-author span {
  font-size: 0.82rem;
  color: var(--c-muted);
}

/* --- Facebook embed sub-module ---
   Disable by removing the .fb-block from the testimonials <section>.
*/
.fb-block {
  margin-top: var(--s-7);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}
.fb-block-copy h3 {
  margin-bottom: var(--s-2);
  font-size: 1.5rem;
}
.fb-block-copy p {
  color: var(--c-muted);
  margin-bottom: var(--s-4);
}
.fb-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.fb-block-actions .btn-fb {
  background: #1877F2;
  color: var(--c-white);
}
.fb-block-actions .btn-fb:hover { background: #0e5dc7; }

.fb-embed {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  /* Reserve a min-height so the layout doesn't jump while iframe loads */
  min-height: 500px;
  display: flex;
  justify-content: center;
}
.fb-embed iframe {
  width: 100% !important;
  max-width: 500px;
  border: 0;
  display: block;
}
.fb-embed-fallback {
  display: none;
  padding: var(--s-5);
  text-align: center;
  color: var(--c-muted);
  font-size: 0.92rem;
}

@media (max-width: 880px) {
  .fb-block {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  .fb-embed { min-height: 420px; }
}
