/* IMPROVEMENT 5: Real Testimonials Section */

/* Testimonials Grid - 3 columns on desktop, 2 on tablet, 1 on mobile */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 968px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Testimonial Card Styling */
.testimonial-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

/* Generic Avatar Circle - Updated for Images */
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #2D9B87;
  object-fit: cover;
  margin-bottom: 4px;
  flex-shrink: 0;
  display: block;
}

/* Testimonial Header (contains avatar, name, location, stars) */
.testimonial-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

/* Reviewer Name */
.testimonial-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
}

/* Reviewer Location */
.testimonial-location {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.3;
}

/* Testimonial Quote */
.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin: 0;
  font-style: normal;
}

.testimonial-quote em {
  font-weight: 600;
  color: #1f2937;
}

/* Trustpilot CTA Section */
.trustpilot-cta {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, #00b67a 0%, #008957 100%);
  border-radius: 12px;
  text-align: center;
  color: white;
}

.trustpilot-cta-heading {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: white;
}

.trustpilot-cta-text {
  font-size: 16px;
  margin: 0 0 24px 0;
  color: rgba(255, 255, 255, 0.95);
}

.trustpilot-cta-button {
  display: inline-block;
  background: white;
  color: #007F55; /* Darkened from #00b67a for WCAG AA (5.04:1) */
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
}

.trustpilot-cta-button:hover {
  background: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Why Planning Matters Section */
.why-planning-matters {
  margin-top: 64px;
  padding: 48px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-radius: 12px;
  color: white;
}

.why-planning-heading {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: white;
  text-align: center;
}

.why-planning-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .why-planning-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.planning-point {
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid #60a5fa;
}

.planning-point-heading {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: white;
}

.planning-point-text {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Star Rating Display - ON OWN LINE */
.testimonial-stars {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
  display: block;
  margin: 4px 0 12px 0;
  line-height: 1;
}

/* Verified Buyer Badge */
.verified-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #047857; /* Darkened from #059669 for WCAG AA (5.21:1) */
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-top: 12px;
}

/* Section Heading */
.section-heading {
  font-size: 36px;
  font-weight: 700;
  color: #1A365D;
  text-align: center;
  margin-bottom: 16px;
}

.section-subheading {
  font-size: 18px;
  color: #4A5568; /* WCAG AA fix: was #64748b (3.68:1 on beige), now 5.83:1 */
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .section-heading {
    font-size: 28px;
  }
  
  .section-subheading {
    font-size: 16px;
  }
  
  .why-planning-matters {
    padding: 32px 24px;
  }
  
  .why-planning-heading {
    font-size: 24px;
  }
  
  .trustpilot-cta {
    padding: 24px 20px;
  }
  
  .trustpilot-cta-heading {
    font-size: 20px;
  }
}
