/* ===========================================
   TESTIMONIALS
   =========================================== */
.testimonials {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.testimonials-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.testimonials-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonials-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 48, 48, 0.65);
}
.testimonials-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}
/* Slides share one grid cell; site.js sets the band's height to the quote
   on show, so any length fits. Hidden slides are also invisible to the
   pointer and to screen readers. */
.testimonial-carousel {
  position: relative;
  display: grid;
  overflow: hidden;
  transition: height 0.3s ease;
}
.testimonial-slide {
  grid-area: 1 / 1;
  align-self: start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
}
.testimonial-mark {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 0.6;
  color: var(--orange);
  margin-bottom: 20px;
  user-select: none;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  line-height: 1.65;
  color: var(--white);
}
.testimonial-attr {
  margin-top: 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}
.testimonial-dots {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
/* A 24px tap target drawing an 8px dot. */
.testimonial-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.testimonial-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 200ms ease;
}
.testimonial-dot.active::before {
  background: var(--orange);
}
.testimonial-dot:hover:not(.active)::before {
  background: rgba(255,255,255,0.65);
}
.testimonial-dot:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
  border-radius: 50%;
}

/* --- Compact variant (attorney bio pages) --- */
.testimonials--compact { padding: 60px 0; }
.testimonials--compact .testimonial-mark {
  font-size: 52px;
  margin-bottom: 12px;
}
.testimonials--compact .testimonial-quote {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
}
.testimonials--compact .testimonial-attr {
  margin-top: 20px;
}
.testimonials--compact .testimonial-dots {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .testimonials { padding: 80px 0; }
  .testimonials-inner { padding: 0 24px; }
  .testimonials--compact { padding: 48px 0; }
}
