/*
  Projeto conceitual desenvolvido pela LIOST · amostra de portfólio
  Projeto: BRASA 77 · Hamburgueria Artesanal Premium
  Pasta: clientes/portfolio/brasa-77/
  Atualizado em: 2026-06-02
*/

/* ============================================================
   BASE
============================================================ */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   HEADER — scroll aware
============================================================ */

#header {
  background: transparent;
}

#header.scrolled {
  background: rgba(15, 10, 5, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 234, 216, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   DETAILS / FAQ — remover seta nativa
============================================================ */

details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Ícone + vira × quando aberto */
details[open] summary span:last-child {
  transform: rotate(45deg);
}

/* ============================================================
   TICKER / MARQUEE INFINITO
============================================================ */

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 22s linear infinite;
  will-change: transform;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* ============================================================
   SETA HERO — bounce personalizado
============================================================ */

@keyframes bounce-soft {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.animate-bounce {
  animation: bounce-soft 2s ease-in-out infinite;
}

/* ============================================================
   CARDS DE PRODUTO — efeito brilho sutil no hover
============================================================ */

article.group:hover {
  box-shadow: 0 20px 60px -10px rgba(232, 80, 15, 0.15);
}

/* ============================================================
   FOCO VISÍVEL — acessibilidade
============================================================ */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #f5a623;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   BOTÃO FLUTUANTE — esconde no topo da página
============================================================ */

#whatsapp-float {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#whatsapp-float.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============================================================
   SEÇÃO HERO — garante que o fundo cobre mobile
============================================================ */

#hero img {
  object-position: center 30%;
}

@media (max-width: 640px) {
  #hero img {
    object-position: 60% center;
  }
}

/* ============================================================
   SCROLL REVEAL — fade-in suave ao entrar na viewport
============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   TIPOGRAFIA — detalhes finos
============================================================ */

/* Bebas Neue precisa de letter-spacing negativo em tamanhos grandes */
.font-display {
  letter-spacing: 0.02em;
}

h1.font-display {
  letter-spacing: 0.03em;
}

/* Playfair itálico nos cards */
.font-serif {
  font-feature-settings: "liga" 1, "kern" 1;
}

/* ============================================================
   SELEÇÃO DE TEXTO — cor da marca
============================================================ */

::selection {
  background: rgba(232, 80, 15, 0.35);
  color: #f5ead8;
}

/* ============================================================
   SCROLLBAR — discreta, no tema dark
============================================================ */

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0f0a05;
}
::-webkit-scrollbar-thumb {
  background: #2a1a0e;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c0390a;
}

/* ============================================================
   MOBILE — ajustes finos
============================================================ */

@media (max-width: 768px) {
  /* Combo cards — garantir espaçamento interno no mobile */
  .rounded-3xl.p-7 {
    padding: 1.5rem;
  }

  /* FAQ — summary sem quebra de layout */
  details summary {
    align-items: flex-start;
  }
}
