/* ==========================================================================
   Footer institucional (âncora #contato).
   Darkest tone of the petrol palette; reuses .container and .btn.
   ========================================================================== */

.site-footer {
  --footer-bg: var(--color-petrol-800);
  --footer-bg-deep: var(--color-petrol-950);
  --footer-cyan: var(--color-cyan-400);
  --footer-text: var(--color-text-on-dark);
  --footer-text-soft: color-mix(in srgb, var(--color-text-on-dark-soft) 72%, transparent);
  --footer-line: color-mix(in srgb, var(--color-cyan-400) 18%, transparent);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 0;
  color: var(--footer-text);
  background:
    radial-gradient(45% 60% at 12% 0, color-mix(in srgb, var(--color-cyan-400) 9%, transparent), transparent 72%),
    radial-gradient(40% 55% at 92% 100%, rgba(18, 124, 151, .12), transparent 72%),
    linear-gradient(180deg, var(--footer-bg), var(--footer-bg-deep));
}

/* thin glowing line at the join with Parceiros */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-cyan-400) 55%, transparent), transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--color-cyan-400) 40%, transparent);
}

/* ---------- Columns ---------- */

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 64px 0 56px;
}

.footer-logo img {
  width: 120px;
  height: auto;
}

.footer-tagline {
  max-width: 300px;
  margin: 20px 0 0;
  color: var(--footer-text-soft);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.55;
}

.footer-heading {
  margin: 0 0 18px;
  color: var(--footer-cyan);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
}

.footer-list a {
  color: var(--footer-text);
  transition: color .2s ease;
}

.footer-list a[href]:hover { color: var(--footer-cyan); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--footer-text);
}

/* cada canal é um link: ícone + rótulo pequeno + dado */
.footer-contact a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-contact-label {
  display: block;
  margin-bottom: 2px;
  color: var(--footer-text-soft);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-contact a[href]:hover svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--color-cyan-400) 55%, transparent)); }

.footer-contact svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--footer-cyan);
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--color-cyan-400) 30%, transparent);
  border-radius: var(--radius-md);
  background: rgba(6, 68, 82, .48);
  color: var(--footer-cyan);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.footer-social a[href]:hover {
  border-color: color-mix(in srgb, var(--color-cyan-400) 75%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--color-cyan-400) 30%, transparent);
  transform: translateY(-2px);
}

.footer-social a:not([href]) { opacity: .55; }

/* Nome da rede: aparece abaixo do ícone (acima cobriria o título "Redes sociais")
   no hover e no foco por teclado.
   O nome acessível fica no aria-label do link (a etiqueta é aria-hidden). */
.footer-social a { position: relative; }

.footer-social-tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--color-cyan-400) 45%, transparent);
  border-radius: var(--radius-sm);
  background: var(--footer-bg-deep);
  box-shadow: 0 8px 20px rgba(0, 18, 25, .35);
  color: var(--footer-text);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

/* setinha apontando para o ícone, acima */
.footer-social-tip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-left: 1px solid color-mix(in srgb, var(--color-cyan-400) 45%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--color-cyan-400) 45%, transparent);
  background: var(--footer-bg-deep);
  transform: translate(-50%, 4px) rotate(45deg);
}

.footer-social a:hover .footer-social-tip,
.footer-social a:focus-visible .footer-social-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--footer-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ---------- Bottom bar ---------- */

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-text-soft);
  font-family: var(--font-ui);
  font-size: 13px;
}

.footer-bottom p { margin: 0; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal a { color: var(--footer-text-soft); transition: color .2s ease; }
.footer-legal a[href]:hover { color: var(--footer-cyan); }

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline { max-width: 420px; }
}

/* O selo do reCAPTCHA (70px, fixo no canto inferior direito) pode cobrir os links da direita quando a janela
   é estreita: a reserva é só horizontal e não aumenta a altura do rodapé */
@media (max-width: 1260px) {
  .footer-bottom { padding-right: 84px; }
}

@media (max-width: 960px) {
  .site-footer { padding-top: 58px; }
}

@media (max-width: 600px) {
  .site-footer { padding-top: 48px; }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 48px 0 40px;
  }

  .footer-logo img { width: 106px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-list a,
  .footer-social a,
  .footer-legal a {
    transition: none;
  }

  .footer-social a[href]:hover { transform: none; }
  .footer-social-tip { transition: opacity .15s ease; }
}
