/* ==============================================
   FOOTER PIRANOT v3.3
   Paleta alinhada ao header do site:
   - #0a1633 (nav bg)
   - #0c122b (topbar bg)
   - #096dd2 (azul principal)
   - #2E86AB (azul secundario)
   - #00091e (body dark)
   Fonte: Roboto (mesma do UI/nav do SmartMag)
   ============================================== */

:root {
  --footer-bg-primary: #0a1633;
  --footer-bg-legal: #00091e;
  --footer-text: #e8edf3;
  --footer-text-muted: #8a9bb5;
  --footer-accent: #096dd2;
  --footer-accent-hover: #2E86AB;
  --footer-border: rgba(150,179,216,0.12);
  --footer-hover-bg: rgba(9,109,210,0.08);
  --footer-transition: all 0.25s ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==============================================
   GRID PRINCIPAL — 5 COLUNAS
   ============================================== */
.footer-main {
  background: var(--footer-bg-primary);
  padding: 48px 0 36px;
  color: var(--footer-text);
  border-top: 3px solid var(--footer-accent);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.footer-grid-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  align-items: start;
}

/* -- Titulos de coluna -- */
.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--footer-accent);
  display: inline-block;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.footer-col-title--mt {
  margin-top: 24px;
}

/* -- Links -- */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-links li a {
  color: var(--footer-text-muted);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.3;
  padding: 2px 0;
  transition: var(--footer-transition);
  display: inline-block;
  font-weight: 400;
}

.footer-links li a:hover {
  color: var(--footer-accent-hover);
  padding-left: 4px;
}

/* -- Redes Sociais -- */
.footer-redes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-redes li {
  margin-bottom: 5px;
}

.footer-redes li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--footer-text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 5px;
  background: var(--footer-hover-bg);
  transition: var(--footer-transition);
  font-size: 13px;
  font-weight: 400;
}

.footer-redes li a:hover {
  background: rgba(9,109,210,0.18);
  color: #fff;
  transform: translateX(3px);
}

.footer-redes li a .tsi {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: var(--footer-accent);
}

/* -- App Badges -- */
.footer-apps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-badge {
  display: inline-block;
  transition: var(--footer-transition);
  opacity: 0.9;
}

.app-badge:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.app-badge img {
  display: block;
  width: 135px;
  height: auto;
  border-radius: 5px;
}

/* ==============================================
   BARRA LEGAL
   ============================================== */
.footer-legal {
  background: var(--footer-bg-legal);
  padding: 20px 0;
  border-top: 1px solid var(--footer-border);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logo no footer — mesma logo branca do header */
.footer-logo-link {
  display: inline-flex;
  flex-shrink: 0;
}

.footer-logo-img {
  width: 130px;
  height: auto;
  display: block;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.copyright {
  color: var(--footer-text-muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}

.copyright small {
  opacity: 0.7;
}

.legal-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.legal-nav a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 12px;
  opacity: 0.8;
  transition: var(--footer-transition);
}

.legal-nav a:hover {
  opacity: 1;
  color: var(--footer-accent-hover);
}

/* -- Acessibilidade -- */
.acessibilidade {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-contraste,
.btn-fonte {
  background: rgba(9,109,210,0.15);
  border: 1px solid rgba(9,109,210,0.25);
  color: var(--footer-text);
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: var(--footer-transition);
}

.btn-contraste:hover,
.btn-fonte:hover {
  background: rgba(9,109,210,0.3);
  border-color: var(--footer-accent);
}

.btn-contraste .tsi {
  font-size: 13px;
}

/* ==============================================
   ALTO CONTRASTE
   ============================================== */
body.alto-contraste .footer-main,
body.alto-contraste .footer-legal {
  background: #000;
  border-color: #fff;
}

body.alto-contraste .footer-links li a,
body.alto-contraste .footer-redes li a,
body.alto-contraste .legal-nav a,
body.alto-contraste .copyright {
  color: #fff;
}

body.alto-contraste .footer-col-title {
  color: #ff0;
  border-color: #ff0;
}

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

@media (max-width: 1200px) {
  .footer-grid-5col {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .footer-grid-5col {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .footer-main {
    padding: 32px 0 24px;
  }

  .footer-grid-5col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .legal-inner {
    flex-direction: column;
    text-align: center;
  }

  .legal-left {
    flex-direction: column;
  }

  .footer-logo-img {
    margin: 0 auto;
  }

  .legal-nav ul {
    justify-content: center;
    gap: 12px;
  }

  .acessibilidade {
    justify-content: center;
  }

  .footer-apps {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ==============================================
   ANIMACAO
   ============================================== */
@keyframes footer-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.footer-main,
.footer-legal {
  animation: footer-fade-in 0.4s ease-out;
}
