/* ==========================================================================
   sec-reviews.css
   Compact Google reviews strip (template-parts/sections/reviews-strip.php).
   Placed high on mobile so trust and Call/WhatsApp sit above the scroll
   drop line. Quotes scroll sideways on phones to keep the strip short.
   ========================================================================== */

.s-reviews {
  --s-reviews-star: #FBBC04;
  --s-reviews-fill: 100%;
  --s-reviews-star-base: #D9D9D9;
  --s-reviews-num-size: 30px;
  --s-reviews-star-size: 18px;
  --s-reviews-quote-size: 15px;
  --s-reviews-quote-width: 82%;
  --s-reviews-border: 1px solid var(--color-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  color: var(--color-ink);
}

.s-reviews__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.s-reviews__eyebrow {
  margin: 0;
  color: var(--color-red);
  font-size: var(--text-eyebrow);
  font-weight: var(--font-bold);
  letter-spacing: var(--letter-eyebrow);
  text-transform: uppercase;
}

.s-reviews__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-h2-mobile);
  line-height: var(--line-tight);
}

.s-reviews__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.s-reviews__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: var(--s-reviews-border);
  border-radius: var(--radius-lg);
  background: var(--color-page);
}

.s-reviews__branch {
  margin: 0;
  font-size: var(--text-h3);
  line-height: var(--line-tight);
}

.s-reviews__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.s-reviews__num {
  font-family: var(--font-heading);
  font-size: var(--s-reviews-num-size);
  font-weight: var(--font-black);
  line-height: 1;
}

.s-reviews__stars {
  position: relative;
  display: inline-block;
  font-size: var(--s-reviews-star-size);
  line-height: 1;
  letter-spacing: 2px;
}

.s-reviews__stars-base {
  color: var(--s-reviews-star-base);
}

.s-reviews__stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--s-reviews-fill, 100%);
  overflow: hidden;
  color: var(--s-reviews-star);
  white-space: nowrap;
}

.s-reviews__count {
  color: var(--color-muted);
  font-size: var(--text-small);
  font-weight: var(--font-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.s-reviews__count:hover,
.s-reviews__count:focus-visible {
  color: var(--color-red);
}

.s-reviews__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.s-reviews__btn {
  justify-content: center;
  width: 100%;
}

.s-reviews__quotes {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
}

.s-reviews__quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-5);
  border: var(--s-reviews-border);
  border-radius: var(--radius-lg);
  background: var(--color-page);
  flex: 0 0 var(--s-reviews-quote-width);
  scroll-snap-align: start;
}

.s-reviews__quote-stars {
  color: var(--s-reviews-star);
  font-size: var(--text-small);
  letter-spacing: 2px;
}

.s-reviews__quote-text {
  margin: 0;
  font-size: var(--s-reviews-quote-size);
  line-height: var(--line-body);
}

.s-reviews__quote-who {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: auto;
}

.s-reviews__quote-name {
  font-weight: var(--font-bold);
}

.s-reviews__quote-meta {
  color: var(--color-muted);
  font-size: var(--text-small);
}

@media (min-width: 900px) {
  .s-reviews__quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }
}
