/* =========================================================
   TESTIMONIALS
   - quote cards with animated glow on hover
   ========================================================= */

.hm-testimonials{
  background:
    /* White top + bottom caps (fade to white) */
    linear-gradient(
      180deg,
      #fff 0%,
      #fff 10%,
      rgba(255,255,255,0) 26%,
      rgba(255,255,255,0) 74%,
      #fff 92%,
      #fff 100%
    ),

    /* Your existing glow */
    radial-gradient(720px 420px at 18% 20%, rgba(31,138,91,.10), transparent 60%),
    radial-gradient(720px 420px at 82% 10%, rgba(201,162,39,.10), transparent 60%);
}

.hm-testimonials__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

@media (max-width: 980px){
  .hm-testimonials__grid{ grid-template-columns: 1fr; }
}

.hm-quote{
  position: relative;
  border-radius: 26px;
  padding: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 52px rgba(15,23,42,.08);

  transform-style: preserve-3d;
  will-change: transform;
  overflow:hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hm-quote:hover{
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(15,23,42,.14);
}

.hm-quote__text{
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(15,23,42,.82);
  font-weight: 750;
}

.hm-quote__meta{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,23,42,.08);
}

.hm-quote__meta strong{ font-weight: 950; }
.hm-quote__meta span{ color: rgba(15,23,42,.60); font-weight: 850; }

.hm-quote__glow{
  position:absolute;
  inset: -40% -60%;
  background:
    radial-gradient(circle at 30% 40%, rgba(201,162,39,.20), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(31,138,91,.18), transparent 55%);
  transform: translateX(-20%) rotate(10deg);
  opacity: 0;
  transition: opacity 220ms ease, transform 760ms cubic-bezier(.2,.8,.2,1);
  pointer-events:none;
}

.hm-quote:hover .hm-quote__glow{
  opacity: 1;
  transform: translateX(20%) rotate(10deg);
}
