/**
 * ELIO SOLAR - SOCIAL PROOF + GUARANTEE
 * Customer testimonials and reinforced guarantee
 * Version: 1.0
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */

:root {
  /* Section */
  --social-padding: 80px;
  --social-padding-mobile: 60px;
  --social-bg: #f8fafc;
  --social-max-width: 1400px;

  /* Testimonials */
  --testimonial-card-bg: white;
  --testimonial-card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --testimonial-card-radius: 20px;
  --testimonial-card-padding: 32px;

  /* Guarantee Badge */
  --guarantee-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --guarantee-shadow: 0 12px 48px rgba(16, 185, 129, 0.3);
}

/* ============================================
   SOCIAL PROOF CONTAINER
   ============================================ */

.social-proof {
  background: var(--social-bg);
  padding: var(--social-padding) 32px;
  position: relative;
}

.social-container {
  max-width: var(--social-max-width);
  margin: 0 auto;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.social-header {
  text-align: center;
  margin-bottom: 64px;
}

.social-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.social-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 16px 0;
}

.social-subtitle {
  font-size: 18px;
  color: #64748b;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   TESTIMONIALS GRID
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.testimonial-card {
  background: var(--testimonial-card-bg);
  border-radius: var(--testimonial-card-radius);
  padding: var(--testimonial-card-padding);
  box-shadow: var(--testimonial-card-shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.12);
  border-color: #fbbf24;
}

/* Stars Rating */
.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-star {
  width: 20px;
  height: 20px;
  fill: #fbbf24;
}

/* Quote */
.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: #1f2937;
  margin: 0 0 24px 0;
  flex: 1;
  font-style: italic;
}

.testimonial-quote::before {
  content: '"';
  font-size: 48px;
  line-height: 1;
  color: #e5e7eb;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 8px;
}

/* Author */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 2px solid #f1f5f9;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.testimonial-location {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* Verified Badge */
.testimonial-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 12px;
}

.testimonial-verified-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ============================================
   GUARANTEE MEGA BANNER
   ============================================ */

.guarantee-banner {
  background: var(--guarantee-gradient);
  border-radius: 32px;
  padding: 56px 48px;
  box-shadow: var(--guarantee-shadow);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: white;
}

.guarantee-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: guaranteeFloat 10s ease-in-out infinite;
}

@keyframes guaranteeFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.05); }
}

.guarantee-banner::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: guaranteeFloat 8s ease-in-out infinite reverse;
}

.guarantee-content {
  position: relative;
  z-index: 1;
}

.guarantee-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.guarantee-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 900;
  margin: 0 0 16px 0;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.guarantee-desc {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 32px 0;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.guarantee-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.guarantee-feature {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.guarantee-feature:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.guarantee-feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.guarantee-feature-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin: 0 0 8px 0;
}

.guarantee-feature-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1023px) {
  :root {
    --social-padding: 60px;
    --testimonial-card-padding: 24px;
  }

  .social-title {
    font-size: 36px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guarantee-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guarantee-banner {
    padding: 40px 32px;
  }

  .guarantee-title {
    font-size: 28px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 640px) {
  :root {
    --social-padding: var(--social-padding-mobile);
    --testimonial-card-padding: 20px;
  }

  .social-proof {
    padding: var(--social-padding-mobile) 20px;
  }

  .social-eyebrow {
    font-size: 11px;
    padding: 6px 16px;
  }

  .social-title {
    font-size: 28px;
  }

  .social-subtitle {
    font-size: 16px;
  }

  .guarantee-banner {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .guarantee-icon {
    width: 72px;
    height: 72px;
    font-size: 36px;
  }

  .guarantee-title {
    font-size: 24px;
  }

  .guarantee-desc {
    font-size: 16px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .social-proof {
    background: white;
    padding: 40px 20px;
  }

  .testimonial-card {
    box-shadow: none;
    border: 1px solid #000;
    page-break-inside: avoid;
  }

  .testimonial-card:hover {
    transform: none;
  }

  .guarantee-banner {
    background: white;
    border: 2px solid #000;
    box-shadow: none;
    color: #000;
  }

  .guarantee-banner::before,
  .guarantee-banner::after {
    display: none;
  }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .testimonial-card,
  .guarantee-feature {
    transition: none !important;
  }

  .testimonial-card:hover,
  .guarantee-feature:hover {
    transform: none !important;
  }

  .guarantee-banner::before,
  .guarantee-banner::after {
    animation: none !important;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* High contrast mode */
@media (prefers-contrast: high) {
  .testimonial-card {
    border: 2px solid currentColor;
  }

  .guarantee-banner {
    background: #000;
    border: 2px solid #fff;
  }
}
