/* Global marketplace footer — compact bottom bar, no card wrapper */

.site-footer {
  --footer-bg: #020617;
  --footer-border: rgba(148, 163, 184, 0.12);
  --footer-heading: #f1f5f9;
  --footer-link: rgba(148, 163, 184, 0.88);
  --footer-link-hover: #f8fafc;
  --footer-muted: rgba(100, 116, 139, 0.92);

  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: 0;
  padding: 56px 0 32px;
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg);
  color: var(--footer-link);
}

body.arbicar-site-footer-space .ac-page-shell > .site-footer {
  margin-top: auto;
  flex-shrink: 0;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  width: min(100%, 76rem);
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--footer-heading);
}

.site-footer__logoMark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #ec4899, #3b82f6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.site-footer__logoText {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer__tagline {
  margin: 0;
  max-width: 26ch;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--footer-link);
}

.site-footer__copy {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--footer-muted);
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.site-footer__heading {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-heading);
}

.site-footer__column a {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__column a:hover {
  color: var(--footer-link-hover);
}

.site-footer__email {
  word-break: break-word;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(203, 213, 225, 0.78);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.site-footer__social svg {
  width: 15px;
  height: 15px;
}

.site-footer__social:hover {
  border-color: rgba(59, 130, 246, 0.42);
  color: #fff;
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.12);
}

/* Homepage: sits below CTA / ARBICAR word block */
body:has(.home-page) .site-footer {
  --footer-bg: #020617;
  margin-top: 0;
}

@media (max-width: 960px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 48px 0 28px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__brand {
    padding-bottom: 4px;
  }
}

body[data-theme="light"] .site-footer {
  --footer-bg: #0f172a;
  --footer-border: rgba(148, 163, 184, 0.14);
  --footer-heading: #f8fafc;
  --footer-link: rgba(203, 213, 225, 0.82);
  --footer-link-hover: #fff;
  --footer-muted: rgba(148, 163, 184, 0.9);
}
