/* =========================================================
   SMASH BULL — Landing page teaser "Em breve novidades"
   ========================================================= */

:root {
  --background: #050505;
  --brand-primary: #e3222c;      /* vermelho do touro */
  --brand-primary-rgb: 227, 34, 44;
  --brand-secondary: #f6b51e;    /* amarelo da chama */
  --brand-secondary-rgb: 246, 181, 30;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, .65);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Composição principal ---------- */

.teaser {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: max(28px, env(safe-area-inset-top));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  isolation: isolate;
  overflow: hidden;
}

/* Profundidade sutil no fundo: vinheta + glow da marca atrás do hambúrguer */
.teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 62% 48% at 50% 66%,
      rgba(var(--brand-primary-rgb), .16) 0%,
      rgba(var(--brand-primary-rgb), .05) 38%,
      transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 0%,
      rgba(255, 255, 255, .025) 0%,
      transparent 60%),
    var(--background);
  pointer-events: none;
}

/* Grão fino para o preto não ficar "chapado" */
.teaser::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ---------- Logo ---------- */

/* O arquivo oficial é um JPEG quadrado com fundo preto e muito respiro.
   `js/logo.js` converte o preto em transparência e recorta a imagem para a
   área útil da arte (sem alterar formas/cores). Até isso terminar, a imagem
   fica invisível; depois entra com o fade da classe `.is-ready`. */
.brand-header {
  display: flex;
  justify-content: center;
  width: 100%;
}

.brand-logo {
  display: block;
  width: clamp(220px, min(30vw, 30svh), 400px); /* também respeita telas baixas */
  height: auto;
  opacity: 0;
  /* Fallback: se o processamento falhar e o JPEG original for exibido,
     `lighten` funde seu fundo preto ao fundo da página. */
  mix-blend-mode: lighten;
  user-select: none;
  -webkit-user-drag: none;
}

.brand-logo.is-ready {
  animation: rise-in 900ms var(--ease-out) forwards;
}

/* ---------- Conteúdo central ---------- */

.teaser-content {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vh, 20px);
  padding-top: clamp(24px, 4vh, 48px);
}

.teaser-headline {
  margin: 0;
  text-align: center;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 46px);
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--text-primary);
  animation: rise-in 900ms var(--ease-out) 180ms both;
}

/* Pequeno traço nas cores da marca separando a logo do título */
.teaser-accent {
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  margin-bottom: clamp(6px, 1vh, 12px);
  animation: rise-in 900ms var(--ease-out) 120ms both;
}

/* ---------- Hambúrguer ---------- */

.burger-stage {
  position: relative;
  margin: 0;
  width: clamp(260px, min(38vw, 42svh), 540px);
  max-width: 100%;
  aspect-ratio: 16 / 9;         /* mesma proporção do material original */
  display: flex;
  align-items: center;
  justify-content: center;
  animation: burger-in 1100ms var(--ease-out) 380ms both;
}

/* Reflexo/halo quente logo abaixo do hambúrguer */
.burger-stage::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 62%;
  height: 22%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(var(--brand-secondary-rgb), .22),
    rgba(var(--brand-primary-rgb), .12) 45%,
    transparent 75%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

.burger-source {
  /* Nunca visível: fonte de pixels para o canvas */
  position: absolute;
  width: 2px;
  height: 2px;
  opacity: .01;
  pointer-events: none;
  left: 0;
  top: 0;
}

.burger-canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
}

/* Flutuação bem discreta (o giro vem do próprio material) */
.burger-canvas {
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

/* ---------- Instagram ---------- */

.instagram-button {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  margin-top: clamp(8px, 1.4vh, 18px);
  padding: 12px clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background:
    linear-gradient(135deg,
      rgba(var(--brand-primary-rgb), .96),
      rgba(var(--brand-secondary-rgb), .92));
  box-shadow:
    0 12px 30px rgba(var(--brand-primary-rgb), .2),
    inset 0 1px 0 rgba(255, 255, 255, .2);
  color: #fff;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  cursor: pointer;
  animation: rise-in 900ms var(--ease-out) 260ms both;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    filter 180ms ease,
    border-color 180ms ease;
}

.instagram-button:visited {
  color: #fff;
}

.instagram-icon {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.instagram-handle {
  overflow: hidden;
  text-overflow: ellipsis;
}

.instagram-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .95);
  outline-offset: 4px;
  border-color: rgba(255, 255, 255, .6);
}

@media (hover: hover) and (pointer: fine) {
  .instagram-button:hover {
    transform: translateY(-3px);
    filter: saturate(1.08) brightness(1.05);
    box-shadow:
      0 16px 38px rgba(var(--brand-primary-rgb), .3),
      inset 0 1px 0 rgba(255, 255, 255, .25);
  }
}

.instagram-button:active {
  transform: translateY(1px) scale(.98);
  box-shadow:
    0 8px 20px rgba(var(--brand-primary-rgb), .18),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

/* ---------- Animações ---------- */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes burger-in {
  from { opacity: 0; transform: scale(.96) translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1)   translateY(0);    filter: blur(0); }
}

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

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .teaser { padding-top: max(20px, env(safe-area-inset-top)); }

  .brand-logo { width: clamp(220px, 72vw, 300px); }

  .teaser-content { padding-top: clamp(16px, 3vh, 32px); }

  .burger-stage {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
  }
  .burger-canvas { filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .55)); }

  .instagram-button {
    min-width: min(220px, 100%);
    min-height: 50px;
    padding-inline: 22px;
  }
}

/* Telas muito baixas (landscape em celular) */
@media (min-height: 521px) and (max-height: 800px) {
  .teaser {
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}

@media (max-height: 520px) {
  .teaser {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .brand-logo { width: 160px; }

  .teaser-content {
    gap: 4px;
    padding-top: 4px;
  }

  .burger-stage { width: min(42vw, 36svh, 300px); }

  .teaser-headline { font-size: clamp(20px, 4.5vh, 28px); }

  .teaser-accent { margin-bottom: 2px; }

  .instagram-button {
    min-height: 44px;
    margin-top: 4px;
    padding-block: 10px;
  }
}

@media (min-height: 521px) and (max-height: 600px) {
  .teaser { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

/* ---------- Acessibilidade ---------- */

@media (prefers-reduced-motion: reduce) {
  .brand-logo,
  .brand-logo.is-ready,
  .teaser-accent,
  .teaser-headline,
  .burger-stage,
  .burger-canvas,
  .instagram-button {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .burger-canvas { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
}
