/* =========================================================
   REVIEWS PAGE STYLES
   /css/reviews.css
   All values use CSS custom properties - no hardcoded colors
   ========================================================= */

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.reviews-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(135deg, rgba(11, 100, 244, 0.82) 0%, rgba(17, 24, 39, 0.88) 100%),
    url('https://connect.mediaserve.io/storage/v1/object/public/media/78dba5ff-e514-44fd-bc2d-1f49dd7a0a6f/f4523b1a-7fe7-4198-b28d-08d172eb2245/media/images/asphalt-shingle-roof-on-residential-roof.webp');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.reviews-hero-overlay {
  display: none;
}

.reviews-hero-content {
  position: relative;
  z-index: 1;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--header-height, 140px) + var(--space-16));
  padding-bottom: var(--space-16);
  gap: var(--space-5);
}

.reviews-hero-label {
  color: rgba(255, 255, 255, 0.85);
  align-self: center;
}

.reviews-hero-title {
  color: var(--heading-dark);
  max-width: 760px;
  margin: 0 auto;
}

.reviews-hero-sub {
  color: var(--text-dark);
  font-size: var(--text-lg);
  max-width: 620px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

.reviews-hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

/* ─────────────────────────────────────────────
   OVERALL RATING SUMMARY
───────────────────────────────────────────── */
.reviews-summary-section {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border-base);
}

.reviews-summary-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
  text-align: center;
}

.reviews-summary-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.reviews-big-number {
  font-family: var(--font-heading);
  font-size: var(--text-8xl);
  font-weight: var(--weight-bold);
  color: var(--heading-light);
  line-height: 1;
}

.reviews-stars-row {
  display: flex;
  gap: var(--space-1);
}

.reviews-star-icon {
  width: 28px;
  height: 28px;
}

.reviews-star-icon.filled {
  color: #f59e0b;
  fill: #f59e0b;
}

.reviews-summary-count {
  color: var(--text-light);
  font-size: var(--text-base);
  margin: 0;
}

.reviews-summary-divider {
  width: 1px;
  height: 80px;
  background: var(--border-base);
  flex-shrink: 0;
}

.reviews-summary-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.reviews-platform-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.reviews-google-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.reviews-platform-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.reviews-platform-name {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  color: var(--heading-light);
}

.reviews-platform-rating {
  font-size: var(--text-sm);
  color: #f59e0b;
  font-weight: var(--weight-semibold);
}

/* ─────────────────────────────────────────────
   TESTIMONIAL CARD GRID
───────────────────────────────────────────── */
.reviews-cards-section {
  background: #fff;
}

.reviews-section-title {
  color: var(--heading-light);
  text-align: center;
  margin: 0 auto;
  max-width: 680px;
}

.reviews-section-sub {
  color: var(--text-light);
  font-size: var(--text-lg);
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}

.trustindex-wrapper {
  width: 100%;
}

.reviews-cta-inline {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

/* ─────────────────────────────────────────────
   PLATFORM BADGES SECTION
───────────────────────────────────────────── */
.reviews-platforms-section {
  background: var(--light-bg);
}

.reviews-platforms-grid {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.reviews-platform-card {
  flex: 0 0 calc(33.333% - var(--space-4));
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6);
  background: #fff;
  border: 1px solid var(--border-base);
}

.reviews-platform-logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-base);
}

.reviews-platform-logo-fb {
  background: #1877F2;
  border-color: #1877F2;
}

.reviews-platform-logo-bbb {
  background: #006eb7;
  border-color: #006eb7;
}

.reviews-platform-logo-svg {
  width: 36px;
  height: 36px;
}

.reviews-bbb-text {
  font-family: var(--font-heading);
  font-weight: var(--weight-black);
  font-size: var(--text-lg);
  color: #fff;
  letter-spacing: var(--tracking-wider);
}

.reviews-platform-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--heading-light);
  margin: 0;
}

.reviews-platform-stars {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.reviews-platform-stat {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin: 0;
  font-weight: var(--weight-medium);
}

/* ─────────────────────────────────────────────
   WHY CUSTOMERS CHOOSE US
───────────────────────────────────────────── */
.reviews-why-section {
  background: var(--dark-bg);
}

.reviews-why-section .reviews-section-title {
  color: var(--heading-dark);
}

.reviews-why-section .reviews-section-sub {
  color: var(--text-dark);
}

.reviews-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  width: 100%;
}

.reviews-why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-5);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--duration-200) var(--ease-default), transform var(--duration-200) var(--ease-default);
}

.reviews-why-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.reviews-why-icon {
  margin-bottom: var(--space-1);
}

.reviews-why-stat {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--primary-400, #3361a8);
  line-height: 1;
}

.reviews-why-label {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: #fff;
}

.reviews-why-desc {
  font-size: var(--text-sm);
  color: var(--text-dark);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ─────────────────────────────────────────────
   FINAL CTA
───────────────────────────────────────────── */
.reviews-final-cta {
  background: linear-gradient(135deg, var(--primary-700, #001f52) 0%, var(--primary-900, #001038) 100%);
}

.reviews-final-cta-inner {
  align-items: center;
  text-align: center;
  gap: var(--space-5);
}

.reviews-cta-icon {
  margin-bottom: var(--space-2);
  background: rgba(255, 255, 255, 0.15);
  width: 64px;
  height: 64px;
}

.reviews-final-cta-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-lg);
  max-width: 620px;
  margin: 0;
  line-height: var(--leading-relaxed);
}

.reviews-final-cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.reviews-final-cta-note {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.reviews-final-cta-note a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.reviews-final-cta-note a:hover {
  color: #fff;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .reviews-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reviews-hero {
    min-height: 380px;
  }

  .reviews-hero-content {
    padding-top: calc(100px + var(--space-12));
    padding-bottom: var(--space-12);
  }

  .reviews-hero-title {
    font-size: var(--text-3xl);
  }

  .reviews-hero-sub {
    font-size: var(--text-base);
  }

  .reviews-big-number {
    font-size: var(--text-6xl);
  }

  .reviews-summary-divider {
    width: 80px;
    height: 1px;
  }

  .reviews-summary-inner {
    flex-direction: column;
    gap: var(--space-6);
  }

  .reviews-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-platforms-grid {
    flex-direction: column;
    align-items: center;
  }

  .reviews-platform-card {
    flex: 0 0 100%;
    max-width: 400px;
    width: 100%;
  }

  .reviews-hero-actions,
  .reviews-final-cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .reviews-why-grid {
    grid-template-columns: 1fr;
  }

  .reviews-why-stat {
    font-size: var(--text-4xl);
  }
}
