/* Footer Styles */
.footer {
  background: linear-gradient(to bottom, #111827, #0f172a);
  color: #f9fafb;
  position: relative;
}

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

/* Footer Main Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
  }
}

/* Company Info Section */
.footer-company-info {
  display: flex;
  flex-direction: column;
}

.footer-coverage {
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  transform: translateY(-2px);
}

/* Links Section */
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
}

.footer-links-group {
  margin-bottom: 1rem;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #9ca3af;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  position: relative;
  display: inline-block;
}

.footer-link:before {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #ffd700;
  transition: width 0.25s ease;
}

.footer-link:hover {
  color: #f9fafb;
}

.footer-link:hover:before {
  width: 100%;
}

/* Contact Section */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-contact-item a {
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: #ffd700;
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: rgba(255, 215, 0, 0.7);
  margin-top: 0.125rem;
}

/* Newsletter */
.footer-newsletter {
  margin-top: 1.5rem;
}

.newsletter-form {
  display: flex;
  max-width: 100%;
}

.newsletter-input {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem 0 0 0.25rem;
  padding: 0.5rem 0.75rem;
  color: #f9fafb;
  font-size: 0.875rem;
  width: 100%;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(255, 215, 0, 0.5);
  background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-button {
  background-color: rgba(255, 215, 0, 0.8);
  color: #111827;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0 0.25rem 0.25rem 0;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.newsletter-button:hover {
  background-color: rgba(255, 215, 0, 1);
}

/* Copyright Bar */
.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
}

.footer-copyright-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-copyright-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-link {
  color: #6b7280;
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: #9ca3af;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(255, 215, 0, 0.8);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.back-to-top:hover {
  background-color: rgba(255, 215, 0, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .footer-link:before,
  .social-icon,
  .newsletter-input,
  .newsletter-button,
  .back-to-top {
    transition: none;
  }
  
  .back-to-top:hover,
  .social-icon:hover {
    transform: none;
  }
}
