/* =========================================================
   rodape.css: rodapé do site + botão flutuante de WhatsApp
   Rodapé: banner da loja, 4 blocos (marca, navegação,
   funcionamento com "aberto agora", onde estamos com mapa) e
   a base com copyright + selo de pagamento.
   ========================================================= */

.rodape-site {
  position: relative;
  margin-top: 56px;
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(242, 183, 5, 0.08), transparent 60%),
    linear-gradient(180deg, #17473A 0%, #11352B 100%);
}
/* Fio dourado no topo: separa do conteúdo com elegância */
.rodape-site::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amarelo-milho), transparent);
  opacity: 0.55;
}

.rodape-banner-topo {
  max-width: var(--largura-maxima);
  margin: 0 auto;
  padding: 28px 20px 0;
}
.rodape-banner-topo[hidden] { display: none; }
.rodape-banner-imagem {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.6);
}

.rodape-grade {
  max-width: var(--largura-maxima);
  margin: 0 auto;
  padding: 44px 20px 36px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr 1.3fr;
  gap: 36px;
}

.rodape-titulo {
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amarelo-milho);
}

/* ---------- Marca ---------- */
.rodape-marca-link { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rodape-marca-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--branco);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}
.rodape-marca-nome { font-family: var(--fonte-display); font-size: 1.35rem; color: var(--branco); }
.rodape-marca-nome strong { color: var(--amarelo-milho); }
.rodape-marca-texto { font-size: 0.9rem; line-height: 1.65; color: rgba(255, 255, 255, 0.7); max-width: 34ch; }

.rodape-selos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; }
.rodape-selos li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border-radius: var(--raio-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.rodape-selos svg { width: 15px; height: 15px; color: var(--amarelo-milho); }

/* ---------- Navegação ---------- */
.rodape-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.rodape-links a {
  display: inline-flex;
  padding: 5px 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.15s ease, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .rodape-links a:hover { color: var(--branco); transform: translateX(3px); }
}

/* ---------- Funcionamento ---------- */
.rodape-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--raio-pill);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.rodape-status.aberta { background: rgba(34, 197, 94, 0.14); color: #86EFAC; }
.rodape-status.fechando { background: rgba(242, 183, 5, 0.16); color: #FCD34D; }
.rodape-status.fechando .rodape-status-ponto { box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.25); }
.rodape-status.fechada { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.75); }
.rodape-status-ponto { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rodape-status.aberta .rodape-status-ponto { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }

.rodape-horarios { display: flex; flex-direction: column; gap: 10px; }
.rodape-horarios div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}
.rodape-horarios div:last-child { border-bottom: 0; padding-bottom: 0; }
.rodape-horarios dt { color: rgba(255, 255, 255, 0.7); }
.rodape-horarios dd { font-weight: 600; color: var(--branco); white-space: nowrap; }
/* Datas com horário diferente (Configurações > Loja): feriado, véspera...
   Uma folhinha de calendário por data, no mesmo tom do rodapé. Fechado:
   faixa da folhinha vermelha; horário especial: amarela. */
.rodape-datas { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
.rodape-datas-titulo { margin: 0 0 10px; font-size: 0.78rem; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.rodape-datas-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rodape-data { display: flex; align-items: center; gap: 12px; }
.rodape-data-folha {
  flex-shrink: 0;
  width: 40px;
  overflow: hidden;
  border-radius: 9px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.rodape-data-folha small { display: block; padding: 2px 0 1px; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; color: var(--carvao); background: var(--amarelo-milho); }
.rodape-data.fechado .rodape-data-folha small { color: var(--branco); background: var(--tomate); }
.rodape-data-folha b { display: block; padding: 2px 0 4px; font-family: var(--fonte-display); font-size: 1.05rem; line-height: 1.1; color: var(--branco); }
.rodape-data-info { display: grid; gap: 1px; min-width: 0; font-size: 0.86rem; line-height: 1.35; }
.rodape-data-info strong { font-weight: 700; color: var(--branco); }
.rodape-data-info > span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.65); overflow-wrap: anywhere; }
.so-leitor-rodape { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Onde estamos ---------- */
.rodape-endereco { display: flex; gap: 10px; font-size: 0.88rem; line-height: 1.55; color: rgba(255, 255, 255, 0.8); margin-bottom: 14px; }
.rodape-endereco svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--amarelo-milho); }

.rodape-mapa {
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rodape-mapa iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85) contrast(1.05); }

.rodape-como-chegar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 16px 9px 13px;
  border-radius: var(--raio-pill);
  background: var(--amarelo-milho);
  color: #3A2E00;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.12s cubic-bezier(0.23, 1, 0.32, 1), filter 0.15s ease;
}
.rodape-como-chegar svg { width: 16px; height: 16px; }
.rodape-como-chegar:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .rodape-como-chegar:hover { filter: brightness(1.06); }
}

/* ---------- Base ---------- */
.rodape-base {
  max-width: var(--largura-maxima);
  margin: 0 auto;
  padding: 18px 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.rodape-base-pagamento { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rodape-infinitepay { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
.rodape-infinitepay img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .rodape-grade { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
}
@media (max-width: 640px) {
  .rodape-banner-topo { padding: 20px 16px 0; }
  .rodape-banner-imagem { border-radius: 12px; }
  .rodape-grade { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding: 32px 16px 28px; }
  .rodape-bloco-marca,
  .rodape-bloco-local { grid-column: 1 / -1; }
  .rodape-horarios div { flex-direction: column; gap: 2px; }
  .rodape-mapa { height: 170px; }
  .rodape-base { flex-direction: column; text-align: center; padding: 18px 16px 22px; }
  .rodape-base-pagamento { justify-content: center; }
}

/* ---------- Botão flutuante de WhatsApp ---------- */
.botao-whatsapp-flutuante {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--branco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  z-index: 40;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: pulsoWhatsapp 2.4s ease-in-out infinite;
}

.botao-whatsapp-flutuante:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

.botao-whatsapp-flutuante svg { width: 30px; height: 30px; }

@keyframes pulsoWhatsapp {
  0%, 100% { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45), 0 0 0 8px rgba(37, 211, 102, 0.15); }
}

@media (max-width: 640px) {
  .botao-whatsapp-flutuante { width: 50px; height: 50px; }
  .botao-whatsapp-flutuante svg { width: 26px; height: 26px; }
}

/* ---------- WhatsApp com dois contatos (Fábio e Zilda) ----------
   O canto fixo agora é o contêiner; o botão abre um cartão que sai
   dele (origem no canto de baixo à direita), 180ms, só transform/opacity. */
.whatsapp-contatos {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.whatsapp-contatos .botao-whatsapp-flutuante { position: relative; right: auto; bottom: auto; }
.whatsapp-contatos.aberto .botao-whatsapp-flutuante { animation: none; }
.botao-whatsapp-flutuante .icone-fechar { display: none; width: 24px; height: 24px; }
.whatsapp-contatos.aberto .icone-whatsapp { display: none; }
.whatsapp-contatos.aberto .icone-fechar { display: block; }

.whatsapp-menu {
  width: 270px;
  padding: 16px;
  border-radius: 18px;
  background: var(--branco);
  box-shadow: 0 1px 2px rgba(38, 36, 33, 0.06), 0 20px 48px -12px rgba(38, 36, 33, 0.35);
  transform-origin: bottom right;
  opacity: 0;
  transform: scale(0.96) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.23, 1, 0.32, 1);
}
.whatsapp-menu[hidden] { display: none; }
.whatsapp-menu.visivel { opacity: 1; transform: none; }
.whatsapp-menu-titulo { font-family: var(--fonte-display); font-size: 1.1rem; color: var(--verde-mercado-escuro); }
.whatsapp-menu-sub { font-size: 0.8rem; color: var(--cinza-texto); margin: 2px 0 12px; }

.whatsapp-contato {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 8px;
  border-radius: 12px;
  color: var(--carvao);
  transition: background-color 0.15s ease;
}
.whatsapp-contato + .whatsapp-contato { margin-top: 4px; }
.whatsapp-contato-inicial {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #DCF8E7;
  color: #128C4A;
  font-weight: 700;
}
.whatsapp-contato-texto { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.whatsapp-contato-texto strong { font-size: 0.95rem; }
.whatsapp-contato-texto span { font-size: 0.82rem; color: var(--cinza-texto); }
.whatsapp-contato svg { width: 18px; height: 18px; color: #A39E96; }
.whatsapp-contato:active { background: #F1F5F2; }
@media (hover: hover) and (pointer: fine) {
  .whatsapp-contato:hover { background: #F1F5F2; }
}

@media (max-width: 640px) {
  .whatsapp-contatos { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .whatsapp-menu { width: min(280px, calc(100vw - 32px)); }
}
