/*
 * Rodapé público — Hanzo Design System (Sections / Footer field).
 * Um único componente para a última dobra das landings e das páginas legais (includes/site_footer.html).
 *
 *   Moldura ....... 8px na cor da página; cartão de tinta #000, raio 24, altura de uma tela (≥810)
 *   Fundo ......... radial #2e2e2e → #000 a partir do canto superior esquerdo, 5 feixes de luz
 *                   inclinados 45° a 5%, grão a 10%
 *   Laterais ...... 112 | 40 | 24px (≥1440 | 810–1439 | ≤809); conteúdo máx. 1366px; respiro 80 | 56 | 40
 *   Chamada ....... Eyebrow (serif itálico 24, 50%) entre fios de 69px · Display 44/80/108 em dois tons ·
 *                   apoio no papel Title em peso regular (20/18, -0.02em, 1.5) · .btn--primary .btn--lg
 *                   com aro de 8px (.btn--ring-lg)
 *   Barra ......... © entre fios (Body 16, altura 44) · links legais (UI 14, 50% → branco) ·
 *                   contatos em círculos contornados de 44px (ícone 20)
 *   Efeitos ....... rolagem: o cartão assenta (escala 0.96 → 1, raio 48 → 24) e os feixes descem ·
 *                   ponteiro: feixes em paralaxe e foco de luz seguindo o cursor ·
 *                   entrada ao aparecer: eyebrow desenha os fios, título letra a letra, apoio palavra a
 *                   palavra (type_fx.js), CTA e barra em cascata (k-appear) · hover: círculos viram
 *                   brancos e o ícone troca para cima
 * Comportamento em site_footer.js. Movimento reduzido: sem entrada, rolagem nem paralaxe.
 */

.kfoot {
  --kfoot-pad: 112px;
  --kfoot-space: 80px;
  --kfoot-radius: 24px;
  --kfoot-ink: #000000;
  --kfoot-on-ink: #ffffff;
  --kfoot-muted: rgba(255, 255, 255, 0.5);
  --kfoot-p: 1;
  --kfoot-mx: 0.5;
  --kfoot-my: 0.5;
  --text-heading-strong: var(--kfoot-on-ink);
  --text-tone-2: var(--kfoot-muted);

  position: relative;
  z-index: 10;
  display: block;
  padding: 8px;
  box-sizing: border-box;
  color: var(--kfoot-on-ink);
  font-family: var(--font-sans);
  text-align: left;
}

.kfoot__frame {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 16px);
  min-height: calc(100svh - 16px);
  padding: 0 var(--kfoot-pad);
  box-sizing: border-box;
  overflow: hidden;
  border-radius: calc(var(--kfoot-radius) + (1 - var(--kfoot-p)) * var(--kfoot-radius));
  background: var(--kfoot-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  scale: calc(0.96 + 0.04 * var(--kfoot-p));
  transform-origin: 50% 100%;
}

/* ─── Fundo: gradiente, feixes de luz e grão ────────────────────────────── */
.kfoot__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(100% 100% at 0% 0%, #2e2e2e 0%, var(--kfoot-ink) 100%);
  -webkit-mask: radial-gradient(125% 100% at 0% 0%, #000 0%, rgba(0, 0, 0, 0.224) 88.2883%, transparent 100%);
  mask: radial-gradient(125% 100% at 0% 0%, #000 0%, rgba(0, 0, 0, 0.224) 88.2883%, transparent 100%);
}

/* Feixes de luz: antes eram 5 elementos inclinados de 1269 px de altura, cada um com máscara própria (o navegador
   desenhava 5 camadas enormes e o rodapé/moldura as movia a cada quadro de rolagem). Agora é um só fundo estático de
   listras em degradê, desenhado uma vez; as 5 <span class="kfoot__ray"> do HTML ficam sem uso. A máscara radial de
   .kfoot__bg continua apagando o fundo para baixo e para a direita, como antes. */
.kfoot__rays {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 8%, rgba(255, 255, 255, 0.05) 14%, rgba(255, 255, 255, 0.02) 17%, transparent 24%),
    linear-gradient(112deg, transparent 20%, rgba(255, 255, 255, 0.07) 24%, transparent 29%),
    linear-gradient(112deg, transparent 31%, rgba(255, 255, 255, 0.04) 36%, rgba(255, 255, 255, 0.06) 41%, transparent 47%),
    linear-gradient(112deg, transparent 49%, rgba(255, 255, 255, 0.05) 56%, transparent 62%),
    linear-gradient(112deg, transparent 63%, rgba(255, 255, 255, 0.04) 70%, rgba(255, 255, 255, 0.02) 74%, transparent 82%);
}

.kfoot__ray {
  display: none;
}

/* Foco de luz que acompanha o ponteiro (só com mouse) */
.kfoot__spot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    640px circle at calc(var(--kfoot-mx) * 100%) calc(var(--kfoot-my) * 100%),
    rgba(255, 255, 255, 0.07),
    transparent 62%
  );
  opacity: 0;
  transition: opacity var(--dur-panel) var(--ease-hanzo);
}

.kfoot.is-pointer .kfoot__spot {
  opacity: 1;
}

.kfoot__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../textura/grao-claro.e6b71c4bd8ad.png");
  background-size: 128px 128px;
  opacity: 0.1;
}

/* ─── Conteúdo ──────────────────────────────────────────────────────────── */
.kfoot__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: flex-end;
  gap: 36px;
  width: 100%;
  max-width: 1366px;
  padding: var(--kfoot-space) 0;
  box-sizing: border-box;
}

.kfoot__cta {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 60px 36px;
  text-align: center;
}

.kfoot__eyebrow.t-eyebrow {
  gap: 24px;
  padding: 0 24px;
}

.kfoot__eyebrow.t-eyebrow::before,
.kfoot__eyebrow.t-eyebrow::after {
  flex-basis: 69px;
  opacity: 0.5;
  background: linear-gradient(90deg, rgba(84, 84, 84, 0), #fff);
}

.kfoot__eyebrow.t-eyebrow::after {
  background: linear-gradient(270deg, rgba(84, 84, 84, 0), #fff);
}

.kfoot__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 760px;
}

.kfoot__title {
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

.kfoot__lede {
  max-width: 620px;
  margin: 0;
  color: var(--kfoot-on-ink);
  font-size: var(--text-xl);
  font-weight: var(--fw-regular);
  line-height: var(--lh-title);
  letter-spacing: var(--tracking-title);
  text-align: center;
  text-wrap: balance;
}

.kfoot__btn {
  margin: 8px;
}

/* ─── Barra inferior ────────────────────────────────────────────────────── */
.kfoot__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px 36px;
  width: 100%;
}

.kfoot__copyright {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
  border-top: 1px solid var(--kfoot-muted);
  border-bottom: 1px solid var(--kfoot-muted);
  color: var(--kfoot-on-ink);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-body);
  white-space: nowrap;
}

.kfoot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kfoot__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--kfoot-muted);
  font-size: var(--fs-ui);
  font-weight: var(--fw-regular);
  line-height: var(--lh-ui);
  letter-spacing: var(--tracking-body);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-hover) var(--ease-hanzo);
}

.kfoot__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-state) var(--ease-hanzo);
}

.kfoot__link:hover,
.kfoot__link.is-current {
  color: var(--kfoot-on-ink);
}

.kfoot__link:hover::after,
.kfoot__link.is-current::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.kfoot__social {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 36px;
}

.kfoot__social-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--kfoot-muted);
  border-radius: 50%;
  color: var(--kfoot-on-ink);
  transition: background-color var(--dur-hover) var(--ease-hanzo), color var(--dur-hover) var(--ease-hanzo),
    border-color var(--dur-hover) var(--ease-hanzo), scale var(--dur-press) var(--ease-hanzo);
}

.kfoot__social-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.kfoot__social-icon > * {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  transition: translate var(--dur-state) var(--ease-hanzo);
}

.kfoot__social-icon > :last-child {
  translate: 0 44px;
}

.kfoot__social-link:hover {
  border-color: var(--kfoot-on-ink);
  background: var(--kfoot-on-ink);
  color: var(--kfoot-ink);
}

.kfoot__social-link:hover .kfoot__social-icon > :first-child {
  translate: 0 -44px;
}

.kfoot__social-link:hover .kfoot__social-icon > :last-child {
  translate: 0 0;
}

.kfoot__social-link:active {
  scale: var(--press-scale);
}

.kfoot__link:focus-visible,
.kfoot__social-link:focus-visible {
  outline: 2px solid var(--kfoot-on-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.kfoot__social-link:focus-visible {
  border-radius: 50%;
}

/* ─── Breakpoints Hanzo ─────────────────────────────────────────────────── */
@media (max-width: 1439.98px) {
  .kfoot {
    --kfoot-pad: 40px;
    --kfoot-space: 56px;
  }

  .kfoot__inner {
    gap: 28px;
  }
}

@media (max-width: 1099.98px) {
  .kfoot__bar {
    grid-template-columns: 1fr auto;
  }

  .kfoot__nav {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 809.98px) {
  .kfoot {
    --kfoot-pad: 24px;
    --kfoot-space: 40px;
  }

  .kfoot__frame {
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .kfoot__cta {
    padding: 60px 0;
  }

  .kfoot__lede {
    font-size: var(--text-lg);
  }

  .kfoot__eyebrow.t-eyebrow {
    gap: 12px;
    padding: 0;
  }

  .kfoot__eyebrow.t-eyebrow::before,
  .kfoot__eyebrow.t-eyebrow::after {
    flex-basis: 36px;
  }

  .kfoot__btn {
    max-width: calc(100% - 16px);
  }

  .kfoot__bar {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .kfoot__copyright {
    order: 1;
    justify-self: auto;
  }

  .kfoot__nav {
    order: 2;
  }

  .kfoot__social {
    order: 3;
    justify-self: auto;
    justify-content: center;
    width: 100%;
  }
}

/* ─── Entrada (ao aparecer na tela) ─────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .kfoot--fx:not(.is-in) .kfoot__reveal,
  .kfoot--fx:not(.is-in) .kfoot__title {
    opacity: 0;
  }

  .kfoot--fx.is-in .kfoot__reveal {
    animation: k-appear var(--dur-appear) var(--ease-out) backwards;
    animation-delay: calc(min(var(--k-i, 0), 8) * var(--stagger-step) + 120ms);
  }

  .kfoot--fx .kfoot__frame {
    will-change: scale;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kfoot {
    --kfoot-p: 1;
    --kfoot-mx: 0.5;
  }

  .kfoot__frame,
  .kfoot__rays {
    scale: none;
    translate: none;
    transition: none;
  }

  .kfoot__spot {
    display: none;
  }

  .kfoot__link,
  .kfoot__link::after,
  .kfoot__social-link,
  .kfoot__social-icon > * {
    transition: none;
  }
}
