/* Site footer — matches index.html */

:root {
  --text-dark: #252423;
  --text-dark-muted: #605e5c;
  --text-muted: #605e5c;
  --border: #e1dfdd;
  --primary: #5b5fc7;
  --primary-light: #7f85f5;
  --container: 1180px;
}

.site-footer {
  background: #faf9f8;
  color: var(--text-dark-muted);
  padding: clamp(3.5rem, 6vw, 5rem) 0 0;
  border-top: 1px solid var(--border);
}

.site-footer .container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: 0;
  padding-bottom: 2.5rem;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem 3rem;
  flex: 1 1 auto;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col {
  min-width: 7.5rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  margin-bottom: 3px;
}

.footer-brand h3 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-marketplace-bar {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  background: #faf9f8;
}

.footer-marketplace-link {
  display: inline-block;
  color: #5b5fc7;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.footer-marketplace-link:hover {
  color: #7f85f5;
  text-decoration: underline;
}

.footer-bottom-bar {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.footer-copyright {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-dark-muted);
  line-height: 1.5;
  flex: 1 1 auto;
}

.footer-copyright strong {
  font-weight: 700;
  color: var(--text-dark);
}

.footer-badge-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer-badge-group .footer-badge + .footer-badge {
  border-left: 1px solid var(--border);
  margin-left: 1rem;
  padding-left: 1rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.footer-badge img {
  display: block;
  height: 40px;
  width: auto;
}

.footer-badge img[width="36"] {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.site-footer .back-to-top {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
  transition: background 0.2s, transform 0.2s;
}

.site-footer .back-to-top:hover {
  background: #4a4fb3;
  transform: translateY(-1px);
}

.footer-col h4 {
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin: 0 0 0.35rem;
}

.footer-col li:last-child {
  margin-bottom: 0;
}

.footer-col a {
  color: var(--text-dark-muted);
  font-size: 0.9rem;
  display: block;
  line-height: 1.55;
  padding: 0.2rem 0;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.footer-col a[href^="mailto:"] {
  color: #5b5fc7;
  font-weight: 600;
}

.footer-ms-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-ms-badge img {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

@media (max-width: 991px) {
  .footer-grid {
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .footer-links {
    width: 100%;
    justify-content: flex-start;
    gap: 2rem 2.5rem;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-marketplace-link {
    white-space: normal;
  }

  .site-footer .back-to-top {
    align-self: flex-end;
    margin-left: 0;
  }
}
