/**
 * ELIO SOLAR - TRUST SIGNALS HUB
 * Social proof and credibility indicators
 * Version: 1.0
 */

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

:root {
  /* Trust Section */
  --trust-padding: 80px;
  --trust-padding-mobile: 60px;
  --trust-bg: white;
  --trust-max-width: 1400px;

  /* Stats Cards */
  --stat-card-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --stat-card-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
  --stat-card-border-radius: 20px;
  --stat-card-padding: 32px;

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

  /* Features */
  --feature-icon-size: 64px;
  --feature-gap: 32px;
}

/* ============================================
   TRUST SIGNALS CONTAINER
   ============================================ */

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

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

/* ============================================
   STATS ROW (Top Section)
   ============================================ */

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

.trust-stat-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: var(--stat-card-border-radius);
  padding: var(--stat-card-padding);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.trust-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--stat-card-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.trust-stat-card:hover::before {
  transform: scaleX(1);
}

.trust-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--stat-card-shadow);
  border-color: #3b82f6;
}

.trust-stat-number {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 12px 0;
  background: var(--stat-card-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-stat-label {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.trust-stat-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   GUARANTEE BANNER (Middle Section)
   ============================================ */

.trust-guarantee {
  background: var(--guarantee-gradient);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 64px;
  box-shadow: var(--guarantee-shadow);
  position: relative;
  overflow: hidden;
}

.trust-guarantee::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.trust-guarantee-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.trust-guarantee-text {
  flex: 1;
}

.trust-guarantee-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin: 0 0 8px 0;
}

.trust-guarantee-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   FEATURES GRID (Bottom Section)
   ============================================ */

.trust-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--feature-gap);
}

.trust-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: #f8fafc;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.trust-feature:hover {
  background: white;
  border-color: #e5e7eb;
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.trust-feature-icon {
  width: var(--feature-icon-size);
  height: var(--feature-icon-size);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.trust-feature:hover .trust-feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.trust-feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.trust-feature-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   BADGES (Optional Enhancement)
   ============================================ */

.trust-badges-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.trust-badge:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.trust-badge-icon {
  width: 24px;
  height: 24px;
  fill: #3b82f6;
}

.trust-badge-text {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

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

@media (max-width: 1023px) {
  :root {
    --trust-padding: 60px;
    --stat-card-padding: 24px;
    --feature-gap: 24px;
  }

  .trust-stats-row,
  .trust-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-stat-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .trust-guarantee-content {
    flex-direction: column;
    text-align: center;
  }

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

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

@media (max-width: 640px) {
  :root {
    --trust-padding: var(--trust-padding-mobile);
    --stat-card-padding: 24px;
    --feature-icon-size: 56px;
  }

  .trust-signals {
    padding: var(--trust-padding-mobile) 20px;
  }

  .trust-stats-row,
  .trust-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trust-stat-card:last-child {
    max-width: 100%;
  }

  .trust-stat-number {
    font-size: 40px;
  }

  .trust-guarantee {
    padding: 32px 24px;
  }

  .trust-guarantee-icon {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }

  .trust-guarantee-title {
    font-size: 22px;
  }

  .trust-guarantee-desc {
    font-size: 15px;
  }

  .trust-feature {
    padding: 24px 20px;
  }

  .trust-badges-row {
    gap: 16px;
  }

  .trust-badge {
    padding: 10px 20px;
    font-size: 13px;
  }
}

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

@media print {
  .trust-signals {
    padding: 40px 20px;
  }

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

  .trust-guarantee-title,
  .trust-guarantee-desc {
    color: #000;
  }

  .trust-feature:hover {
    transform: none;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .trust-stat-card,
  .trust-feature,
  .trust-feature-icon,
  .trust-badge {
    transition: none !important;
  }

  .trust-stat-card:hover,
  .trust-feature:hover,
  .trust-badge:hover {
    transform: none !important;
  }

  .trust-feature:hover .trust-feature-icon {
    transform: none !important;
  }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
  .trust-stat-card,
  .trust-feature,
  .trust-badge {
    border: 2px solid currentColor;
  }

  .trust-stat-number {
    -webkit-text-fill-color: currentColor;
    background: none;
  }

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