:root {
  --primary-blue: #1149ff;
  --primary-gradient: linear-gradient(135deg, #1149ff 0%, #06b6d4 100%);
  --dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.3);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   FOOTER PRINCIPAL
   ======================================== */
.footer-moderno {
  background: var(--dark-gradient);
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 6rem;
}

.footer-moderno::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  z-index: 2;
}

/* ========================================
   EFEITOS DE FUNDO
   ======================================== */
.footer-bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(17, 73, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(6, 182, 212, 0.1) 0%,
      transparent 50%
    ),
    linear-gradient(
      45deg,
      transparent 49%,
      rgba(255, 255, 255, 0.02) 50%,
      transparent 51%
    );
  background-size: 100% 100%, 100% 100%, 20px 20px;
}

.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* ========================================
   CONTEÚDO PRINCIPAL
   ======================================== */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  min-height: 400px;
}

/* ========================================
   COLUNA DA MARCA
   ======================================== */
.footer-brand {
  animation: slideInLeft 1s ease-out;
}

.brand-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-logo {
  width: 15rem;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  transition: var(--transition-smooth);
}

.footer-logo:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(17, 73, 255, 0.5));
  transform: scale(1.05);
}

.brand-name {
  font-size: 1.8rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.brand-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  text-align: justify;
}

/* ========================================
   LINKS SOCIAIS
   ======================================== */
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-soft);
  border-color: rgba(255, 255, 255, 0.4);
}

.social-link.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
}

.social-link i {
  font-size: 1.2rem;
  z-index: 1;
  position: relative;
}

/* ========================================
   COLUNAS DE CONTEÚDO
   ======================================== */
.footer-column {
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition-smooth);
}

.footer-column.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.column-title {
  font-size: 1.3rem;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
}

.column-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding-left: 1rem;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: white;
  padding-left: 1.5rem;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   INFORMAÇÕES DE CONTATO
   ======================================== */
.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.contact-item i {
  color: var(--primary-blue);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  min-width: 20px;
}

.contact-item div {
  flex: 1;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.contact-item a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.contact-item a:hover {
  color: var(--primary-blue);
}

/* ========================================
   CTA DO FOOTER
   ======================================== */
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.footer-cta:hover::before {
  left: 100%;
}

.footer-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.footer-cta i {
  font-size: 1.1rem;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.footer-newsletter {
  background: var(--primary-gradient);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.footer-newsletter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.newsletter-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.newsletter-text h4 {
  font-size: 1.8rem;
  font-family: "Playfair Display", serif;
  margin-bottom: 1rem;
  color: white;
}

.newsletter-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  justify-content: flex-end;
}

.input-group {
  display: flex;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.5rem;
  width: 100%;
  max-width: 400px;
  transition: var(--transition-smooth);
}

.input-group:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  color: white;
  font-size: 1rem;
  outline: none;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input-group button {
  background: white;
  color: var(--primary-blue);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.input-group button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* ========================================
   BADGES/CERTIFICAÇÕES
   ======================================== */
.footer-badges {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.badge-item:hover {
  color: white;
  transform: translateY(-5px);
}

.badge-item i {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.badge-item span {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* ========================================
   RODAPÉ FINAL
   ======================================== */
.footer-bottom {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.footer-bottom-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.copyright {
  flex: 1;
}

.copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.copyright strong {
  color: white;
  font-weight: 600;
}

.developed-by {
  font-size: 0.8rem !important;
  margin-top: 0.5rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-bounce);
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
  box-shadow: var(--shadow-soft);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.back-to-top:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.back-to-top i {
  color: white;
  font-size: 1.2rem;
}

/* ========================================
   ANIMAÇÕES PERSONALIZADAS
   ======================================== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
  }

  .newsletter-content {
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 2rem;
  }

  .newsletter-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .newsletter-form {
    justify-content: center;
  }

  .footer-badges {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem 1rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .social-links {
    justify-content: center;
  }

  .newsletter-content {
    padding: 0 1rem;
  }

  .newsletter-text h4 {
    font-size: 1.5rem;
  }

  .input-group {
    max-width: 100%;
  }

  .footer-badges {
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .brand-container {
    align-items: center;
    text-align: center;
  }

  .brand-description {
    text-align: center;
  }

  .newsletter-text h4 {
    font-size: 1.3rem;
  }

  .input-group {
    flex-direction: column;
    border-radius: 15px;
    padding: 1rem;
  }

  .input-group button {
    border-radius: 10px;
    margin-top: 0.5rem;
  }

  .footer-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 1rem;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
  }
}
