/* ========================================
   FOOTER MOBILE PROFISSIONAL - ENERGIA CERTA BRASIL
   CSS mobile APENAS para mobile (≤768px)
   ======================================== */

@media (max-width: 768px) {
  /* ========================================
     FOOTER MOBILE BASE
     ======================================== */
  .footer {
    background: linear-gradient(135deg, #2e3d6a 0%, #3d4c7a 100%) !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 2rem 0 1rem 0 !important;
  }

  .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  }

  /* ========================================
     CONTAINER MOBILE
     ======================================== */
  .footer .container {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
  }

  /* ========================================
     FOOTER MOBILE COMPACTO
     ======================================== */
  .footer-mobile {
    display: block !important;
  }

  /* LOGO E DESCRIÇÃO - DESTAQUE ESPECIAL */
  .footer-mobile-logo-section {
    text-align: center !important;
    margin-bottom: 2.5rem !important;
    padding: 1.5rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
  }

  .footer-mobile-logo {
    margin-bottom: 1rem !important;
  }

  .footer-mobile-logo img {
    height: 80px !important;
    width: auto !important;
    filter: none !important;
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) !important;
  }

  .footer-mobile-logo img:hover {
    transform: scale(1.05) !important;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)) !important;
  }

  .footer-mobile-description {
    color: #e2e8f0 !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    font-size: 1rem !important;
    text-align: center !important;
    font-weight: 500 !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    padding: 0 0.5rem !important;
  }

  /* ========================================
     CONTATO MOBILE - REORGANIZADO
     ======================================== */
  .footer-mobile-contact {
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  .footer-mobile-contact-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #2e3d6a !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
  }

  .footer-mobile-contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    padding: 0.75rem !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  .footer-mobile-contact-item:last-child {
    margin-bottom: 0 !important;
  }

  .footer-mobile-contact-item i {
    color: #2e3d6a !important;
    font-size: 1.1rem !important;
    min-width: 20px !important;
  }

  .footer-mobile-contact-item a,
  .footer-mobile-contact-item span {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }

  .footer-mobile-contact-item a:hover {
    color: #2e3d6a !important;
  }

  /* ========================================
     CTA MOBILE - DESTAQUE
     ======================================== */
  .footer-mobile-cta {
    margin-bottom: 2rem !important;
  }

  .footer-mobile-cta-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    border: none !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }

  .footer-mobile-cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4) !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  }

  /* ========================================
     LINKS SOCIAIS MOBILE - REORGANIZADO
     ======================================== */
  .footer-mobile-social {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
  }

  .footer-mobile-social a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  /* Cores específicas para cada rede social mobile */
  .footer-mobile-social a[title*="Facebook"] {
    background: linear-gradient(135deg, #1877f2, #0d6efd) !important;
    border-color: #1877f2 !important;
  }

  .footer-mobile-social a[title*="Instagram"] {
    background: linear-gradient(135deg, #e4405f, #c13584) !important;
    border-color: #e4405f !important;
  }

  .footer-mobile-social a[title*="LinkedIn"] {
    background: linear-gradient(135deg, #0077b5, #005885) !important;
    border-color: #0077b5 !important;
  }

  .footer-mobile-social a[title*="YouTube"] {
    background: linear-gradient(135deg, #ff0000, #cc0000) !important;
    border-color: #ff0000 !important;
  }

  .footer-mobile-social a:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    filter: brightness(1.2) !important;
  }

  .footer-mobile-social i {
    font-size: 1.2rem !important;
  }

  /* ========================================
     CONTATO MOBILE
     ======================================== */
  .footer-mobile-contact {
    text-align: center !important;
    margin-bottom: 2rem !important;
    padding: 1.5rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .footer-mobile-contact-title {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
  }

  .footer-mobile-contact-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
  }

  .footer-mobile-contact-item i {
    color: #fbbf24 !important;
    font-size: 1rem !important;
    width: 20px !important;
    text-align: center !important;
  }

  .footer-mobile-contact-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-size: 0.9rem !important;
  }

  .footer-mobile-contact-item a:hover {
    color: #fbbf24 !important;
  }

  .footer-mobile-contact-item span {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem !important;
  }

  /* ========================================
     CTA MOBILE
     ======================================== */
  .footer-mobile-cta {
    text-align: center !important;
    margin-bottom: 2rem !important;
  }

  .footer-mobile-cta-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
    max-width: 300px !important;
    padding: 1rem 1.5rem !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #1f2937 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3) !important;
    border: none !important;
  }

  .footer-mobile-cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4) !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  }

  .footer-mobile-cta-button i {
    font-size: 1.1rem !important;
  }

  /* ========================================
     FOOTER INFERIOR MOBILE - REORGANIZADO
     ======================================== */
  .footer-mobile-bottom {
    text-align: center !important;
    padding: 1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    margin: 0 0.5rem !important;
  }

  .footer-mobile-copyright {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    font-weight: 500 !important;
  }

  .footer-mobile-legal {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .footer-mobile-legal a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 0.7rem !important;
    transition: all 0.3s ease !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .footer-mobile-legal a:hover {
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.1) !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
    transform: translateY(-1px) !important;
  }

  /* ========================================
     RESPONSIVIDADE ADICIONAL
     ======================================== */
  @media (max-width: 480px) {
    .footer-mobile-contact {
      padding: 1rem !important;
    }
    
    .footer-mobile-cta-button {
      padding: 0.875rem 1.25rem !important;
      font-size: 0.9rem !important;
    }
    
    .footer-mobile-legal {
      gap: 0.75rem !important;
    }
  }

  @media (max-width: 360px) {
    .footer {
      padding: 1.5rem 0 1rem 0 !important;
    }
    
    .footer .container {
      padding: 0 0.75rem !important;
    }
    
    .footer-mobile-logo img {
      height: 30px !important;
    }
    
    .footer-mobile-description {
      font-size: 0.85rem !important;
    }
    
    .footer-mobile-social a {
      width: 40px !important;
      height: 40px !important;
    }
    
    .footer-mobile-social i {
      font-size: 1.1rem !important;
    }
  }

  /* ========================================
     ACESSIBILIDADE MOBILE
     ======================================== */
  .footer-mobile-links-list a:focus,
  .footer-mobile-social a:focus,
  .footer-mobile-legal a:focus,
  .footer-mobile-cta-button:focus {
    outline: 2px solid #fbbf24 !important;
    outline-offset: 2px !important;
  }

  /* ========================================
     ANIMAÇÕES MOBILE
     ======================================== */
  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .footer-mobile-header {
    animation: slideInUp 0.6s ease forwards !important;
  }

  .footer-mobile-contact {
    animation: slideInUp 0.6s ease 0.1s forwards !important;
    opacity: 0;
  }

  .footer-mobile-cta {
    animation: slideInUp 0.6s ease 0.2s forwards !important;
    opacity: 0;
  }

  .footer-mobile-bottom {
    animation: slideInUp 0.6s ease 0.3s forwards !important;
    opacity: 0;
  }
}

/* ========================================
   DESKTOP - GARANTIR QUE NÃO INTERFIRA
   ======================================== */
@media (min-width: 769px) {
  /* Garantir que elementos mobile não apareçam no desktop */
  .footer-mobile {
    display: none !important;
  }
}
