/* ==========================================================================
   Google Reviews Widget Component ("What Our Customers Say")
   Clean, modern design with grouped header navigation controls (Apple / Stripe style)
   ========================================================================== */

.customer-reviews-section {
  position: relative;
  padding: 85px 0 80px;
  width: 100%;
  box-sizing: border-box;
}

.reviews-section-header {
  margin-bottom: 28px;
}

.reviews-main-title {
  font-family: 'Manrope', 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.25;
}

/* Outer Widget Box */
.google-reviews-widget-box {
  background-color: #f5f6f8;
  border-radius: 20px;
  padding: 28px 24px 30px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 30px;
}

/* Top Summary Header Bar */
.widget-summary-bar {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f2f5;
  margin-bottom: 22px;
}

.widget-summary-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.google-brand-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  align-items: center;
  letter-spacing: -0.2px;
}

.g-letter {
  display: inline-block;
  font-family: 'Product Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
}

.g-blue { color: #4285F4; }
.g-red { color: #EA4335; }
.g-yellow { color: #FBBC05; }
.g-green { color: #34A853; }

.g-reviews-txt {
  color: #111827;
  font-weight: 700;
  margin-left: 6px;
}

.gr-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gr-rating-val {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.gr-stars-gold {
  color: #fbbc04;
  font-size: 17px;
  letter-spacing: 2px;
  line-height: 1;
}

.gr-count {
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  margin-left: 2px;
}

.widget-summary-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-review-google {
  background-color: #1a73e8;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.28);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-review-google:hover {
  background-color: #1557b0;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   Grouped Header Navigation Controls (Clean, Modern Apple/Stripe Style)
   ========================================================================== */

.gr-header-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gr-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  outline: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gr-nav-btn svg {
  display: block;
  stroke: #334155;
  transition: stroke 0.2s ease, transform 0.25s ease;
}

/* Hover & Focus state */
.gr-nav-btn:hover,
.gr-nav-btn:focus {
  background: linear-gradient(135deg, #008fd1, #0077b0);
  border-color: #008fd1;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 143, 209, 0.35);
  transform: translateY(-2px);
}

.gr-nav-btn:hover svg,
.gr-nav-btn:focus svg {
  stroke: #ffffff;
}

.gr-btn-prev:hover svg {
  transform: translateX(-2.5px);
}

.gr-btn-next:hover svg {
  transform: translateX(2.5px);
}

/* Active click state */
.gr-nav-btn:active {
  transform: translateY(0) scale(0.94);
  box-shadow: 0 2px 6px rgba(0, 143, 209, 0.2);
}

/* Reviews Carousel Wrap */
.google-reviews-slider-wrap {
  position: relative;
  width: 100%;
}

/* Hide default Owl Nav because we use the sleek header controls */
.google-reviews-slider .owl-nav {
  display: none !important;
}

/* Owl Carousel Stage Equal Heights */
.google-reviews-slider .owl-stage {
  display: flex;
  align-items: stretch;
}

.google-reviews-slider .owl-item {
  display: flex;
  flex-direction: column;
  height: auto;
}

/* Individual Review Card */
.google-review-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 22px 20px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f2f5;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.google-review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Card Header */
.gr-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gr-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex-shrink: 0;
}

.gr-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.gr-avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Google G Badge overlay on bottom-right of avatar */
.gr-google-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  border: 1.5px solid #ffffff;
}

.gr-google-badge svg {
  display: block;
  width: 11px;
  height: 11px;
}

/* Author info */
.gr-author-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.gr-author-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 14.5px;
  color: #111827;
  line-height: 1.3;
}

.gr-author-name span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gr-verified-badge {
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  flex-shrink: 0;
}

.gr-review-time {
  font-size: 12px;
  color: #80868b;
  line-height: 1.2;
  margin-top: 2px;
}

/* Stars */
.gr-stars {
  color: #fbbc04;
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 12px;
}

/* Comment text */
.gr-comment-box {
  font-size: 13.5px;
  line-height: 1.55;
  color: #374151;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gr-comment-text {
  margin: 0 0 4px 0;
  display: inline;
}

.gr-comment-full {
  display: none;
  margin: 0;
}

.gr-read-more {
  color: #1a73e8;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-block;
  margin-top: 4px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gr-read-more:hover {
  color: #1557b0;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .customer-reviews-section {
    padding: 60px 0;
  }
  .reviews-main-title {
    font-size: 28px;
  }
  .widget-summary-bar {
    padding: 16px 20px;
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .customer-reviews-section {
    padding: 45px 0 50px;
  }
  .google-reviews-widget-box {
    padding: 18px 12px 22px;
    border-radius: 16px;
  }
  .widget-summary-bar {
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
    gap: 16px;
  }
  .widget-summary-left {
    align-items: center;
  }
  .widget-summary-right {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn-review-google {
    width: 100%;
    max-width: 260px;
  }
  .gr-header-nav {
    gap: 12px;
    justify-content: center;
  }
  .gr-nav-btn {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
}

@media (max-width: 480px) {
  .reviews-main-title {
    font-size: 24px;
  }
  .google-brand-title {
    font-size: 19px;
  }
  .gr-rating-val {
    font-size: 17px;
  }
  .gr-stars-gold {
    font-size: 16px;
  }
}
