/* BCP — site footer (PT / EN / ES). Markup: src/components/Footer.astro + migrated pages. */
.footer {
  --ft-bg: #0a0618;
  --ft-bg-2: #120e22;
  --ft-line: rgba(199, 193, 217, 0.14);
  --ft-text: #c7c1d9;
  --ft-muted: #8f88a8;
  --ft-violet: #8051ff;
  --ft-cyan: #72ffff;
  position: relative;
  padding: 0;
  color: var(--ft-text);
  font-size: 0.92rem;
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(128, 81, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--ft-bg-2) 0%, var(--ft-bg) 100%);
  border-top: 0;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ft-violet) 30%, var(--ft-cyan) 70%, transparent);
  opacity: 0.55;
}

.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
  padding: 3.4rem 0 2.8rem;
}

/* Brand */
.footer .footer-logo { display: inline-block; line-height: 0; }
.footer .footer-brand img { height: 52px; width: auto; display: block; }
.footer .footer-tagline {
  margin: 1.1rem 0 0;
  max-width: 28ch;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}
.footer .footer-cnpj {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ft-muted);
}

/* Column titles */
.footer .footer-title {
  margin: 0 0 1.15rem;
  font-family: var(--navfont, "Montserrat", "Segoe UI", sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ft-cyan);
}

/* Link lists */
.footer .footer-links,
.footer .footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.65rem;
}
.footer .footer-links a,
.footer .footer-nav a {
  color: var(--ft-text);
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1.35;
  transition: color 0.18s ease;
}
.footer .footer-links a:hover,
.footer .footer-nav a:hover,
.footer .footer-links a:focus-visible,
.footer .footer-nav a:focus-visible { color: var(--ft-cyan); }
.footer .footer-nav li:last-child a { color: #fff; font-weight: 600; }
.footer .footer-nav li:last-child a::after { content: " →"; color: var(--ft-violet); transition: transform 0.18s ease; display: inline-block; }
.footer .footer-nav li:last-child a:hover::after { transform: translateX(3px); color: var(--ft-cyan); }

/* Language switcher: segmented text control */
.footer .footer-langs {
  display: inline-flex;
  gap: 2px;
  margin: 0 0 1.4rem;
  padding: 3px;
  border: 1px solid var(--ft-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.footer .footer-langs a {
  min-width: 2.6rem;
  padding: 0.38rem 0.7rem;
  border: 0;
  border-radius: 7px;
  text-align: center;
  text-decoration: none;
  font-family: var(--navfont, "Montserrat", "Segoe UI", sans-serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ft-muted);
  transition: color 0.18s ease, background 0.18s ease;
}
.footer .footer-langs a:hover { color: #fff; }
.footer .footer-langs a.is-active {
  color: #fff;
  background: rgba(128, 81, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(128, 81, 255, 0.6);
  text-decoration: none;
}

/* Social icons */
.footer .footer-socials { display: flex; gap: 0.6rem; }
.footer .footer-socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ft-line);
  border-radius: 50%;
  color: var(--ft-text);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.footer .footer-socials a:hover,
.footer .footer-socials a:focus-visible {
  color: var(--ft-cyan);
  border-color: rgba(114, 255, 255, 0.55);
  background: rgba(114, 255, 255, 0.07);
}
.footer .footer-socials svg { display: block; }

/* Bottom bar */
.footer .footer-bottom { border-top: 1px solid var(--ft-line); }
.footer .copy {
  margin: 0;
  padding: 1.2rem 0 1.4rem;
  text-align: left;
  font-size: 0.8rem;
  color: var(--ft-muted);
}

/* Responsive */
@media (max-width: 1000px) {
  .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem 2rem; padding: 2.8rem 0 2.2rem; }
  .footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.4rem 0 2rem; }
  .footer .footer-links,
  .footer .footer-nav { gap: 0.8rem; }
  .footer .footer-links a,
  .footer .footer-nav a { display: inline-block; padding: 0.1rem 0; }
  .footer .copy { text-align: left; }
}
