/* ===========================================================
   Buffet Dom Raphaelo — camada de acabamento
   Carrega DEPOIS de styles.css e so sobrescreve o que precisa.
   Nada aqui muda conteudo, so a forma como ele entra e reage.
   =========================================================== */

/* ===========================================================
   1. HERO — foto real por tras do gradiente
   Gradiente puro e a marca registrada de site gerado.
   Foto + veu escuro le como fotografia dirigida.
   =========================================================== */
.hero { isolation: isolate; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/img/gal-mesa.jpg") center 38% / cover no-repeat;
  filter: saturate(.85) contrast(1.05);
  transform: scale(1.06);
  animation: heroDrift 26s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1.2%, 0); }
}

/* o gradiente vira veu: escuro embaixo, respira em cima */
.hero__bg {
  z-index: 1;
  background:
    radial-gradient(120% 90% at 82% 0%, rgba(245,181,10,.16), transparent 52%),
    radial-gradient(100% 95% at 18% 108%, rgba(226,59,63,.42), transparent 62%),
    linear-gradient(165deg, rgba(0,0,0,.94) 0%, rgba(14,4,5,.86) 42%, rgba(42,6,8,.9) 100%);
}
.hero__bg::after { opacity: .32; }

.hero__inner { position: relative; z-index: 2; }

/* fio de luz separando o hero do resto */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(245,181,10,.55), transparent);
}

/* ===========================================================
   2. TIPOGRAFIA — display maior e mais apertado
   =========================================================== */
.hero__title {
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
  letter-spacing: -.035em;
  line-height: .98;
}
h2 {
  font-size: clamp(2rem, 3.9vw, 3.2rem);
  letter-spacing: -.025em;
}
.hero__lead { max-width: 520px; }

/* ===========================================================
   3. REVEAL — escalonado e com direcao
   O fade unico de 24px em tudo e o que mais entrega IA.
   Aqui cada tipo de elemento entra de um jeito.
   =========================================================== */
.reveal {
  transform: translateY(30px);
  transition:
    opacity .8s cubic-bezier(.22, .61, .36, 1),
    transform .8s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* Imagem se revela por mascara, disparada pelo CONTAINER.
   A mascara nao pode morar no elemento observado: clip-path zera o
   intersectionRatio, o observer nunca marca visivel e a imagem fica
   escondida pra sempre (o lazy-load tambem nunca dispara). */
.reveal-mask img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal-mask.is-visible img {
  clip-path: inset(0 0 0 0);
}

/* itens de lista entram pela esquerda */
.value-list li.reveal { transform: translateX(-22px); }
.value-list li.reveal.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .media__img.reveal,
  img.gallery__item.reveal {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
  .hero::before { animation: none; }
}

/* ===========================================================
   4. NUMEROS — tabulares, pra nao dancar durante a contagem
   =========================================================== */
/* Sem text-shadow: o halo amarelo em volta do numero sujava o
   contorno em vez de destacar. Numero grande ja chama sozinho. */
.strip__num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
}
.strip__label { margin-top: 10px; display: block; }
.strip__grid { position: relative; padding: 58px 24px; }
.strip__item + .strip__item::before {
  content: "";
  position: absolute;
  top: 18%; bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
}
.strip__item:nth-child(2)::before { left: 33.33%; }
.strip__item:nth-child(3)::before { left: 66.66%; }

/* ===========================================================
   5. MARQUEE — tipos de evento correndo
   =========================================================== */
.marquee {
  --gap: 3rem;
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  padding: 26px 0;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-width: 100%;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 600;
  color: rgba(255,255,255,.42);
  white-space: nowrap;
  transition: color .3s ease;
}
.marquee span::after {
  content: "•";
  margin-left: var(--gap);
  color: var(--yellow);
  opacity: .5;
}
.marquee:hover span { color: rgba(255,255,255,.62); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - var(--gap))); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ===========================================================
   6. CARDS — hover com intencao, nao o translateY generico
   =========================================================== */
.card {
  position: relative;
  overflow: hidden;
  transition: border-color .35s ease, background .35s ease, transform .35s cubic-bezier(.22,.61,.36,1);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 50% 0%, rgba(226,59,63,.16), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: scaleX(0);
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card__icon { transition: transform .35s cubic-bezier(.22,.61,.36,1), background .35s ease; }
.card:hover .card__icon { transform: scale(1.06) rotate(-4deg); background: rgba(226,59,63,.24); }

/* ===========================================================
   8. BOTOES — brilho que atravessa no hover
   =========================================================== */
.btn { position: relative; overflow: hidden; }
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg);
  transition: left .55s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.btn:hover::after { left: 115%; }

/* ===========================================================
   9. NAV — barra de progresso da leitura
   =========================================================== */
.nav__progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--progresso, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  transition: transform .1s linear;
  pointer-events: none;
}

/* ===========================================================
   10. SECOES — quebra do ritmo unico
   O padding identico em toda secao e o outro grande tell.
   =========================================================== */
.section--alt { padding: clamp(80px, 11vw, 140px) 0; }
.section--dark { padding: clamp(72px, 10vw, 125px) 0; }

.section__head { margin-bottom: clamp(38px, 5vw, 62px); }
.section__head .kicker { position: relative; padding-bottom: 12px; }
.section__head .kicker::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 34px; height: 2px;
  background: var(--yellow);
  opacity: .6;
}

/* ===========================================================
   11. CELULAR — o hero estava comendo a tela inteira
   Logo gigante + olho-de-boi em duas linhas + titulo grande
   empurravam os botoes pra muito abaixo da dobra.
   =========================================================== */
@media (max-width: 640px) {
  /* a marca ja esta escrita na barra de cima; aqui o logo e assinatura,
     nao cartaz */
  .hero__logo-wrap { width: min(215px, 56%); margin-bottom: 14px; }

  .hero__inner { padding-top: 44px; padding-bottom: 52px; }

  /* caixa alta com espacamento largo virava duas linhas apertadas */
  .hero__eyebrow {
    font-size: .72rem;
    letter-spacing: .08em;
    margin-bottom: 16px;
  }

  .hero__title { font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1.04; }
  .hero__lead { font-size: 1rem; margin-top: 16px; }
  .hero__cta { margin-top: 26px; gap: 10px; }
  .hero__badges { margin-top: 26px; gap: 8px 18px; }
  .hero__badges li { font-size: .86rem; }

  /* o botao flutuante do WhatsApp cobria o fim do texto das secoes */
  .section, .cta { padding-bottom: 84px; }
}

/* grao sutil sobre as secoes escuras — tira o "chapado digital" */
.section--dark, .cta {
  position: relative;
}
.section--dark::before, .cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.section--dark > *, .cta > * { position: relative; z-index: 1; }
