/* ==========================================================================
   Macaw Bytes - Testimonials (corporate dark mood)
   Extends home.css via body.page-testimonials
   ========================================================================== */

.tm-hero {
  position: relative;
  min-height: min(68svh, 580px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(7rem, 14vw, 9.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--home-line);
  background:
    linear-gradient(165deg, #0a1218 0%, #0b0d10 45%, #0c1410 100%);
}

.tm-hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 14% 22%, rgba(74, 168, 224, 0.28), transparent 62%),
    radial-gradient(ellipse 48% 45% at 88% 16%, rgba(46, 174, 78, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 95%, rgba(240, 180, 41, 0.12), transparent 55%);
}

.tm-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tm-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.15rem, 4.8vw, 3.45rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--home-ink);
  margin: 0.65rem auto 1.15rem;
  max-width: 14ch;
}

.tm-hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--home-muted);
  max-width: 42rem;
  margin: 0 auto 1.75rem;
}

.tm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tm-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.5rem 1.35rem 1.4rem;
  border-radius: 10px;
  border: 1px solid var(--home-line);
  background: var(--home-surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tm-card:hover {
  border-color: rgba(240, 180, 41, 0.4);
  transform: translateY(-2px);
}

.tm-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tm-card__num {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--home-blue);
}

.tm-card__stars {
  color: var(--home-yellow);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.tm-card__quote {
  margin: 0 0 1.25rem;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.65;
  flex: 1;
}

.tm-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--home-line);
}

.tm-card__footer strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--home-ink);
}

.tm-card__footer span {
  font-size: 0.85rem;
  color: var(--home-muted);
}

@media (max-width: 980px) {
  .tm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-hero h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .tm-hero {
    min-height: auto;
    padding-top: 6.5rem;
  }

  .tm-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .tm-grid {
    grid-template-columns: 1fr;
  }

  .tm-card:hover {
    transform: none;
  }
}
