/* =========================================================
   DESIGN TOKENS
   Paleta inspirada nos próprios produtos: tecido sage-cinza
   da base box, branco do colchão, contraste em tinta noturna
   e detalhe em argila (cor quente, usada com moderação).
========================================================= */
:root{
  --ink:        #161A1F;   /* fundo escuro principal */
  --ink-soft:   #1F252C;   /* cards sobre fundo escuro */
  --cream:      #F6F2EA;   /* fundo claro / texto sobre escuro */
  --cream-dim:  #DCD5C7;
  --sage:       #98A593;   /* tom do tecido da base box */
  --sage-dark:  #5F6B5C;
  --clay:       #C17A52;   /* acento quente, uso pontual (CTA) */
  --clay-dark:  #9C5E3D;
  --brand-red:  #E21C21;   /* faixa do header — tom exato da referência */
  --brand-red-dark: #B81418;
  --line:       rgba(246,242,234,0.12);
  --line-dark:  rgba(22,26,31,0.10);

  --font-display: 'Fraunces', serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius: 14px;
  --container: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
.container{
  width:100%;
  max-width: var(--container);
  margin:0 auto;
  padding: 0 24px;
}
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .4em;
}
.eyebrow{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn:focus-visible{ outline: 2px solid var(--clay); outline-offset: 3px; }
.btn-primary{ background: var(--clay); color: var(--cream); }
.btn-whatsapp{ background: #2EAD58; color: #fff; }
.btn-whatsapp:hover{ background: #25933F; }
.btn-primary:hover{ background: var(--clay-dark); }
.btn-ghost{ background: transparent; border-color: var(--line-dark); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--ink); }
.btn-ghost-light{ background: transparent; border-color: var(--line); color: var(--cream); }
.btn-ghost-light:hover{ border-color: var(--cream); }
.btn-sm{ padding: 9px 16px; font-size: .82rem; }

/* topstitch divider — motivo recorrente que remete à costura
   acolchoada (quilted) dos colchões */
.topstitch{
  height: 14px;
  background-image: radial-gradient(circle, var(--line-dark) 1.4px, transparent 1.6px);
  background-size: 22px 14px;
  background-position: center;
  opacity: .9;
}
.topstitch.on-dark{ background-image: radial-gradient(circle, var(--line) 1.4px, transparent 1.6px); }

/* =========================================================
   HEADER
========================================================= */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: var(--brand-red);
  border-bottom: 1px solid var(--brand-red-dark);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 24px;
}
.logo-text{
  display:flex;
  flex-direction:column;
  line-height: 1;
  color: var(--cream);
  font-family: 'Baloo 2', sans-serif;
}
.logo-text .logo-small{
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--cream);
  opacity: .95;
}
.logo-text .logo-big{
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--cream);
  margin-top: -2px;
}
footer .logo-text{ color: var(--cream); }
.main-nav ul{ display:flex; gap: 24px; }
.main-nav a{
  display:flex; align-items:center; gap:4px;
  color: rgba(246,242,234,.85);
  font-size: .88rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover, .main-nav a.active{ color: var(--cream); border-color: var(--cream); }
.main-nav .caret{ font-size: .65rem; opacity: .8; transition: transform .2s ease; }

/* =========================================================
   MEGA MENU (Colchões / Base Box)
========================================================= */
.has-mega{ position: relative; }
.mega-panel{
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 28px 56px -20px rgba(0,0,0,.45);
  padding: 26px 28px;
  display: flex;
  gap: 30px;
  min-width: 660px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 80;
}
@media (min-width: 721px){
  .has-mega:hover .mega-panel,
  .has-mega:focus-within .mega-panel{
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .has-mega:hover > a .caret{ transform: rotate(180deg); }
}
.mega-col h4{
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--clay-dark);
}
.mega-col h4 a{ color: inherit; border:none; padding:0; }
.mega-col ul{ display:flex; flex-direction: column; gap: 7px; }
.mega-col li a{
  color: var(--ink);
  font-size: .85rem;
  font-weight: 400;
  border: none;
  padding: 2px 0;
  opacity: .82;
}
.mega-col li a:hover{ opacity: 1; color: var(--clay-dark); border:none; }
.mega-cta{
  margin-left: auto;
  align-self: center;
  text-align: right;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sage-dark);
  border: none !important;
  line-height: 1.3;
  white-space: nowrap;
}
.mega-cta span{ font-weight: 400; font-size: .82rem; color: var(--ink); opacity: .7; }
.mega-cta:hover{ color: var(--clay-dark); border:none; }
.header-cta{ display:flex; align-items:center; gap:14px; }
.header-phone{
  text-align:right;
  display:flex; flex-direction:column;
  font-family: var(--font-mono);
}
.header-phone small{ color: rgba(246,242,234,.75); font-size:.66rem; letter-spacing:.08em; text-transform:uppercase; }
.header-phone strong{ color: var(--cream); font-size: .9rem; }
.nav-toggle{ display:none; background:none; border:none; color: var(--cream); font-size: 1.6rem; cursor:pointer; }
.header-cta .btn-primary{ background: var(--cream); color: var(--brand-red); }
.header-cta .btn-primary:hover{ background: #fff; }

/* =========================================================
   HERO
========================================================= */
.hero{
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 0;
  overflow: hidden;
}
.hero-bg{
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero-overlay{
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(22,26,31,.94) 0%, rgba(22,26,31,.85) 32%, rgba(22,26,31,.6) 58%, rgba(22,26,31,.4) 100%);
}
.hero-grid{
  position: relative;
  z-index: 2;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items:center;
  padding-bottom: 56px;
}
.hero h1{
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--cream);
}
.hero h1 em{ font-style: italic; color: var(--sage); }
.hero p{
  font-size: 1.05rem;
  color: var(--cream-dim);
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-actions{ display:flex; gap: 14px; flex-wrap:wrap; margin-bottom: 38px; }
.hero-specs{ display:flex; gap: 32px; }
.hero-specs div{ font-family: var(--font-mono); }
.hero-specs strong{ display:block; font-size: 1.3rem; color: var(--sage); }
.hero-specs span{ font-size: .72rem; color: var(--cream-dim); letter-spacing:.05em; text-transform:uppercase; }

/* SVG ilustração — corte transversal do colchão */
.hero-art{ position:relative; }
.hero-art svg{ width:100%; height:auto; }

/* =========================================================
   CATEGORIAS (pílulas de navegação rápida)
========================================================= */
.cat-bar{
  background: var(--sage);
}
.cat-bar .container{
  display:flex; flex-wrap:wrap; gap: 10px;
  padding-top: 18px; padding-bottom: 18px;
}
.cat-pill{
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(246,242,234,.55);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(22,26,31,.12);
  transition: background .2s ease;
}
.cat-pill:hover{ background: var(--cream); }

/* =========================================================
   BANNER PROMOCIONAL (foto de ambiente em destaque)
========================================================= */
.promo-banner{
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.promo-banner-bg{
  position: absolute; inset: 0;
}
.promo-banner-bg img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 65% 75%;
}
.promo-banner-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,26,31,.88) 0%, rgba(22,26,31,.62) 45%, rgba(22,26,31,.18) 80%);
}
.promo-banner-content{
  position: relative;
  z-index: 2;
  max-width: 540px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.promo-eyebrow{ color: var(--sage); }
.promo-banner-content h2{
  color: var(--cream);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}
.promo-banner-content h2 em{ font-style: italic; color: var(--sage); }
.promo-banner-content p{
  color: var(--cream-dim);
  font-size: 1rem;
  max-width: 420px;
  margin-bottom: 26px;
}
@media (max-width: 720px){
  .promo-banner{ min-height: 340px; }
  .promo-banner-overlay{
    background: linear-gradient(180deg, rgba(22,26,31,.4) 0%, rgba(22,26,31,.92) 75%);
  }
  .promo-banner-content{ max-width: 100%; padding-top: 40px; padding-bottom: 40px; }
}

/* =========================================================
   SEÇÃO: categorias de produto (cards)
========================================================= */
.section{ padding: 84px 0; }
.section-head{ max-width: 620px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p{ color: var(--sage-dark); }

.cat-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  aspect-ratio: 3/4;
  background: var(--ink-soft);
  color: var(--cream);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding: 20px;
  border: 1px solid var(--line-dark);
}
.cat-card::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.72) 100%);
  z-index:1;
}
.cat-card img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  z-index:0;
}
.cat-card .cat-label{ position:relative; z-index:2; }
.cat-card .eyebrow{ position:relative; z-index:2; }
.cat-card h3{ color: var(--cream); font-size: 1.2rem; margin-bottom: 2px; }
.cat-card span.count{ font-family: var(--font-mono); font-size: .75rem; color: var(--cream-dim); }

/* =========================================================
   PRODUTOS EM DESTAQUE
========================================================= */
.product-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card{
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow:hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover{ transform: translateY(-4px); box-shadow: 0 18px 32px -18px rgba(22,26,31,.25); }
.product-card .thumb{ aspect-ratio: 4/3; overflow:hidden; background: var(--cream-dim); }
.product-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.product-body{ padding: 18px 18px 20px; }
.product-sku{ font-family: var(--font-mono); font-size: .68rem; color: var(--sage-dark); letter-spacing:.04em; }
.product-body h3{ font-size: 1.05rem; margin: 4px 0 8px; }
.product-meta{ display:flex; justify-content:space-between; align-items:center; margin-top: 14px; }
.product-price strong{ font-size: 1.15rem; }
.product-price small{ display:block; font-family: var(--font-mono); font-size: .68rem; color: var(--sage-dark); }
.icon-wa{
  width: 38px; height:38px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background: #2EAD58; color:#fff;
  transition: background .2s ease, transform .2s ease;
}
.icon-wa:hover{ background: #25933F; transform: translateY(-2px); }

/* =========================================================
   POR QUE COMPRAR — ficha técnica
========================================================= */
.specsheet{
  background: var(--ink);
  color: var(--cream);
}
.specsheet .section-head p{ color: var(--cream-dim); }
.spec-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
}
.spec-item{
  background: var(--ink);
  padding: 28px 22px;
}
.spec-item strong{
  display:block;
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--sage);
  margin-bottom: 6px;
}
.spec-item span{ font-size: .85rem; color: var(--cream-dim); }

/* =========================================================
   LOJAS
========================================================= */
.store-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.store-card{
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  display:flex;
  flex-direction:column;
}
.store-photo{ aspect-ratio: 4/5; overflow:hidden; background: var(--sage-dark); }
.store-photo img{
  width:100%; height:100%; object-fit:cover;
  object-position: center;
  filter: brightness(1.1) saturate(1.12) contrast(1.04);
}
.store-info{
  background: var(--sage-dark);
  color: var(--cream);
  padding: 18px 20px 20px;
  flex:1;
  display:flex;
  flex-direction:column;
}
.store-info .eyebrow{ color: var(--cream); opacity:.65; }
.store-info h3{ font-size: 1.1rem; margin: 2px 0 10px; color: var(--cream); }
.store-line{ font-size: .82rem; line-height:1.5; margin: 0 0 8px; color: var(--cream-dim); }
.store-line strong{ color: var(--cream); font-weight:600; display:block; font-size:.72rem; text-transform:uppercase; letter-spacing:.04em; margin-bottom:1px; }
.store-actions{ display:flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.store-actions a{
  flex:1;
  display:flex; align-items:center; justify-content:center; gap:6px;
  padding: 9px 0;
  border-radius: 999px;
  font-size: .76rem;
  font-weight:600;
}
.store-actions .wa{ background: #2EAD58; color:#fff; }
.store-actions .ig{
  background: linear-gradient(135deg,#f9ce34,#ee2a7b,#6228d7);
  color:#fff;
}

/* =========================================================
   CTA FAIXA FINAL
========================================================= */
.cta-strip{
  background: var(--clay);
  color: var(--cream);
  padding: 56px 0;
  text-align:center;
}
.cta-strip h2{ color: var(--cream); margin-bottom: 10px; }
.cta-strip p{ color: rgba(246,242,234,.85); margin-bottom: 26px; }

/* =========================================================
   FOOTER
========================================================= */
footer{ background: var(--ink); color: var(--cream-dim); padding: 48px 0 24px; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid var(--line);
}
.footer-grid h4{ color: var(--cream); font-size: .95rem; margin-bottom: 14px; }
.footer-grid ul li{ margin-bottom: 8px; font-size: .87rem; }
.footer-grid ul li a:hover{ color: var(--cream); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 20px; font-size: .78rem; font-family: var(--font-mono);
  flex-wrap:wrap; gap: 10px;
}

/* =========================================================
   WHATSAPP BOTÃO FLUTUANTE
========================================================= */
.wa-float{
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 999px;
  background: #2EAD58; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 12px 24px -8px rgba(0,0,0,.4);
  transition: transform .2s ease;
}
.wa-float:hover{ transform: scale(1.07); }

/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-overlay{
    background: linear-gradient(180deg, rgba(22,26,31,.55) 0%, rgba(22,26,31,.92) 55%, rgba(22,26,31,.97) 100%);
  }
  .cat-grid{ grid-template-columns: repeat(2,1fr); }
  .product-grid{ grid-template-columns: repeat(2,1fr); }
  .spec-grid{ grid-template-columns: repeat(2,1fr); }
  .store-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .nav-toggle{ display:block; }
  .main-nav{
    position:absolute; top:100%; left:0; right:0;
    background: var(--brand-red);
    border-bottom: 1px solid var(--brand-red-dark);
    display:none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .main-nav.open{ display:block; }
  .main-nav ul{ flex-direction:column; gap:0; padding: 8px 24px 18px; }
  .main-nav a{ display:flex; padding: 12px 0; border-bottom: 1px solid rgba(246,242,234,.15); }
  .header-phone{ display:none; }

  /* centraliza a logo de verdade no header mobile, mesmo com o
     "Falar agora" + ☰ ocupando largura diferente do lado direito */
  .header-row{
    display:grid;
    grid-template-columns: 1fr auto 1fr;
    align-items:center;
  }
  .logo-text{
    grid-column: 2;
    align-items:center;
    text-align:center;
  }
  .header-cta{
    grid-column: 3;
    justify-self:end;
  }
  .has-mega .mega-panel{
    position: static;
    transform: none;
    opacity: 1; visibility: visible;
    display: none;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border-radius: 10px;
    margin: 6px 0 14px;
    padding: 16px 18px;
  }
  .has-mega.open .mega-panel{ display: flex; }
  .has-mega.open > a .caret{ transform: rotate(180deg); }
  .mega-cta{ margin-left: 0; text-align: left; }
  .cat-grid, .product-grid, .spec-grid, .store-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}