:root {
  --preto: #0b0b0d;
  --grafite: #17171b;
  --azul: #1447e6;
  --azul-claro: #6d93ff;
  --areia: #f3ecdf;
  --areia-forte: #dccbad;
  --branco: #ffffff;
  --texto: #1c1b1a;
  --texto-suave: #5d574d;
  --texto-claro: #c9c5bd;
  --linha: #e0d6c3;
  --verde-whats: #1f9e55;
  --raio: 4px;
  --lateral: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--branco);
  color: var(--texto);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-stretch: 112%; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 750; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 3px; }

.caixa { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--lateral); }
.pular { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--branco); padding: 8px 14px; }
.pular:focus { left: 8px; }

/* O traço inclinado vem do logo da marca */
.sobretitulo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--azul);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sobretitulo::before {
  content: "";
  width: 9px;
  height: 18px;
  background: currentColor;
  transform: skewX(-18deg);
}
.sobretitulo--claro { color: var(--azul-claro); }

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid var(--azul);
  border-radius: var(--raio);
  background: var(--azul);
  color: var(--branco);
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.botao:hover { background: #0f39bd; border-color: #0f39bd; }
.botao--contorno { background: rgba(11, 11, 13, .55); border-color: var(--branco); }
.botao--contorno:hover { background: var(--grafite); border-color: var(--branco); }
.botao--pequeno { min-height: 42px; padding: 8px 18px; font-size: 15px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 20; background: var(--preto); color: var(--branco); }
.topo__linha { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.topo__logo img { width: 104px; }
.topo__nav { display: flex; align-items: center; gap: 28px; }
.topo__nav a:not(.botao) { font-size: 15px; text-decoration: none; }
.topo__nav a:not(.botao):hover { color: var(--azul-claro); }
.topo__menu { display: none; min-height: 44px; padding: 8px 16px; border: 1px solid #5a5a60; border-radius: var(--raio); background: none; color: inherit; font: inherit; cursor: pointer; }

/* Herói */
.heroi {
  --altura-heroi: clamp(520px, calc(100svh - 160px), 600px);
  min-height: var(--altura-heroi);
  background:
    linear-gradient(to right, rgba(11, 11, 13, .74) 0%, rgba(11, 11, 13, .6) 60%),
    url("../assets/img/fachada-fundo.jpg") center / cover no-repeat var(--preto);
  color: var(--branco);
}
.heroi__conteudo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  min-height: var(--altura-heroi);
  padding: 48px max(var(--lateral), calc((100% - 1240px) / 2 + var(--lateral))) 36px;
}
.heroi__texto { max-width: 760px; }
.heroi h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; }
.heroi__apoio { max-width: 34em; margin-top: 22px; color: #efece6; font-size: clamp(17px, 1.6vw, 20px); }
.heroi__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.fatos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .35);
}
.fatos strong { display: block; font-size: 17px; font-stretch: 108%; font-weight: 700; line-height: 1.25; }
.fatos span { display: block; margin-top: 4px; color: #efece6; font-size: 15px; line-height: 1.4; }

/* Seções */
.secao { padding-block: clamp(56px, 8vw, 104px); }
.secao--areia { background: var(--areia); }
.secao--escura { background: var(--preto); color: var(--branco); }
.cabeca { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.cabeca--linha { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; }

/* Obras */
.obras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px; }
.obras__fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; min-height: 0; }
.obras__fotos img { display: block; width: 100%; height: 0; min-height: 100%; object-fit: cover; border-radius: var(--raio); }

/* Ambientes */
.ambientes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ambiente { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: var(--raio); overflow: hidden; background: var(--preto); color: var(--branco); font: inherit; text-align: left; cursor: pointer; }
.ambiente img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ambiente::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0) 55%); }
.ambiente:hover img { transform: scale(1.04); }
.ambiente__nome { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; font-size: 20px; font-stretch: 108%; font-weight: 700; line-height: 1.2; }

/* Vídeos */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 20px; }
.video { margin: 0; }
.video__quadro { position: relative; aspect-ratio: 4 / 5; border-radius: var(--raio); overflow: hidden; background: var(--preto); }
.video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video figcaption { margin-top: 10px; font-size: 16px; font-weight: 650; line-height: 1.3; }
.video__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; padding: 0; border: 0; border-radius: 50%; background: var(--azul); transform: translate(-50%, -50%); cursor: pointer; transition: background-color .2s; }
.video__play::before { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--branco); }
.video__play:hover { background: #0f39bd; }
.video__play[hidden] { display: none; }

/* Produtos */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro { min-height: 44px; padding: 8px 16px; border: 1px solid var(--linha); border-radius: 999px; background: var(--branco); color: var(--texto); font: inherit; font-size: 15px; cursor: pointer; }
.filtro:hover { border-color: var(--texto); }
.filtro[aria-pressed="true"] { background: var(--preto); border-color: var(--preto); color: var(--branco); }
.filtros__contagem { margin: 14px 0 24px; color: var(--texto-suave); font-size: 15px; }

.produtos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.produto { display: flex; flex-direction: column; }
.produto[hidden] { display: none; }
.produto__foto { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--raio); }
.produto__miniaturas { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.produto__miniatura { flex: 0 0 52px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .7; }
.produto__miniatura:hover { opacity: 1; }
.produto__miniatura[aria-pressed="true"] { border-color: var(--azul); opacity: 1; }
.produto__miniatura img { display: block; width: 100%; height: 100%; object-fit: cover; }
.produto__corpo { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding-top: 16px; }
.produto__corpo .produto__link { margin-top: auto; }
.produto__corpo > p:last-of-type { margin-bottom: 8px; }
.produto__linha { margin-bottom: 4px; color: var(--texto-suave); font-size: 14px; }
.produto__corpo > p:not(.produto__linha) { margin-top: 8px; color: var(--texto-suave); font-size: 16px; line-height: 1.5; }
.produto__corpo > .produto__medidas { color: var(--texto); font-size: 15px; }
.produto__link { display: inline-block; margin-top: 8px; padding-block: 10px; color: var(--azul); font-weight: 650; text-underline-offset: 4px; }

/* Passos */
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: passo; }
.passos li { padding-top: 20px; border-top: 1px solid #3a3a41; counter-increment: passo; }
.passos li::before { content: counter(passo, decimal-leading-zero); display: block; margin-bottom: 14px; color: var(--azul-claro); font-size: 15px; font-weight: 650; }
.passos p { margin-top: 10px; color: var(--texto-claro); }

/* Sobre */
.sobre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 80px); }
.sobre__fotos { max-width: 420px; }
.sobre__fotos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--raio); }
.sobre__texto p:not(.sobretitulo) { margin-top: 18px; color: var(--texto-suave); }
.sobre__texto .botao { margin-top: 28px; }

/* Galeria */
.galeria { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 220px)); gap: 12px; }
.galeria img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--raio); }
.galeria img:first-child { grid-row: span 2; }
.galeria img:nth-child(3) { grid-row: span 2; }

/* Dúvidas */
.duvidas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; }
.duvidas__lista { border-top: 1px solid var(--areia-forte); }
details { border-bottom: 1px solid var(--areia-forte); }
summary { padding-block: 18px; font-size: 18px; font-weight: 650; line-height: 1.35; cursor: pointer; }
summary:hover { color: var(--azul); }
details p { padding-bottom: 20px; color: var(--texto-suave); }

/* Contato */
.contato { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
.contato__apoio { margin-top: 18px; color: var(--texto-claro); }
.contato__canais { align-self: center; margin: 0; padding: 0; list-style: none; }
.contato__canais li:last-child { border-bottom: 1px solid #3a3a41; }
.contato__botao { margin-top: 28px; }
.contato__canais li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 2px; border-top: 1px solid #3a3a41; }
.contato__canais span { color: var(--texto-claro); }
.contato__canais a { padding-block: 10px; font-weight: 650; text-underline-offset: 4px; }

/* Rodapé */
.rodape { padding-block: 28px; background: var(--preto); border-top: 1px solid #2c2c32; color: var(--texto-claro); font-size: 15px; }
.rodape__linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.rodape img { width: 88px; }
.rodape__endereco { font-style: normal; line-height: 1.5; }
.rodape__fim { display: grid; gap: 6px; justify-items: start; }
.rodape__restrito { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--texto-claro); font-size: 14px; opacity: .75; text-decoration: none; }
.rodape__restrito:hover, .rodape__restrito:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.whats-flutuante { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--verde-whats); color: var(--branco); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.whats-flutuante:hover { background: #18854a; }

@media (max-width: 960px) {
  .heroi {
    background:
      linear-gradient(rgba(11, 11, 13, .66), rgba(11, 11, 13, .66)),
      url("../assets/img/fachada-fundo-celular.jpg") center top / cover no-repeat var(--preto);
  }
  .topo__menu { display: block; }
  .topo__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--lateral) 20px; background: var(--preto); border-top: 1px solid #2c2c32; }
  .topo__nav.aberta { display: flex; }
  .topo__nav a:not(.botao) { padding-block: 13px; font-size: 17px; border-bottom: 1px solid #2c2c32; }
  .topo__nav .botao { margin-top: 16px; }
  .sobre, .duvidas, .contato, .obras { grid-template-columns: minmax(0, 1fr); }
  .obras__fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .obras__fotos img { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .ambientes { grid-template-columns: repeat(2, 1fr); }
  .videos { display: flex; gap: 12px; margin-inline: calc(var(--lateral) * -1); padding-inline: var(--lateral); padding-bottom: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--lateral); }
  .video { flex: 0 0 min(66vw, 300px); scroll-snap-align: start; }
  .produtos { grid-template-columns: repeat(2, 1fr); }
  .passos { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .galeria { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: 200px; }
  .galeria img:first-child, .galeria img:nth-child(3) { grid-row: auto; }
}

@media (max-width: 1100px) {
  .fatos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .heroi__acoes .botao { width: 100%; }
  .ambiente { aspect-ratio: 4 / 5; }
  .ambiente__nome { left: 12px; right: 12px; bottom: 12px; font-size: 17px; }
  .produtos { grid-template-columns: minmax(0, 1fr); }
  .galeria { grid-auto-rows: 150px; }
}

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

/* Chamada para o catalogo com orcamento (catalogo.qtalpedras.com.br) */
.chamada-catalogo {
  margin-top: 32px; padding: 22px 24px; border-radius: 10px; background: var(--preto); color: var(--branco);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.chamada-catalogo p { margin: 0; max-width: 620px; color: #d9d5cc; }
.chamada-catalogo strong { color: var(--branco); }
.chamada-catalogo .botao { flex: none; }
@media (max-width: 560px) { .chamada-catalogo .botao { width: 100%; } }
