/* Google reviews slider (badge + carousel). Used on index.html and about.html. */
.gr {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  font-family: 'DM Sans', var(--font-body, sans-serif);
}

/* Badge */
.gr-badge {
  text-align: center;
  color: #122033;
  text-decoration: none;
  display: block;
  padding: 8px 0;
}
.gr-badge-title {
  font-family: 'Poppins', var(--font-display, sans-serif);
  font-weight: 800;
  font-size: 26px;
  color: #122033;
  letter-spacing: .02em;
  margin: 0 0 6px;
}
.gr-badge .gr-stars { font-size: 30px; gap: 2px; justify-content: center; }
.gr-badge-count { margin: 8px 0 10px; font-size: 15px; color: #33414f; }
.gr-badge-count b { color: #122033; }
.gr-google { height: 34px; width: auto; display: inline-block; }
.gr-badge:hover .gr-badge-count b { color: #0C9BFF; }

/* Stars */
.gr-stars { display: flex; gap: 1px; color: #f5b400; line-height: 1; }
.gr-stars svg { width: 1em; height: 1em; fill: currentColor; }
.gr-stars .off { color: #d7dee6; }

/* Carousel */
.gr-carousel { position: relative; min-width: 0; }
.gr-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}
.gr-track::-webkit-scrollbar { display: none; }

.gr-card {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e5eef6;
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: 0 6px 18px rgba(18, 32, 51, .05);
  display: flex;
  flex-direction: column;
  min-height: 236px;
}
.gr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gr-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  flex: 0 0 46px;
  display: grid; place-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 19px;
  color: #fff; background: #0C9BFF;
  object-fit: cover;
}
.gr-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15.5px; color: #122033; margin: 0; line-height: 1.25; }
.gr-meta { font-size: 13px; color: #5c6b7a; margin: 2px 0 0; }
.gr-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.gr-rating .gr-stars { font-size: 19px; }
.gr-verified { width: 18px; height: 18px; color: #0C9BFF; }
.gr-text {
  color: #243140; font-size: 15px; line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.gr-card.open .gr-text { -webkit-line-clamp: unset; display: block; }
.gr-more {
  margin-top: auto; padding: 10px 0 0; align-self: flex-start;
  background: none; border: 0; font: inherit; font-size: 14px;
  color: #5c6b7a; cursor: pointer;
}
.gr-more:hover { color: #0C9BFF; }
.gr-more[hidden] { display: none; }

.gr-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #e5eef6; background: #fff; color: #122033;
  box-shadow: 0 4px 14px rgba(18, 32, 51, .12);
  display: grid; place-items: center; cursor: pointer; z-index: 2;
  transition: background .2s, color .2s;
}
.gr-arrow:hover { background: #0C9BFF; color: #fff; border-color: #0C9BFF; }
.gr-arrow svg { width: 20px; height: 20px; }
.gr-prev { left: -20px; }
.gr-next { right: -20px; }

.gr-foot { text-align: right; font-size: 12.5px; color: #5c6b7a; margin: 10px 4px 0; }
.gr-foot a { color: inherit; }
.gr-foot a:hover { color: #0C9BFF; }

@media (max-width: 1100px) {
  .gr-card { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 820px) {
  .gr { grid-template-columns: 1fr; gap: 18px; }
  .gr-badge { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 16px; row-gap: 2px; }
  .gr-badge-title { font-size: 22px; margin: 0; grid-column: 1; }
  .gr-badge .gr-stars { font-size: 22px; grid-column: 1; }
  .gr-badge-count { grid-column: 2; grid-row: 1; margin: 0; text-align: left; }
  .gr-google { grid-column: 2; grid-row: 2; height: 26px; justify-self: start; }
  .gr-prev { left: -8px; }
  .gr-next { right: -8px; }
}
@media (max-width: 600px) {
  .gr-card { flex-basis: 88%; }
  .gr-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gr-track { scroll-behavior: auto; }
}
