/* Footer Layout */

/* Main footer */
.footer {
  background: var(--secondary);
  color: white;
  padding: var(--space-16) 0 var(--space-8);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

/* Footer column */
.footer-column h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-6);
  color: white;
}

.footer-column h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
  color: white;
}

/* Footer about */
.footer-about {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .footer-about {
    grid-column: span 1;
  }
}

.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-4);
}

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

.footer-description {
  color: var(--gray-400);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

/* Footer links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

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

.footer-link i {
  font-size: var(--text-sm);
  color: var(--primary);
}

/* Footer contact */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--gray-400);
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

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

.footer-contact-info {
  flex: 1;
}

.footer-contact-info strong {
  display: block;
  color: white;
  margin-bottom: var(--space-1);
}

.footer-contact-info a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-contact-info a:hover {
  color: var(--primary);
}

/* Footer social */
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all var(--transition-base);
  font-size: 18px;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-4px);
  color: white;
}

.social-link i {
  font-size: 20px;
}

/* Footer newsletter */
.footer-newsletter {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
  }
}

.newsletter-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: white;
  transition: all var(--transition-base);
}

.newsletter-input::placeholder {
  color: var(--gray-500);
}

.newsletter-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
}

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

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

@media (max-width: 768px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

.footer-copyright {
  color: var(--gray-400);
  font-size: var(--text-sm);
}

.footer-copyright a {
  color: var(--primary);
  text-decoration: none;
  font-weight: var(--font-medium);
}

.footer-copyright a:hover {
  text-decoration: underline;
}

/* Footer menu */
.footer-menu {
  display: flex;
  gap: var(--space-6);
}

@media (max-width: 640px) {
  .footer-menu {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

.footer-menu-link {
  color: var(--gray-400);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-base);
}

.footer-menu-link:hover {
  color: var(--primary);
}

/* Payment methods */
.payment-methods {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.payment-methods img {
  height: 32px;
  width: auto;
  opacity: 0.8;
  transition: opacity var(--transition-base);
}

.payment-methods img:hover {
  opacity: 1;
}

/* Awards and certifications */
.footer-awards {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.award-badge {
  height: 60px;
  width: auto;
  opacity: 0.8;
  transition: all var(--transition-base);
}

.award-badge:hover {
  opacity: 1;
  transform: scale(1.05);
}

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

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  color: white;
}

/* Alternative footer styles */
.footer-light {
  background: var(--gray-100);
  color: var(--gray-700);
}

.footer-light .footer-column h3,
.footer-light .footer-column h4,
.footer-light .footer-contact-info strong {
  color: var(--secondary);
}

.footer-light .footer-link,
.footer-light .footer-contact-info a,
.footer-light .footer-copyright,
.footer-light .footer-menu-link {
  color: var(--gray-600);
}

.footer-light .social-link {
  background: var(--gray-200);
  color: var(--gray-600);
}

.footer-light .footer-bottom {
  border-top-color: var(--gray-300);
}