/* ==========================================================================
   sections/reviews.css — the Google rating, plus review cards that stay
   visibly empty until approved review pulls are supplied. No invented quotes.
   ========================================================================== */

.reviews {
  --star: #f0a500;
  padding-top: clamp(4.5rem, 8.5vw, 8rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
  background: var(--paper);
  border-bottom: 1px solid var(--paper-edge);
}

/* More breathing room below the 5.0 / 13-reviews summary before the cards */
.reviews .reviews__slider { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* --- Rating summary ----------------------------------------------------- */
.reviews__summary {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.reviews__score {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--star, #f0a500);
}

.stars svg { width: 16px; height: 16px; }

.reviews__meta {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.g-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid var(--paper-edge);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: #4285f4;
}

/* --- Review slider ------------------------------------------------------
   The track runs past the right edge of the window, so the next card is
   always half-visible and the row reads as something you can move. */
.reviews__track {
  display: flex;
  gap: var(--grid-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-inline: calc(var(--gutter) + max(0px, (100vw - var(--page-max)) / 2));
  scroll-padding-inline-start: calc(var(--gutter) + max(0px, (100vw - var(--page-max)) / 2));
  padding-block: 2px 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reviews__track::-webkit-scrollbar { display: none; }

.reviews__slider { position: relative; }

.reviews__nav {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding-inline: calc(var(--gutter) + max(0px, (100vw - var(--page-max)) / 2));
}

/* Same red as the call buttons, with the same lift and glow on hover */
.slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              opacity 0.18s var(--ease);
}

.slide-btn:hover:not(:disabled) {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -12px rgba(164, 22, 31, 0.75);
}

/* From tablet up the arrows sit on top of the row, centred on the layout's
   left and right edges: they hold still while the cards slide underneath. */
@media (min-width: 760px) {
  .reviews__nav { margin: 0; padding: 0; }

  .reviews__slider .slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 14px 26px -16px rgba(28, 27, 25, 0.55);
  }

  /* keeps the button centred on the row while it lifts */
  .reviews__slider .slide-btn:hover:not(:disabled) {
    transform: translateY(calc(-50% - 2px));
  }

  /* Scoped to this slider: these offsets are for a track that bleeds off the
     window, and must not reach the arrows in other sections. */
  .reviews__slider .slide-btn[data-slide='prev'] {
    left: calc(var(--gutter) + max(0px, (100vw - var(--page-max)) / 2) - 22px);
  }

  .reviews__slider .slide-btn[data-slide='next'] {
    right: calc(var(--gutter) + max(0px, (100vw - var(--page-max)) / 2) - 22px);
  }
}

.slide-btn svg {
  width: 19px;
  height: 19px;
  transition: transform 0.25s var(--ease);
}

.slide-btn:hover:not(:disabled) svg { transform: scale(1.12); }

.slide-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.review-card {
  flex: 0 0 clamp(258px, 26vw, 350px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(28, 27, 25, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.review-card__avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--paper-tint);
  border: 1px solid var(--paper-edge);
}

.review-card__who {
  display: grid;
  gap: 6px;
  flex: 1;
}

/* Grey bars stand in for the reviewer's name and date until real pulls land */
.bar {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: var(--paper-tint);
}

.review-card__note {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--paper-edge);
  font-size: 0.8125rem;
  color: var(--ink-mute);
}

@media (max-width: 900px) {
  .reviews__summary { flex-wrap: wrap; }
  .review-card { flex-basis: min(78vw, 320px); }
}

/* ==========================================================================
   Reviews page (reviews.html): a centred rating hero, then a wall of cards
   instead of the homepage's single sliding row.
   ========================================================================== */

.reviews-hero {
  --star: #f0a500;
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--paper);
  text-align: center;
}

.reviews-hero h1 {
  font-size: var(--step-4);
  margin-top: var(--sp-3);
  text-wrap: balance;
}

.reviews-hero .reviews__summary {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.reviews-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--red-ink);
  text-decoration: none;
}

.reviews-hero__link svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.reviews-hero__link:hover svg { transform: translateX(4px); }

/* --- The wall: the slider cards laid out as a responsive grid ----------- */
.review-wall-section {
  padding-top: 0;
  padding-bottom: clamp(1.75rem, 3.5vw, 3rem);
}

.review-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--grid-gap);
  margin-top: 0;
}

/* In the grid the cards fill their cell rather than a fixed slider width */
.review-wall .review-card { flex: initial; }

/* --- Leave a review: one low-key block, no incentives -------------------- */
.leave-review {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--white);
  border-top: 1px solid var(--paper-edge);
  text-align: center;
}

.leave-review__title {
  margin-top: var(--sp-4);
  font-size: var(--step-3);
  line-height: 1.2;
  text-wrap: balance;
}

.leave-review__body {
  max-width: none;
  margin: var(--sp-3) auto clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--ink-soft);
  font-size: var(--step-0);
  line-height: 1.6;
}

/* The Google mark reads white inside the red button */
.leave-review .btn--primary .g-mark {
  width: 22px;
  height: 22px;
  border-color: rgba(255, 255, 255, 0.5);
  background: var(--white);
  color: #4285f4;
}

/* ==========================================================================
   Filled review cards (real approved Google quotes, handoff #3).
   Verbatim text; two attribution labels in .review-card__note.
   ========================================================================== */
.review-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.review-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  color: var(--ink);
  line-height: 1.2;
}

.review-card__text {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-soft);
}

.review-card--filled .review-card__note { border-top-style: solid; }

/* Main-profile context line under the wall */
.review-wall__context {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--step--1);
  color: var(--ink-mute);
}
