/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

/* Footer Top - CTA Section */
.footer-cta {
  background: var(--primary-gradient);
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
}

.footer-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.footer-cta-content {
  position: relative;
  z-index: 1;
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-cta-text {
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto var(--space-lg);
}

.footer-cta .btn {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.footer-cta .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

/* Footer Main */
.footer-main {
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
}

/* Footer Brand */
.footer-brand {
  max-width: 300px;
}

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

.footer-logo-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  color: var(--primary-dark);
  font-size: 1.5rem;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--fw-bold);
  color: var(--white);
}

.footer-logo-accent {
  color: var(--accent);
}

/* Footer Logo Image */
.footer-logo-img {
  height: 85px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
  transform: scale(1.05);
}

.footer-description {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social .social-link {
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  color: var(--white);
}

.footer-social .social-link:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-5px);
}

/* Footer Columns */
.footer-column {
  padding-top: var(--space-sm);
}

.footer-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--white);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

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

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.footer-link::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent);
  transform: translateX(10px);
}

.footer-link:hover::before {
  width: 15px;
}

/* Footer Contact */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent);
  flex-shrink: 0;
}

.footer-contact-text {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--lh-normal);
}

.footer-contact-text a {
  color: inherit;
  transition: color var(--transition-fast);
}

.footer-contact-text a:hover {
  color: var(--accent);
}

/* Newsletter */
.footer-newsletter {
  margin-top: var(--space-lg);
}

.footer-newsletter-form {
  display: flex;
  gap: var(--space-sm);
}

.footer-newsletter-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: var(--fs-small);
  transition: all var(--transition-fast);
}

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

.footer-newsletter-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
}

.footer-newsletter-btn {
  padding: 0.875rem 1.5rem;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.footer-newsletter-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-copyright {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
}

.footer-copyright a {
  color: var(--accent);
  font-weight: var(--fw-medium);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer-bottom-link {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-bottom-link:hover {
  color: var(--accent);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: var(--z-sticky);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-5px);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: var(--white);
  font-size: 2rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-sticky);
  transition: all var(--transition-normal);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    max-width: 100%;
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: span 1;
    text-align: center;
  }

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

  .footer-logo-img {
    height: 70px;
  }

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

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

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

  .footer-link:hover {
    transform: none;
  }

  .footer-contact-list {
    align-items: center;
  }

  .footer-contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    bottom: var(--space-md);
    left: var(--space-md);
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 45px;
    height: 45px;
  }
}
