:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --accent: #6dc7c4;
  --accent-dark: #4ea8a5;
  --surface: #f4f4f4;
  --radius-lg: 16px;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

.testimonials *,
.testimonials *::before,
.testimonials *::after {
  box-sizing: border-box;
}

/* Layout */
.testimonials {
  padding: 64px 0;
  display: flex;
  justify-content: center;
}

.testimonials__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: center;
}

/* Before / After */
.ba__frame {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #d9d9d9;
  display: flex;
  flex-direction: column;
}

.ba__half {
  position: relative;
  flex: 1 1 50%;
  overflow: hidden;
  background: #ccc;
}

.ba__image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.ba__tag {
  position: absolute;
  left: 16px;
  padding: 6px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  z-index: 2;
}

.ba__half--after .ba__tag {
  top: 16px;
}
.ba__half--before .ba__tag {
  bottom: 16px;
}

/* Quote */
.quote {
  position: relative;
  padding-top: 8px;
  min-height: 380px;
}

.quote__mark {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--text);
}

.quote__mark svg {
  width: 24px;
  height: 18px;
}

.quote__nav {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #2a2a2a;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  padding: 0 !important;
}

.nav-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.nav-btn svg {
  width: 16px;
  height: 16px;
}

.quote__body {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.quote__body.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.quote__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.quote__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.quote__name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.quote__role {
  font-size: 13px;
  color: var(--text-muted);
}

.quote__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  color: #2a2a2a;
  max-width: 60ch;
}

.quote__text p + p {
  margin-top: 14px;
}

/* Responsive */
@media (max-width: 820px) {
  .testimonials {
    padding: 40px 0;
  }

  .testimonials__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ba__frame {
    max-width: 420px;
    height: 420px;
    margin: 0 auto;
  }

  .quote {
    min-height: auto;
  }
  .quote__mark {
    width: 44px;
    height: 44px;
  }
  .quote__mark svg {
    width: 18px;
    height: 14px;
  }
  .quote__text {
    font-size: 16px;
  }
}
