/* =========================================================
   11. TESTIMONIALS
   ========================================================= */

.testimonials {
  position: relative;

  padding: 80px 28px 40px;

  overflow: hidden;
}

.testimonials-container {
  position: relative;

  max-width: 1200px;
  min-height: 720px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.9fr 1.1fr;

  align-items: center;

  gap: 75px;
}

/* =========================================================
   TESTIMONIALS — VISUAL
   ========================================================= */

.testimonials-visual {
  position: relative;

  height: 650px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------
   Background Glow
   --------------------------------------------------------- */

.testimonials-glow {
  position: absolute;

  width: 470px;
  height: 470px;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  background: radial-gradient(
    circle,
    rgba(57, 230, 164, 0.13) 0%,
    rgba(57, 230, 164, 0.06) 35%,
    rgba(57, 230, 164, 0) 72%
  );

  pointer-events: none;
}

/* ---------------------------------------------------------
   Decorative Orbits
   --------------------------------------------------------- */

.testimonials-orbit {
  position: absolute;

  border: 1px solid #d4e3dc;

  border-radius: 50%;

  pointer-events: none;
}

.testimonials-orbit-one {
  width: 420px;
  height: 420px;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%) rotate(-12deg);
}

.testimonials-orbit-two {
  width: 535px;
  height: 535px;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%) rotate(18deg);

  border-style: dashed;
}

/* =========================================================
   TESTIMONIALS — PERSON IMAGE
   ========================================================= */

.testimonials-image {
  position: relative;
  display: block;

  z-index: 2;

  width: 100%;
  max-width: 480px;
  scale: 1.2;
  object-position: center bottom;

  height: auto;

  object-fit: contain;

  filter: drop-shadow(0 20px 30px rgba(23, 36, 33, 0.12));
}

/* =========================================================
   TESTIMONIALS — FLOATING LABELS
   ========================================================= */

.testimonials-float-card {
  position: absolute;

  z-index: 4;

  display: flex;
  flex-direction: column;

  gap: 4px;

  padding: 12px 15px;

  background: rgba(255, 255, 255, 0.95);

  border: 1px solid rgba(219, 225, 220, 0.9);

  border-radius: 8px;

  box-shadow: 0 12px 30px rgba(23, 58, 48, 0.1);

  backdrop-filter: blur(6px);

  animation: testimonialFloat 5s ease-in-out infinite;
}

.testimonials-float-card span {
  color: #71817b;

  font:
    600 8px "DM Mono",
    monospace;

  letter-spacing: 0.07em;
}

.testimonials-float-card strong {
  color: var(--ink);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: -0.015em;
}

/* ---------------------------------------------------------
   Floating Card Positions
   --------------------------------------------------------- */

.testimonials-float-top {
  top: 10px;
  right: -20px;
  animation: servicesFloatTop 2s ease-in-out infinite;
}

.testimonials-float-bottom {
  bottom: 110px;
  left: -5px;
  animation: servicesFloatBottom 2s ease-in-out infinite;
}

/* ---------------------------------------------------------
   Floating Animation
   --------------------------------------------------------- */

@keyframes testimonialFloatTop {
  0%,
  100% {
    transform: translateY(0) rotate(2deg);
  }

  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}

@keyframes testimonialFloatBottom {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(7px) rotate(-2deg);
  }
}

/* =========================================================
   TESTIMONIALS — CONTENT
   ========================================================= */

.testimonials-content {
  min-width: 0;
}

/* ---------------------------------------------------------
   Heading
   --------------------------------------------------------- */

.testimonials-heading {
  margin-bottom: 38px;
}

.testimonials-heading .eyebrow {
  margin-bottom: 18px;
}

.testimonials-heading h2 {
  margin: 0 0 20px;

  color: var(--ink);

  font-family: "Inter", Arial, sans-serif;

  font-size: clamp(42px, 5vw, 62px);

  font-weight: 800;

  line-height: 0.96;

  letter-spacing: -0.06em;

  text-transform: uppercase;
}

.testimonials-heading h2 em {
  color: var(--green-soft, #1fab7a);

  font-style: normal;
}

.testimonials-heading > p:last-child {
  max-width: 500px;

  margin: 0;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.7;
}

/* =========================================================
   TESTIMONIALS — LIST
   ========================================================= */

.testimonials-list {
  display: flex;
  flex-direction: column;

  gap: 12px;
}

/* =========================================================
   TESTIMONIAL CARD
   ========================================================= */

.testimonial-card {
  position: relative;

  padding: 20px 22px;

  background: #fafcfb;

  border: 1px solid var(--line);

  border-radius: 9px;

  box-shadow: 0 5px 20px rgba(23, 58, 48, 0.04);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.testimonial-card:hover {
  transform: translateX(5px);

  border-color: #c8d8d1;

  box-shadow: 0 12px 28px rgba(23, 58, 48, 0.09);
}

/* ---------------------------------------------------------
   Card Top
   --------------------------------------------------------- */

.testimonial-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 11px;
}

.testimonial-stars {
  color: #f0b900;

  font-size: 13px;

  letter-spacing: 1px;

  line-height: 1;
}

.testimonial-source {
  color: #8a9691;

  font:
    500 8px "DM Mono",
    monospace;

  text-transform: uppercase;

  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------
   Quote
   --------------------------------------------------------- */

.testimonial-card blockquote {
  max-width: 620px;

  margin: 0 0 17px;

  color: var(--ink);

  font-size: 13px;

  font-weight: 500;

  line-height: 1.6;

  letter-spacing: -0.01em;
}

/* =========================================================
   TESTIMONIAL AUTHOR
   ========================================================= */

.testimonial-author {
  display: flex;

  align-items: center;

  gap: 10px;
}

.testimonial-avatar {
  width: 29px;
  height: 29px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  background: var(--ink);

  border-radius: 50%;

  color: var(--mint);

  font:
    700 8px "DM Mono",
    monospace;
}

.testimonial-author strong {
  display: block;

  margin-bottom: 2px;

  color: var(--ink);

  font-size: 10px;

  font-weight: 750;
}

.testimonial-author span {
  display: block;

  color: var(--muted);

  font:
    500 8px "DM Mono",
    monospace;
}

/* =========================================================
   TESTIMONIALS — BOTTOM
   ========================================================= */

.testimonials-bottom {
  display: flex;

  align-items: center;
  justify-content: space-between;

  grid-column: span 2;

  gap: 25px;

  margin-top: 30px;

  padding-top: 20px;

  border-top: 1px solid var(--line);
}

.testimonials-bottom > span {
  display: flex;

  align-items: center;

  gap: 9px;

  color: var(--muted);

  font:
    500 9px "DM Mono",
    monospace;

  text-transform: uppercase;

  letter-spacing: 0.05em;
}

.testimonials-bottom > span i {
  width: 6px;
  height: 6px;

  flex-shrink: 0;

  background: var(--mint);

  border-radius: 50%;
}

.testimonials-bottom .text-link {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  color: var(--ink);

  font-size: 12px;

  font-weight: 700;

  text-decoration: none;

  white-space: nowrap;

  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.testimonials-bottom .text-link span {
  font-size: 17px;

  font-weight: 400;
}

.testimonials-bottom .text-link:hover {
  gap: 15px;

  color: #168d62;
}

/* =========================================================
   TESTIMONIALS — RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {
  .testimonials {
    padding: 90px 28px 100px;
  }

  .testimonials-container {
    grid-template-columns: 1fr;

    gap: 55px;
  }

  .testimonials-visual {
    height: 500px;

    order: 1;
  }

  .testimonials-content {
    order: 2;
  }

  .testimonials-image {
    max-width: 400px;
  }

  .testimonials-float-top {
    top: 60px;
    right: 10%;
  }

  .testimonials-float-bottom {
    bottom: 60px;
    left: 10%;
  }
}

/* =========================================================
   TESTIMONIALS — MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .testimonials {
    padding: 75px 21px 85px;
  }

  .testimonials-container {
    gap: 40px;
  }

  /* Hide visual entirely on mobile */

  .testimonials-visual {
    display: none;
  }

  .testimonials-heading {
    margin-bottom: 30px;
  }

  .testimonials-heading h2 {
    font-size: 42px;
  }

  .testimonials-heading > p:last-child {
    font-size: 14px;
  }

  .testimonials-list {
    gap: 10px;
  }

  .testimonial-card {
    padding: 17px 16px;
  }

  .testimonial-card-top {
    align-items: flex-start;
    flex-direction: column;

    gap: 7px;

    margin-bottom: 10px;
  }

  .testimonial-card blockquote {
    font-size: 12px;

    line-height: 1.55;
  }

  .testimonial-source {
    font-size: 7px;
  }

  .testimonials-bottom {
    align-items: flex-start;

    flex-direction: column;

    gap: 18px;

    margin-top: 25px;
  }
}
