.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: auto;
  padding: 2.35rem clamp(1rem, 3vw, 3rem) 0.75rem;
  display: grid;
  grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  background:
    linear-gradient(
      180deg,
      rgba(16, 10, 10, 0) 0%,
      rgba(12, 8, 8, 0.22) 34%,
      rgba(10, 7, 7, 0.74) 66%,
      rgba(8, 6, 6, 1) 100%
    );
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -4.5rem;
  height: 4.5rem;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 6, 6, 0), rgba(8, 6, 6, 0.7));
}

.footer-box {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}

.footer-copy {
  max-width: 30rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-brand-copy .section-label {
  margin: 0;
}

.footer-brand-logo {
  width: 8.5rem;
  height: 8.5rem;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.92rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d28a4f, #8f4320);
  color: #120d0a;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.footer-cta:hover,
.footer-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
}

.footer-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.footer-socials,
.footer-meta-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-icon-link {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 241, 224, 0.06);
  border: 1px solid rgba(242, 178, 121, 0.14);
  color: var(--text);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.footer-icon-link:hover,
.footer-icon-link:focus-visible,
.footer-text-link:hover,
.footer-text-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 178, 121, 0.24);
  background: rgba(255, 241, 224, 0.07);
}

.footer-text-link.is-active {
  color: #ffe5c9;
  border-color: rgba(242, 178, 121, 0.42);
  background: rgba(180, 86, 40, 0.26);
  box-shadow: 0 0 0 1px rgba(242, 178, 121, 0.2) inset;
  cursor: default;
}

.footer-text-link.is-active:hover,
.footer-text-link.is-active:focus-visible {
  transform: none;
  border-color: rgba(242, 178, 121, 0.42);
  background: rgba(180, 86, 40, 0.26);
}

.footer-icon-link svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 178, 121, 0.1);
  background: rgba(255, 241, 224, 0.04);
  color: var(--muted);
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.footer-grokage {
  background: #ffffff;
  color: #0b54a4;
  border-color: rgba(11, 84, 164, 0.14);
}

.footer-grokage img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

@media (max-width: 900px) {
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    max-width: none;
  }

  .footer-brand-logo {
    width: 7rem;
    height: 7rem;
  }
}
