/*
  5 Horas — footer institucional compartilhado
  Modelo inspirado em padrões SaaS: marca à esquerda, navegação em colunas e faixa inferior legal.
*/

.fh-footer {
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(36px, 6vw, 64px) 0 28px;
  color: var(--fh-muted);
  border-top: 1px solid var(--fh-border);
  background: color-mix(in srgb, var(--fh-surface) 48%, transparent);
}

.fh-footer-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.6fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.fh-footer-identity {
  display: grid;
  gap: 16px;
  max-width: 420px;
}

.fh-footer-logo {
  width: fit-content;
}

.fh-footer-identity p {
  margin: 0;
  color: var(--fh-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.fh-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 44px);
}

.fh-footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.fh-footer-title {
  margin: 0 0 4px;
  color: var(--fh-text);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fh-footer-column a {
  width: fit-content;
  color: var(--fh-muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 160ms ease, transform 160ms ease;
}

.fh-footer-column a:hover,
.fh-footer-column a:focus-visible,
.fh-footer-column a[aria-current="page"] {
  color: var(--fh-primary);
}

.fh-footer-column a:hover,
.fh-footer-column a:focus-visible {
  transform: translateX(2px);
}

.fh-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: clamp(32px, 5vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--fh-border);
  color: var(--fh-subtle);
  font-size: 0.86rem;
  font-weight: 650;
}

.fh-footer-bottom a {
  color: var(--fh-muted);
  font-weight: 800;
}

.fh-footer-bottom a:hover,
.fh-footer-bottom a:focus-visible {
  color: var(--fh-primary);
}

@media (max-width: 760px) {
  .fh-footer {
    padding-bottom: 22px;
  }

  .fh-footer-layout,
  .fh-footer-nav {
    grid-template-columns: 1fr;
  }

  .fh-footer-layout {
    gap: 26px;
  }

  .fh-footer-nav {
    gap: 18px;
  }

  .fh-footer-column {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding-top: 16px;
    border-top: 1px solid var(--fh-border);
  }

  .fh-footer-title {
    flex: 0 0 100%;
    margin-bottom: 2px;
  }

  .fh-footer-column a {
    width: auto;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .fh-footer-column a:hover,
  .fh-footer-column a:focus-visible {
    transform: none;
  }

  .fh-footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 16px;
  }
}

@media (max-width: 420px) {
  .fh-footer-column {
    gap: 8px 12px;
  }

  .fh-footer-column a,
  .fh-footer-bottom {
    font-size: 0.82rem;
  }
}
