/* Casa das Portas: tokens (regras do DESIGN.md, cores da marca preto + amarelo) */
:root {
  --bg: #0E0E0F;
  --surface: #161617;
  --surface-2: #1E1E20;
  --surface-3: #28282B;
  --line: #29292C;
  --line-strong: #3A3A3F;
  --ink: #F4F4F2;
  --ink-2: #B4B4AE;
  --ink-3: #8E8E88;
  --accent: #F5B800;          /* único acento: o amarelo do cartão */
  --accent-ink: #141414;      /* texto sobre o amarelo */
  --accent-soft: rgba(245, 184, 0, .12);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r-6: 6px; --r-10: 10px; --r-14: 14px;
  --sombra: 0 8px 24px rgba(0, 0, 0, .45);
  --pad-x: 32px;
  --topo-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img, svg, iframe { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.pular { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: var(--r-6); z-index: 100; }
.pular:focus { left: 8px; }

/* ícones */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { fill: currentColor; stroke: none; }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-6);
  font: 500 14px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .14s var(--ease), border-color .14s var(--ease), color .14s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primario { background: var(--accent); color: var(--accent-ink); }
.btn--primario:hover { background: #FFC81F; }
.btn--linha { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--linha:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn--g { min-height: 52px; padding: 0 22px; font-size: 15px; }

.link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; font-weight: 500; min-height: 44px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 15, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.topo.rolou { border-bottom-color: var(--line); }
.topo__in {
  max-width: 1200px; margin: 0 auto; height: var(--topo-h);
  padding: 0 var(--pad-x); display: flex; align-items: center; gap: 32px;
}
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marca__logo { width: 46px; height: auto; }
.marca__logo path, .marca__logo rect { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.l-branca { stroke: var(--ink); stroke-width: 7; }
.l-amarela { stroke: var(--accent); stroke-width: 7; }
.l-amarela.fina { stroke-width: 4.5; }
.marca__txt { display: flex; flex-direction: column; line-height: 1.15; }
.marca__nome { font-size: 17px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
.marca__sub { font-size: 11px; color: var(--ink-3); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; color: var(--ink-2); font-size: 14px;
  padding: 12px 12px; border-radius: var(--r-6); transition: color .14s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 0;
  border-bottom: 2px dashed var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover, .nav a.ativo { color: var(--ink); }
.nav a:hover::after, .nav a.ativo::after { transform: scaleX(1); }

.menu-btn { display: none; }
.menu-cel { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__in {
  max-width: 1200px; margin: 0 auto; padding: 72px var(--pad-x) 56px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero__local { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; margin-bottom: 20px; }
.hero__local .ic { color: var(--accent); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.025em; font-weight: 700; max-width: 14ch; }
.hero__lead { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.hero__acoes { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* arte: telhado + fachada com porta que abre */
.hero__arte { position: relative; width: 100%; max-width: 520px; justify-self: end; padding-bottom: 8px; }
.telhado { width: 100%; height: auto; overflow: visible; }
.telhado path { fill: none; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: desenha 1.1s var(--ease) forwards; }
.t-branca { stroke: var(--ink); }
.t-amarela { stroke: var(--accent); animation-delay: .25s !important; }
@keyframes desenha { to { stroke-dashoffset: 0; } }

.fachada { display: flex; align-items: flex-end; justify-content: center; gap: 28px; margin-top: -4px; padding: 0 70px; }
.porta { position: relative; border: 2px dashed var(--accent); border-bottom: 0; border-radius: 3px 3px 0 0; }
.porta--lado { width: 62px; height: 124px; opacity: 0; animation: surge .5s var(--ease) .9s forwards; }
.porta--lado span { position: absolute; right: 9px; top: 54%; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.porta--centro { width: 132px; height: 200px; perspective: 900px; border-style: solid; border-color: var(--ink); border-width: 3px 3px 0; opacity: 0; animation: surge .5s var(--ease) .6s forwards; }
.porta__luz {
  position: absolute; inset: 0; background: var(--accent);
  display: flex; align-items: center; justify-content: flex-end; padding-right: 10px;
}
.porta__luz-txt { color: var(--accent-ink); font-weight: 700; font-size: 15px; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .01em; }
.porta__folha {
  position: absolute; inset: 0; background: #1B1B1D; border: 1px solid var(--line-strong);
  transform-origin: left center; transform: rotateY(0deg);
  animation: abre 1.1s var(--ease) 1.4s forwards;
  display: grid; grid-template-rows: 1fr 1fr .7fr; gap: 10px; padding: 14px;
  backface-visibility: hidden;
}
.almofada { display: block; border: 1px solid var(--line-strong); border-radius: 2px; }
.macaneta { position: absolute; right: 12px; top: 52%; width: 14px; height: 4px; border-radius: 2px; background: var(--accent); }
@keyframes abre { to { transform: rotateY(-62deg); } }
@keyframes surge { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chao { height: 3px; background: var(--ink); margin: 0 10px; border-radius: 2px; }

.fatos {
  list-style: none; margin: 0 auto; padding: 0 var(--pad-x) 48px; max-width: 1200px;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.fatos li { display: flex; flex-direction: column; gap: 2px; padding: 16px 24px; border-left: 1px solid var(--line); }
.fatos li:first-child { border-left: 0; padding-left: 0; }
.fatos strong { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.fatos span { font-size: 13px; color: var(--ink-3); }

/* ---------- seções ---------- */
.secao { padding: 96px 0; }
.secao--faixa { background: var(--surface); border-block: 1px solid var(--line); }
.secao__in { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }
.secao__cab { max-width: 640px; margin-bottom: 32px; }
.secao__cab h2, .loja h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.secao__cab p { margin-top: 12px; color: var(--ink-2); }

/* setores (filtro) */
.setores { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.setor {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: transparent; color: var(--ink-2); font: 500 14px/1 var(--font);
  border: 1px dashed var(--line-strong); border-radius: 999px; cursor: pointer;
  transition: color .14s var(--ease), border-color .14s var(--ease), background-color .14s var(--ease);
}
.setor:hover { color: var(--ink); border-color: var(--ink-3); }
.setor[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.setor .ic { width: 16px; height: 16px; }

/* vitrine */
.vitrine {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
  transition: opacity .25s var(--ease);
}
.vitrine.trocando { opacity: 0; }
.bloco {
  grid-column: span 4; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14);
  padding: 20px; display: flex; flex-direction: column; gap: 16px; min-height: 260px;
  transition: border-color .15s var(--ease);
  animation: entra .35s var(--ease) both;
}
.bloco:nth-child(1) { grid-column: span 8; }
.bloco::before {
  content: ""; position: absolute; inset: 8px; border: 1px dashed var(--accent);
  border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.bloco:hover { border-color: var(--line-strong); }
.bloco:hover::before { opacity: .55; }
.bloco__topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bloco h3 { font-size: 20px; letter-spacing: -.01em; }
.bloco__desc { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.bloco__arte { width: 72px; height: 72px; flex: none; color: var(--accent); }
.bloco__arte svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bloco__arte svg *, .setor svg * { vector-effect: non-scaling-stroke; }
.bloco__arte svg { stroke-width: 2; }
.bloco:nth-child(1) .bloco__arte { width: 112px; height: 112px; }
.bloco ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.bloco:nth-child(1) ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.bloco li { font-size: 14px; color: var(--ink-2); padding: 8px 0; border-top: 1px solid var(--line); }
.bloco__cta { margin-top: auto; align-self: flex-start; }

/* vitrine filtrada: um setor só, com lista de produtos */
.vitrine--um .bloco { grid-column: 1 / -1; min-height: 0; }
.vitrine--um .bloco ul { grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
.vitrine--um .bloco__arte { width: 112px; height: 112px; }

@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.nota { margin-top: 20px; font-size: 12px; color: var(--ink-3); }

/* a loja */
.loja { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.loja__txt p { color: var(--ink-2); margin-top: 16px; max-width: 58ch; }
.loja__txt .link { margin-top: 16px; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.passos li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px dashed var(--line-strong); }
.passos li:last-child { border-bottom: 1px dashed var(--line-strong); }
.passos__n {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 15px;
}
.passos h3 { font-size: 16px; }
.passos p { color: var(--ink-3); font-size: 14px; margin-top: 2px; }

/* como chegar */
.chegar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14); padding: 20px; }
.abas { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 10px; margin-bottom: 20px; }
.abas button {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--ink-2); font: 500 14px/1 var(--font);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.abas button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.abas button:not([aria-selected="true"]):hover { color: var(--ink); }
.chegar__grade { display: grid; grid-template-columns: 340px 1fr; gap: 24px; transition: opacity .25s var(--ease); }
.chegar__grade.trocando { opacity: 0; }
.chegar__info h3 { font-size: 20px; }
.chegar__end { margin-top: 8px; color: var(--ink-2); }
.chegar__acoes { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.chegar__dados { margin: 24px 0 0; display: grid; gap: 0; }
.chegar__dados div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.chegar__dados dt { color: var(--ink-3); }
.chegar__dados dd { margin: 0; text-align: right; }
.chegar__dados a { color: var(--accent); text-decoration: none; }
.mapa { position: relative; border-radius: var(--r-10); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--surface-2); }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }

/* rodapé */
.rodape { border-top: 1px solid var(--line); padding: 56px 0 24px; }
.rodape__in { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); display: grid; grid-template-columns: 1.3fr 1.2fr 1fr .8fr; gap: 32px; }
.rodape__marca { display: flex; gap: 12px; align-items: flex-start; }
.rodape__marca p { font-size: 14px; color: var(--ink-3); }
.rodape__marca strong { color: var(--ink); font-weight: 600; }
.rodape h4 { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-bottom: 12px; }
.rodape p { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--accent); }
.rodape__base {
  max-width: 1200px; margin: 40px auto 0; padding: 20px var(--pad-x) 0;
  display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--ink-3);
  border-top: 1px dashed var(--line-strong);
}

.barra-cel { display: none; }

/* revelar ao rolar */
.js .revela { opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.js .revela.visivel { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  :root { --pad-x: 24px; }
  .hero__in { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero__arte { justify-self: center; }
  .bloco, .bloco:nth-child(1) { grid-column: span 6; }
  .bloco:nth-child(1) ul { grid-template-columns: 1fr; }
  .vitrine--um .bloco ul { grid-template-columns: 1fr 1fr; }
  .loja { grid-template-columns: 1fr; gap: 32px; }
  .chegar__grade { grid-template-columns: 1fr; }
  .rodape__in { grid-template-columns: 1fr 1fr; }
}

/* ---------- celular ---------- */
@media (max-width: 767px) {
  :root { --pad-x: 16px; --topo-h: 60px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .nav, .topo__cta { display: none; }
  .marca__sub { display: none; }
  .marca__logo { width: 40px; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  }
  .menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-cel:not([hidden]) {
    display: flex; flex-direction: column; padding: 8px var(--pad-x) 20px;
    border-bottom: 1px solid var(--line); background: var(--bg);
  }
  .menu-cel a:not(.btn) { min-height: 48px; display: flex; align-items: center; text-decoration: none; font-size: 17px; border-bottom: 1px dashed var(--line-strong); }
  .menu-cel .btn { margin-top: 16px; }

  .hero__in { padding: 32px var(--pad-x) 32px; gap: 32px; }
  .hero__lead { font-size: 16px; }
  .hero__acoes .btn { flex: 1 1 100%; }
  .fachada { gap: 14px; padding: 0 44px; }
  .porta--lado { width: 40px; height: 84px; }
  .porta--centro { width: 92px; height: 140px; }
  .porta__luz-txt { font-size: 13px; }
  .fatos { grid-template-columns: 1fr; padding-bottom: 24px; }
  .fatos li { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0; flex-direction: row; justify-content: space-between; align-items: baseline; }
  .fatos strong { font-size: 18px; }

  .secao { padding: 64px 0; }
  .setores { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad-x) * -1); padding: 0 var(--pad-x) 4px; scrollbar-width: none; }
  .setores::-webkit-scrollbar { display: none; }
  .setor { flex: none; }
  .vitrine { gap: 12px; }
  .bloco, .bloco:nth-child(1) { grid-column: 1 / -1; min-height: 0; padding: 16px; }
  .bloco__arte, .bloco:nth-child(1) .bloco__arte, .vitrine--um .bloco__arte { width: 56px; height: 56px; }
  .vitrine--um .bloco ul { grid-template-columns: 1fr; }
  .bloco__cta { align-self: stretch; }

  .chegar { padding: 14px; }
  .abas { display: flex; }
  .abas button { flex: 1; min-height: 44px; padding: 0 8px; }
  .mapa { min-height: 300px; }
  .rodape__in { grid-template-columns: 1fr; gap: 24px; }
  .rodape__base { flex-direction: column; }

  .barra-cel {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(22, 22, 23, .78); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  }
  .barra-cel .btn { flex: 1; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .barra-cel { background: var(--surface); }
}

/* movimento reduzido: só opacidade */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-property: opacity !important; }
  .js .revela { transform: none; }
  .porta__folha { transform: rotateY(-62deg); }
  .bloco { animation: none; }
}
