/* Google reviews section on the homepage. Additive: every rule is scoped to
   #google-reviews. Colors, cards, buttons and type come from the site's own
   classes (card-surface, eyebrow, gradient-text, btn-neon); this file only adds
   the grid, the gold stars and their motion. */

#google-reviews .gr-grid {
  display: grid;
  gap: 2.5rem;
}
#google-reviews .gr-summary svg {
  flex: none;
}
#google-reviews .gr-g {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}
#google-reviews .gr-stars {
  display: inline-flex;
  gap: 0.125rem;
  color: #fbbf24;
}
#google-reviews .gr-star {
  width: 1.125rem;
  height: 1.125rem;
}

@media (min-width: 768px) {
  #google-reviews .gr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.25rem;
  }
  #google-reviews .gr-intro {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  #google-reviews .gr-grid {
    grid-template-columns: 0.9fr 1fr 1fr;
    gap: 1.25rem;
  }
  #google-reviews .gr-intro {
    grid-column: auto;
    align-self: center;
    padding-right: 1.75rem;
  }
}

/* Star shimmer: a soft pulse that travels left to right, then rests. */
@media (prefers-reduced-motion: no-preference) {
  #google-reviews .gr-star {
    animation: gr-shimmer 6s ease-in-out infinite;
  }
  #google-reviews .gr-star:nth-child(2) { animation-delay: 0.12s; }
  #google-reviews .gr-star:nth-child(3) { animation-delay: 0.24s; }
  #google-reviews .gr-star:nth-child(4) { animation-delay: 0.36s; }
  #google-reviews .gr-star:nth-child(5) { animation-delay: 0.48s; }
  @keyframes gr-shimmer {
    0%, 14%, 100% { transform: scale(1); opacity: 1; }
    7% { transform: scale(1.22); opacity: 0.8; }
  }
}

/* Reduced motion: no fade, no rise, no shimmer, no hover lift. The reveal
   wrappers start at opacity 0 inline, so they are forced visible here. */
@media (prefers-reduced-motion: reduce) {
  #google-reviews .gr-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  #google-reviews,
  #google-reviews * {
    animation: none !important;
    transition: none !important;
  }
  #google-reviews .card-surface:hover {
    transform: none !important;
  }
}
