/* --- 1. CONFIGURAÇÕES GERAIS E FONTES --- */
:root {
  --yellow: #f0df5a;
  --red: #b92526;
  --text-light: #ffffff;
  --text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: "Helvetica", "Arial", sans-serif;
  box-sizing: border-box;
}

/* Para navegadores mais modernos (Firefox) */
html {
  scrollbar-width: thin; /* Deixa a barra mais fina */
  scrollbar-color: var(--red) rgba(0, 0, 0, 0.2); /* Cor do polegar e da trilha */
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--yellow), var(--red));
  z-index: -1;
}

/* --- 2. ANIMAÇÕES DE ENTRADA SUTIS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 3. CARD DE VIDRO OTIMIZADO --- */
.glass-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  padding: 2.5rem;
  text-align: center;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  margin-bottom: 20px; /* Adiciona espaço antes do rodapé */
  animation: fadeInUp 0.8s ease-out;
}

/* --- 4. HIERARQUIA VISUAL E ACESSIBILIDADE DE TEXTO --- */
.card-header {
  margin-bottom: 2rem;
}

.logo {
  width: 250px;
  margin-bottom: 1.5rem;
}

h1 {
  font-family: "Bangers", cursive;
  font-size: clamp(1.6em, 6vw, 2.4em);
  margin: 0 0 0.75rem 0;
  font-weight: bold;

  /* 1. Cor de PREENCHIMENTO (permanece intacta) */
  color: var(--yellow);

  /* 2. BORDA EXTERNA (feita com sombras) */
  text-shadow: 
    /* --- Contorno externo de 3px na cor vermelha --- */
    /* Criamos 8 sombras para cobrir todas as direções (incluindo diagonais) */ -3px -3px
      0 var(--red),
    3px -3px 0 var(--red), -3px 3px 0 var(--red), 3px 3px 0 var(--red),
    -3px 0 0 var(--red), 3px 0 0 var(--red), 0 -3px 0 var(--red),
    0 3px 0 var(--red),
    /* --- (Opcional) Sombra projetada para dar profundidade --- */
      /* Esta sombra fica por baixo de tudo */ 5px 5px 8px rgba(0, 0, 0, 0.5);
}

p {
  font-size: clamp(0.8em, 2.5vw, 0.8em);
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  text-shadow: var(--text-shadow);
  margin: 0;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: -10px;
}

.choice-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease-out, background-color 0.2s ease-out,
    box-shadow 0.2s ease-out;
  text-shadow: var(--text-shadow);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.choice-button .discount-tag {
  background-color: var(--yellow);
  color: #333;
  font-size: 0.41em;
  padding: 3px 8px;
  border-radius: 8px;
  margin-left: 10px;
  font-weight: bold;
  text-shadow: none;
}

.choice-button i {
  margin-right: 0.75rem;
}
.choice-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.choice-button:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.site-button {
  background-color: rgba(255, 69, 0, 0.7);
}
.social-button {
  background-color: rgba(59, 89, 152, 0.7); /* Azul tipo Facebook/Meta */
}
.ifood-button {
  background-color: rgba(234, 29, 44, 0.7);
}

.site-button:hover {
  background-color: rgba(255, 69, 0, 0.9);
}
.social-button:hover {
  background-color: rgba(59, 89, 152, 0.9);
}
.ifood-button:hover {
  background-color: rgba(234, 29, 44, 0.9);
}

/* --- 5. ESTILOS DO MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: #333;
  color: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 20;
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.modal h2 {
  margin: 0 0 0.5rem 0;
  color: var(--yellow);
}

.modal p {
  font-size: 0.6em;
  margin: 0 0 1.5rem 0;
  opacity: 0.9;
}

.modal-button-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.modal-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.addresses {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.addresses h2 {
  color: var(--red);
  margin: 0 0 0.5rem 0;
}

.address {
  background-color: rgba(255, 255, 255, 0.3);
  padding: 0.8rem;
  border-radius: 8px;
  text-align: left;
  color: white;
  font-weight: bold;
  transition: background-color 0.2s ease;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.address:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.address p {
  margin: 0;
  font-size: 0.9em;
  text-shadow: var(--text-shadow);
}

.address a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s ease;
}

.address a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* --- 6. RODAPÉ PROFISSIONAL --- */
.site-footer {
  position: relative;
  width: 100%;
  padding: 1rem;
  text-align: center;
  box-sizing: border-box;
}

.site-footer p {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* --- 7. BARRA DE ROLAGEM PERSONALIZADA --- */

/* Funciona no Chrome, Edge, Safari e outros navegadores WebKit */
::-webkit-scrollbar {
  width: 12px; /* Largura da barra de rolagem */
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2); /* Cor do fundo da trilha, sutil */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--yellow),
    var(--red)
  ); /* Gradiente usando suas cores */
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2); /* Borda para dar profundidade */
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    #f7e872,
    #d13031
  ); /* Cores um pouco mais vivas no hover */
}
