/*
 * FOOTER ORGANIZADO - CAROLINE LEONE
 * Estrutura otimizada e responsiva
 */

/* ===============================================
   FOOTER PRINCIPAL
   =============================================== */

.site-footer {
  background: linear-gradient(135deg, 
    var(--neutral-dark) 0%, 
    rgba(30, 30, 40, 0.98) 100%
  );
  color: var(--neutral-white);
  padding: var(--space-16) 0 var(--space-6);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* ===============================================
   ESTRUTURA PRINCIPAL
   =============================================== */

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  align-items: start;
}

/* ===============================================
   SEÇÃO BRAND
   =============================================== */

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-logo .logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.9);
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-logo .logo-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo .logo-subtitle {
  font-size: var(--text-xs);
  color: var(--lilac-300);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

/* Certificações no Footer */
.footer-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--mint-300);
  transition: all var(--transition-base);
}

.footer-cert-badge:hover {
  background: rgba(94, 234, 212, 0.2);
  transform: translateY(-2px);
}

/* Social Links */
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-base);
  font-size: 18px;
}

.social-link:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(94, 234, 212, 0.3);
}

/* ===============================================
   SEÇÕES DO FOOTER
   =============================================== */

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-section h4 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--mint-300);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
}

.footer-links a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-base);
}

.footer-links a:hover {
  color: var(--mint-300);
  padding-left: var(--space-3);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ===============================================
   NEWSLETTER SECTION
   =============================================== */

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.newsletter-form {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.newsletter-input {
  flex: 1;
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  color: white;
  font-size: var(--text-sm);
  transition: all var(--transition-base);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.1);
}

.newsletter-button {
  padding: var(--space-3) var(--space-4);
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.newsletter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(94, 234, 212, 0.3);
}

.newsletter-disclaimer {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* ===============================================
   FOOTER BOTTOM
   =============================================== */

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 20%, 
    rgba(255, 255, 255, 0.1) 80%, 
    transparent 100%
  );
  margin: var(--space-8) 0 var(--space-6);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.copyright-heart {
  color: var(--lilac-400);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.footer-legal {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-base);
  padding: var(--space-1) var(--space-2);
}

.footer-legal a:hover {
  color: var(--mint-300);
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.3);
}

/* ===============================================
   RESPONSIVO TABLET
   =============================================== */

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ===============================================
   RESPONSIVO MOBILE
   =============================================== */

@media (max-width: 640px) {
  .site-footer {
    padding: var(--space-10) 0 var(--space-6);
    /* Adiciona espaço extra para o WhatsApp button */
    padding-bottom: calc(var(--space-8) + 70px);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-description {
    text-align: center;
    max-width: 80%;
    margin: 0 auto var(--space-4);
  }

  .footer-certifications {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-section h4 {
    text-align: center;
    margin-bottom: var(--space-3);
  }

  .footer-links {
    align-items: center;
  }

  .footer-links a {
    justify-content: center;
  }

  .footer-links a::before {
    display: none;
  }

  .footer-links a:hover {
    padding-left: 0;
    color: var(--mint-300);
  }

  .newsletter-form {
    flex-direction: column;
    gap: var(--space-3);
  }

  .newsletter-input,
  .newsletter-button {
    width: 100%;
    padding: var(--space-4);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  .footer-legal {
    flex-direction: column;
    gap: var(--space-2);
  }

  .footer-legal span {
    display: none;
  }
}

/* ===============================================
   AJUSTES PARA PRINT
   =============================================== */

@media print {
  .site-footer {
    background: white;
    color: black;
    border-top: 2px solid #ccc;
  }

  .footer-logo .logo {
    filter: none;
  }

  .social-link,
  .newsletter-form,
  .footer-legal {
    display: none;
  }
}