/* =====================================================
   O SALGADEIRO — Landing Page (estilo Linktree)
   Paleta da marca:
   - Branco  #FFFFFF (fundo)
   - Amarelo #FFD400 (detalhes)
   - Vermelho #D62828 (detalhes)
   ===================================================== */

/* ---------- VARIÁVEIS DE CORES (fácil de editar) ---------- */
:root {
  --branco: #ffffff;
  --amarelo: #ffd400;
  --vermelho: #d62828;
  --vermelho-escuro: #7a1414;
  --texto: #2b2b2b;
  --cinza-suave: #f4f4f4;
  --sombra: 0 8px 24px rgba(0, 0, 0, 0.08);
  --sombra-hover: 0 12px 30px rgba(214, 40, 40, 0.18);
  --raio: 50px; /* botões em formato "pílula" (estilo do print) */
}

/* ---------- RESET BÁSICO ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  /* Fundo em degradê: vermelho da marca -> vermelho escuro */
  background: linear-gradient(180deg, var(--vermelho) 0%, var(--vermelho-escuro) 100%);
  background-attachment: fixed;
  color: var(--branco);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}

/* ---------- IMAGEM DE FUNDO (desfocada) ---------- */
/* A foto dos salgados fica atrás de tudo, com blur.
   Use a pseudo-classe ::before para que o blur NÃO afete os botões/texto. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("background.jpg") center center / cover no-repeat;
  filter: blur(9px) saturate(1.05);
  /* leve zoom para esconder as bordas borradas */
  transform: scale(1.08);
}

/* ---------- DEGRADÊ POR CIMA DA FOTO (legibilidade) ---------- */
/* Camada de cor vermelha em degradê sobre a imagem, deixando o
   conteúdo mais legível e mantendo a identidade da marca. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(214, 40, 40, 0.55) 0%,
    rgba(122, 20, 20, 0.82) 100%
  );
}

/* ---------- CONTAINER (sem caixa: botões "soltos" sobre o fundo) ---------- */
.card {
  width: 100%;
  max-width: 440px;
  background: transparent;
  padding: 20px 8px;
}

/* ---------- CABEÇALHO ---------- */
.header {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  /* Logo (selo completo) sobre o fundo, sem moldura */
  width: 220px;
  max-width: 70%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
  /* sombra suave para destacar do fundo vermelho */
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--branco);
  text-transform: uppercase;
}

/* Linha decorativa amarela abaixo do título */
.title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--amarelo);
  border-radius: 4px;
  margin: 12px auto 0;
}

/* ---------- BOTÕES (LINKS) ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--branco);
  color: var(--texto);
  text-decoration: none;
  padding: 18px 22px;
  border-radius: var(--raio); /* pílula bem arredondada */
  box-shadow: var(--sombra);
  border: none;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

/* Efeito ao passar o mouse (hover) */
.link-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-hover);
  background: var(--cinza-suave);
}

/* Efeito ao clicar */
.link-btn:active {
  transform: scale(0.97);
}

/* Ícone da esquerda (WhatsApp / Financeiro) */
.link-btn .icon-left {
  font-size: 1.5rem;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

/* Cor do ícone do WhatsApp */
.icon-whatsapp {
  color: #25d366;
}

/* Cor do ícone do Financeiro */
.icon-financeiro {
  color: var(--vermelho);
}

/* Nome da unidade — centralizado ocupando o espaço do meio */
.link-btn .label {
  flex: 1;
  text-align: center;
}

/* Seta da direita */
.link-btn .icon-right {
  font-size: 1rem;
  color: var(--vermelho);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.link-btn:hover .icon-right {
  transform: translateX(4px);
}

/* ---------- RODAPÉ ---------- */
.footer {
  margin-top: 30px;
  text-align: center;
}

.instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.7rem;
  color: var(--branco);
  /* Gradiente clássico do Instagram */
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: var(--sombra);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram:hover {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: var(--sombra-hover);
}

.instagram:active {
  transform: scale(0.95);
}

/* ---------- ANIMAÇÃO FADE-IN AO CARREGAR ---------- */
.fade-in {
  animation: fadeIn 0.7s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Entrada escalonada dos botões */
.link-btn {
  animation: fadeIn 0.6s ease both;
}

/* ---------- RESPONSIVIDADE (CELULAR) ---------- */
@media (max-width: 480px) {
  .card {
    padding: 28px 18px 24px;
    border-radius: 22px;
  }

  .logo {
    width: 190px;
    height: auto;
  }

  .title {
    font-size: 1rem;
  }

  .link-btn {
    padding: 15px 14px;
    font-size: 0.95rem;
  }
}
