/**
 * Footer do site - Design Vangoog | Feito com ♥ em DiviCity
 * Centralizado, limpo e com hierarquia visual clara
 */

.site-footer {
  padding: 2rem 1rem;
  background-color: var(--fallback-b1, oklch(var(--b1)));
  text-align: center;
}

.site-footer__inner {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

/* Linha principal: Design criado por... */
.site-footer__design {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fallback-bc, oklch(var(--bc)));
  opacity: 0.9;
}

/* Linha secundária: Feito com ♥ em DiviCity */
.site-footer__made {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--fallback-bc, oklch(var(--bc)));
  opacity: 0.75;
}

/* Link da agência - destaque sutil */
.site-footer__link {
  color: var(--fallback-p, oklch(var(--p)));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__link:hover {
  color: var(--fallback-p, oklch(var(--p)));
  opacity: 0.85;
  text-decoration: underline;
}

/* Coração vermelho */
.site-footer__heart {
  color: #e53935;
  font-size: 1em;
  display: inline-block;
  line-height: 1;
}

/* ========== Menu rodapé (acima dos créditos) ========== */
.footer-menu {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  color: #fff;
  padding: 2.5rem 1rem;
  position: relative;
  overflow: hidden;
}

.footer-menu__inner {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .footer-menu__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .footer-menu__col--left {
    order: 1;
  }
  .footer-menu__col--center {
    order: 2;
  }
  .footer-menu__col--right {
    order: 3;
  }
  .footer-menu__col--right .footer-menu__logo {
    margin: 0 auto;
  }
}

.footer-menu__titulo {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.95;
}

.footer-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-menu__header .footer-menu__titulo {
  margin: 0;
}

.footer-menu__fale-conosco {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.footer-menu__fale-conosco-titulo {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.95;
  color: #fff;
}

.footer-menu__fale-conosco .footer-menu__telefone {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.footer-menu__endereco {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.9;
}

.footer-menu__endereco p {
  margin: 0.25rem 0;
}

.footer-menu__btn-gps {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-menu__btn-gps:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

@media (max-width: 768px) {
  .footer-menu__header {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Widget de horários dentro do footer (tema escuro) */
.footer-menu__horarios {
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.footer-menu__horarios .horarios-funcionamento-widget__body {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 0.75rem 0.75rem;
  background: rgba(0, 0, 0, 0.15);
}

.footer-menu__horarios.horarios-funcionamento-widget--expandido .horarios-funcionamento-widget__body {
  display: block;
}

.footer-menu__horarios .horarios-funcionamento-widget__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background-color 0.15s ease;
}

.footer-menu__horarios .horarios-funcionamento-widget__header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer-menu__horarios .horarios-funcionamento-widget__luz {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.footer-menu__horarios .horarios-funcionamento-widget__luz--aberto {
  background-color: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.4);
}

.footer-menu__horarios .horarios-funcionamento-widget__luz--fechado {
  background-color: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.4);
}

.footer-menu__horarios .horarios-funcionamento-widget__texto {
  flex: 1;
  font-weight: 600;
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.footer-menu__horarios .horarios-funcionamento-widget__chevron {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease;
}

.footer-menu__horarios.horarios-funcionamento-widget--expandido .horarios-funcionamento-widget__chevron {
  transform: rotate(180deg);
}

.footer-menu__horarios .horarios-funcionamento-widget__tabela {
  width: 100%;
  border-collapse: collapse;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
}

.footer-menu__horarios .horarios-funcionamento-widget__tabela th,
.footer-menu__horarios .horarios-funcionamento-widget__tabela td {
  padding: 0.25rem 0.5rem 0.25rem 0;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

.footer-menu__horarios .horarios-funcionamento-widget__tabela tr:last-child th,
.footer-menu__horarios .horarios-funcionamento-widget__tabela tr:last-child td {
  border-bottom: none;
}

.footer-menu__horarios .horarios-funcionamento-widget__tabela td {
  font-variant-numeric: tabular-nums;
}

.footer-menu__col--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-menu__btn-suporte {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-menu__btn-suporte:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.footer-menu__btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.footer-menu__redes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
}

.footer-menu__rede {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #fff;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-menu__rede:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.05);
}

.footer-menu__rede-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: currentColor;
}

.footer-menu__col--right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

/* Com botão de suporte: linha 1 = botão em largura total da coluna (conteúdo centralizado); linha 2 = redes centralizadas */
.footer-menu__col--right:has(.footer-menu__btn-suporte) {
  align-items: stretch;
}

.footer-menu__col--right:has(.footer-menu__btn-suporte) .footer-menu__btn-suporte {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

@media (max-width: 768px) {
  .footer-menu__col--right {
    align-items: center;
  }

  .footer-menu__col--right:has(.footer-menu__btn-suporte) {
    align-items: stretch;
  }
}

.footer-menu__logo {
  max-height: 3.5rem;
  width: auto;
  object-fit: contain;
}
