/* Base dos sites de exemplo da Integracore. Cada nicho define as variáveis e o seu motivo no <style> da página. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-b);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* topo */
.topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.marca { font-family: var(--font-d); font-size: 20px; line-height: 1.1; font-weight: var(--peso-d, 700); }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 16px/1.2 var(--font-b);
  border: 0; border-radius: var(--r-btn, 999px);
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-linha { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* hero: o nome da empresa é a peça principal */
.hero { padding: 48px 0 72px; position: relative; overflow: hidden; }
.hero h1 {
  font-family: var(--font-d); font-weight: var(--peso-d, 700);
  font-size: clamp(46px, calc(150vw / (var(--len, 12) + 2)), var(--h1-max, 132px));
  line-height: .95; letter-spacing: var(--track-d, -0.02em);
  max-width: 14ch; overflow-wrap: anywhere;
}
.hero .lead { font-size: 20px; line-height: 1.45; max-width: 36ch; margin-top: 24px; color: var(--muted); }
.hero .acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* seções */
.secao { padding: 56px 0; }
.secao + .secao { border-top: 1px solid var(--line); }
.secao h2 { font-family: var(--font-d); font-weight: var(--peso-d, 700); font-size: clamp(30px, 5vw, 46px); line-height: 1.05; letter-spacing: var(--track-d, -0.01em); margin-bottom: 8px; }
.secao .sub { color: var(--muted); max-width: 52ch; margin-bottom: 28px; }

/* lista de preços (cardápio, serviços) */
.grupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 56px; }
.grupo h3 { font-family: var(--font-d); font-weight: var(--peso-d, 700); font-size: 24px; margin-bottom: 4px; }
.grupo .nota { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.itens { list-style: none; padding: 0; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item .nome { font-weight: 600; }
.item .preco { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.item .desc { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }

/* produtos */
.produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; list-style: none; padding: 0; }
.produto { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card, 12px); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.produto .nome { font-weight: 600; }
.produto .detalhe { color: var(--muted); font-size: 15px; flex: 1; }
.produto .preco { font-family: var(--font-d); font-weight: var(--peso-d, 700); font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.produto .preco small { display: block; font: 400 14px/1.3 var(--font-b); color: var(--muted); }

/* destaque com orçamento de exemplo */
.destaque { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: start; background: var(--surface); border-radius: var(--r-card, 12px); padding: 32px; border: 1px solid var(--line); }
.destaque h2 { margin-bottom: 12px; }
.orcamento { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.orcamento caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
.orcamento td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.orcamento td:last-child { text-align: right; white-space: nowrap; }
.orcamento tr.total td { font-weight: 700; font-size: 18px; border-bottom: 0; padding-top: 12px; }

/* equipe */
.equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; list-style: none; padding: 0; }
.pessoa { padding: 20px 0; border-top: 2px solid var(--ink); }
.pessoa .nome { font-family: var(--font-d); font-weight: var(--peso-d, 700); font-size: 24px; }
.pessoa .faz { color: var(--muted); }

/* imóveis */
.imoveis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; list-style: none; padding: 0; }
.imovel { border: 1px solid var(--line); border-radius: var(--r-card, 12px); overflow: hidden; background: var(--surface); }
.imovel .planta { height: 120px; background: var(--planta); border-bottom: 1px solid var(--line); }
.imovel .corpo { padding: 18px 20px 20px; }
.imovel .tipo { font-weight: 600; }
.imovel .onde { color: var(--muted); font-size: 15px; }
.imovel .preco { font-family: var(--font-d); font-weight: var(--peso-d, 700); font-size: 24px; margin-top: 10px; font-variant-numeric: tabular-nums; }

/* passos (só onde é sequência de verdade) */
.passos { list-style: none; padding: 0; counter-reset: passo; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.passos li { counter-increment: passo; padding-top: 16px; border-top: 2px solid var(--ink); }
.passos li::before { content: counter(passo); display: block; font-family: var(--font-d); font-weight: var(--peso-d, 700); font-size: 34px; line-height: 1; margin-bottom: 8px; color: var(--accent-texto, var(--ink)); }
.passos strong { display: block; }
.passos span { color: var(--muted); font-size: 15px; }

/* informações */
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.info dt { font-weight: 700; margin-bottom: 4px; }
.info dd { color: var(--muted); margin: 0; white-space: pre-line; }

/* rodapé */
.rodape { padding-top: 32px; padding-bottom: 112px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }

/* botão fixo no celular */
.whats-fixo { position: fixed; right: 16px; bottom: 16px; z-index: 5; box-shadow: 0 6px 20px rgb(0 0 0 / .18); }
@media (min-width: 900px) { .whats-fixo { display: none; } .rodape { padding-bottom: 40px; } }

/* aviso ao tocar num botão de contato */
.aviso {
  position: fixed; left: 50%; bottom: 84px; z-index: 6;
  width: min(92vw, 440px); padding: 14px 18px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-size: 15px; line-height: 1.4;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.aviso.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .aviso { transition: none; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 24px 0 56px; }
  .hero .lead { font-size: 18px; }
  .topo .btn-sm { display: none; }
  .destaque { padding: 24px 20px; }
}
