/* ============================================================
   Shared: Testimonials block
   Used on: index.html, home (Laravel)
   ============================================================ */

.testimonials {
  position: relative;
  isolation: isolate;
  padding: clamp(80px, 10vw, 140px) 0;
  color: var(--pearl);
  overflow: hidden;
}
.testimonials__bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("testimonial-bg.webp");
  background-size: cover;
  background-position: center;
}
.testimonials__veil {
  position: absolute; inset: 0; z-index: -1;
  background: rgba(20,28,12,.36);
}

.testimonials .section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 5.8vw, 86px);
  text-align: center;
  color: var(--pearl);
  letter-spacing: -.005em;
  margin: 0 0 60px;
  line-height: 1;
}

.quote-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote {
  position: relative;
  flex: 1;
  background: var(--moss);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.3);
}
/* Prevents display:grid from overriding the HTML hidden attribute */
.quote[hidden] { display: none; }

.quote__photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--moss-deep);
}
.quote__photo img { width: 100%; height: 100%; object-fit: cover; }

.quote__body p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(245,242,237,.92);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.quote__body h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 1.6vw, 26px);
  margin: 0;
  letter-spacing: -.005em;
}
.quote__location {
  font-weight: 400;
  opacity: .65;
}

.quote-arrow {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(245,242,237,.5);
  background: rgba(20,28,12,.25);
  color: var(--pearl);
  display: grid; place-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.quote-arrow:hover {
  background: rgba(245,242,237,.18);
  border-color: var(--pearl);
}
.quote-arrow--prev { margin-right: 24px; }
.quote-arrow--next { margin-left: 24px; }

.quote-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}
.quote-dots button {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(245,242,237,.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.quote-dots button.is-active { background: var(--pearl); }

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
  .quote { grid-template-columns: 1fr; }
  .quote__photo { aspect-ratio: 16/10; max-width: 460px; }
}

@media (max-width: 720px) {
  .quote-wrap { padding: 0; flex-direction: column; gap: 18px; }
  .quote-arrow--prev, .quote-arrow--next { margin: 0; }
  .quote { padding: 24px; }
}
