/* Google rating badge - footer + homepage. Numbers come from /api/google-reviews.php (Places), fallback /data/google-reviews.json */

.gr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: inherit;
  line-height: 1.2;
  border-radius: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gr-badge:hover {
  opacity: 0.92;
  text-decoration: none !important;
}
.gr-g {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: block;
}
.gr-score {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.gr-stars {
  color: #fbbc04;
  letter-spacing: 0.04em;
  font-size: 0.95em;
}
.gr-count {
  opacity: 0.82;
  font-size: 0.92em;
}

.gr-badge--footer {
  margin-top: 14px;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cn-white, #f4f6fb);
  font-size: 13px;
  max-width: 100%;
  flex-wrap: wrap;
}
.mq20-footer .gr-badge--footer:hover {
  color: var(--cn-white, #fff);
  border-color: rgba(255, 255, 255, 0.28);
}

.gr-hero {
  text-align: center;
  margin-bottom: 28px;
}
.gr-badge--hero {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cn-white, #f4f6fb);
  font-size: 18px;
}
.gr-badge--hero .gr-g {
  width: 22px;
  height: 22px;
}
.gr-badge--hero .gr-score {
  font-size: 28px;
}
.gr-badge--hero .gr-stars {
  font-size: 20px;
}
.gr-hero-note {
  margin: 10px 0 0;
  color: var(--cn-400, #9aa3b5);
  font-size: 13px;
}

@media (max-width: 640px) {
  .gr-badge--hero {
    font-size: 15px;
    padding: 12px 14px;
  }
  .gr-badge--hero .gr-score {
    font-size: 22px;
  }
}

.home-testimonials-band.gr-band {
  padding: 36px 0 28px !important;
  overflow: hidden;
}
.gr-band-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  text-align: center;
}
.gr-band-head .gr-badge--hero {
  margin: 0;
}
.gr-hero-note[data-gr-note] {
  margin: 0;
}

.gr-marquee--empty {
  display: none;
}
.gr-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.gr-marquee-track {
  display: flex;
  width: max-content;
  gap: 16px;
  padding: 4px 16px 8px;
  animation: grMarquee 42s linear infinite;
}
.gr-marquee:hover .gr-marquee-track {
  animation-play-state: paused;
}

.gr-card {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 168px;
  padding: 20px 22px;
  border: 1px solid var(--cn-800, #2a3140);
  background: var(--cn-900, #111722);
  color: inherit;
  text-decoration: none !important;
  border-radius: 4px;
}
.gr-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--home-surface-2, #202633);
  color: inherit;
}
.gr-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gr-card-src {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.gr-card-top .gr-stars {
  margin-left: auto;
  color: #fbbc04;
  letter-spacing: 0.04em;
  font-size: 14px;
}
.gr-card-text {
  margin: 0;
  color: var(--cn-200, #d5dbe6);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.gr-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--cn-400, #9aa3b5);
  font-size: 12px;
}
.gr-card-time {
  opacity: 0.85;
}

@keyframes grMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .gr-card {
    flex-basis: 260px;
    min-height: 150px;
    padding: 16px;
  }
  .gr-marquee-track {
    animation-duration: 32s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gr-marquee {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
  }
  .gr-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
}
