/* 2026-10-20 — correções: hero com lanche "afundando" no degradê,
   tipografia do hero, hierarquia mobile e desempenho de rolagem. */

/* ---------- Técnica do hero: o lanche afunda na borda da seção ----------
   O lanche desce além da base da seção e um degradê escuro, de ponta a
   ponta da tela, passa POR CIMA da base dele. Assim não existe a linha onde
   o lanche termina: ele some no escuro e não parece "flutuar".
   ::before = faixa de degradê; ::after = preto sólido daí para baixo.
   O texto (z-index maior) fica sempre acima do degradê. */
:root { --hero-fade: 5, 6, 6; }

/* Base comum das camadas de degradê. */
.home-hero .asset-placeholder--hero-burger::before,
.catalog-showcase__burger::before,
.home-hero .asset-placeholder--hero-burger::after,
.catalog-showcase__burger::after {
  position: absolute;
  right: -100vw;
  left: -100vw;
  z-index: 3;
  display: block;
  width: auto;
  border: 0;
  border-radius: 0;
  content: "";
  filter: none;
  transform: none;
  opacity: 1;
  pointer-events: none;
}
.home-hero .asset-placeholder--hero-burger::after,
.catalog-showcase__burger::after { display: none; }

/* Faixa curta e suave ancorada na base da seção: dissolve só o pão de baixo
   e mantém tomate, alface e queijo à vista. */
.home-hero .asset-placeholder--hero-burger::before,
.catalog-showcase__burger::before {
  top: auto;
  bottom: 0;
  height: var(--fade-height, 230px);
  background: linear-gradient(180deg,
    rgba(var(--hero-fade), 0) 0%,
    rgba(var(--hero-fade), .12) 30%,
    rgba(var(--hero-fade), .42) 55%,
    rgba(var(--hero-fade), .78) 74%,
    rgba(var(--hero-fade), .96) 86%,
    rgb(var(--hero-fade)) 100%);
}

/* Home */
.home-hero .hero__inner { padding-bottom: 0; }
.home-hero .hero__copy { position: relative; z-index: 5; }
.home-hero .hero__media,
.home-hero .hero__media.media {
  z-index: auto;
  overflow: visible;
  border-radius: 0;
  background: none;
}
.home-hero .hero__media::before,
.home-hero .hero__media::after { display: none; }
.home-hero .asset-placeholder--hero-burger {
  position: absolute;
  inset: 0 0 -34px 4%;
  z-index: 2;
  overflow: visible;
  background: none;
}
.home-hero .asset-placeholder--hero-burger img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
  filter: saturate(1.06);
}

/* Cardápio (desktop, acima de 1050px): o lanche sai do grid e fica preso à base da
   seção, na coluna central, em qualquer altura de tela. */
.catalog-showcase__burger img { transform: none; filter: saturate(1.06); }
@media (min-width: 1051px) {
  /* Em telas altas a seção não passa de 1000px: o lanche fica perto do conteúdo. */
  .catalog-hero--showcase { min-height: clamp(720px, 100svh, 1000px); }
  .catalog-showcase { min-height: clamp(575px, calc(100svh - 145px), 855px); }
  .catalog-showcase { position: static; z-index: auto; padding-bottom: 0; }
  .catalog-showcase__copy,
  .catalog-showcase__categories { position: relative; z-index: 4; }
  .catalog-showcase__copy { grid-column: 1; grid-row: 1; }
  .catalog-showcase__categories { grid-column: 3; grid-row: 1; }
  .catalog-showcase__burger {
    position: absolute;
    left: 50%;
    bottom: -34px;
    z-index: 2;
    width: min(40vw, 640px);
    height: min(60%, 600px);
    min-height: 0;
    margin: 0;
    overflow: visible;
    background: none;
    transform: translateX(-50%);
  }
  .catalog-showcase__burger img {
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-position: center bottom;
    transform: none;
    filter: saturate(1.06);
  }
}

@media (max-width: 760px) {
  .home-hero .asset-placeholder--hero-burger { inset: 0 4% -26px 4%; }
  .home-hero { --fade-height: 170px; }
  .catalog-showcase__burger { min-height: 290px; margin: 0; }
}

@media (max-width: 1050px) {
  /* Tablet e celular: o lanche fica entre o texto e as categorias: some suave no
     escuro e as categorias aparecem sobre o fundo escuro logo abaixo. */
  .catalog-showcase { position: relative; z-index: 3; }
  .catalog-showcase__burger { overflow: visible; background: none; }
  .catalog-showcase__burger { --fade-height: 46%; }
  .catalog-showcase__burger::after {
    display: block;
    top: 100%;
    height: 100vh;
    background: rgb(var(--hero-fade));
  }
}

/* ---------- Tipografia e hierarquia do hero ---------- */
.home-hero .hero__copy .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: clamp(.86rem, .95vw, 1rem);
  letter-spacing: .26em;
}
.home-hero .hero__copy .hero__eyebrow::before {
  width: 34px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: currentColor;
}
.home-hero .hero__copy .hero__brand-title {
  font-size: clamp(5.2rem, 8.2vw, 9.4rem);
  line-height: .84;
  letter-spacing: -.01em;
  text-shadow: 0 6px 30px rgba(0,0,0,.45);
}
.home-hero .hero__copy .hero__secondary-title {
  margin: 20px 0 0 2px;
  font-size: clamp(1.7rem, 2.5vw, 2.9rem);
  line-height: 1;
}
.home-hero .hero__copy .t1 {
  max-width: 30em;
  margin-top: 26px;
  color: rgba(255,249,239,.84);
  font-size: clamp(1.08rem, 1.22vw, 1.3rem);
  line-height: 1.5;
}
.home-hero .hero__actions { margin-top: 34px; }

@media (max-width: 760px) {
  .home-hero .hero__copy .hero__eyebrow {
    gap: 10px;
    margin-bottom: 14px;
    font-size: .8rem;
    letter-spacing: .22em;
  }
  .home-hero .hero__copy .hero__eyebrow::before { width: 24px; }
  .home-hero .hero__copy .hero__brand-title {
    font-size: clamp(4rem, 19vw, 5.4rem);
    line-height: .86;
  }
  .home-hero .hero__copy .hero__secondary-title {
    margin-top: 14px;
    font-size: clamp(1.45rem, 6.6vw, 1.9rem);
  }
  .home-hero .hero__copy .t1 {
    max-width: 32ch;
    margin-top: 18px;
    font-size: 1.06rem;
    line-height: 1.5;
  }
  .home-hero .hero__actions { margin-top: 24px; }
  .home-hero .hero__media { min-height: 300px; margin-top: 12px; }
}

/* ---------- Hierarquia dos textos no mobile ---------- */
@media (max-width: 760px) {
  /* Rótulo da seção: pequeno, laranja, espaçado. */
  main section p.h3,
  .home-store-premium__eyebrow {
    margin-bottom: 12px;
    color: var(--orange);
    font-family: var(--font-condensed);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .2em;
    text-transform: uppercase;
  }
  /* Título principal: um tamanho só em todas as seções. */
  main section h2.h1 {
    font-size: clamp(2.6rem, 12.4vw, 3.2rem);
    line-height: .92;
    letter-spacing: 0;
  }
  /* Complemento manuscrito: claramente secundário ao título. */
  main section h2.h1 .h2 {
    display: block;
    margin-top: .3em;
    font-size: .58em;
    line-height: 1.05;
  }
  /* Texto de apoio legível. */
  main section .t1 {
    max-width: 34ch;
    margin-top: 16px;
    color: rgba(255,249,239,.8);
    font-size: 1.06rem;
    line-height: 1.55;
  }
  main section .t2 { font-size: .98rem; line-height: 1.45; }
  main section h3.h3 { font-size: 1.6rem; line-height: 1; }
  .final-cta h2.h1 { font-size: clamp(2.3rem, 11vw, 2.8rem); }
}

/* ---------- Desempenho: rolagem sem travar ---------- */
/* Revelação sem blur (filter animado força repintura a cada quadro). */
.js .reveal--up,
.js .reveal--left,
.js .reveal--right,
.js .reveal--scale { filter: none; }
.js .reveal { will-change: auto; transition: opacity 700ms ease, transform 800ms cubic-bezier(.16,1,.3,1); }
.js .reveal--up { transform: translate3d(0, 48px, 0); }
.js .reveal--left { transform: translate3d(-48px, 0, 0); }
.js .reveal--right { transform: translate3d(48px, 0, 0); }
.js .reveal--scale { transform: translate3d(0, 32px, 0) scale(.96); }
.js .reels-grid .reel-card,
.js .featured__cards .product-card,
.js .order-methods .method-card,
.js .catalog-grid .catalog-card { transform: translate3d(0, 40px, 0); }
.js .is-visible .reel-card,
.js .is-visible .product-card,
.js .is-visible .method-card,
.js .is-visible .catalog-card { transform: none; }

/* Camada fixa com blend-mode recompunha a tela inteira a cada scroll. */
.page-background::after { display: none; }
.page-background::before { position: absolute; }

/* backdrop-filter sobre fundos já quase opacos: custo alto, ganho nulo. */
.home-store-premium__panel,
.catalog-showcase__categories > a,
.catalog-hero__guide,
.catalog-index { backdrop-filter: none; -webkit-backdrop-filter: none; }
.summary-bar { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Faixa animada isolada para não repintar o resto da página. */
.brand-marquee { contain: paint; }

/* ---------- Tablet (761–1100px): colunas fixas estouravam a tela ---------- */
@media (max-width: 1100px) and (min-width: 901px) {
  .home-hero .hero__inner {
    min-height: 0;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  }
  .home-hero .hero__media { min-height: 480px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  .home-hero .hero__inner {
    min-height: 0;
    gap: 8px;
    padding-bottom: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .home-hero .hero__copy { max-width: 620px; }
  .home-hero .hero__media { min-height: 440px; margin-top: 12px; }
  .home-hero .asset-placeholder--hero-burger { inset: 0 12% -34px; }
}

/* ---------- Mobile: formatação dos textos, cards e loja (rodada 2) ---------- */
@media (max-width: 760px) {
  /* Títulos: sem larguras máximas estreitas que quebravam "BURGERS / ONDE". */
  #home ~ section h2.h1 {
    max-width: none;
    font-size: clamp(2.5rem, 11.6vw, 3rem);
    line-height: .94;
    text-wrap: balance;
  }
  #home ~ section h2.h1 .h2 {
    display: block;
    max-width: none;
    margin-top: .28em;
    font-size: .6em;
    line-height: 1.05;
    white-space: normal;
  }
  #home ~ section p.h3,
  #home ~ section .home-store-premium__eyebrow { margin-bottom: 10px; }
  #home ~ section .t1 { max-width: 36ch; }

  /* Cardápio (product.html): "Sabor que" numa linha só. */
  .catalog-hero--showcase .catalog-showcase__copy h1.h1 {
    max-width: none;
    font-size: clamp(3.3rem, 15.5vw, 4.1rem);
    line-height: .9;
  }
  .catalog-hero--showcase .catalog-showcase__copy h1.h1 .h2 {
    display: block;
    margin-top: .12em;
    font-size: .62em;
    line-height: 1;
  }
  .catalog-hero--showcase .catalog-showcase__copy .t1 {
    max-width: 32ch;
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Cards "Peça do seu jeito": ícone + título lado a lado, texto e botão abaixo. */
  .order-methods .method-card {
    display: grid;
    align-items: center;
    gap: 6px 14px;
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 20px;
    text-align: left;
  }
  .order-methods .method-card .icon--method {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 52px;
    height: 52px;
    margin: 0;
  }
  .order-methods .method-card h3.h3 {
    grid-column: 2;
    margin: 0;
    font-size: 1.55rem;
    line-height: 1;
    text-align: left;
  }
  .order-methods .method-card .t2 {
    grid-column: 2;
    margin: 0;
    color: rgba(255,249,239,.74);
    font-size: .98rem;
    line-height: 1.4;
    text-align: left;
  }
  .order-methods .method-card .btn2 {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 50px;
    margin-top: 12px;
    justify-content: center;
  }

  /* Loja: sem a foto entre o texto e o card. */
  .home-store-premium::before { display: none; }

  /* Miniatura do boné: quadrada, boné centralizado e preenchendo a moldura. */
  .home-store-premium__panel .home-store-premium__thumb,
  .home-store-premium__thumb {
    width: 104px;
    height: 104px;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 16px;
    background: #0b0b0b;
  }
  .home-store-premium__panel .home-store-premium__thumb img,
  .home-store-premium__thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 58%;
    border-radius: 0;
    transform: scale(1.18);
  }
}

/* ---------- Vídeo "Nossa história": capa com play (carrega o YouTube ao clicar) ---------- */
.yt-lite {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,148,24,.3);
  border-radius: 22px;
  background: #050505;
  box-shadow: 0 28px 70px rgba(0,0,0,.55);
  cursor: pointer;
}
.yt-lite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, filter 400ms ease;
}
.yt-lite::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 35%, transparent 65%, rgba(0,0,0,.35));
}
.yt-lite__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 76px;
  transform: translate(-50%, -50%);
  transition: transform 250ms ease;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.5));
}
.yt-lite__play svg { display: block; width: 100%; height: auto; }
.yt-lite__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.yt-lite:hover img,
.yt-lite:focus-visible img { transform: scale(1.03); filter: brightness(1.08); }
.yt-lite:hover .yt-lite__play,
.yt-lite:focus-visible .yt-lite__play { transform: translate(-50%, -50%) scale(1.08); }
.yt-lite:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
@media (max-width: 760px) {
  .yt-lite { border-radius: 16px; }
  .yt-lite__play { width: 62px; }
}
