/* ==========
   LeafRush Reviews Carousel
   ========== */

.lr-reviews {
  --lr-brand: #61ce70;
  --lr-card-bg: #ffffff;
  --lr-card-text: #0f172a;
  --lr-muted: #475569;
  --lr-amber: #f59e0b;
  --lr-border: rgba(2, 6, 23, 0.06);
  --lr-per-view: 3;
  --lr-gap: 24px;
  --lr-button-bg: #61ce70;
  --lr-button-text: #ffffff;

  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  box-sizing: border-box;
}

.lr-reviews-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.lr-window {
  overflow: hidden;
  width: 100%;
}

.lr-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--lr-gap);
  transition: transform 0.45s ease;
  will-change: transform;
}

.lr-card {
  flex: 0 0 calc(
    (100% - (var(--lr-gap) * (var(--lr-per-view) - 1)))
    / var(--lr-per-view)
  );
  background: var(--lr-card-bg);
  color: var(--lr-card-text);
  border: 1px solid var(--lr-border);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.lr-quote {
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
}

.lr-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--lr-muted);
  margin-top: 8px;
}

.lr-stars {
  letter-spacing: 2px;
  color: var(--lr-amber);
  font-size: 15px;
}

.lr-nav-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.lr-nav {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 0;
  background: var(--lr-button-bg);
  color: var(--lr-button-text);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.lr-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.16);
}

@media (max-width: 1024px) {
  .lr-reviews {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .lr-reviews-inner {
    gap: 12px;
  }

  .lr-card {
    flex: 0 0 100%;
    border-radius: 14px;
  }

  .lr-nav {
    width: 44px;
    height: 44px;
  }
}

/* ensure Elementor sticky header stays above everything */
.elementor-location-header {
  position: relative;
  z-index: 9999;
}
