/*
 * Review styling.
 *
 * .review-grid, .review-card, .review-head, .review-stars, .review-person and
 * .review-avatar all come from the ported stylesheet — the source built the
 * card, it just never had a real review to put in one. Only what it had no
 * reason to describe is here: the empty state, the rating input, and a star row
 * that now shows a real score.
 */

.review-stars {
  font-size: 15px;
  letter-spacing: 2px;
  color: #d8a800;
}

/* The source's badge said "VERIFICATION PENDING" on cards that would never be
   verified. This one states something true and checkable instead. */
.gg-verified {
  color: var(--green, #123e2b);
}

.gg-reviews-empty {
  max-width: 640px;
  margin: 0 auto;
  padding: 44px 24px;
  text-align: center;
}

.gg-reviews-empty h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.gg-reviews-empty p {
  color: var(--muted, #657168);
  font-size: 14px;
  line-height: 1.75;
}

.gg-reviews-empty .button {
  margin-top: 8px;
}

.gg-rating {
  margin: 22px 0 4px;
  padding: 0;
  border: 0;
}

.gg-rating legend {
  padding: 0;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}

.gg-rating label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: center;
  margin: 7px 0;
  font-weight: 600;
}

.gg-rating input {
  width: 16px;
  margin: 0;
}

.gg-review-form :is(input, select, textarea, button):focus-visible {
  outline: 3px solid var(--yellow, #ffd523);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------------
   The homepage review stage

   The layout itself — .featured-review-stage, .review-side, .review-written and
   the rest — is the ported stylesheet's. Only what the source had no reason to
   describe is here: showing one review at a time, a frame with no photograph
   behind it, and the state where there are no reviews yet.
   ------------------------------------------------------------------------ */

/* Every review renders. The stylesheet only hides the ones that are not
   selected once the script that can bring them back is running. */
.gg-review-slides.gg-stage-enhanced .featured-review-stage { display: none; }
.gg-review-slides.gg-stage-enhanced .featured-review-stage.active { display: grid; }
.gg-review-slides > .featured-review-stage + .featured-review-stage { margin-top: 26px; }

/* A play control that is a link, drawn as the round button the layout expects. */
a.review-play {
  display: grid;
  place-items: center;
  text-decoration: none;
  line-height: 1;
}

a.review-play:hover { transform: translate(-50%, -50%) scale(1.05); }

/* No cover photograph. A stock picture of somebody else's lawn would read as
   this customer's job, so the frame carries the brand's own colour instead. */
.review-active-video.no-photo {
  background: linear-gradient(150deg, #123e2b, #0d2a1e 62%, #16513a);
}

.review-active-video.no-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Waiting for the first review.

   The stage keeps its shape — the same dark cover panel and white card a review
   fills — so the section does not appear as an unfamiliar block on the day the
   first review lands. Without the two side rails, because there are no
   neighbouring reviews to move to. */
.gg-stage-empty,
.gg-stage-solo { grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr); }

.gg-stage-empty .review-written h3 {
  margin: 18px 0 12px;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--green, #123e2b);
}

.gg-stage-empty .review-written p {
  margin: 0 0 22px;
  color: var(--muted, #657168);
  font-size: 12.5px;
  line-height: 1.75;
}

.gg-stage-empty .review-written .button { align-self: flex-start; }

@media (max-width: 900px) {
  .gg-stage-empty,
  .gg-stage-solo { grid-template-columns: 1fr; }

  .gg-stage-empty .review-written,
  .gg-stage-solo .review-written { grid-column: 1; }
}
