/* ============================================================
   REVIEWS PAGE
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.reviews-hero {
  background: linear-gradient(135deg, #1a1b26 0%, #2a2b38 100%);
  padding: 5.5rem 1.5rem 4rem;
  text-align: center;
}
.reviews-hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b23b2c;
  margin: 0 0 0.75rem;
}
.reviews-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}
.reviews-hero-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.reviews-hero-star {
  color: #f5a623;
  font-size: 1.75rem;
  line-height: 1;
}
.reviews-hero-rating-num {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}
.reviews-hero-rating-max {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  align-self: flex-end;
  padding-bottom: 0.4rem;
}
.reviews-hero-count {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ── Stats Strip ───────────────────────────────────────────── */
.reviews-stats {
  background: #b23b2c;
  padding: 1.25rem 1.5rem;
}
.reviews-stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.reviews-stat {
  text-align: center;
  color: #ffffff;
}
.reviews-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.reviews-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ── Topic nav ─────────────────────────────────────────────── */
.reviews-topic-nav {
  background: #ffffff;
  border-bottom: 1px solid rgba(26,27,38,0.08);
  position: sticky;
  top: 64px;
  z-index: 100;
}
.reviews-topic-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.reviews-topic-nav-inner::-webkit-scrollbar { display: none; }
.reviews-topic-nav-link {
  display: inline-block;
  padding: 0.9rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(26,27,38,0.5);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.reviews-topic-nav-link:hover {
  color: #1a1b26;
  border-bottom-color: rgba(26,27,38,0.2);
}
.reviews-topic-nav-link.is-active {
  color: #b23b2c;
  border-bottom-color: #b23b2c;
}

/* ── Topic sections ────────────────────────────────────────── */
.reviews-topic-section {
  padding-bottom: 4rem;
  scroll-margin-top: 130px;
}
.reviews-topic-section + .reviews-topic-section {
  border-top: 1px solid rgba(26,27,38,0.08);
  padding-top: 4rem;
}
/* Tab mode: JS adds .is-tab-mode; sections hide via [hidden] attribute */
.reviews-body-inner.is-tab-mode .reviews-topic-section[hidden] {
  display: none;
}
.reviews-body-inner.is-tab-mode .reviews-topic-section + .reviews-topic-section {
  border-top: none;
  padding-top: 0;
}
.reviews-topic-header {
  margin-bottom: 2.5rem;
}
.reviews-section-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b23b2c;
  margin: 0 0 0.4rem;
}
.reviews-topic-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #1a1b26;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.reviews-topic-desc {
  font-size: 0.95rem;
  color: rgba(26,27,38,0.55);
  margin: 0;
  max-width: 560px;
  line-height: 1.65;
}

/* ── Leave-a-review bar ────────────────────────────────────── */
.reviews-leave-bar {
  background: #ffffff;
  border-bottom: 1px solid rgba(26,27,38,0.08);
  padding: 1rem 1.5rem;
  margin: -4rem -1.5rem 3rem;
}
.reviews-leave-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.reviews-leave-bar-text {
  font-size: 0.92rem;
  color: rgba(26,27,38,0.65);
  margin: 0;
}
.reviews-leave-bar-text strong {
  color: #1a1b26;
  font-weight: 700;
}
.reviews-leave-bar-btn {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: #b23b2c;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.reviews-leave-bar-btn:hover { background: #991f12; transform: translateY(-1px); }

/* ── Grid ──────────────────────────────────────────────────── */
.reviews-body {
  background: #f5f5f7;
  padding: 4rem 1.5rem 2rem;
}
.reviews-body-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.reviews-grid {
  columns: 3;
  column-gap: 1.5rem;
  orphans: 1;
  widows: 1;
}

/* ── Card ──────────────────────────────────────────────────── */
.reviews-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(26,27,38,0.07);
  padding: 1.6rem 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.22s, transform 0.22s;
}
.reviews-card:hover {
  box-shadow: 0 10px 36px rgba(26,27,38,0.1);
  transform: translateY(-3px);
}
.reviews-card-stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 0.9rem;
}
.reviews-card-star {
  color: #f5a623;
  font-size: 0.95rem;
  line-height: 1;
}
.reviews-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a1b26;
  margin: 0 0 0.65rem;
  line-height: 1.3;
}
.reviews-card-quote {
  font-size: 0.875rem;
  color: rgba(26,27,38,0.7);
  line-height: 1.7;
  margin: 0 0 1.2rem;
  position: relative;
  padding-left: 1rem;
}
.reviews-card-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.1rem;
  font-size: 1.4rem;
  color: #b23b2c;
  line-height: 1;
  font-weight: 900;
}
.reviews-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26,27,38,0.07);
}
.reviews-card-author { flex: 1; min-width: 0; }
.reviews-card-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1a1b26;
  margin: 0 0 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reviews-card-meta {
  font-size: 0.72rem;
  color: rgba(26,27,38,0.45);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reviews-card-star--empty { color: rgba(26,27,38,0.15); }
.reviews-card-badge {
  flex-shrink: 0;
  background: rgba(178,59,44,0.08);
  color: #b23b2c;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  white-space: nowrap;
}

/* ── CTA ───────────────────────────────────────────────────── */
.reviews-cta {
  background: linear-gradient(135deg, #1a1b26 0%, #2a2b38 100%);
  padding: 5rem 1.5rem;
  text-align: center;
}
.reviews-cta-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b23b2c;
  margin: 0 0 0.75rem;
}
.reviews-cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.9rem;
  line-height: 1.15;
}
.reviews-cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.reviews-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.reviews-cta-btn-primary {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  background: #b23b2c;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(178,59,44,0.35);
  transition: background 0.2s, transform 0.2s;
}
.reviews-cta-btn-primary:hover { background: #991f12; transform: translateY(-1px); }
.reviews-cta-btn-secondary {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, color 0.2s;
}
.reviews-cta-btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: #ffffff; }

/* ── Community reviews (Site Reviews plugin) ───────────────── */
.reviews-community {
  background: #ffffff;
  padding: 4rem 1.5rem;
  border-top: 1px solid rgba(26,27,38,0.08);
}
.reviews-community-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.reviews-community-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #1a1b26;
  margin: 0.4rem 0 2rem;
  line-height: 1.15;
}

/* ── Leave-a-review modal ──────────────────────────────────── */
#bu-review-form-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#bu-review-form-modal[hidden] { display: none; }
.bu-review-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26,27,38,0.6);
  backdrop-filter: blur(3px);
}
.bu-review-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  max-width: 520px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 20px 60px rgba(26,27,38,0.25);
}
.bu-review-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(26,27,38,0.35);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.bu-review-modal-close:hover {
  color: #1a1b26;
  background: rgba(26,27,38,0.06);
}
.bu-review-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1b26;
  margin: 0 0 1.5rem;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .reviews-grid { columns: 2; }
}
@media (max-width: 600px) {
  .reviews-grid { columns: 1; }
  .reviews-stats-inner { gap: 1.5rem; }
  .reviews-hero { padding: 3.5rem 1.25rem 3rem; }
  .reviews-topic-nav { top: 56px; }
  .reviews-topic-section { scroll-margin-top: 110px; }
}
