/* =========================================================
   43-reviews-page.css
   Dedicated Reviews page (page-templates/reviews-page.php):
   intro section + gallery-style testimonial card grid.
   Distinct from 09-reviews.css, which styles the scrolling
   marquee used as a section on other pages.
   ========================================================= */

/* ── Intro ────────────────────────────────────────────── */
.rev-intro__inner{
  max-width:64rem;
  margin-inline:auto;
  text-align:center;
}

.rev-intro__text{
  margin-top:var(--space-5);
  font-size:var(--text-md);
  line-height:var(--leading-loose);
  color:var(--color-text-body);
  text-align:left;
}

.rev-intro__text p{margin:0 0 var(--space-4);}
.rev-intro__text p:last-child{margin-bottom:0;}

/* ── Grid ─────────────────────────────────────────────── */
.rev-grid__heading{text-align:center;margin-bottom:var(--space-10);}

/* Masonry-style columns let cards size to their content, so a
   two-line review sits next to a long one without either being
   padded out to match. Wider minimum than a standard card grid
   so reviews read as a gallery rather than a cramped strip. */
.rev-grid{
  columns:3 340px;
  column-gap:var(--space-6);
}

.rev-card{
  break-inside:avoid;
  page-break-inside:avoid;
  margin:0 0 var(--space-6);
  background:var(--color-bg-white);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  padding:var(--space-8);
  display:flex;
  flex-direction:column;
  gap:var(--space-4);
  transition:box-shadow var(--duration-base) var(--ease-out),
             transform var(--duration-base) var(--ease-out),
             border-color var(--duration-base) var(--ease-out);
}

.rev-card:hover{
  box-shadow:var(--shadow-lg);
  transform:translateY(-3px);
  border-color:transparent;
}

.rev-card__stars{display:flex;gap:3px;color:#F59E0B;}

.rev-card__quote{
  margin:0;
  font-size:var(--text-base);
  line-height:var(--leading-loose);
  color:var(--color-text-body);
}

.rev-card__quote p{margin:0 0 var(--space-3);}
.rev-card__quote p:last-child{margin-bottom:0;}
.rev-card__quote p:first-child::before{content:"\201C";}
.rev-card__quote p:last-child::after{content:"\201D";}

.rev-card__author{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding-top:var(--space-4);
  border-top:1px solid var(--color-border);
  margin-top:auto;
}

.rev-card__name{
  font-family:var(--font-heading);
  font-weight:var(--weight-semibold);
  font-size:var(--text-sm);
  color:var(--color-text-primary);
}

.rev-card__location{
  font-size:var(--text-xs);
  color:var(--color-text-muted);
}

/* ── Actions ──────────────────────────────────────────── */
.rev-actions{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-4);
  justify-content:center;
  margin-top:var(--space-10);
}

@media(max-width:991px){
  .rev-grid{columns:2 300px;column-gap:var(--space-5);}
  .rev-card{padding:var(--space-6);margin-bottom:var(--space-5);}
}

@media(max-width:767px){
  .rev-grid{columns:1;}
  .rev-intro__inner{text-align:left;}
  .rev-actions{flex-direction:column;align-items:stretch;}
  .rev-actions .btn-primary,.rev-actions .btn-ghost{width:100%;justify-content:center;}
}