

.footer {
  background: var(--site-flow-solid-bg);
  color: #64748b;
  font-family: var(--font-sans);
  border-top: 1px solid #e2e8f0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 4rem;
  padding-bottom: max(3rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 640px) {
  .footer-inner {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    padding-left: max(2rem, env(safe-area-inset-left, 0px));
    padding-right: max(2rem, env(safe-area-inset-right, 0px));
    padding-top: 4rem;
    padding-bottom: max(3rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
  }
}

.footer-grid {
  display: grid;
  gap: 2rem 1.5rem;
  margin-bottom: 3rem;
}

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

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

@media (max-width: 1023px) {
  .footer-company {
    text-align: center;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 28rem;
  }

  .footer-social {
    justify-content: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.4rem;
}

.footer-brand-logo {
  height: auto;
  width: clamp(9.5rem, 42vw, 14.5rem);
  max-width: min(100%, 17.5rem);
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (min-width: 1024px) {
  .footer-brand-logo {
    width: clamp(11rem, 12vw, 14rem);
    max-width: 100%;
  }
}

.footer-desc {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  padding-top: 0.25rem;
}

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

.footer-social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: background 0.2s, color 0.2s;
}

.footer-social-link:hover {
  background: #2563eb;
  color: #fff;
}

.footer-social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 1rem 0;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #2563eb;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.footer-contact-address {
  line-height: 1.65;
  color: #475569;
}

.footer-contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: #94a3b8;
}

.footer-contact-item a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
}

.footer-attribution {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

