/* Quality Mármores — prévia (03/11/2026).
   Estrutura da referência que o Otávio trouxe (Italínea Inovart, Biguaçu); visual nosso, de pedra.
   O marrom é o dos quatro quadradinhos da logo deles: só logo, ícone e detalhe, nunca botão.
   Sem travessão decorativo antes de título nem em lista. */

:root {
  --fundo: #f3f0ea;     /* pedra clara */
  --pedra: #e4dfd5;     /* cartões e fios */
  --grafite: #1e2326;   /* texto, faixas escuras, botões */
  --suave: #5d6266;     /* texto de apoio */
  --marrom: #5b4740;    /* os quadradinhos da logo */
  --titulo: "Montserrat", system-ui, sans-serif;
  --corpo: "Lato", system-ui, sans-serif;
  --curva: cubic-bezier(.2, .7, .2, 1);
  --barra: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--barra); }
body { margin: 0; background: var(--fundo); color: var(--grafite); font: 16px/1.6 var(--corpo); overflow-x: hidden; }
img, video, iframe { display: block; max-width: 100%; }
svg { width: 1.2em; height: 1.2em; flex: none; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--titulo); font-weight: 300; text-transform: uppercase; letter-spacing: .06em; line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.45rem, 4.6vw, 2.2rem); }
h3 { font-size: 1.02rem; font-weight: 500; letter-spacing: .08em; }

/* Botões: retângulo, caixa alta, como na referência */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 1.5em; border: 0; border-radius: 2px; cursor: pointer;
  font: 600 .82rem/1 var(--titulo); text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  transition: background-color .25s, color .25s;
}
.botao-escuro { background: var(--grafite); color: #fff; }
.botao-escuro:hover { background: #343b40; }
.botao-claro { background: var(--fundo); color: var(--grafite); }
.botao-claro:hover { background: #fff; }

/* Logo composta: os quatro quadradinhos + QUALITY / MÁRMORES (perfil do WhatsApp deles) */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--grafite); }
.logo-quadros { width: 34px; height: 34px; fill: var(--marrom); }
.logo-nome { display: grid; line-height: 1; font-family: "Lato", sans-serif; }
.logo-nome b { font-weight: 700; font-size: 1.32rem; letter-spacing: .04em; }
.logo-nome span { font-size: .6rem; letter-spacing: .42em; margin-top: 4px; }
.logo-clara { color: var(--fundo); }
.logo-clara .logo-quadros { fill: #a8968d; }

/* 0. Cabeçalho fixo */
.barra {
  position: sticky; top: 0; z-index: 20; height: var(--barra);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px; background: rgb(243 240 234 / .96); border-bottom: 1px solid var(--pedra);
  backdrop-filter: blur(6px);
}
.barra-botao { min-height: 40px; padding: 0 1em; font-size: .68rem; }

/* 1. Topo com fotos alternando */
.topo { position: relative; min-height: calc(100svh - var(--barra)); max-height: 860px; display: grid; align-items: end; color: #fff; background: var(--grafite); overflow: hidden; }
.topo-fotos { position: absolute; inset: 0; }
.topo-celular img, .trio { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.topo-fotos .ativa { opacity: 1; }
.topo-celular img.ativa { animation: zoom 4.5s linear both; }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.topo-computador { display: none; }
.topo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(20 23 25 / .25) 0%, rgb(20 23 25 / .35) 40%, rgb(20 23 25 / .88) 100%); }
.topo-texto { position: relative; z-index: 1; padding: 0 22px 64px; }
.topo-texto .sobre { font: 500 .72rem/1 var(--titulo); text-transform: uppercase; letter-spacing: .22em; margin: 0 0 14px; color: #d8d0c6; }
.topo h1 { font-size: clamp(1.75rem, 7.6vw, 3.4rem); max-width: 15ch; }
.topo h1 span { display: block; font-weight: 600; }
.topo-texto > p:not(.sobre) { margin: 14px 0 24px; color: #e6e1da; }
.topo-pontos { position: absolute; z-index: 1; left: 22px; bottom: 26px; display: flex; gap: 8px; }
.topo-pontos i { width: 22px; height: 2px; background: rgb(255 255 255 / .35); }
.topo-pontos i.ativa { background: #fff; }

/* Seções */
.secao { padding: 64px 20px; max-width: 1180px; margin: 0 auto; }
.cabeca { text-align: center; margin-bottom: 32px; }
.cabeca h2::after { content: ""; display: block; width: 44px; height: 2px; background: var(--marrom); margin: 14px auto 0; }
.cabeca p { color: var(--suave); margin: 14px auto 0; max-width: 46ch; }

/* 2. Cartões */
.cartoes { display: grid; gap: 18px; }
.cartao { background: var(--pedra); padding: 14px 14px 22px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.cartao img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 8px; }
.cartao p { margin: 0 0 8px; color: var(--suave); }

/* 3. Faixa escura */
.faixa { background: var(--grafite); color: #fff; display: grid; overflow: hidden; }
.faixa-texto { padding: 60px 22px 40px; }
.lista { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.lista li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; }
.lista svg { color: #c9b8ae; margin-top: 3px; }
.faixa-pessoa { margin: 0; align-self: end; }
/* As quatro bordas esfumadas: o fundo do Gemini é quase o grafite, e sem isso aparece o retângulo. */
.faixa-pessoa img { width: 100%; max-width: 460px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 4%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent); mask-composite: intersect; }

/* 4. Materiais */
.materiais { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
.material { display: grid; justify-items: center; gap: 12px; text-align: center; }
.material svg { width: 56px; height: 56px; color: var(--marrom); }
.nomes { text-align: center; color: var(--suave); margin: 34px auto 0; max-width: 52ch; }
.nomes b { color: var(--grafite); font-weight: 700; }

/* 5. Quem somos */
.quem { display: grid; max-width: 1180px; margin: 0 auto; padding: 0 20px 64px; }
.quem img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.quem-cartao { background: var(--grafite); color: #ece7e0; padding: 36px 26px; }
.quem-cartao h2 { color: #fff; margin-bottom: 18px; }
.quem-nome { font: 500 .95rem/1.3 var(--titulo); text-transform: uppercase; letter-spacing: .1em; color: #fff; }
.quem-frase { font-style: italic; color: #c9b8ae; margin-bottom: 0; }

/* 6. Passos: a linha liga os números (desenha algo, não é enfeite) */
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; counter-reset: p; }
.passos li { position: relative; display: grid; align-content: start; justify-items: center; text-align: center; gap: 8px; }
.passos svg { width: 52px; height: 52px; color: var(--marrom); }
.passos span { font: 600 .75rem/1 var(--titulo); color: var(--marrom); letter-spacing: .2em; }
.passos p { margin: 0; color: var(--suave); max-width: 26ch; }

.nota-soleira { text-align: center; color: var(--suave); font-size: .95rem; max-width: 56ch; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid #d6cfc3; }

/* 7. Mosaico em colunas: cada foto no formato dela, sem buraco no fim (com grid denso sobrava vão). */
.mosaico { columns: 2; column-gap: 6px; }
.mosaico button { display: block; width: 100%; margin: 0 0 6px; padding: 0; border: 0; background: var(--pedra); cursor: zoom-in; overflow: hidden; break-inside: avoid; }
.mosaico img { width: 100%; height: auto; transition: transform .6s var(--curva); }
.mosaico button:hover img { transform: scale(1.04); }

/* 8. Formulário */
.secao-form { max-width: 720px; }
.form { display: grid; gap: 18px; background: #fff; padding: 26px 20px; border: 1px solid var(--pedra); }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend, .campo { font: 500 .78rem/1.3 var(--titulo); text-transform: uppercase; letter-spacing: .1em; }
.form legend { margin-bottom: 10px; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcoes input { position: absolute; opacity: 0; }
.opcoes span { display: block; padding: 10px 14px; border: 1px solid #cfc8bc; font: 400 .92rem/1 var(--corpo); cursor: pointer; }
.opcoes input:checked + span { background: var(--grafite); color: #fff; border-color: var(--grafite); }
.opcoes input:focus-visible + span { outline: 2px solid var(--marrom); outline-offset: 2px; }
.campo { display: grid; gap: 8px; }
.campo input, .campo select { font: 400 1rem/1.3 var(--corpo); padding: 12px; border: 1px solid #cfc8bc; border-radius: 0; background: var(--fundo); color: var(--grafite); text-transform: none; letter-spacing: 0; }
.form small { color: var(--suave); text-align: center; }

/* 9. Chamada final */
.final { position: relative; display: grid; place-items: center; min-height: 420px; padding: 60px 22px; text-align: center; color: #fff; background: var(--grafite) url("img/cozinha-janela.jpg") center / cover; }
.final::before { content: ""; position: absolute; inset: 0; background: rgb(20 23 25 / .74); backdrop-filter: blur(3px); }
.final-texto { position: relative; display: grid; justify-items: center; gap: 28px; max-width: 760px; }

/* 10. Onde estamos */
.onde { display: grid; gap: 26px; }
.onde h2 { margin-bottom: 16px; }
.onde p { display: flex; gap: 10px; margin: 0 0 22px; }
.onde p svg { color: var(--marrom); margin-top: 3px; }
.mapa { width: 100%; height: 320px; border: 0; }

/* Rodapé */
.rodape { background: var(--grafite); color: #d6d0c8; display: grid; gap: 18px; justify-items: start; padding: 44px 22px 90px; }
.rodape-links { display: grid; gap: 10px; }
.rodape-links a { display: inline-flex; gap: .6em; align-items: center; text-decoration: none; }
.rodape small { color: #8d9296; }

/* WhatsApp fixo, como na referência */
.whats-fixo { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; }
.whats-fixo svg { width: 30px; height: 30px; }

/* Foto grande */
.foto-grande { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.foto-grande::backdrop { background: rgb(15 17 19 / .9); }
.foto-grande img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.foto-grande .fechar { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: rgb(0 0 0 / .55); color: #fff; display: grid; place-items: center; cursor: pointer; }

@media (min-width: 700px) {
  .cartoes { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .materiais { grid-template-columns: repeat(4, 1fr); }
  .passos { grid-template-columns: repeat(4, 1fr); }
  .passos li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: calc(50% + 44px); right: calc(-50% + 44px); height: 1px; background: #cfc8bc; }
  .mosaico { columns: 4; }
}

@media (min-width: 900px) {
  :root { --barra: 76px; }
  .barra { padding: 0 max(28px, calc((100vw - 1180px) / 2)); }
  .barra-botao { min-height: 46px; padding: 0 1.5em; font-size: .78rem; }
  .logo-quadros { width: 40px; height: 40px; }
  .logo-nome b { font-size: 1.55rem; }
  .topo { min-height: 640px; height: calc(100vh - var(--barra)); }
  .topo-celular { display: none; }
  .topo-computador { display: block; }
  .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .trio img { width: 100%; height: 100%; object-fit: cover; }
  .trio.ativa img { animation: zoom 4.5s linear both; }
  .topo::after { background: linear-gradient(to bottom, rgb(20 23 25 / .45), rgb(20 23 25 / .62) 55%, rgb(20 23 25 / .9)); }
  .topo-texto { padding: 0 max(28px, calc((100vw - 1180px) / 2)) 90px; }
  .topo-pontos { left: max(28px, calc((100vw - 1180px) / 2)); bottom: 40px; }
  .secao { padding: 96px 28px; }
  .faixa { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 0 max(28px, calc((100vw - 1180px) / 2)); }
  .faixa-texto { padding: 90px 0; }
  .faixa-pessoa { align-self: end; padding-top: 40px; }
  .quem { grid-template-columns: 1fr 1fr; align-items: center; padding-bottom: 96px; }
  .quem img { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .quem-cartao { padding: 54px 46px; margin-left: -40px; }
  .final { min-height: 480px; }
  .onde { grid-template-columns: .8fr 1.2fr; align-items: center; }
  .mapa { height: 380px; }
  .rodape { grid-template-columns: auto 1fr auto; align-items: center; padding: 40px max(28px, calc((100vw - 1180px) / 2)); }
  .rodape-links { display: flex; gap: 28px; justify-content: center; }
}

/* Blocos que sobem ao entrar na tela. Só com JS: sem ele, tudo aparece de cara. */
.js .entra { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--curva), transform .7s var(--curva); }
.js .entra.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .entra { opacity: 1; transform: none; }
}
