/* ============================================
   Sofá & Sofá — Mega Feirão · Landing Page
   Estilo editorial premium (dark)
   ============================================ */

:root {
  --orange:      #E97725;
  --orange-dark: #D2641A;
  --black:       #141414;
  --ink:         #0E0E0E;
  --graphite:    #2A2A2A;
  --cream:       #F4EDE2;
  --beige:       #FBF7F1;
  --white:       #FFFFFF;
  --text:        #1C1C1C;
  --text-soft:   #5A5550;
  --wpp:         #25D366;
  --wpp-dark:    #1EBE5B;

  --maxw: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.18), 0 8px 22px rgba(0,0,0,.22);
  --shadow: 0 2px 4px rgba(0,0,0,.2), 0 18px 40px rgba(0,0,0,.32);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
.center { text-align: center; }

/* ---------- Tipografia utilitária ---------- */
.hl { color: var(--orange); }
.hl-text {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.hl-text::after {
  content: "";
  position: absolute;
  left: 0; bottom: -.06em;
  width: 100%; height: .10em;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease) .25s;
}
.reveal.visible .hl-text::after { transform: scaleX(1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); opacity: .6; border-radius: 2px; }

/* Pill vazado */
.badge-outline {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(11px, 1.35vw, 14px);
  letter-spacing: .04em;
  color: var(--white);
  background: rgba(255,255,255,.05);
  border: 1.5px solid var(--orange);
  border-radius: var(--pill);
  padding: 12px 26px;
  box-shadow: 0 0 0 4px rgba(233,119,37,.06), 0 8px 22px rgba(0,0,0,.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--pill);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  text-align: center;
  line-height: 1.1;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 60%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg);
  transition: left .6s var(--ease);
  z-index: 1; pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn > * { position: relative; z-index: 2; }
.btn-glow { animation: cta-pulse 2.6s ease-in-out infinite; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(37,211,102,.40), 0 0 0 0 rgba(37,211,102,.40); }
  50%      { box-shadow: 0 14px 32px rgba(37,211,102,.48), 0 0 0 14px rgba(37,211,102,0); }
}
.btn-wpp {
  background: var(--wpp); color: var(--white);
  padding: 16px 30px; font-size: 16px;
  box-shadow: 0 12px 28px rgba(37,211,102,.40);
}
.btn-wpp:hover { background: var(--wpp-dark); transform: translateY(-3px); box-shadow: 0 18px 36px rgba(37,211,102,.5); }
.btn-lg { padding: 18px 38px; font-size: 18px; }
.wpp-ico { display: inline-flex; }

/* ============================================
   HEADER (fixo, transparente sobre o hero)
   ============================================ */
#header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  padding: 15px 0;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
#header.scrolled {
  background: rgba(14,14,14,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.header-logo-link { display: inline-flex; line-height: 0; }
.header-logo { height: 46px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a:not(.btn) {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--white); text-decoration: none;
  position: relative; transition: color .25s var(--ease);
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--orange); }
.nav > a:not(.btn):hover::after { transform: scaleX(1); }
.btn-nav { padding: 11px 22px; font-size: 14px; box-shadow: 0 8px 18px rgba(37,211,102,.32); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 40px; background: transparent; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

section[id] { scroll-margin-top: 40px; }

/* ============================================
   DOBRA 1 — HERO (2 colunas: imagem | texto)
   ============================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 64px;
  background:
    radial-gradient(ellipse 60% 70% at 22% 45%, rgba(233,119,37,.16), transparent 62%),
    var(--ink);
}
/* brilho suave de apoio */
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 28% 42%, rgba(233,119,37,.12), transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "head" "figure" "cta";
  gap: 26px;
  align-items: center;
  width: 100%;
}
/* coluna da imagem */
.hero-figure { grid-area: figure; width: 100%; }
.hero-figure img {
  width: 100%;
  height: auto;
  /* sombra que segue o recorte do sofá (PNG transparente) */
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.55));
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* colunas de texto */
.hero-head, .hero-cta {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero-head { grid-area: head; }
.hero-cta  { grid-area: cta; }
.hero-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(40px, 6.5vw, 66px);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 20px 0 16px;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.hero-sub {
  max-width: 480px;
  font-size: clamp(16px, 1.7vw, 19px);
  color: #E9E4DC;
  margin-bottom: 28px;
}
.hero-sub strong { color: var(--white); }
/* ---- Contador ---- */
.countdown {
  display: inline-flex; align-items: flex-start; gap: 8px;
  margin-bottom: 30px; padding: 14px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cd-item { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.cd-num { font-family: 'Archivo Black', sans-serif; font-size: 30px; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.cd-label { margin-top: 6px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #C7C1B8; }
.cd-sep { font-family: 'Archivo Black', sans-serif; font-size: 26px; line-height: 1; color: var(--orange); opacity: .7; animation: cd-blink 1s steps(1) infinite; }
@keyframes cd-blink { 50% { opacity: .2; } }

/* ============================================
   DOBRA 2 — 2 CARDS
   ============================================ */
/* ============================================
   VITRINE — carrossel infinito (marquee)
   ============================================ */
.marquee-section {
  background: var(--ink);
  padding: 10px 0;
  overflow: hidden;
}
.marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 80s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.m-item {
  flex: 0 0 auto;
  margin-right: 18px;
  width: 240px;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--orange);
  box-shadow: 0 0 0 1px rgba(233,119,37,.35), 0 10px 26px rgba(233,119,37,.22);
}
.m-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.m-item:hover img { transform: scale(1.1); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   FAIXA — Ninguém vende mais barato (ticker)
   ============================================ */
.ticker-section {
  background: var(--orange);
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.ticker { width: 100%; overflow: hidden; }
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 13px 0;
  animation: marquee 90s linear infinite reverse;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.t-item {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(15px, 2vw, 22px);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #fff;
  white-space: nowrap;
  padding: 0 22px;
}
.t-dot { color: rgba(0,0,0,.4); font-size: 12px; }

#motivos { background: var(--ink); padding: 52px 0 96px; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.04; letter-spacing: -.01em; text-transform: uppercase;
  margin: 16px 0 0; text-wrap: balance;
}

.cards { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 44px; }
.fcard {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; align-items: stretch;
  background-color: #1c1c1c;
  /* imagem (via --card-img inline) + fallback em gradiente */
  background-image: var(--card-img, none), radial-gradient(circle at 70% 25%, rgba(233,119,37,.22), transparent 55%), linear-gradient(160deg, #2a2018, #141414);
  background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.fcard:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0,0,0,.45); }
.fcard-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,8,8,.94) 0%, rgba(8,8,8,.55) 42%, rgba(8,8,8,.12) 78%);
}
.fcard-body { position: relative; z-index: 2; padding: 34px 32px; }
.fcard-eyebrow {
  display: block;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 8px;
}
.fcard-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em;
  margin-bottom: 12px;
}
.fcard-desc { font-size: 16px; color: #DAD5CD; max-width: 440px; }

/* ============================================
   DOBRA 3 — MAPA + TEXTO + CTA
   ============================================ */
#local {
  background: linear-gradient(180deg, var(--ink), #1a1714);
  padding: 52px 0 96px;
}
.local-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.local-text { display: flex; flex-direction: column; align-items: flex-start; }
.local-text .section-title { text-align: left; margin: 16px 0 20px; }
.local-copy { font-size: 17px; color: #D7D2CA; margin-bottom: 16px; max-width: 540px; }
.local-copy strong { color: var(--white); }
.local-text .btn { margin-top: 10px; }

.local-map { width: 100%; }
.map-frame {
  width: 100%; height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 100%; display: block; }
.map-label {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 14px; color: #C7C1B8;
  margin-top: 16px; text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
footer { background: #0a0a0a; padding: 34px 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-bar { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.footer-copy { font-size: 13px; color: #C9C3BB; }
.footer-credit { font-size: 13px; color: #8C877F; }
.footer-credit a { color: var(--orange); font-weight: 600; text-decoration: none; transition: color .25s var(--ease); }
.footer-credit a:hover { color: var(--white); }

/* ============================================
   REVEAL
   ============================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 767px) {
  .btn-lg { width: 100%; max-width: 380px; padding-left: 20px; padding-right: 20px; }
  .btn { white-space: normal; }

  .countdown { gap: 6px; padding: 12px 12px; }
  .cd-item { min-width: 40px; }
  .cd-num { font-size: 26px; }
  .cd-sep { font-size: 22px; }

  /* mobile: sem menu, logo centralizado */
  .nav-toggle { display: none; }
  .nav { display: none; }
  .header-inner { justify-content: center; }

  .fcard-body { padding: 26px 22px; }

  .m-item { margin-right: 14px; width: 165px; height: 165px; border-radius: 13px; border-width: 2px; }
}

@media (min-width: 768px) {
  .container { padding: 0 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .local-grid { grid-template-columns: 1.05fr 1fr; gap: 54px; }
  .map-frame { height: 420px; }
}

/* Hero em 2 colunas: imagem | (cabeçalho + cronômetro) */
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    grid-template-areas:
      "figure head"
      "figure cta";
    column-gap: 56px;
    row-gap: 0;
  }
  .hero-head, .hero-cta { align-items: flex-start; text-align: left; }
}

/* ============================================
   ACESSIBILIDADE — reduz movimento
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hl-text::after { transform: scaleX(1) !important; }
  .hero-figure img { animation: none !important; }
}
