/* ============================================================
   COMPONENT: Testimonials
   FILE: assets/css/testimonials.css
   Depends on: testimonials.html.
   Loaded after portfolio.css (Phase 1.0 §6, in build order).

   Global Card System: `.surface--solid` (surfaces.css) supplies
   the card's white background, hairline border, radius and
   resting shadow — same convention portfolio.css/benefits.css
   already use. Only card-specific layout (icon badge, internal
   spacing) is added here, scoped under .testimonials__card —
   nothing here redefines the surface system itself.

   Section background is white, continuing the white/light-gray
   alternation already established by ... Process (white) ->
   Portfolio (light-gray) -> Testimonials (white) here.

   Card = informational (a plain <li>, not a link): same
   convention portfolio.css uses, since these are individual
   quotes rather than destination pages. The path to the full
   Testimonials page is the single .testimonials__cta below the
   grid instead, styled with nothing but the existing global
   .btn / .btn--primary / .btn--lg classes from buttons.css — no
   new button variant is introduced here.

   No new JavaScript / no carousel: this section has no motion
   hook and no slider dependency, matching the "static HTML/CSS
   is enough, do not add JavaScript" rule portfolio.css already
   follows for this kind of grid. The hover states below are
   pure CSS `:hover`.

   RTL readiness (Stage 5.7 scope only): logical properties
   (text-align: start, margin-inline / padding-inline) are used
   instead of physical left/right so this section reads correctly
   if an ancestor later sets dir="rtl" for Urdu content — no
   separate RTL stylesheet or breakpoint system is introduced.
   ============================================================ */

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

.testimonials__inner {
  text-align: center;
}

.testimonials__heading {
  margin: 0 0 var(--space-2);
  color: var(--color-navy);
  font-size: var(--text-h3);
}

.testimonials__subheading {
  max-width: 640px;
  margin-inline: auto;
  margin-block: 0 var(--space-6);
  color: var(--color-dark-gray);
  font-size: var(--text-body);
}

/* ------------------------------------------------------------
   GRID
   Single column on mobile, 2 columns on tablet, 3 across on
   desktop for the six testimonial cards — mirrors the
   column-count progression already used by Statistics/Partners/
   Benefits/Services/Portfolio.
------------------------------------------------------------ */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);

  list-style: none;
}

/* ------------------------------------------------------------
   CARD
------------------------------------------------------------ */
.testimonials__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-4);
  text-align: start;

  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__card:hover {
  border-color: rgba(var(--color-navy-rgb), 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonials__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background-color: rgba(var(--color-gold-rgb), 0.12);
  color: var(--color-gold);
}

.testimonials__icon svg {
  width: 24px;
  height: 24px;
}

.testimonials__quote {
  margin: 0;
  color: var(--color-dark-gray);
  font-size: var(--text-small);
  line-height: var(--line-height-body);
}


.testimonials__client {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: var(--space-3);
}

.testimonials__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);
  color: var(--color-white);
  font-weight: 700;
}

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

.testimonials__initials {
  font-size: var(--text-small);
}

.testimonials__client-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonials__attribution {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  margin-block-start: auto;
  padding-block-start: var(--space-2);
}

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

.testimonials__role {
  color: var(--color-dark-gray);
  font-size: 0.8125rem;
  opacity: 0.85;
}

/* ------------------------------------------------------------
   CTA
   Reuses the existing global .btn system exactly as Portfolio's
   CTA does — centered below the grid as the section's single,
   clear path to the full Testimonials page.
------------------------------------------------------------ */
.testimonials__cta-wrap {
  margin-block-start: var(--space-6);
}
.testimonials__cta {
  margin-block-start: var(--space-8);
  text-align: center;
}
/* ------------------------------------------------------------
   RESPONSIVE
   Breakpoint values copied from tokens.css's documented
   reference values, same convention portfolio.css/benefits.css
   use.
------------------------------------------------------------ */

/* Tablet: 2 columns */
@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* Desktop and up: 3 across */
@media (min-width: 1024px) {
  .testimonials {
    padding-block: var(--space-12);
  }

  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .testimonials__card {
    padding: var(--space-5);
  }

  .testimonials__cta-wrap {
    margin-block-start: var(--space-8);
  }
}

/* Small mobile: tighten spacing, keep cards compact, no overflow */
@media (max-width: 479px) {
  .testimonials {
    padding-block: var(--space-8);
  }

  .testimonials__grid {
    gap: var(--space-3);
  }

  .testimonials__card {
    padding: var(--space-3);
  }
}

/* ------------------------------------------------------------
   REDUCED MOTION
   Same convention as portfolio.css: the hover lift is removed
   for users who have requested less motion, while state changes
   that aren't motion (border/shadow) remain.
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .testimonials__card:hover {
    transform: none;
  }
}
