/* Footer Styles */

.footer {
  background-color: #111827;
  color: white;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

@media (min-width: 640px) {
  .footer-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Company Header Wrapper - Independent, above all sections */
.footer-company-header-wrapper {
  margin-bottom: 2rem;
}

.footer-company-header {
  align-items: center;
  margin-bottom: 0;
  margin-left: 5rem;
}

.footer-logo-container {
  width: 10rem;
  padding: 0.5rem;
  margin-right: 0.75rem;
}

.footer-logo-image {
  width: 100%;
  height: 100%;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-section {
  /* For animation purposes - motion.div will handle this */
  margin-left: 5rem;
}

.footer-section-description {
  margin-left: 0;
}

.footer-description {
  color: #d1d5db;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-left: 5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  color: #d1d5db;
}

.footer-contact-item span[onclick] {
  cursor: pointer;
  transition: color 200ms;
}

.footer-contact-item span[onclick]:hover {
  color: white;
}

.footer-contact-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .footer-contact-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.footer-wechat-qr-image {
  width: 6rem;
  height: 6rem;
  margin-right: 0.75rem;
  border-radius: 0.25rem;
  object-fit: cover;
}

.footer-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 200ms;
}

.footer-link:hover {
  color: white;
}

.footer-qr-container {
  background-color: white;
  border-radius: 0.5rem;
  width: 8rem;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-mini-program-qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1.5rem;
}

.footer-qr-icon {
  width: 6rem;
  height: 6rem;
  color: #9ca3af;
}

.footer-qr-text {
  color: #d1d5db;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .footer-copyright {
    margin-bottom: 0;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-bottom-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 200ms;
}

.footer-bottom-link:hover {
  color: white;
}
