/* Za Decore — cores tiradas do logo: preto do bloco, coral do "a", branco da quina.
   Ideia: o site montado como um móvel planejado. A galeria é um armário:
   cada foto é uma porta, com a mesma fresta fina entre elas. */
@font-face {
  font-family: "Archivo";
  src: url("../fontes/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  --preto: #221A1F;
  --coral: #D9605C;
  --coral-escuro: #A23B36;
  --branco: #FBFAF8;
  --fendi: #EFE8E2;
  --texto-2: #5A5156;
  --verde-whats: #25D366;
  --fresta: 6px;
  --lateral: 16px;
  --largura: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--branco);
  color: var(--preto);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--coral-escuro); }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pular {
  position: absolute; left: 8px; top: -60px; z-index: 40;
  background: var(--preto); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.pular:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--coral-escuro); outline-offset: 3px; }
.trabalhos :focus-visible, .rodape :focus-visible, .vitrine :focus-visible { outline-color: #fff; }

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid var(--preto);
  font: inherit; font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.botao svg { width: 22px; height: 22px; flex: none; }
.botao:active { transform: scale(.97); }
.botao-whats { background: var(--preto); color: #fff; }
.botao-whats svg { color: var(--verde-whats); }
.botao-whats:hover { background: #000; }
.botao-linha { background: transparent; color: var(--preto); }
.botao-linha:hover { background: rgba(34, 26, 31, .07); }

/* Topo: faixa coral, o fundo natural do logo, onde a quina branca aparece */
.topo-faixa { background: var(--coral); }
.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) var(--lateral) 14px;
  max-width: calc(var(--largura) + 2 * var(--lateral)); margin: 0 auto;
}
.logo { width: 148px; height: auto; }
.topo-whats {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 16px;
  border: 2px solid var(--preto); border-radius: 999px;
  color: var(--preto); font-weight: 700; font-size: .95rem; text-decoration: none;
}
.topo-whats { background: var(--preto); color: #fff; }
.topo-whats svg { width: 20px; height: 20px; color: var(--verde-whats); }
.topo-whats:hover { background: #000; }

/* Abertura: a foto mais quente primeiro, depois o que a Za faz */
.abertura-foto img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 40%; }
.abertura-texto { padding: 28px var(--lateral) 48px; }
.abertura h1 {
  font-size: clamp(2.1rem, 8.6vw, 4.1rem);
  font-weight: 760;
  font-stretch: 104%;
  max-width: 15ch;
}
.chamada { margin-top: 16px; font-size: 1.1rem; color: var(--texto-2); max-width: 40ch; }
.botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.botoes .botao { flex: 1 1 260px; }

/* O armário */
.trabalhos { background: var(--preto); color: #fff; padding: 52px 0 var(--fresta); }
.trabalhos-topo { padding: 0 var(--lateral) 24px; max-width: calc(var(--largura) + 2 * var(--lateral)); margin: 0 auto; }
.trabalhos h2 { font-size: clamp(1.9rem, 7.4vw, 3.1rem); font-weight: 760; font-stretch: 104%; }
.trabalhos-topo p { margin-top: 8px; color: #CFC6C9; }

.armario {
  --colunas: 2;
  --cel: calc((100vw - (var(--colunas) + 1) * var(--fresta)) / var(--colunas));
  display: grid;
  grid-template-columns: repeat(var(--colunas), 1fr);
  grid-auto-rows: var(--cel);
  grid-auto-flow: dense;
  gap: var(--fresta);
  padding: 0 var(--fresta);
  max-width: calc(var(--largura) + 2 * var(--fresta));
  margin: 0 auto;
}
.p-granito { grid-column: span 2; grid-row: span 2; }
.p-pia { grid-row: span 2; }

.porta { position: relative; overflow: hidden; background: #2E2529; }
.abre {
  display: block; width: 100%; height: 100%; padding: 0; margin: 0;
  border: 0; background: none; color: inherit; font: inherit; cursor: zoom-in;
}
.abre picture, .abre img { width: 100%; height: 100%; }
.abre img { object-fit: cover; transition: transform .5s ease; }
.abre:hover img { transform: scale(1.035); }
.p-pia img { object-position: 50% 70%; }
.p-modulos img { object-position: 50% 60%; }
.etiqueta {
  position: absolute; left: 0; bottom: 0;
  padding: 7px 12px 7px 10px;
  background: var(--preto); color: #fff;
  font-size: .84rem; font-weight: 600; line-height: 1.2; text-align: left;
}
.abre:focus-visible { outline-offset: -5px; }

/* Orçamento: o único bloco coral do site, onde a conversa começa */
.orcamento { background: var(--coral); padding: 52px var(--lateral) 64px; }
.orcamento-dentro { max-width: 720px; margin: 0 auto; }
.quem { display: flex; align-items: center; gap: 14px; }
.quem img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--preto);
}
.quem p { line-height: 1.35; font-size: .98rem; }
.quem strong { display: block; font-size: 1.05rem; }
.orcamento h2 { margin-top: 28px; font-size: clamp(1.9rem, 7.4vw, 3rem); font-weight: 760; font-stretch: 104%; }
.orcamento-intro { margin-top: 12px; max-width: 44ch; }

.montador fieldset { border: 0; margin: 28px 0 0; padding: 0; min-width: 0; }
.montador legend { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 1.05rem; }
.opcoes { display: flex; flex-wrap: wrap; gap: 10px; }
.opcoes label { position: relative; }
.opcoes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcoes span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 46px; padding: 10px 18px;
  border: 2px solid var(--preto); border-radius: 999px;
  background: var(--branco); font-weight: 600; cursor: pointer; user-select: none;
  transition: background-color .15s ease, color .15s ease, padding .15s ease;
}
.opcoes svg { width: 0; height: 18px; flex: none; transition: width .15s ease; }
.opcoes input:checked + span { background: var(--preto); color: #fff; padding-left: 14px; }
.opcoes input:checked + span svg { width: 18px; color: var(--verde-whats); }
.opcoes input:focus-visible + span { outline: 3px solid var(--preto); outline-offset: 3px; }
.opcoes span:hover { background: #fff; }
.opcoes input:checked + span:hover { background: #000; }

.previa {
  margin: 30px 0 18px auto;
  max-width: 34ch;
  padding: 12px 16px 14px;
  background: #fff;
  border-radius: 18px 18px 4px 18px;
}
.previa-rotulo { display: block; font-size: .8rem; font-weight: 700; color: #1F7A3F; margin-bottom: 2px; }
.previa p { font-size: 1rem; line-height: 1.45; }
.montador .botao { width: 100%; }
.dica { margin-top: 14px; font-size: .95rem; text-align: center; }

/* Rodapé */
.rodape { background: var(--preto); color: #EDE7E2; padding: 40px var(--lateral) calc(96px + env(safe-area-inset-bottom)); }
.rodape-dentro {
  max-width: var(--largura); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center;
}
.rodape-icone { border-radius: 12px; }
.rodape-marca strong { display: block; font-size: 1.05rem; }
.rodape-marca span { font-size: .95rem; color: #CFC6C9; }
.rodape-contato { grid-column: 1 / -1; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.rodape-contato a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: #fff; font-weight: 600; text-decoration: none;
}
.rodape-contato a:hover { text-decoration: underline; }
.rodape-contato svg { width: 22px; height: 22px; }
.rodape-contato li:first-child svg { color: var(--verde-whats); }
.ganuri { max-width: var(--largura); margin: 30px auto 0; padding-top: 18px; border-top: 1px solid #4A3F45; font-size: .9rem; color: #CFC6C9; }
.ganuri a { color: #fff; }

/* Foto aberta */
.vitrine {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--preto); color: #fff;
}
.vitrine[open] { display: grid; grid-template-rows: 1fr auto auto; }
.vitrine::backdrop { background: rgba(18, 13, 16, .88); }
.vitrine-foto { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 64px 0 0; }
.vitrine-foto img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.vitrine-texto { padding: 20px var(--lateral) 8px; }
.vitrine h3 { font-size: 1.4rem; font-weight: 720; }
.vitrine p { margin-top: 8px; color: #DDD5D8; max-width: 52ch; }
.vitrine .botao { margin-top: 18px; width: 100%; border-color: #fff; background: #fff; color: var(--preto); }
.vitrine .botao svg { color: #1DA851; }
.vitrine .botao:hover { background: var(--fendi); }
.vitrine-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--lateral) max(16px, env(safe-area-inset-bottom));
}
#vitrine-conta { font-size: .95rem; color: #CFC6C9; font-variant-numeric: tabular-nums; }
.redondo {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  border: 2px solid rgba(255, 255, 255, .5); border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer;
}
.redondo:hover { border-color: #fff; }
.redondo svg { width: 22px; height: 22px; }
.vitrine-fecha { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 10px; }

/* Botão flutuante de WhatsApp */
.flutuante {
  position: fixed; z-index: 20;
  right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 54px; padding: 0 20px 0 16px;
  background: var(--preto); color: #fff;
  border: 2px solid #fff; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(34, 26, 31, .28);
  font-weight: 700; text-decoration: none;
  transition: transform .25s ease, opacity .25s ease;
}
.flutuante svg { width: 26px; height: 26px; color: var(--verde-whats); }
.flutuante.escondido { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* Telas grandes */
@media (min-width: 960px) {
  :root { --fresta: 8px; --lateral: 48px; }
  .logo { width: 184px; }
  .topo { padding-top: 22px; padding-bottom: 22px; }

  .abertura {
    display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 64px;
    max-width: calc(var(--largura) + 2 * var(--lateral)); margin: 0 auto;
    padding: 8px var(--lateral) 88px;
  }
  .abertura-foto { order: 2; }
  .abertura-foto img { aspect-ratio: 1 / 1; max-height: 72vh; }
  .abertura { padding-top: 56px; }
  .abertura-texto { padding: 0; }
  .botoes .botao { flex: 0 0 auto; }

  .trabalhos { padding-top: 88px; }
  .trabalhos-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 32px; }
  .armario {
    --colunas: 4;
    --cel: calc((min(100vw - 2 * var(--lateral), var(--largura)) - 3 * var(--fresta)) / 4);
    padding: 0;
    width: calc(100% - 2 * var(--lateral));
    max-width: var(--largura);
  }
  .trabalhos { padding-bottom: 88px; }
  .etiqueta { font-size: .9rem; padding: 8px 14px 8px 12px; }

  .orcamento { padding-top: 88px; padding-bottom: 96px; }
  .orcamento-dentro {
    max-width: var(--largura);
    display: grid; grid-template-columns: 5fr 7fr; gap: 0 72px; align-items: start;
  }
  .orcamento-cabeca { position: sticky; top: 32px; }
  .orcamento h2 { margin-top: 36px; }
  .montador fieldset:first-child { margin-top: 0; }
  .rodape { padding-bottom: 40px; }

  .vitrine {
    width: min(1180px, calc(100% - 64px)); height: min(820px, calc(100% - 64px));
    margin: auto;
  }
  .vitrine[open] { grid-template-columns: 1fr 360px; grid-template-rows: 1fr auto; }
  .vitrine-foto { grid-row: 1 / 3; padding: 0; background: #000; }
  .vitrine-texto { align-self: end; padding: 32px; }
  .vitrine-nav { padding: 0 32px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
