/* ========================================
   CSS ESPECÍFICO PARA PÁGINA SOBRE
   Energia Certa Brasil
   ======================================== */

/* ========================================
   1. HERO SECTION
   ======================================== */
.page-sobre .hero {
  background: #ffffff;
  padding: 140px 0 60px;
}

.page-sobre .hero-overlay {
  display: none;
}

.page-sobre .hero h1,
.page-sobre .hero-description,
.page-sobre .hero-benefits {
  color: #2e3d6a;
  text-shadow: none;
}

.page-sobre .hero h1 .highlight {
  color: #fbbf24;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   1.1 HERO STATS - EFEITO DE BRILHO
   ======================================== */
.page-sobre .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.page-sobre .stat-item {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 61, 106, 0.1);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(46, 61, 106, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.page-sobre .stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2e3d6a, #3d4c7a, #fbbf24, #2e3d6a);
  background-size: 200% 100%;
  animation: gradient-flow 3s linear infinite;
}

.page-sobre .stat-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(46, 61, 106, 0.2);
  border-color: rgba(46, 61, 106, 0.3);
}

.page-sobre .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #2e3d6a;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.page-sobre .stat-label {
  font-size: 1rem;
  color: #374151;
  font-weight: 500;
  line-height: 1.4;
}

/* ========================================
   1.2 ÍCONES DAS ESTATÍSTICAS
   ======================================== */
.page-sobre .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Ícone Anos de Experiência (Azul) */
.page-sobre .stat-item:nth-child(1) .stat-icon {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.page-sobre .stat-item:nth-child(1) .stat-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  animation: shine-rotate 2s linear infinite;
}

/* Ícone Clientes Satisfeitos (Verde) */
.page-sobre .stat-item:nth-child(2) .stat-icon {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.page-sobre .stat-item:nth-child(2) .stat-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  animation: shine-rotate 2s linear infinite;
  animation-delay: 0.5s;
}

/* Ícone Economizados (Dourado) */
.page-sobre .stat-item:nth-child(3) .stat-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.page-sobre .stat-item:nth-child(3) .stat-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  animation: shine-rotate 2s linear infinite;
  animation-delay: 1s;
}

.page-sobre .stat-item:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ========================================
   2. LAYOUT DOS CARDS
   ======================================== */
.page-sobre .features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.page-sobre .three-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* ========================================
   3. ESTILOS DOS CARDS
   ======================================== */
.page-sobre .feature {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 61, 106, 0.1);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(46, 61, 106, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
}

.page-sobre .feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2e3d6a, #3d4c7a, #fbbf24, #2e3d6a);
  background-size: 200% 100%;
  animation: gradient-flow 3s linear infinite;
}

.page-sobre .feature:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(46, 61, 106, 0.2);
  border-color: rgba(46, 61, 106, 0.3);
}

/* ========================================
   4. ÍCONES DOS CARDS
   ======================================== */
.page-sobre .feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Ícone 1 - Lightbulb (Amarelo) */
.page-sobre .feature:nth-child(1) .feature-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.page-sobre .feature:nth-child(1) .feature-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  animation: shine-rotate 2s linear infinite;
}

/* Ícone 2 - Search (Azul) */
.page-sobre .feature:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.page-sobre .feature:nth-child(2) .feature-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  animation: shine-rotate 2s linear infinite;
  animation-delay: 0.5s;
}

/* Ícone 3 - Handshake (Verde) */
.page-sobre .feature:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.page-sobre .feature:nth-child(3) .feature-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  animation: shine-rotate 2s linear infinite;
  animation-delay: 1s;
}

/* Ícone 4 - Chart Line (Roxo) */
.page-sobre .feature:nth-child(4) .feature-icon {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.page-sobre .feature:nth-child(4) .feature-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  animation: shine-rotate 2s linear infinite;
  animation-delay: 1.5s;
}

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

/* ========================================
   5. CONTEÚDO DOS CARDS
   ======================================== */
.page-sobre .feature h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
  flex-shrink: 0;
}

.page-sobre .feature p {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-sobre .feature-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  margin-top: auto;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

/* ========================================
   6. ANIMAÇÕES
   ======================================== */
@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shine-rotate {
  0% { transform: rotate(45deg) translateX(-100%); }
  100% { transform: rotate(45deg) translateX(100%); }
}

/* ========================================
   7. RESPONSIVIDADE
   ======================================== */
@media (max-width: 768px) {
  .page-sobre .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .page-sobre .stat-item {
    padding: 1.5rem;
    min-height: 140px;
  }
  
  .page-sobre .stat-icon {
    width: 55px;
    height: 55px;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .page-sobre .stat-number {
    font-size: 2.5rem;
  }
  
  .page-sobre .stat-label {
    font-size: 0.9rem;
  }
  
  .page-sobre .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .page-sobre .three-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .page-sobre .feature {
    padding: 1.5rem;
    min-height: 280px;
  }
  
  .page-sobre .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }
  
  .page-sobre .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .page-sobre .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .page-sobre .stat-item {
    padding: 1.25rem;
    min-height: 120px;
  }
  
  .page-sobre .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .page-sobre .stat-number {
    font-size: 2.25rem;
  }
  
  .page-sobre .stat-label {
    font-size: 0.85rem;
  }
  
  .page-sobre .features {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .page-sobre .three-cards-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .page-sobre .feature {
    padding: 1.25rem;
    min-height: 250px;
  }
  
  .page-sobre .feature-icon {
    width: 65px;
    height: 65px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .page-sobre .hero h1 {
    font-size: 1.75rem;
  }
  
  .page-sobre .hero {
    padding: 120px 0 40px;
  }
}
