/* ============================================
   ENHANCEMENTS CSS - Weboria Improvements
   Styles for: Stats, Testimonials, WhatsApp, Pricing
   ============================================ */

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
  padding: 80px 0;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.stats::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-number .percent,
.stat-number .unit {
  font-size: 1.75rem;
  font-weight: 600;
  opacity: 0.9;
}

.stat-label {
  font-size: 1.125rem;
  font-weight: 500;
  opacity: 0.95;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .stat-number {
    font-size: 2.75rem;
  }

  .stat-label {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .stats {
    padding: 50px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--color-bg-light);
}

.testimonials-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

.summary-rating {
  text-align: center;
}

.rating-stars {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 8px;
}

.rating-stars .star {
  font-size: 28px;
  color: #fbbf24;
}

.rating-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.summary-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.summary-badges .badge {
  padding: 8px 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-rating .star {
  font-size: 18px;
  color: #fbbf24;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 24px 0;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: auto;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  font-style: normal;
}

.author-role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.author-project {
  font-size: 0.813rem;
  color: var(--color-primary);
  font-weight: 500;
}

.testimonial-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.testimonial-project-link:hover {
  color: #1d4ed8;
}

.testimonials-trust {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border-light);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-text);
}

.trust-item svg {
  color: #10b981;
}

@media (max-width: 768px) {
  .testimonials {
    padding: 60px 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-summary {
    flex-direction: column;
    text-align: center;
  }

  .testimonials-trust {
    flex-direction: column;
    gap: 20px;
  }
}

/* ============================================
   OFFERS PRICING STYLES
   ============================================ */
.offer-price {
  margin: 16px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-amount {
  font-size: 2rem;
}

.offer-ideal {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.offer-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.offer-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #10b981;
}

.offer-features li:last-child {
  border-bottom: none;
}

.delivery-time {
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 8px;
  border-radius: 6px;
  margin-top: 8px;
}

.offers-note {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.offers-note p {
  margin: 0;
  color: var(--color-text);
  line-height: 1.7;
}

/* ============================================
   PROJECT BADGES
   ============================================ */
.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.project-badge:not(.project-real) {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.project-badge.project-real {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

/* Project placeholders with emojis */
.project-placeholder.restaurant,
.project-placeholder.immobilier,
.project-placeholder.beaute,
.project-placeholder.saas {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.project-placeholder.restaurant {
  background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
}

.project-placeholder.immobilier {
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
}

.project-placeholder.beaute {
  background: linear-gradient(135deg, #fce7f3 0%, #f9a8d4 100%);
}

.project-placeholder.saas {
  background: linear-gradient(135deg, #e0e7ff 0%, #a5b4fc 100%);
}

.project-emoji {
  font-size: 4rem;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 64px;
  height: 64px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  background-color: #22c35e;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: white;
  color: var(--color-text);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: white;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 80px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

/* Pulse animation for WhatsApp button */
@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

.whatsapp-float {
  animation: pulse-whatsapp 2s infinite;
}

/* ============================================
   HERO TRUST BADGES
   ============================================ */
.hero-trust-badges {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.trust-badge svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   SECTION HEADER IMPROVEMENTS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   CONTACT FORM IMPROVEMENTS
   ============================================ */
.contact-form-wrapper {
  position: relative;
}

.form-status {
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  padding: 16px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  display: none;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-status.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.form-status.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations */
.services-grid > .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid > .service-card:nth-child(2) { transition-delay: 0.2s; }
.services-grid > .service-card:nth-child(3) { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 640px) {
  .section-header {
    margin-bottom: 40px;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .hero-trust-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-badge {
    width: 100%;
  }
}
