/* ===== Testimonials page (Testimonials.html) styles ===== */

/* ---------- Heading band ---------- */
.testimonials-head {
  padding: 34px 16px 50px;
  border-bottom: 1px solid #ccc;
  background: #f7f7f7;
  text-align: center;
}

.testimonials-head h1 {
  margin: 0;
  font-family: "Roboto", "Open Sans", Arial, sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.2;
  color: #111;
}

/* ---------- Cards ---------- */
.testimonials {
  max-width: 1232px;
  margin: 0 auto;
  padding: 80px 16px 20px;
  box-sizing: border-box;
}

/* Without JS: a simple 3-column grid */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 30px 42px;
}

/* With JS: cards are moved into these column wrappers (masonry) */
.testimonials__grid.is-masonry {
  grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr));
}

.testimonials__column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.testimonial {
  margin: 0;
  padding: 20px 20px 34px;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #fff;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.testimonial:hover {
  border-color: #cfe9f7;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.testimonial__text {
  margin: 0 0 30px;
}

.testimonial__text p {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #888;
}

.testimonial__person {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial__person img {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e6e6e6; /* shows behind the transparent default avatar */
  object-fit: cover;
}

.testimonial__name,
.testimonial__role {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.15;
}

.testimonial__name {
  color: #222;
}

.testimonial__role {
  color: #00a2e8;
}

/* ---------- Fade-in (classes set by js/Testimonials.js) ---------- */
.js-reveal .testimonial {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.5s ease, translate 0.5s ease, box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.js-reveal .testimonial.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .testimonial {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .testimonial:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .testimonials {
    padding-top: 50px;
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .testimonials__column {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .testimonials {
    padding-top: 30px;
  }

  .testimonials__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .testimonials__column {
    gap: 16px;
  }
}
