/* Footer */
.footer {
  position: relative;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 4rem 0 2rem;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

/* Footer Background */
.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.footer-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.footer-pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../../src/imgs/linhasrodape.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 2;
}

/* Gear Decoration */
.footer-gear-decoration {
  position: absolute;
  top: 50%;
  right: -200px;
  transform: translateY(-50%);
  z-index: 3;
  width: 900px;
  height: 900px;
  opacity: 0.9;
  animation: rotate 20s linear infinite;
}

.footer-gear-decoration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 120px;
  height: 120px;
  animation: counter-rotate 20s linear infinite;
}

.footer-logo-center img {
  width: 100%;
  height: auto;
  max-width: 100px;
}

/* Footer Content */
.footer .container {
  position: relative;
  z-index: 4;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 600px;
  margin-left: 0;
  position: relative;
  z-index: 4;
}

.footer-section {
  position: relative;
  z-index: 5;
}

.footer-section h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.footer-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: var(--font-title);
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #22c55e;
}

.footer-contact p,
.footer-hours p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: #16a34a;
  margin-right: 0.5rem;
  width: 16px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.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(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animações */
@keyframes rotate {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes counter-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 60px 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: none;
    margin-left: auto;
  }

  .footer-gear-decoration {
    right: -150px;
    width: 600px;
    height: 600px;
    opacity: 0.7;
    animation: rotate 20s linear infinite;
  }

  .footer-logo-center {
    width: 80px;
    height: 80px;
    animation: counter-rotate 20s linear infinite;
  }

  .footer-logo-center img {
    max-width: 70px;
  }

  .footer-pattern-overlay {
    opacity: 0.1;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 40px 0 20px;
  }

  .footer-gear-decoration {
    right: -400px;
    width: 600px;
    height: 600px;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
  }

  .footer-logo-center {
    width: 60px;
    height: 60px;
    animation: counter-rotate 20s linear infinite;
  }

  .footer-logo-center img {
    max-width: 50px;
  }

  .footer-title {
    font-size: 1.2rem;
  }

  .footer-description,
  .footer-links a,
  .footer-contact p,
  .footer-hours p {
    font-size: 0.9rem;
  }
}
