/* =========================================================
   footer.css — rodapé + nav inferior mobile + chat flutuante
   ========================================================= */

.site-footer {
  background: var(--color-dark);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 calc(var(--bottomnav-h) + 1.5rem);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.footer-brand .brand {
  margin-bottom: 0.85rem;
}

.footer-brand p {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.footer-col h3 {
  font-size: 0.95rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.footer-disclaimer {
  border-top: 1px solid var(--color-border);
  padding-top: 1.35rem;
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.footer-disclaimer p {
  margin-bottom: 0.65rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.84rem;
  color: var(--color-muted);
}

.footer-responsible {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-live);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Nav inferior mobile (fixa) */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  height: var(--bottomnav-h);
  background: var(--color-dark);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 0 0.25rem;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.4);
}

.bottom-nav a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: var(--color-muted);
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
  min-height: 44px;
  padding: 0.25rem;
  transition: color var(--transition);
}

.bottom-nav a:hover,
.bottom-nav a.is-active {
  color: var(--color-primary);
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }
}

/* Chat flutuante */
.chat-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--bottomnav-h) + 14px);
  z-index: 1060;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 28px rgba(245, 130, 31, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.chat-fab:hover {
  transform: scale(1.06);
  background: var(--color-primary-hover);
  color: #fff;
}

.chat-fab svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

@media (min-width: 769px) {
  .chat-fab {
    bottom: 1.5rem;
  }
}

/* Painel simples do chat */
.chat-panel {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--bottomnav-h) + 82px);
  z-index: 1070;
  width: min(320px, calc(100vw - 2rem));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.15rem;
  display: none;
}

.chat-panel.is-open {
  display: block;
}

.chat-panel h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.chat-panel p {
  font-size: 0.88rem;
  color: var(--color-muted);
}

@media (min-width: 769px) {
  .chat-panel {
    bottom: 5.5rem;
  }
}

/* Footer: multi-col */
@media (min-width: 601px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 1025px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  }
}

/* ---------- Адаптив ---------- */
.footer-grid > * {
  min-width: 0;
}
