/* ===========================================================
   TABACARIA SHOP PE — Design tokens
   Base:     #0B0C0D  (charcoal, quase preto, com textura)
   Surface:  #16181A  (cards, superfícies elevadas)
   Ember:    #E58A2C  (laranja-brasa, cor de assinatura)
   Gold:     #C9A24B  (dourado metálico, detalhes)
   Smoke:    #4FB6D6  (azul-fumaça, contraponto frio)
   Leaf:     #2F4A3C  (verde do robe do mascote, acento raro)
   Ink:      #EFE9DD  (texto principal sobre fundo escuro)
   Muted:    #A9A29A  (texto secundário)
   =========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --base: #0B0C0D;
  --surface: #17191b;
  --surface-2: #1e2124;
  --ember: #E58A2C;
  --ember-2: #FF6B35;
  --gold: #C9A24B;
  --smoke: #4FB6D6;
  --leaf: #3A5A48;
  --ink: #EFE9DD;
  --muted: #A9A29A;
  --line: rgba(239,233,221,0.12);
  --display: "Bebas Neue", Impact, sans-serif;
  --body: "Inter", -apple-system, sans-serif;
}

/* Lenis assume o scroll suave via JS; scroll-behavior nativo fica desligado pra não conflitar */
html{ scroll-behavior: auto; }

body{
  background: var(--base);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; }

h1, h2, h3{
  font-family: var(--display);
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 1.05;
}

h2{ font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); }
h3{ font-size: 1.5rem; color: var(--ember); }

:focus-visible{
  outline: 2px solid var(--smoke);
  outline-offset: 3px;
}

/* ===== BUTTONS ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.btn--primary{
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
  color: #191008;
  box-shadow: 0 6px 24px -8px rgba(229,138,44,0.6);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(229,138,44,0.75); }
.btn--outline{
  background: rgba(11,12,13,0.55);
  backdrop-filter: blur(3px);
  color: var(--ink);
  border-color: var(--line);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.btn--outline:hover{ border-color: var(--ember); color: var(--ember); background: rgba(11,12,13,0.75); }
.btn--ghost{
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.btn--ghost:hover{ color: var(--ink); }
.btn--sm{ padding: .6rem 1.1rem; font-size: .85rem; }

.btn--poke{
  padding: 1.05rem 2.1rem;
  font-size: 1.05rem;
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--ember);
  box-shadow: 0 0 0 0 rgba(229,138,44,0.55);
  animation: pokePulse 2.6s ease-in-out infinite;
}
.btn--poke:hover{ background: var(--ember); color: #191008; transform: translateY(-2px) scale(1.03); }
@keyframes pokePulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(229,138,44,0.45); }
  50%{ box-shadow: 0 0 0 10px rgba(229,138,44,0); }
}
@media (prefers-reduced-motion: reduce){
  .btn--poke{ animation: none; }
}

/* ===========================================================
   AGE GATE
   =========================================================== */
.age-gate{
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #1a1512 0%, #0B0C0D 70%);
  padding: 1.5rem;
}
.age-gate__smoke-canvas{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.age-gate__box{
  position: relative;
  max-width: 420px;
  width: 100%;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2.5rem 2rem;
  border-radius: 4px;
}
.age-gate__logo{ width: 92px; height: 92px; object-fit: contain; margin: 0 auto 1rem; }
.age-gate__eyebrow{ color: var(--smoke); font-size: .85rem; margin-bottom: .4rem; }
.age-gate__box h2{ font-family: var(--display); font-size: 1.8rem; margin-bottom: .6rem; }
.age-gate__text{ color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; }
.age-gate__actions{ display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.age-blocked{
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: var(--base); color: var(--muted); text-align: center; padding: 2rem;
  font-size: 1.1rem;
}
.age-blocked[hidden]{ display: none; }

/* ===========================================================
   SMOKE + EMBERS (ambient motion)
   =========================================================== */
.smoke-layer{
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.smoke{
  position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .18;
  mix-blend-mode: screen;
}
.smoke--1{ background: var(--smoke); top: -10%; left: -15%; animation: drift1 34s ease-in-out infinite; }
.smoke--2{ background: var(--ember); top: 30%; right: -20%; animation: drift2 40s ease-in-out infinite; }
.smoke--3{ background: var(--leaf); bottom: -20%; left: 20%; animation: drift3 46s ease-in-out infinite; }

@keyframes drift1{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(8vw, 6vh) scale(1.15); }
}
@keyframes drift2{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-10vw, 8vh) scale(1.1); }
}
@keyframes drift3{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(6vw, -6vh) scale(1.2); }
}

.embers{ position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ember-particle{
  position: absolute;
  bottom: -10px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ember-2);
  box-shadow: 0 0 6px 2px rgba(255,107,53,0.7);
  animation: rise linear forwards;
}
@keyframes rise{
  0%{ transform: translateY(0) translateX(0); opacity: 0; }
  10%{ opacity: 1; }
  100%{ transform: translateY(-100vh) translateX(var(--drift,20px)); opacity: 0; }
}

/* ===========================================================
   NAV
   =========================================================== */
.nav{
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 5vw, 3.5rem);
  gap: 1rem;
}
.nav__logo{ height: 84px; width: auto; object-fit: contain; }
.nav__links{ display: flex; gap: 1.8rem; font-size: .92rem; color: var(--muted); }
.nav__links a:hover{ color: var(--ember); }
.nav__cta{ white-space: nowrap; }
@media (max-width: 760px){
  .nav__links{ display: none; }
}

/* ===========================================================
   HERO
   =========================================================== */
.hero{
  position: relative; z-index: 5;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg-mascot{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 22%;
  cursor: pointer;
  animation: mascotGlow 7s ease-in-out infinite;
  transition: opacity .45s ease, transform .45s ease;
}
@keyframes mascotGlow{
  0%,100%{ filter: brightness(1) saturate(1); }
  50%{ filter: brightness(1.08) saturate(1.12); }
}
.hero__scrim{
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--base) 0%, rgba(11,12,13,0.92) 28%, rgba(11,12,13,0.55) 52%, rgba(11,12,13,0.15) 72%, transparent 88%),
    linear-gradient(0deg, var(--base) 0%, transparent 22%);
}
.hero__smoke-canvas{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero__content{
  position: relative;
  z-index: 2;
  padding: 2rem clamp(1.2rem, 5vw, 3.5rem);
  max-width: 700px;
}
.hero__kicker{
  color: var(--smoke);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: .6rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
.hero__copy{
  transition: opacity .4s ease, max-height .5s ease, margin .4s ease;
  max-height: 400px;
  overflow: hidden;
}
.hero__copy.is-collapsed{
  opacity: 0;
  max-height: 0;
  margin: 0;
  pointer-events: none;
}
.hero__bubble{
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .6rem 1rem;
  border-radius: 14px 14px 14px 2px;
  font-size: .9rem;
  color: var(--smoke);
  margin-bottom: 1.4rem;
  max-width: 340px;
  transition: opacity .25s ease;
}
.hero__bubble--cta{
  cursor: pointer;
  border-color: var(--ember);
  color: var(--ember);
  box-shadow: 0 0 0 1px var(--ember), 0 8px 24px -8px rgba(229,138,44,0.5);
}
.hero__bubble--cta:hover{ background: var(--ember); color: #191008; }
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  color: var(--gold);
  margin-bottom: 1.1rem;
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9);
}
.hero__title::selection{ background: var(--ember); color: #000; }
.hero__subtitle{
  color: var(--ink);
  max-width: 42ch;
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 6px 22px rgba(0,0,0,0.85);
}
.hero__actions{ display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 900px){
  .hero{ min-height: 100vh; align-items: flex-end; }
  .hero__bg-mascot{ object-position: 68% 22%; }
  .hero__scrim{
    background:
      linear-gradient(0deg, var(--base) 0%, rgba(11,12,13,0.85) 38%, rgba(11,12,13,0.25) 70%, transparent 100%);
  }
  .hero__content{ max-width: 100%; padding-bottom: 3rem; }
}

/* Telas curtas (barra de navegador grande, prévias embutidas, celulares pequenos):
   reduz o bloco de texto pra imagem não ficar totalmente coberta. */
@media (max-width: 900px) and (max-height: 720px){
  .hero__subtitle{ display: none; }
  .hero__title{ font-size: clamp(1.7rem, 6.5vw, 2.3rem); margin-bottom: .5rem; }
  .hero__kicker{ margin-bottom: .3rem; }
  .hero__bubble{ padding: .45rem .75rem; font-size: .82rem; margin-bottom: .8rem; }
  .hero__actions{ margin-top: .3rem; }
  .hero__content{ padding-top: 1rem; padding-bottom: 1.6rem; }
}
@media (max-width: 900px) and (max-height: 560px){
  .hero__kicker{ display: none; }
  .hero__title{ font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* ===========================================================
   TICKER
   =========================================================== */
.ticker{
  position: relative; z-index: 5;
  background: var(--ember);
  color: #1a1005;
  overflow: hidden;
  white-space: nowrap;
  padding: .8rem 0;
  border-top: 1px solid rgba(0,0,0,.15);
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.ticker__track{
  display: inline-flex;
  gap: .8rem;
  font-weight: 700;
  font-size: .95rem;
  animation: scrollTicker 28s linear infinite;
}
.ticker__track span{ padding: 0 .2rem; }
@keyframes scrollTicker{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ===========================================================
   SOBRE / MASCOTE
   =========================================================== */
.sobre{
  position: relative; z-index: 5;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem clamp(1.2rem, 5vw, 3.5rem);
}
.sobre__mascot img{
  border-radius: 4px;
  filter: grayscale(0.15);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
}
.sobre__text p{ color: var(--muted); margin-bottom: 1rem; max-width: 56ch; }
.sobre__text h2{ margin-bottom: 1.2rem; }
@media (max-width: 860px){
  .sobre{ grid-template-columns: 1fr; }
}

/* ===========================================================
   SECTION HEAD (shared)
   =========================================================== */
.section-head{
  text-align: left;
  max-width: 60ch;
  margin-bottom: 2.5rem;
  padding: 0 clamp(1.2rem, 5vw, 3.5rem);
}
.section-head p{ color: var(--muted); margin-top: .5rem; }

/* ===========================================================
   PRODUTOS
   =========================================================== */
.produtos{ position: relative; z-index: 5; padding: 4rem 0; }

.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 0 clamp(1.2rem, 5vw, 3.5rem);
}

.categoria{ padding: 0 0 3.5rem; }
.categoria--espaco{ position: relative; z-index: 5; padding: 4rem 0; }
.categoria__head{ margin-bottom: 1.5rem; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding: 0 clamp(1.2rem, 5vw, 3.5rem); }
.categoria__head h3{ white-space: nowrap; flex: 0 0 auto; }
.categoria__head p{ color: var(--muted); font-size: .95rem; margin: 0; flex: 1 1 280px; min-width: 0; }

.galeria-wrap{
  position: relative;
  padding: 0 clamp(1.2rem, 5vw, 3.5rem);
}
.galeria{
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .6rem;
  scroll-padding-left: clamp(1.2rem, 5vw, 3.5rem);
  scrollbar-width: thin;
  scrollbar-color: var(--ember) transparent;
}
.galeria::-webkit-scrollbar{ height: 6px; }
.galeria::-webkit-scrollbar-track{ background: transparent; }
.galeria::-webkit-scrollbar-thumb{ background: var(--ember); border-radius: 3px; }

.produto{
  flex: 0 0 auto;
  width: min(72vw, 320px);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.produto:hover{ border-color: var(--ember); transform: translateY(-3px); }
.produto img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}
.produto figcaption{
  padding: .9rem 1rem 1.1rem;
  font-size: .95rem;
  color: var(--ink);
  font-weight: 500;
}
.produto--placeholder{
  width: min(72vw, 320px);
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
  padding: 1rem;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px);
}

.produto--logo-placeholder img{
  object-fit: contain;
  padding: 2.8rem 2.2rem;
  background: var(--surface-2);
}

.galeria__nav{
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11,12,13,0.85);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s ease, border-color .2s ease;
}
.galeria__nav:hover{ background: var(--ember); border-color: var(--ember); color: #191008; }
.galeria__nav--prev{ left: .3rem; }
.galeria__nav--next{ right: .3rem; }

@media (max-width: 700px){
  .galeria__nav{ display: none; }
}

/* ===========================================================
   BANNER PREMIUM
   =========================================================== */
.banner-premium{
  position: relative; z-index: 5;
  margin: 4rem clamp(1.2rem, 5vw, 3.5rem);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.banner-premium img{ width: 100%; display: block; }
.banner-premium__kicker{
  position: absolute;
  left: 50%; bottom: 5rem;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
  width: 100%;
  padding: 0 1.2rem;
}
.banner-premium .btn{
  position: absolute;
  left: 50%; bottom: 1.8rem;
  transform: translateX(-50%);
}
@media (max-width: 600px){
  .banner-premium__kicker{ position: static; transform: none; margin-top: 1rem; }
  .banner-premium .btn{ position: static; transform: none; display: block; margin: .8rem auto 1.2rem; width: fit-content; }
}

/* ===========================================================
   PROVAS SOCIAIS
   =========================================================== */
.provas{ position: relative; z-index: 5; padding: 4rem 0 5rem; }
.cards--reviews{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.review{
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  padding: 1.4rem;
  border-radius: 2px;
}
.review__stars{ color: var(--gold); letter-spacing: .1em; margin-bottom: .6rem; }
.review p{ color: var(--ink); font-size: .95rem; margin-bottom: .8rem; }
.review__source{ color: var(--muted); font-size: .8rem; }
.review--placeholder{
  border-left: 3px dashed var(--line);
  border-style: dashed;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .85rem; text-align: center;
  min-height: 120px;
}

/* ===========================================================
   LOCALIZAÇÃO
   =========================================================== */
.local{ position: relative; z-index: 5; padding: 4rem clamp(1.2rem, 5vw, 3.5rem) 5rem; }
.local__info{ max-width: 560px; }
.local__note{ color: var(--muted); margin: .8rem 0 1.6rem; }
.local__list{ margin-bottom: 1.6rem; display: grid; gap: 1rem; }
.local__list li{ color: var(--muted); font-size: .95rem; }
.local__list strong{ color: var(--ink); display: block; margin-bottom: .15rem; font-family: var(--display); letter-spacing: .03em; font-size: 1.05rem; }
.hours{ width: 100%; margin-bottom: 1.8rem; border-collapse: collapse; }
.hours td{ padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.hours tr td:last-child{ text-align: right; color: var(--ink); }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer{
  position: relative; z-index: 5;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.footer__logo{ width: 64px; height: 64px; object-fit: contain; margin: 0 auto 1rem; }
.footer__links{ display: flex; justify-content: center; gap: 1.4rem; margin-top: .8rem; }
.footer__links a:hover{ color: var(--ember); }

/* ===========================================================
   WHATSAPP FLUTUANTE
   =========================================================== */
.wa-float{
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 50;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(37,211,102,0.6);
}
.wa-float::before{
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing{
  0%{ transform: scale(1); opacity: .7; }
  100%{ transform: scale(1.8); opacity: 0; }
}

/* ===========================================================
   ACCESSIBILITY: reduced motion
   =========================================================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .smoke, .ember-particle, .ticker__track, .hero__mascot img, .wa-float::before{
    animation: none !important;
  }
}
