/* Shared shell styles for revamp templates outside the homepage bundle. */

.site-footer {
  width: 100%;
  min-width: 0;
  background: #f7f7f8;
  padding: 0;
  border-top: none;
  font-size: initial;
  position: relative;
  overflow: visible;
}

.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-brand-primary, #ff6a13) 25%,
    var(--color-brand-primary, #ff6a13) 75%,
    transparent 100%
  );
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.6fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-col h4 {
  margin: 0 0 20px;
  color: #111827;
  font-size: 15px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: #6b7280;
  font-size: 14px;
  line-height: 2.3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-brand-primary, #ff6a13);
}

.footer-qr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 4px;
}

.footer-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-qr-item img {
  display: block;
  width: 96px;
  height: 96px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  background: #fff;
}

.footer-qr-item span {
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  color: #9ca3af;
  font-size: 13px;
}

.footer-logo {
  display: block;
  width: auto;
  height: 84px;
  margin-top: 16px;
  margin-left: -18px;
  opacity: 1;
  filter: none;
}

.footer-copyright,
.footer-icp {
  color: #9ca3af;
  font-size: 13px;
}

.footer-icp {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-icp:hover {
  color: #6b7280;
}

@media (max-width: 991.98px) {
  .site-footer-inner {
    padding: 48px 20px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .site-footer-inner {
    padding: 32px 12px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-logo {
    height: 72px;
    margin-left: -12px;
  }
}
