/* ==============================
   FOOTER ALTERNATIVO (faixa no topo + bottom embaixo)
   Não interfere no .footer original
   ============================== */

:root {
  --footer-alt-band-height: 28px;
  --footer-alt-knot-width: 740px;
  --footer-alt-band-bleed: 2px;
  --footer-alt-top-offset: -1px;
  --footer-alt-knot-seam-overlap: 2px;
  --footer-alt-knot-overlap: 0px;

  /* Espaço interno abaixo da faixa (respiro) */
  --footer-alt-content-pad-top: 18px;
}

.footer-alt {
  position: relative;
  background: var(--color-charcoal);
  color: #fff;
  overflow: hidden;

  /* a divisória agora é a faixa, então evitamos a borda concorrer */
  border-top: none;

  /* altura mínima só para garantir área do bottom */
  min-height: 120px;
}

/* textura de fundo */
.footer-alt::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../images/linhas-footer.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  opacity: 0.1;
  filter: blur(0.4px) brightness(0.9);

  pointer-events: none;
  z-index: 0;
}

.footer-alt > * {
  position: relative;
  z-index: 2;
}

/* ==============================
   FAIXA (DIVISÓRIA NO TOPO)
   ============================== */

.footer-alt-band-container {
  position: absolute;
  left: 0;
  right: 0;

  /* ✅ AGORA NO TOPO */
  top: 0;

  height: var(--footer-alt-band-height);
  pointer-events: none;
  z-index: 6;
}

.footer-alt-band {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--footer-alt-top-offset);

  height: calc(var(--footer-alt-band-height) + var(--footer-alt-band-bleed));

  background-image: url("../images/faixa-continua.webp");
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 100%;

  z-index: 1;

  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)) saturate(1.2)
    contrast(1.15);
}

.footer-alt-knot-left {
  position: absolute;
  left: calc(-1 * var(--footer-alt-knot-seam-overlap));
  top: var(--footer-alt-top-offset);

  width: calc(var(--footer-alt-knot-width) + var(--footer-alt-knot-seam-overlap));
  height: calc(var(--footer-alt-band-height) + var(--footer-alt-band-bleed));

  /* Mantive igual ao seu original pra não quebrar */
  background-image: url("../images/faixa-com-noi.webp");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 100% 100%;

  transform: translateX(var(--footer-alt-knot-overlap));
  z-index: 2;

  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.65)) saturate(1.25)
    contrast(1.2);
}

/* ==============================
   BOTTOM (TEXTO ABAIXO DA FAIXA)
   ============================== */

.footer-alt-bottom {
  border-top: none;
  position: relative;
  z-index: 10;

  /* ✅ empurra o conteúdo para BAIXO da faixa */
  padding-top: calc(var(--footer-alt-band-height) + var(--footer-alt-content-pad-top));
  padding-bottom: 1.2rem;

  background: transparent;
  backdrop-filter: none;
}

.footer-alt-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-alt-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-alt-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-alt-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-alt-bottom-links a {
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
}

.footer-alt-bottom-links a:hover {
  color: #fff;
}

/* ==============================
   RESPONSIVO
   ============================== */

@media (max-width: 1279px) {
  :root {
    --footer-alt-knot-width: clamp(160px, 26vw, 320px);
  }
}

@media (max-width: 640px) {
  :root {
    --footer-alt-band-height: 26px;
    --footer-alt-knot-width: 160px;
    --footer-alt-content-pad-top: 14px;
  }

  .footer-alt-bottom {
    padding-top: calc(var(--footer-alt-band-height) + var(--footer-alt-content-pad-top));
    padding-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --footer-alt-knot-width: 120px;
  }
}