/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for grids */
.animate-on-scroll.delay-100 { transition-delay: 0.1s; }
.animate-on-scroll.delay-200 { transition-delay: 0.2s; }
.animate-on-scroll.delay-300 { transition-delay: 0.3s; }
.animate-on-scroll.delay-400 { transition-delay: 0.4s; }
.animate-on-scroll.delay-500 { transition-delay: 0.5s; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Body defaults */
body { font-family: 'DM Sans', sans-serif; color: #334155; }

/* FAQ accordion transitions */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer.open {
  max-height: 500px;
}

/* Hero overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(27, 58, 75, 0.75) 100%);
}

/* ─── Google Reviews ──────────────────────────────────────────────────────── */

/* Summary bar */
.reviews-summary-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reviews-summary-google-g svg {
  width: 40px;
  height: 40px;
}

.reviews-summary-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reviews-summary-score {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #1B3A4B; /* brand-800 */
  line-height: 1;
}

.reviews-summary-stars {
  font-size: 1.25rem;
  color: #F59E0B; /* accent-500 */
  letter-spacing: 2px;
  line-height: 1;
}

.reviews-summary-count {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Reviews grid — horizontal scroll on mobile, 3-col wrap on desktop */
.reviews-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  /* Hide scrollbar visually */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reviews-grid::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: unset;
    scroll-snap-type: unset;
  }
}

/* Individual review card */
.review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Mobile: fixed width so they scroll nicely */
  min-width: 300px;
  max-width: 340px;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.review-card:hover {
  box-shadow: 0 8px 24px rgba(27, 58, 75, 0.1);
  transform: translateY(-2px);
}

@media (min-width: 1024px) {
  .review-card {
    min-width: unset;
    max-width: unset;
    flex-shrink: unset;
  }
}

/* Card header: avatar + name/date */
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-avatar-fallback {
  background-color: #1B3A4B; /* brand-800 */
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-author {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1B3A4B; /* brand-800 */
  line-height: 1.2;
}

.review-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Star rating */
.review-stars {
  font-size: 1.1rem;
  color: #F59E0B; /* accent-500 */
  letter-spacing: 1px;
  line-height: 1;
}

/* Review body — clamp at 6 lines */
.review-text {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Google G logo in card footer */
.review-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.review-google-logo {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

/* Fallback block */
[data-reviews-fallback] {
  /* No extra padding — content is now a full review grid */
}

[data-reviews-fallback] svg {
  display: inline-block;
}

/* ─── End Google Reviews ──────────────────────────────────────────────────── */
