@import url("https://cdn.jsdelivr.net/npm/tiny-slider@2.9.4/dist/tiny-slider.css");

:root {
  color-scheme: light;
}

.testimonial-page {
  background: radial-gradient(
    circle at top,
    rgba(var(--core-3-rgb), 0.08) 0%,
    rgba(var(--support-2-rgb), 0.08) 45%,
    var(--light-bg-hex) 100%
  );
}

.testimonial-container {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.testimonial-hero {
  padding: clamp(28px, 5vw, 48px) 0 clamp(32px, 5vw, 48px);
}

.testimonial-hero-box {
  background: rgba(var(--canvas-base-rgb), 0.92);
  border-radius: 22px;
  padding: clamp(56px, 8vw, 96px) clamp(38px, 8vw, 92px);
  box-shadow: 0 18px 36px rgba(18, 31, 84, 0.12);
  text-align: center;
}

.testimonial-hero-box h1 {
  font-family: var(--ff-primary);
  font-size: clamp(2.8rem, 4.6vw, 4.1rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--core-1-hex);
  margin-bottom: 18px;
}

.testimonial-hero-box p {
  font-family: var(--ff-secondary);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.85;
  color: rgba(var(--core-1-rgb), 0.72);
  margin: 0 auto;
  max-width: 620px;
}

.testimonial-showcase {
  padding: 0 0 clamp(12px, 4vw, 28px);
}

.testimonial-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3vw, 26px);
}

.testimonial-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.92fr);
  gap: clamp(14px, 3.8vw, 30px);
  align-items: center;
  border-radius: 22px;
  padding: clamp(24px, 3.2vw, 44px);
  color: var(--canvas-base-hex);
  box-shadow: 0 18px 36px rgba(18, 28, 72, 0.2);
}

.testimonial-card.gradient-orange {
  background: linear-gradient(118deg, var(--core-2-hex) 0%, var(--accent-1-hex) 100%);
}

.testimonial-card.gradient-indigo {
  background: linear-gradient(118deg, rgba(var(--core-3-rgb), 1) 0%, rgba(var(--support-2-rgb), 1) 100%);
}

.testimonial-card.gradient-teal {
  background: linear-gradient(118deg, rgba(var(--support-1-rgb), 1) 0%, rgba(var(--support-2-rgb), 0.85) 100%);
}

.testimonial-card-body {
  max-width: 580px;
}

.testimonial-quote-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--canvas-base-hex);
  margin-bottom: 18px;
  box-shadow: 0 10px 18px rgba(10, 18, 46, 0.22);
}

.testimonial-card-body blockquote {
  margin: 0 0 18px;
  font-family: var(--ff-secondary);
  font-size: clamp(1.12rem, 2.2vw, 1.34rem);
  line-height: 1.82;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(var(--canvas-base-rgb), 0.95);
}

.testimonial-name {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(var(--canvas-base-rgb), 0.78);
}

.testimonial-card-media {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.testimonial-video-trigger {
  appearance: none;
  background: var(--canvas-base-hex);
  border: none;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(11, 29, 72, 0.3);
  width: min(100%, 340px);
  cursor: pointer;
  display: block;
}

.testimonial-video-trigger:focus-visible {
  outline: 3px solid rgba(var(--canvas-base-rgb), 0.9);
  outline-offset: 6px;
}

.testimonial-media-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.testimonial-media-surface {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 8px solid var(--canvas-base-hex);
}

.testimonial-preview {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.testimonial-media-overlay {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(var(--core-1-rgb), 0.1) 25%, rgba(var(--core-1-rgb), 0.45) 100%);
  pointer-events: none;
}

.testimonial-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(var(--canvas-base-rgb), 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(10, 22, 60, 0.28);
}

.testimonial-play .play-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2-hex) 0%, rgba(var(--core-3-rgb), 1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-play svg {
  width: 20px;
  height: 20px;
  fill: var(--canvas-base-hex);
  transform: translateX(1px);
}

.testimonial-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--core-1-rgb), 0.78);
  z-index: 1100;
  padding: 24px;
}

.testimonial-modal[hidden] {
  display: none;
}

.testimonial-modal-content {
  position: relative;
  width: min(90vw, 720px);
  max-height: 90vh;
  background: rgba(var(--core-1-rgb), 0.98);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(6, 14, 41, 0.55);
  overflow: hidden;
}

.testimonial-modal video {
  width: 100%;
  display: block;
  height: auto;
  max-height: 80vh;
  background: rgba(var(--core-1-rgb), 1);
  object-fit: contain;
}

.testimonial-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(var(--core-1-rgb), 0.66);
  border: none;
  color: var(--canvas-base-hex);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  pointer-events: auto;
}

.testimonial-modal-close:focus {
  outline: 2px solid var(--canvas-base-hex);
  outline-offset: 2px;
}

body.testimonial-modal-open {
  overflow: hidden;
}

.testimonial-review {
  font-family: var(--ff-secondary);
  padding: clamp(44px, 6.5vw, 88px) 0;
  background: radial-gradient(
    circle at top,
    rgba(var(--core-3-rgb), 0.1) 0%,
    rgba(var(--accent-2-rgb, 179, 86, 212), 0.08) 45%,
    rgba(var(--light-bg-rgb, 243, 243, 243), 1) 100%
  );
}

.review-shell {
  position: relative;
  background: linear-gradient(130deg, var(--accent-2-hex) 0%, rgba(var(--core-3-rgb), 1) 52%, var(--core-3-hex) 100%);
  border-radius: 28px;
  padding: clamp(36px, 5.6vw, 64px) clamp(32px, 5.4vw, 56px);
  box-shadow: 0 28px 65px rgba(53, 36, 112, 0.3);
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 3.6vw, 44px);
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.review-shell > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  .review-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

.review-shell::before,
.review-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(0);
  opacity: 0.6;
}

.review-shell::before {
  width: 240px;
  height: 240px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(var(--canvas-base-rgb), 0.65) 0%, rgba(var(--canvas-base-rgb), 0) 70%);
}

.review-shell::after {
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(var(--support-2-rgb), 0.55) 0%, rgba(var(--canvas-base-rgb), 0) 70%);
}

.review-summary {
  position: relative;
  background: linear-gradient(180deg, rgba(var(--canvas-base-rgb), 0.96) 0%, rgba(var(--light-bg-rgb, 243, 243, 243), 0.92) 100%);
  border-radius: 22px;
  border: 1px solid rgba(var(--canvas-base-rgb), 0.65);
  box-shadow: 0 22px 40px rgba(25, 52, 110, 0.18);
  padding: clamp(26px, 4.4vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(12px);
  z-index: 1;
}

.review-summary::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 0%, rgba(105, 123, 255, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
  z-index: -1;
}

.review-summary__header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.review-summary__icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(var(--core-3-rgb), 0.18), rgba(var(--canvas-base-rgb), 0.9));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 28px rgba(var(--core-3-rgb), 0.22);
  border: 1px solid rgba(var(--core-3-rgb), 0.2);
}

.review-summary__icon svg {
  width: 34px;
  height: 34px;
}



.review-summary__title {
  margin: 6px 0 0;
  font-size: clamp(1.7rem, 2.9vw, 2.2rem);
  font-weight: 700;
  color: var(--core-1-hex);
  line-height: 1.08;
}

.review-summary__score {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.review-summary__avg {
  font-size: clamp(2.6rem, 4.6vw, 3rem);
  font-weight: 700;
  color: var(--core-1-hex);
  line-height: 1;
}

.review-summary__meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.review-summary__meta {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(var(--core-1-rgb), 0.64);
}

.review-summary__sources {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(var(--canvas-base-rgb), 0.85);
  border: 1px solid rgba(var(--core-3-rgb), 0.18);
  box-shadow: inset 0 1px 0 rgba(var(--canvas-base-rgb), 0.4), 0 16px 26px rgba(20, 37, 92, 0.12);
}

.review-summary__sources img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: saturate(1.15);
}

.review-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.summary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.summary-btn.primary {
  color: var(--canvas-base-hex);
  background: linear-gradient(135deg, var(--core-3-hex) 0%, rgba(var(--support-2-rgb), 1) 100%);
  box-shadow: 0 22px 36px rgba(38, 92, 255, 0.35);
}

.summary-btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.summary-btn.outline {
  color: var(--core-3-hex);
  border: 1.6px solid rgba(var(--core-3-rgb), 0.45);
  background: rgba(var(--canvas-base-rgb), 0.88);
  box-shadow: 0 14px 28px rgba(var(--core-3-rgb), 0.12);
}

.summary-btn:hover {
  transform: translateY(-4px);
}

.summary-btn.primary:hover::after {
  opacity: 1;
}

.summary-btn:focus-visible {
  outline: 3px solid rgba(var(--core-3-rgb), 0.4);
  outline-offset: 4px;
}

.summary-btn__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--canvas-base-hex);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(30, 26, 74, 0.18);
}

.summary-btn__icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.summary-btn--google {
  color: var(--core-3-hex);
  border-color: rgba(var(--core-3-rgb), 0.35);
  background: rgba(var(--canvas-base-rgb), 0.94);
}

.summary-btn--google:hover {
  border-color: rgba(var(--core-3-rgb), 0.5);
  background: var(--canvas-base-hex);
}

.rating-stars {
  position: relative;
  display: inline-block;
  font-size: 1.25rem;
  letter-spacing: 4px;
  color: rgba(var(--core-1-rgb), 0.2);
  line-height: 1;
  text-shadow: 0 4px 12px rgba(var(--core-2-rgb), 0.18);
}

.rating-stars::after {
  content: "★★★★★";
  position: absolute;
  inset: 0;
  color: var(--core-2-hex);
  width: calc(var(--rating, 0) / 5 * 100%);
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 0 6px 16px rgba(var(--core-2-rgb), 0.35);
}

.review-summary__stars {
  font-size: clamp(1.2rem, 2vw, 1.35rem);
}

.review-carousel {
  position: relative;
}

.reviews-slider {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reviews-slider--static {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 3vw, 30px);
}

.reviews-slider--static .review-card {
  flex: 1 1 min(320px, 100%);
  max-width: min(360px, 100%);
}

.review-carousel .tns-inner {
  padding: 0 clamp(12px, 2.4vw, 38px);
  box-sizing: border-box;
}

.review-card {
  position: relative;
  background: linear-gradient(180deg, rgba(var(--canvas-base-rgb), 0.97) 0%, rgba(var(--light-bg-rgb, 243, 243, 243), 0.92) 100%);
  border-radius: 20px;
  border: 1px solid rgba(var(--canvas-base-rgb), 0.65);
  box-shadow: 0 22px 48px rgba(26, 45, 119, 0.18);
  padding: clamp(22px, 3.2vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.24s ease;
  backdrop-filter: blur(6px);
  z-index: 0;
  overflow: hidden;
}

.review-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 16px;
  background: radial-gradient(circle at top, rgba(143, 75, 232, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: -1;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 54px rgba(24, 44, 118, 0.24);
}

.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-card__avatar {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--accent-2-rgb, 179, 86, 212), 0.32), rgba(var(--core-3-rgb), 0.34));
  overflow: hidden;
  color: var(--accent-2-hex);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.12rem;
  text-transform: uppercase;
  border: 2px solid rgba(143, 75, 232, 0.28);
  box-shadow: 0 14px 26px rgba(66, 37, 166, 0.26);
  flex-shrink: 0;
}

.review-card__avatar::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(233, 237, 255, 0.65));
  z-index: 0;
}

.review-card__avatar span,
.review-card__avatar img {
  position: relative;
  z-index: 1;
}

.review-card__avatar--image {
  background: transparent;
  border: none;
  padding: 0;
}

.review-card__avatar--image img {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: cover;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.review-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(var(--core-1-rgb), 0.88);
}

.review-card__ago {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: rgba(var(--core-1-rgb), 0.58);
}

.review-card__stars {
  font-size: 1.05rem;
  letter-spacing: 3px;
}

.review-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(var(--core-1-rgb), 0.78);
}

.review-card__source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 50%;
  background: var(--canvas-base-hex);
  border: 1px solid rgba(var(--core-3-rgb), 0.16);
  box-shadow: 0 14px 26px rgba(32, 38, 94, 0.18);
}

.review-card__source-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: none;
}

.review-card__source--google {
  background: radial-gradient(circle, rgba(var(--core-3-rgb), 0.12) 0%, rgba(var(--canvas-base-rgb), 0.95) 80%);
  border-color: rgba(var(--core-3-rgb), 0.28);
  box-shadow: 0 16px 30px rgba(var(--core-3-rgb), 0.28);
}

.review-card__source--facebook {
  background: radial-gradient(circle, rgba(var(--accent-2-rgb, 179, 86, 212), 0.12) 0%, rgba(var(--canvas-base-rgb), 0.94) 80%);
  border-color: rgba(var(--accent-2-rgb, 179, 86, 212), 0.28);
  box-shadow: 0 16px 32px rgba(var(--accent-2-rgb, 179, 86, 212), 0.26);
}

.review-card__source--yelp {
  background: radial-gradient(circle, rgba(var(--core-2-rgb), 0.12) 0%, rgba(var(--canvas-base-rgb), 0.94) 80%);
  border-color: rgba(var(--core-2-rgb), 0.28);
  box-shadow: 0 16px 30px rgba(var(--core-2-rgb), 0.24);
}

.reviews-empty {
  margin: 0;
  font-size: 1rem;
  color: var(--canvas-base-hex);
}

.review-carousel .tns-outer {
  position: relative;
}

.review-carousel .tns-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(8px, 1.5vw, 16px);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.review-carousel .tns-controls button {
  pointer-events: all;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--canvas-base-rgb), 0.22);
  border: 1px solid rgba(var(--canvas-base-rgb), 0.38);
  color: transparent;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(28, 34, 92, 0.24);
  backdrop-filter: blur(6px);
}

.review-carousel .tns-controls button:hover {
  background: rgba(var(--canvas-base-rgb), 0.4);
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(23, 30, 82, 0.3);
}

.review-carousel .tns-controls button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.review-carousel .tns-controls button[data-controls="prev"]::after,
.review-carousel .tns-controls button[data-controls="next"]::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.review-carousel .tns-controls button[data-controls="prev"]::after {
  border-right: 10px solid var(--canvas-base-hex);
  margin-left: 2px;
}

.review-carousel .tns-controls button[data-controls="next"]::after {
  border-left: 10px solid var(--canvas-base-hex);
  margin-right: 2px;
}

.review-carousel .tns-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(22px, 3.4vw, 32px);
}

.review-carousel .tns-nav button {
  width: 26px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(var(--canvas-base-rgb), 0.38);
  transition: transform 0.22s ease, background 0.22s ease;
  cursor: pointer;
}

.review-carousel .tns-nav button.tns-nav-active {
  background: var(--canvas-base-hex);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(21, 32, 88, 0.32);
}

@media (max-width: 1080px) {
  .testimonial-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial-card::after {
    display: none;
  }

  .testimonial-quote-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial-card-media {
    justify-content: center;
  }

  .testimonial-card:nth-child(even) .testimonial-card-body {
    order: 1;
    margin-left: 0;
  }

  .testimonial-card:nth-child(even) .testimonial-card-media {
    order: 2;
  }
}

@media (max-width: 1200px) {
  .review-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .testimonial-container {
    width: min(calc(100% - 32px), 100%);
  }

  .testimonial-hero {
    padding-top: 32px;
  }

  .testimonial-hero-box {
    padding: 54px 34px;
  }

  .testimonial-card {
    padding: 46px 30px;
  }
}

@media (max-width: 1024px) {
  .testimonial-hero-box p {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .summary-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .review-card__header {
    align-items: flex-start;
  }

  .review-card__meta {
    align-items: flex-start;
  }
}
