/* Marmoraria Veio Claro: a pedra como identidade. Archivo em uma família só,
   expandida (font-stretch 125%) nos títulos e normal no texto. Cantos retos, como peça cortada. */
:root {
  --cor-fundo: #ececea;
  --cor-texto: #232629;
  --cor-marca: #232629;
  --cor-ouro: #c79a2b;
  --branco: #ffffff;
  --pedra-escura: #1b1d1f;
  --cinza: #5c6064;
  --linha: rgba(35, 38, 41, .16);
  --foco: #232629;
  --altura-topo: 64px;
  --margem: 16px;
  --largura: 1240px;
}
@media (min-width: 760px) { :root { --margem: 32px; } }

body {
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
}
h1, h2, h3 { font-stretch: 125%; font-weight: 800; line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 6.6vw, 3.4rem); }
h3 { font-size: 1.05rem; line-height: 1.2; letter-spacing: 0; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--altura-topo); padding: 8px var(--margem);
  background: rgba(236, 236, 234, .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linha);
}
.topo__nome { font-stretch: 112%; font-weight: 800; font-size: 16px; line-height: 1.15; text-decoration: none; letter-spacing: -0.01em; }
.topo__nav { display: none; }
.topo__orcamento {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--cor-texto); color: var(--branco); text-decoration: none; font-weight: 650; font-size: 15px; border-radius: 2px;
}
@media (min-width: 980px) {
  .topo__nome { font-size: 18px; }
  .topo__nav { display: flex; gap: 28px; margin-left: auto; margin-right: 12px; }
  .topo__nav a { text-decoration: none; font-size: 15px; font-weight: 550; padding: 10px 0; }
  .topo__nav a:hover { text-decoration: underline; text-decoration-color: var(--cor-ouro); text-decoration-thickness: 3px; text-underline-offset: 6px; }
}

/* ---------- botões ---------- */
.botoes { display: flex; flex-wrap: wrap; gap: 10px; }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border: 2px solid var(--cor-texto); border-radius: 2px;
  background: transparent; color: var(--cor-texto);
  font-weight: 650; font-size: 16px; font-stretch: 108%; text-decoration: none; cursor: pointer;
}
.botao svg { width: 22px; height: 22px; flex: none; }
.botao--forte { background: var(--cor-texto); color: var(--branco); }
.botao--forte:hover { background: #000; }
.botao:not(.botao--forte):not(.botao--ouro):hover { background: rgba(35, 38, 41, .07); }
.botao--ouro { background: var(--cor-ouro); border-color: var(--cor-ouro); color: var(--pedra-escura); }
.botao--ouro:hover { background: #d9ad42; }

/* ---------- status ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--cinza); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9a9da0; }
.status[data-aberto="sim"] { color: #1d5e36; }
.status[data-aberto="sim"]::before { background: #2f9e57; box-shadow: 0 0 0 4px rgba(47, 158, 87, .18); }

/* ---------- capa ---------- */
.capa { position: relative; }
.capa__foto { width: 100%; height: min(50svh, 420px); object-fit: cover; object-position: 50% 45%; background: #cfcfcb; }
.capa__chapa {
  position: relative; margin: -64px var(--margem) 0 0;
  padding: 26px var(--margem) 36px;
  background: var(--branco);
  border-top: 4px solid var(--cor-ouro);
}
.capa__chapa .status { margin-bottom: 14px; }
.capa h1 { font-size: clamp(2.05rem, 8.6vw, 4.6rem); line-height: .98; letter-spacing: -0.025em; }
.capa__slogan { margin: 18px 0 26px; font-size: 1.05rem; color: var(--cinza); max-width: 46ch; }
@media (max-width: 420px) { .capa .botoes .botao { flex: 1 1 100%; } }
@media (min-width: 900px) {
  .capa__foto { height: min(88svh, 760px); }
  .capa__chapa {
    position: absolute; left: var(--margem); bottom: 0; margin: 0;
    width: min(760px, 62%); padding: 40px 48px 44px;
  }
  .capa__slogan { font-size: 1.15rem; }
}

/* ---------- seções ---------- */
.trabalhos, .pedras, .depoimentos, .onde { max-width: var(--largura); margin: 0 auto; padding: 72px var(--margem); }
.cabeca { display: grid; gap: 12px; margin-bottom: 28px; }
.cabeca p { color: var(--cinza); max-width: 52ch; }
@media (min-width: 900px) {
  .trabalhos, .pedras, .depoimentos, .onde { padding-top: 112px; padding-bottom: 112px; }
  .cabeca { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 48px; margin-bottom: 40px; }
}

/* ---------- galeria (o destaque) ---------- */
.filtros {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--margem) * -1) 20px; padding: 2px var(--margem) 6px;
}
.filtros::-webkit-scrollbar { display: none; }
.filtros button {
  flex: none; min-height: 44px; padding: 0 18px; border: 2px solid var(--cor-texto); border-radius: 2px;
  background: transparent; color: var(--cor-texto); font-weight: 600; font-size: 15px; font-stretch: 108%; cursor: pointer; white-space: nowrap;
}
.filtros button[aria-pressed="true"] { background: var(--cor-texto); color: var(--branco); }

.trabalhos .galeria {
  display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 4px;
  margin: 0 calc(var(--margem) * -1);
}
.obra { position: relative; min-width: 0; }
.obra[data-formato="larga"] { grid-column: span 2; grid-row: span 2; }
.obra[data-formato="alta"] { grid-row: span 2; }
.obra figure { height: 100%; }
.obra__botao { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: #cfcfcb; cursor: zoom-in; overflow: hidden; }
.obra__botao:focus-visible { outline: 4px solid var(--cor-ouro); outline-offset: -4px; }
.obra img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.obra__botao:hover img { transform: scale(1.03); }
.obra figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 36px 14px 12px; color: #fff; font-size: 14px; font-weight: 550; line-height: 1.3;
  background: linear-gradient(to top, rgba(15, 16, 17, .82), rgba(15, 16, 17, 0));
}
/* no celular, legenda só nas fotos grandes (a foto ampliada mostra a legenda de todas) */
@media (max-width: 759px) { .obra:not([data-formato="larga"]) figcaption { display: none; } }
@media (min-width: 760px) {
  .trabalhos .galeria { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 8px; margin: 0; }
  .obra[data-formato="larga"] { grid-column: span 2; grid-row: span 2; }
  .obra figcaption { font-size: 15px; padding: 48px 18px 16px; }
}
@media (min-width: 1200px) { .trabalhos .galeria { grid-auto-rows: 250px; } }

/* ---------- pedras ---------- */
.pedras__lista { display: grid; border-top: 1px solid var(--linha); }
.pedra { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--linha); }
.pedra__amostra { display: block; aspect-ratio: 1; border: 1px solid rgba(0, 0, 0, .14); background-color: var(--c0, #999); }
.pedra h3 { font-size: 1.1rem; }
.pedra__tipo { font-size: 14px; font-weight: 600; color: var(--cinza); margin-top: 2px; }
.pedra__nota { margin-top: 6px; font-size: 16px; line-height: 1.5; }
/* granito: duas camadas de pinta irregular (ruído do SVG usado como máscara, pintado com as cores do dados.js) */
.pedra__amostra { position: relative; overflow: hidden; }
.pedra[data-tipo="granito"] .pedra__amostra::before,
.pedra[data-tipo="granito"] .pedra__amostra::after,
.pedra[data-tipo="quartzo"] .pedra__amostra::before {
  content: ""; position: absolute; inset: 0;
  -webkit-mask-size: 140px; mask-size: 140px;
}
.pedra[data-tipo="granito"] .pedra__amostra::before { background: var(--c1); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.3' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.3' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pedra[data-tipo="granito"] .pedra__amostra::after { background: var(--c2); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 0 0 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 0 0 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); -webkit-mask-size: 150px; mask-size: 150px; }
/* quartzo: quase liso, com pinta miúda e clara */
.pedra[data-tipo="quartzo"] .pedra__amostra::before { background: rgba(0, 0, 0, .09); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 0 0 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 0 0 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); -webkit-mask-size: 70px; mask-size: 70px; }
/* mármore: o veio da foto, tingido pela cor da pedra */
.pedra[data-tipo="marmore"] .pedra__amostra { background-image: url("fotos/textura.webp"); background-size: 260%; background-position: 30% 40%; background-blend-mode: multiply; }
@media (min-width: 760px) {
  .pedras__lista { grid-template-columns: repeat(2, 1fr); column-gap: 40px; border-top: 0; }
  .pedra { border-top: 1px solid var(--linha); border-bottom: 0; }
}
@media (min-width: 1100px) {
  .pedras__lista { grid-template-columns: repeat(4, 1fr); column-gap: 28px; row-gap: 12px; }
  .pedra { grid-template-columns: 1fr; gap: 14px; padding-top: 22px; }
  .pedra__amostra { aspect-ratio: 4 / 3; }
}

/* ---------- como trabalhamos ---------- */
.como { background: var(--branco); }
.como__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #cfcfcb; }
.como__texto { padding: 56px var(--margem) 72px; max-width: 640px; }
.como__sobre { margin: 18px 0 32px; color: var(--cinza); }
.etapas { counter-reset: etapa; display: grid; gap: 26px; }
.etapas li { counter-increment: etapa; position: relative; padding-left: 58px; }
.etapas li::before {
  content: counter(etapa); position: absolute; left: 0; top: -4px;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--cor-texto); color: var(--branco);
  font-stretch: 125%; font-weight: 800; font-size: 20px;
  border-bottom: 4px solid var(--cor-ouro);
}
.etapas h3 { font-size: 1.15rem; margin-bottom: 4px; padding-top: 6px; }
.etapas p { color: var(--cinza); font-size: 16px; }
@media (min-width: 900px) {
  .como { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .como__foto img { height: 100%; aspect-ratio: auto; min-height: 640px; }
  .como__texto { padding: 112px 64px; align-self: center; }
}

/* ---------- orçamento ---------- */
.orcamento { --foco: var(--cor-ouro); background: var(--cor-texto); color: #f1f1ef; padding: 72px var(--margem) 80px; }
.orcamento__intro { max-width: 560px; }
.orcamento__intro p { margin-top: 14px; color: #c9cbcd; }
.form { display: grid; gap: 18px; margin-top: 32px; }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo label, .campo legend { font-weight: 600; font-size: 15px; }
.opcional { font-weight: 400; color: #b5b8bb; }
.form input[type="text"], .form select {
  width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid transparent; border-radius: 2px;
  background: var(--branco); color: var(--cor-texto); font-size: 16px;
}
.form select {
  -webkit-appearance: none; appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23232629' stroke-width='2.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form input::placeholder { color: #6b6f73; }
.form input:focus-visible, .form select:focus-visible { outline: 3px solid var(--cor-ouro); outline-offset: 2px; }
.campo--opcoes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.campo--opcoes legend { width: 100%; margin-bottom: 6px; padding: 0; }
.opcao { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; }
.opcao input { width: 22px; height: 22px; accent-color: var(--cor-ouro); margin: 0; }
.form .botao--ouro { margin-top: 8px; width: 100%; min-height: 56px; font-size: 17px; }
@media (min-width: 900px) {
  .orcamento { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; padding: 112px max(var(--margem), calc((100% - var(--largura)) / 2 + var(--margem))); }
  .form { margin-top: 0; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .campo--opcoes, .form .botao--ouro { grid-column: 1 / -1; }
  .form .botao--ouro { width: auto; justify-self: start; padding: 0 32px; }
}

/* ---------- depoimentos ---------- */
.depoimentos h2 { margin-bottom: 32px; }
.depoimentos__lista { display: grid; gap: 32px; }
.depoimentos__lista li { padding-left: 18px; border-left: 3px solid var(--cor-ouro); }
.depoimentos__lista blockquote p { font-size: 1.12rem; line-height: 1.55; }
.depoimento__quem { margin-top: 12px; font-size: 15px; color: var(--cinza); display: grid; }
.depoimento__quem strong { color: var(--cor-texto); }
@media (min-width: 900px) { .depoimentos__lista { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- onde ---------- */
.onde { display: grid; gap: 32px; border-top: 1px solid var(--linha); }
.onde__endereco { margin-top: 18px; font-size: 1.15rem; font-weight: 600; }
.onde__nota { margin: 10px 0 22px; color: var(--cinza); max-width: 46ch; }
.onde h3 { margin: 36px 0 10px; font-size: 1.2rem; }
.onde .status { margin-bottom: 8px; }
.onde [data-horario] { max-width: 440px; }
.onde [data-horario] > div { border-bottom: 1px solid var(--linha); }
.onde [data-horario] .fechado dd { color: var(--cinza); }
.onde__insta { margin-top: 22px; }
.onde__insta a { font-weight: 600; text-underline-offset: 4px; display: inline-block; padding: 10px 0; }
.onde__mapa { margin: 0 calc(var(--margem) * -1); }
@media (max-width: 899px) { .onde { padding-bottom: 0; } }
@media (min-width: 900px) {
  .onde { grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
  .onde__mapa { margin: 0; aspect-ratio: 4 / 3.4; }
}

/* ---------- rodapé ---------- */
.rodape { background: var(--pedra-escura); color: #c9cbcd; padding: 56px var(--margem) 104px; font-size: 15px; }
.rodape__nome { color: #fff; font-stretch: 125%; font-weight: 800; font-size: clamp(1.5rem, 7vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: 18px; }
.rodape p + p { margin-top: 6px; }
.rodape a { color: #fff; }
@media (min-width: 900px) { .rodape { padding-left: max(var(--margem), calc((100% - var(--largura)) / 2 + var(--margem))); } }

/* WhatsApp flutuante com o corte reto da casa */
.wa-flutuante { border-radius: 4px; }
