/* ========= RESET BÁSICO ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
html::-webkit-scrollbar {
  width: 0;
  height: 0;
}
body {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #050608;
  color: #f7f4ee;
  -webkit-font-smoothing: antialiased;
}

/* ========= VARIÁVEIS ========= */
:root {
  --bg: #050608;
  --bg-alt: #0b0e11;
  --card: #10131a;
  --accent: #f28b3b;
  --accent-soft: #c3a96a;
  --text: #f7f4ee;
  --muted: #a0a4b3;
  --border: #20232b;
  --radius-lg: 18px;
  --radius-sm: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
}

/* ========= UTILS ========= */
.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent-soft);
  margin-bottom: 0.6rem;
  display: inline-block;
}

/* ========= BOTÕES ========= */
.btn {
  display: inline-flex;
  align-items: center; /* Centraliza verticalmente */
  justify-content: center; /* Centraliza horizontalmente */
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #111;
  font-weight: 700; /* Deixei um pouco mais negrito para leitura */
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  line-height: 1; /* O SEGRED0: Remove espaços extras acima/abaixo */
  text-align: center; /* Garante centralização extra */
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 16px 40px rgba(242, 139, 59, 0.3);
}
.btn-sm {
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
}
.btn-full {
  width: 100%;
  justify-content: center;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(243, 211, 157, 0.4);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  background: rgba(243, 211, 157, 0.08);
  border-color: rgba(243, 211, 157, 0.9);
}

/* ========= TOPBAR ========= */
.topbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 8, 0.96),
    rgba(5, 6, 8, 0.85),
    transparent
  );
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.logo-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(242, 139, 59, 0.5);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-title {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffffff;
}
.logo-subtitle {
  font-size: 0.7rem;
  color: var(--muted);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 0.75rem;
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav a:hover {
  color: var(--text);
}
.nav a:hover::after {
  width: 100%;
}

/* ========= HERO SLIDER ========= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 550px;
  background: #000;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 1s ease,
    transform 1.5s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero-slide-1 {
  background-image: url("images/fachada2.jpeg");
}
.hero-slide-2 {
  background-image: url("images/vip.png");
}
.hero-slide-3 {
  background-image: url("images/café.png");
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to right,
    rgba(5, 6, 8, 0.95),
    rgba(5, 6, 8, 0.6),
    rgba(5, 6, 8, 0.2)
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-top: 4rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 span {
  color: var(--accent);
}
.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
  max-width: 90%;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 6, 8, 0.6);
  color: #fff;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  transition: all 0.2s;
}
.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.hero-arrow-left {
  left: 1.5rem;
}
.hero-arrow-right {
  right: 1.5rem;
}
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}
.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dots .dot.active {
  width: 24px;
  border-radius: 10px;
  background: var(--accent);
}

/* ========= SEÇÕES PADRÃO ========= */
.section {
  padding-block: 5rem;
  background: var(--bg);
}
.section-alt {
  background: var(--bg-alt);
}
.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tag-grid span {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(160, 164, 179, 0.3);
  color: var(--muted);
}
.info-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
}
.info-card h3 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.info-card ul {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.info-card ul li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.5rem;
}

/* ========= GALERIA ========= */
.photo-carousel {
  margin-top: 2rem;
  overflow: hidden;
}
.photo-track {
  display: flex;
  gap: 1rem;
}
.photo-item {
  flex: 0 0 25%;
}
.photo-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ========= REELS / VÍDEOS (Estilo Limpo) ========= */
.reels-grid {
  margin-top: 2rem;
  display: grid;
  /* 3 colunas padrão */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.reel-aspect {
  position: relative;
  /* Proporção 9:16 (vertical) */
  padding-top: 177.77%;
  border-radius: var(--radius-lg);
  overflow: hidden; /* Essencial: corta o que vazar para fora */
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Borda sutil para destacar */
}

/* O TRUQUE PARA LIMPAR A INTERFACE DO YOUTUBE */
.reel-aspect iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 1. Centraliza o vídeo.
     2. scale(1.15): Dá um zoom de 15% para "empurrar" o título e os controles para fora da área visível.
  */
  transform: translate(-50%, -50%) scale(1.15);
  width: 100%;
  height: 100%;
  border: 0;
  /* IMPORTANTE: Impede que o mouse interaja com o vídeo. 
     Isso evita que apareça o botão de pause/play quando passa o mouse.
     O vídeo vira apenas um elemento visual de fundo.
  */
  pointer-events: none;
}

/* ========= BLOCOS NOVOS (PRODUTOS / LOCAL) ========= */
.bloco {
  padding: 5rem 0;
  position: relative;
}
.bloco::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(242, 139, 59, 0.3),
    transparent
  );
}
.bloco-produtos {
  background:
    radial-gradient(circle at top, rgba(195, 169, 106, 0.1), transparent 60%),
    linear-gradient(to bottom, #151820, #050608);
}

/* --- CORREÇÃO DO GRID (3 por linha) --- */
.produtos-grid {
  margin-top: 2rem;
  display: grid;
  /* Garante 3 colunas SEMPRE */
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}

/* Garante que o Card ocupe o espaço correto */
.card-produto {
  background: rgba(16, 19, 26, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tamanho da imagem controlado para não estourar o layout */
.card-produto img {
  width: 100%;
  height: 250px; /* Altura fixa boa para desktop */
  object-fit: contain; /* Não corta a imagem */
  margin-bottom: 1rem;
}

.card-produto h3 {
  font-size: 0.9rem; /* Fonte um pouco menor */
  margin-bottom: 0.2rem;
  color: #fff;
}

.card-produto .texto-menor {
  font-size: 0.75rem; /* Fonte descrição menor */
  color: var(--muted);
}

/* LOCALIZAÇÃO (CORREÇÃO DE PREENCHIMENTO) */
.bloco-localizacao {
  background:
    radial-gradient(
      circle at top left,
      rgba(242, 139, 59, 0.15),
      transparent 50%
    ),
    #0b0e11;
}
.localizacao-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}
.localizacao-texto h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

/* O card do mapa */
.localizacao-card {
  margin-top: 1.5rem;
  height: 300px; /* Altura fixa */
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}
/* A div que segura o iframe precisa ter 100% de altura para preencher o card */
.map-preview {
  width: 100%;
  height: 100%;
}
.map-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block; /* Remove espaços de linha */
}

/* CARD CONTATO */
.contact-card-alt {
  background: #0f1116;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.contact-card-alt h3 {
  font-size: 0.85rem;
  color: var(--accent-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.lista-contato {
  list-style: none;
  margin-bottom: 2rem;
}
.lista-contato li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}
.lista-contato li strong {
  color: #fff;
}

/* CTA FINAL */
.bloco-cta-final {
  background:
    radial-gradient(circle at bottom, rgba(242, 139, 59, 0.2), transparent 70%),
    linear-gradient(to top, #050608, #0b0e11);
  padding: 4rem 0;
}
.cta-final-conteudo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* FOOTER */
.footer {
  padding: 3rem 0; /* Um pouco mais de espaço */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #050608;
}

.footer-inner {
  display: flex;
  flex-direction: column; /* Mobile: um embaixo do outro */
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Estilo da Assinatura LogicNode */
.logic-link {
  text-decoration: none;
  color: var(--muted); /* Começa cinza */
  font-weight: 400;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.logic-link strong {
  color: #fff; /* Nome LogicNode em branco */
  font-weight: 700;
}

/* Efeito ao passar o mouse */
.logic-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.logic-link:hover strong {
  color: var(--accent); /* LogicNode fica Dourado/Laranja */
  text-shadow: 0 0 10px rgba(242, 139, 59, 0.4); /* Brilho neon sutil */
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* VERSÃO DESKTOP (Lado a lado) */
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row; /* Volta a ser linha */
    justify-content: space-between;
  }

  /* Centraliza a marca no meio, se quiser, ou ajusta o espaçamento */
  .footer-branding {
    order: 2; /* Fica no meio ou direita */
  }
}

/* ========= RESPONSIVO / MOBILE ========= */
@media (max-width: 900px) {
  .section-grid,
  .localizacao-grid,
  .cta-final-conteudo {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
  }
  .cta-final-conteudo {
    align-items: center;
  }
  .hero-content {
    text-align: center;
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .nav {
    display: none;
  }
  .photo-item {
    flex: 0 0 50%;
  }
}

/* No mobile, ajusta o grid e o zoom */
@media (max-width: 768px) {
  .reels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .reel-aspect {
    padding-top: 177.77%;
    border-radius: 12px;
  }

  /* No celular, talvez precise de menos zoom, ajuste se necessário */
  .reel-aspect iframe {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.btn-rota {
  /* Aparência do botão */
  background: linear-gradient(
    90deg,
    #e68e4f,
    #d66d28
  ); /* Gradiente laranja similar ao da foto */
  color: #1a1a1a; /* Cor do texto (quase preto) */
  font-weight: 800; /* Texto bem grosso */
  text-decoration: none; /* Remove o sublinhado do link */
  text-transform: uppercase; /* Força letra maiúscula */
  font-size: 14px;
  letter-spacing: 1px; /* Espaçamento entre letras */

  /* Formato */
  padding: 14px 35px;
  border-radius: 50px; /* Deixa bem redondo nas pontas */
  display: inline-block;

  /* Efeitos */
  box-shadow: 0 4px 20px rgba(214, 109, 40, 0.4); /* Sombra laranja difusa */
  transition:
    transform 0.2s,
    box-shadow 0.2s; /* Animação suave */
  font-family: sans-serif; /* Garante fonte limpa caso não herde do site */
}

/* Efeito ao passar o mouse (opcional, mas recomendado) */
.btn-rota:hover {
  transform: translateY(-2px); /* Sobe um pouquinho */
  box-shadow: 0 6px 25px rgba(214, 109, 40, 0.6); /* Sombra fica mais forte */
}

.subtexto-localizacao {
  color: #b0b0b0; /* Cor cinza claro, suave para leitura no fundo escuro */
  font-size: 18px; /* Tamanho legível */
  line-height: 1.6; /* Espaçamento entre as linhas para não ficar embolado */
  margin-top: 15px; /* Afasta um pouco do título de cima */
  margin-bottom: 25px; /* Afasta do endereço/botão de baixo */
  max-width: 600px; /* Impede que o texto fique muito comprido em telas grandes */
  font-weight: 400; /* Peso normal da fonte */
}

/* ========= AJUSTE MOBILE (3 COLUNAS REAL) ========= */
@media (max-width: 768px) {
  .produtos-grid {
    /* Força bruta para serem 3 colunas */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px; /* Espaço bem pequeno entre eles */
  }

  .card-produto {
    padding: 6px; /* Card mais compacto */
    min-height: auto; /* Remove altura mínima forçada */
    border-radius: 12px;
  }

  /* Imagem pequena para caber 3 na tela */
  .card-produto img {
    height: 80px;
    margin-bottom: 6px;
    border-radius: 8px;
  }

  /* Título bem pequeno */
  .card-produto h3 {
    font-size: 0.65rem;
    line-height: 1.1;
    margin-bottom: 2px;
    white-space: nowrap; /* Tenta não quebrar linha */
    overflow: hidden;
    text-overflow: ellipsis; /* Coloca "..." se o nome for longo */
  }

  /* Descrição oculta ou minúscula (opcional) */
  .card-produto .texto-menor {
    font-size: 0.5rem;
    line-height: 1;
    display: none; /* SUGESTÃO: Esconder a descrição no celular para ficar mais limpo */
  }
}
