/* SERV Testimonial Carousel — self-contained. No Tailwind, no icon font. */

.serv-testi {
  --serv-blue: #24516A;
  --serv-orange: #E97B32;
  --serv-yellow: #E6B53C;
  --serv-ink: #191c1d;
  --serv-ink-soft: #564338;
  --serv-outline: #897266;
  --serv-surface: #FAF9F7;
  --serv-surface-low: #F4F0EC;

  box-sizing: border-box;
  padding: 80px 0;
  background: var(--serv-surface);
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  color: var(--serv-ink);
}
.serv-testi *,
.serv-testi *::before,
.serv-testi *::after { box-sizing: border-box; }

.serv-testi__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.serv-testi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

/* ---------- media ---------- */
.serv-testi__media { position: relative; }

.serv-testi__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  background: var(--serv-surface-low);
}

.serv-testi__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s ease;
}

/* soft brand glow behind the photo */
.serv-testi__media::before,
.serv-testi__media::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  filter: blur(48px);
  z-index: -1;
  pointer-events: none;
}
.serv-testi__media::before {
  width: 208px; height: 208px;
  right: -32px; bottom: -32px;
  background: var(--serv-yellow);
  opacity: .15;
}
.serv-testi__media::after {
  width: 160px; height: 160px;
  left: -32px; top: -32px;
  background: var(--serv-orange);
  opacity: .10;
}

/* ---------- quote ---------- */
.serv-testi__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.serv-testi .serv-testi__mark {
  display: block;
  width: 56px;
  height: auto;
  color: var(--serv-orange);
  opacity: .28;
  flex: none;
}

.serv-testi__quote {
  margin: -12px 0 0;
  font-family: Jost, system-ui, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--serv-blue);
  text-wrap: pretty;
  transition: opacity .3s ease;
}

.serv-testi__name {
  margin: 0;
  font-family: Jost, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--serv-ink);
  transition: opacity .3s ease;
}

.serv-testi__role {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: .75rem;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--serv-ink-soft);
  transition: opacity .3s ease;
}

/* ---------- controls ---------- */
.serv-testi__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.serv-testi__btn {
  width: 48px;
  height: 48px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--serv-outline);
  border-radius: 9999px;
  background: transparent;
  color: var(--serv-ink);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.serv-testi__btn:hover {
  background: var(--serv-surface-low);
  border-color: var(--serv-blue);
  color: var(--serv-blue);
}
.serv-testi__btn:focus-visible {
  outline: 2px solid var(--serv-blue);
  outline-offset: 3px;
}
.serv-testi .serv-testi__btn svg { width: 20px; height: 20px; display: block; }

.serv-testi__dots {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}
.serv-testi__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(137, 114, 102, .35);
  cursor: pointer;
  transition: background-color .2s ease, width .2s ease;
}
.serv-testi__dot[aria-current="true"] {
  width: 24px;
  background: var(--serv-orange);
}

.serv-testi.is-swapping .serv-testi__img,
.serv-testi.is-swapping .serv-testi__quote,
.serv-testi.is-swapping .serv-testi__name,
.serv-testi.is-swapping .serv-testi__role { opacity: 0; }

/* ---------- responsive ---------- */
@media (min-width: 768px) {
  .serv-testi { padding: 96px 0; }
  .serv-testi__wrap { padding: 0 32px; }
}

@media (min-width: 1024px) {
  .serv-testi__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 96px;
  }
  .serv-testi__frame { max-width: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  .serv-testi__img,
  .serv-testi__quote,
  .serv-testi__name,
  .serv-testi__role,
  .serv-testi__dot,
  .serv-testi__btn { transition: none; }
}
