/* ============================================================
   GOOGLE RATING & REVIEWS — the hero rating chip, and the reviews
   section on the home page. Everything starts hidden; js/main.js (and
   js/landing.js for the chip) shows it once Google's data arrives.
   ============================================================ */
.hero-rating[hidden], .reviews[hidden], .reviews-grid[hidden] { display: none; }

/* ─── Rating chip (hero of the home and program pages) ─── */
.hero-rating {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 9px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,200,0,0.35); border-radius: 999px;
  color: var(--white); text-decoration: none; font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.hero-rating:hover, .hero-rating:focus-visible {
  border-color: var(--yellow); background: rgba(245,200,0,0.08);
}
.hero-rating-score { font-weight: 800; font-size: 1.1rem; }
.hero-rating-stars, .reviews-stars, .review-stars { color: var(--yellow); letter-spacing: 1px; }
.hero-rating-count { color: #bbb; }

/* ─── Section ─── */
.reviews { background: var(--dark); }
.reviews-inner { max-width: 1200px; margin: 0 auto; }

.reviews-summary {
  display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-top: 4px; color: var(--white); text-decoration: none;
}
.reviews-score { font-size: 3rem; font-weight: 900; line-height: 1; }
.reviews-stars { font-size: 1.4rem; }
.reviews-count { color: var(--grey); font-size: 1rem; }
.reviews-summary:hover .reviews-count { color: var(--yellow); text-decoration: underline; }

.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: 36px;
}
.review-card {
  background: var(--dark2); padding: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 3px solid var(--yellow);
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--black); font-weight: 800; font-size: 1.1rem;
}
.review-author { font-weight: 700; color: var(--white); line-height: 1.3; }
.review-author a { color: inherit; text-decoration: none; }
.review-author a:hover { color: var(--yellow); text-decoration: underline; }
.review-meta { font-size: 0.85rem; color: var(--grey); display: flex; gap: 8px; flex-wrap: wrap; }
.review-text {
  color: rgba(240,240,240,0.82); line-height: 1.7; font-size: 0.98rem;
  /* Long reviews are cut at eight lines; "All reviews" has the rest. */
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
  white-space: pre-line;
}

.reviews-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
/* "Google Maps" is a name: keep its case where the button style would capitalise it. */
.reviews-actions .btn-secondary { text-transform: none; }
/* Google Maps asks for its name to be shown as written, as attribution. */
.reviews-source { margin-top: 18px; font-size: 0.8rem; color: var(--grey); }

html[lang="he"] .reviews-score,
html[lang="he"] .hero-rating,
html[lang="he"] .review-card { font-family: 'Heebo', sans-serif; }

@media (max-width: 600px) {
  .hero-rating { margin-top: 18px; font-size: 0.9rem; }
  .reviews-score { font-size: 2.4rem; }
  .reviews-actions > a { flex: 1 1 100%; text-align: center; }
}
