/* ========================================
   FOOTER BASE
   ======================================== */

.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--color-white);
  padding-top: var(--spacing-2xl);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-secondary) 50%,
    var(--color-primary) 100%
  );
}

/* ========================================
   FOOTER "CONTEÚDO"
   ======================================== */

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
  animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) {
  animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
  animation-delay: 0.3s;
}

.footer-section:nth-child(4) {
  animation-delay: 0.4s;
}

.footer-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ========================================
   FOOTER "SOBRE"
   ======================================== */

.footer-about {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.footer-logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition-base);
}

.footer-logo:hover img {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(200, 16, 46, 0.6));
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.footer-address {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-sm);
}

.footer-address i {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-top: 3px;
}

/* ========================================
   FOOTER LINKS
   ======================================== */

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all var(--transition-base);
  position: relative;
  padding-left: var(--spacing-md);
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateX(-10px);
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: var(--spacing-lg);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   FOOTER CONTATO
   ======================================== */

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-base);
}

.footer-contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-icon i {
  color: var(--color-white);
  font-size: 1.1rem;
}

.footer-contact-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 4px 0;
}

.footer-contact-info a,
.footer-contact-info p {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0;
  transition: color var(--transition-base);
}

.footer-contact-info a:hover {
  color: var(--color-primary);
}

/* ========================================
   FOOTER SOCIAL
   ======================================== */

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.footer-social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  border-radius: 50%;
  transform: scale(0);
  transition: transform var(--transition-base);
}

.footer-social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.4);
}

.footer-social-link:hover::before {
  transform: scale(1);
}

.footer-social-link i {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */

.footer-bottom {
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-copyright strong {
  color: var(--color-white);
  font-weight: 600;
}

.footer-bottom-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-base);
}

.footer-bottom-links a:hover {
  color: var(--color-primary);
}

/* ========================================
   BOTÃO VOLTAR AO TOPO
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: 60px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.4);
}

.back-to-top i {
  font-size: 1.25rem;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .footer-about {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .footer {
    padding-top: var(--spacing-xl);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* REDUZIR MOVIMENTO */
@media (prefers-reduced-motion: reduce) {
  .footer-section,
  .footer-social-link,
  .footer-contact-item,
  .back-to-top {
    animation: none;
    transition: none;
  }
}
