/* ============================================================
   PAGE: Testimonials (full page)
   FILE: assets/css/testimonials-page.css
   Depends on: pages/trust/testimonials.html, surfaces.css,
   buttons.css, tokens.css, page-header.css, breadcrumbs.css,
   cta-band.css.
   Phase: Stage 9.2 (Group 2 of the Stage 9 Trust & Content batch).

   Namespacing note: this is a DIFFERENT stylesheet/class family
   (.testimonials-page__*) from assets/css/testimonials.css's
   (.testimonials__*), which belongs to the Home "What Our Clients
   Say" teaser section (Stage 5.7) and is left untouched. Keeping a
   separate namespace avoids any class collision on pages where
   both could theoretically be loaded, and avoids touching a
   protected/completed component.

   Global Card System: `.surface--solid` (surfaces.css) supplies the
   card's white background, hairline border, radius and resting
   shadow — same convention every other card grid in the project
   uses. Only card-specific layout is added here.

   Content Authenticity: testimonial content represents genuine
   client feedback. New genuine reviews can be added without changing
   the card structure.
   ============================================================ */

.testimonials-page {
  padding-block: var(--space-10);
  background-color: var(--color-white);
}

.testimonials-page--alt {
  background-color: var(--color-light-gray);
}

.testimonials-page__inner {
  text-align: center;
}

.testimonials-page__heading {
  margin: 0 0 var(--space-2);
  color: var(--color-navy);
  font-size: var(--text-h2);
}

.testimonials-page__subheading {
  max-width: 720px;
  margin-inline: auto;
  margin-block: 0 var(--space-2);
  color: var(--color-dark-gray);
  font-size: var(--text-body);
}

.testimonials-page__note {
  max-width: 720px;
  margin-inline: auto;
  margin-block: 0 var(--space-6);
  color: var(--color-dark-gray);
  font-size: var(--text-small);
  font-style: italic;
  opacity: 0.85;
}

/* ------------------------------------------------------------
   FILTER — category chips (plain links, no JS required to view
   the page; chips simply anchor within the same static grid)
------------------------------------------------------------ */
.testimonials-page__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  margin: 0 0 var(--space-6);
  list-style: none;
  padding: 0;
}

.testimonials-page__filter {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill, 999px);
  background-color: rgba(var(--color-navy-rgb), 0.06);
  color: var(--color-navy);
  font-size: var(--text-small);
  font-weight: 600;
}

/* ------------------------------------------------------------
   GRID — 1 col mobile, 2 tablet, 3 desktop
------------------------------------------------------------ */
.testimonials-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  list-style: none;
  text-align: start;
}

@media (min-width: 768px) {
  .testimonials-page__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-page__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

/* ------------------------------------------------------------
   CARD
------------------------------------------------------------ */
.testimonials-page__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);

  transition:
    border-color var(--duration-fast) var(--ease-premium),
    box-shadow var(--duration-fast) var(--ease-premium),
    transform var(--duration-fast) var(--ease-premium);
}

.testimonials-page__card:hover {
  border-color: rgba(var(--color-navy-rgb), 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonials-page__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: var(--color-gold);
}

.testimonials-page__icon svg {
  width: 100%;
  height: 100%;
}

.testimonials-page__quote {
  margin: 0;
  color: var(--color-navy);
  font-size: var(--text-body);
  line-height: var(--line-height-body);
}

.testimonials-page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin-top: auto;
  padding-top: var(--space-2);
}

.testimonials-page__avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy);
}

.testimonials-page__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonials-page__name {
  color: var(--color-navy);
  font-weight: 600;
  font-size: var(--text-small);
  font-style: normal;
}

.testimonials-page__role {
  color: var(--color-dark-gray);
  font-size: var(--text-small);
}

.testimonials-page__category {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill, 999px);
  background-color: rgba(var(--color-gold-rgb), 0.14);
  color: #8a6c14;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}


.testimonials-page__cta-wrap {
  margin-top: var(--space-6);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-page__card:hover {
    transform: none;
  }
}
