/* Site da AC Simões Vidros — limpo, cores do logo (marinho + azul) */
:root {
  --marinho: #0e3151;
  --marinho-2: #164a78;
  --azul: #3696ff;
  --azul-claro: #e8f2ff;
  --vidro: #bfe3ff;
  --texto: #10263b;
  --apagado: #5b6b78;
  --borda: #e3e9ef;
  --fundo: #ffffff;
  --fundo-2: #f4f7fa;
  --whats: #1fa855;
  --raio: 14px;
  --sombra: 0 10px 30px rgb(14 49 81 / 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font-family: "Questrial", "Century Gothic", "Segoe UI", system-ui, sans-serif; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .botao, .sobretitulo { font-family: "Montserrat", "Century Gothic", system-ui, sans-serif; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.1; margin: .3em 0 .4em; font-weight: 800; letter-spacing: -.02em; color: var(--marinho); }
h1 span { color: var(--azul); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 .2em; font-weight: 800; letter-spacing: -.01em; color: var(--marinho); }
.sub { color: var(--apagado); margin: 0 0 1.6rem; max-width: 60ch; }
.caixa { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* ---------- botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.botao:hover { transform: translateY(-1px); }
.botao svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.botao-cheio { background: var(--azul); color: #fff; box-shadow: 0 8px 20px rgb(54 150 255 / .3); }
.botao-cheio:hover { background: #1f86f5; }
.botao-linha { border-color: var(--marinho); color: var(--marinho); background: transparent; }
.botao-linha:hover { background: var(--marinho); color: #fff; }
.botao-whats { background: var(--whats); color: #fff; padding: .6em 1.1em; }

/* ---------- topo */
.topo { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borda); }
.topo-linha { display: flex; align-items: center; gap: 24px; height: 68px; }
.marca { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.selo { height: 40px; width: auto; border-radius: 3px; }
.logo { height: 40px; width: auto; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { text-decoration: none; color: var(--apagado); font-weight: 600; font-size: .95rem; font-family: "Montserrat", sans-serif; }
.menu a:hover { color: var(--marinho); }

/* ---------- abertura */
.abertura { background: linear-gradient(180deg, var(--azul-claro), #fff 85%); padding: 56px 0 72px; overflow: hidden; }
.abertura-grade { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.sobretitulo { display: inline-block; margin: 0; padding: .3em .9em; border-radius: 999px; background: #fff; color: var(--azul); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--sombra); }
.lead { font-size: 1.15rem; color: var(--apagado); max-width: 44ch; margin: 0 0 1.6rem; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.garantias { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--marinho); font-size: .95rem; }
.garantias li::before { content: "✓"; color: var(--azul); font-weight: 800; margin-right: .45em; }
.garantias-claras { color: #fff; }
.garantias-claras li::before { color: var(--vidro); }

/* painéis de vidro desenhados (sem foto) */
.vitrine { position: relative; aspect-ratio: 1 / 1; max-width: 440px; justify-self: center; width: 100%; }
.painel {
  position: absolute; border-radius: 10px; border: 2px solid rgb(255 255 255 / .9);
  background: linear-gradient(135deg, rgb(191 227 255 / .75), rgb(54 150 255 / .25));
  box-shadow: 0 20px 50px rgb(14 49 81 / .15), inset 0 0 0 1px rgb(14 49 81 / .08); backdrop-filter: blur(4px);
}
.p1 { inset: 4% 34% 10% 4%; }
.p2 { inset: 14% 8% 2% 40%; background: linear-gradient(135deg, rgb(14 49 81 / .12), rgb(54 150 255 / .35)); }
.p3 { inset: 38% 50% 22% 18%; background: rgb(255 255 255 / .35); }
.painel::after { content: ""; position: absolute; left: 12%; top: 8%; width: 18%; height: 60%; border-radius: 6px; background: linear-gradient(180deg, rgb(255 255 255 / .8), transparent); transform: skewX(-12deg); }
.brilho { position: absolute; inset: 20% 20% 30% 20%; border-radius: 50%; background: radial-gradient(circle, rgb(54 150 255 / .25), transparent 70%); filter: blur(20px); z-index: -1; }

/* ---------- seções */
.secao { padding: 80px 0; }
.secao-clara { background: var(--fundo-2); }
.secao-escura { background: var(--marinho); color: #fff; }
.secao-escura h2 { color: #fff; }
.secao-escura .sub { color: #c9d6e3; }
.titulo-linha { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }

/* serviços */
.servicos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .servicos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .servicos { grid-template-columns: 1fr; } }
.servico {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--borda); border-radius: var(--raio);
  background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; text-decoration: none;
}
.servico:hover { border-color: var(--azul); box-shadow: var(--sombra); transform: translateY(-2px); }
.servico svg { width: 42px; height: 42px; flex-shrink: 0; stroke: var(--azul); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; padding: 8px; border-radius: 10px; background: var(--azul-claro); }
.servico h3 { margin: 0 0 .15em; font-size: 1.02rem; color: var(--marinho); }
.servico p { margin: 0; color: var(--apagado); font-size: .9rem; line-height: 1.4; }

/* obras */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 22px; }
.filtros button { font: inherit; font-size: .88rem; padding: .4em 1em; border-radius: 999px; border: 1px solid var(--borda); background: #fff; color: var(--apagado); cursor: pointer; }
.filtros button[aria-selected="true"] { background: var(--marinho); color: #fff; border-color: var(--marinho); }
.obras { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.obra { border-radius: var(--raio); overflow: hidden; background: #fff; box-shadow: var(--sombra); display: flex; flex-direction: column; text-decoration: none; }
.obra-foto { aspect-ratio: 4 / 5; background: var(--azul-claro); position: relative; overflow: hidden; }
.obra-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.obra:hover .obra-foto img { transform: scale(1.04); }
.obra-foto .desenho { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--azul-claro), var(--vidro)); }
.obra-foto .desenho svg { width: 45%; stroke: var(--marinho); fill: rgb(255 255 255 / .5); stroke-width: 1.4; opacity: .6; }
.obra-foto .mais { position: absolute; right: 10px; top: 10px; background: rgb(14 49 81 / .75); color: #fff; font-size: .75rem; padding: .15em .6em; border-radius: 999px; }
.obra-texto { padding: 14px 16px 16px; }
.obra-texto b { display: block; color: var(--marinho); font-family: "Montserrat", sans-serif; font-size: .98rem; }
.obra-texto span { color: var(--apagado); font-size: .85rem; }
.ver-todas { display: flex; justify-content: center; margin-top: 22px; }
.aviso-exemplo { margin-top: 18px; font-size: .85rem; color: var(--apagado); background: #fff7e6; border: 1px dashed #e0b35a; padding: 10px 14px; border-radius: 10px; }

/* como funciona */
.passos { list-style: none; counter-reset: passo; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.passos li { counter-increment: passo; padding: 22px; border-radius: var(--raio); border: 1px solid var(--borda); position: relative; }
.passos li::before { content: counter(passo); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--azul); color: #fff; font: 800 1rem "Montserrat", sans-serif; margin-bottom: 12px; }
.passos b { display: block; color: var(--marinho); font-family: "Montserrat", sans-serif; margin-bottom: 4px; }
.passos span { color: var(--apagado); font-size: .93rem; }

/* orçamento */
.orcamento-grade { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.formulario { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; color: var(--texto); padding: 26px; border-radius: 18px; box-shadow: 0 20px 60px rgb(0 0 0 / .25); }
.formulario label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--apagado); }
.formulario input, .formulario select, .formulario textarea {
  font: inherit; font-size: 1rem; color: var(--texto); padding: .7em .9em; border: 1px solid var(--borda); border-radius: 10px; background: var(--fundo-2); width: 100%;
}
.formulario input:focus, .formulario select:focus, .formulario textarea:focus { outline: 2px solid var(--azul); outline-offset: 0; background: #fff; }
.formulario .largo { grid-column: 1 / -1; }
.formulario .nota { margin: 0; font-size: .8rem; color: var(--apagado); text-align: center; }
.formulario .erro { margin: 0; color: #b42318; font-size: .9rem; }

/* contato */
.contato-grade { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.endereco { font-size: 1.05rem; margin: 0 0 .4em; }
.js-telefone { font: 700 1.3rem "Montserrat", sans-serif; color: var(--marinho); text-decoration: none; }
.whats-grande { display: inline-flex; align-items: center; gap: .4em; color: var(--whats) !important; }
.whats-grande svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.redes { display: flex; gap: 10px; margin: 14px 0 6px; }
.redes a { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border: 1px solid var(--borda); border-radius: 999px; text-decoration: none; color: var(--marinho); font-weight: 600; font-size: .9rem; }
.redes a:hover { border-color: var(--azul); color: var(--azul); }
.redes svg, .redes-rodape svg { width: 20px; height: 20px; fill: currentColor; }
.redes-rodape { display: flex; gap: 14px; }
/* Instagram e Facebook no topo, depois do WhatsApp */
.redes-topo { display: flex; gap: 4px; }
.redes-topo a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--marinho); }
.redes-topo a:hover { background: #eef5ff; color: var(--azul); }
.redes-topo svg { width: 22px; height: 22px; fill: currentColor; }
.redes-rodape a { color: #c9d6e3; display: inline-flex; }
.redes-rodape a:hover { color: #fff; }
[hidden] { display: none !important; }
.assinatura { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #8fa3b8; font-size: .75rem; opacity: .85; }
.assinatura:hover { opacity: 1; }
.assinatura img { height: 30px; width: auto; }
.horario { list-style: none; padding: 0; margin: 12px 0; color: var(--apagado); }
.selo-blindex { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 16px 10px 10px; border: 1px solid var(--borda); border-radius: 12px; }
.selo-blindex img { height: 40px; border-radius: 3px; }
.mapa { border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 4 / 3; background: var(--fundo-2); }
.mapa iframe { width: 100%; height: 100%; border: 0; }

/* rodapé */
.rodape { background: var(--marinho); color: #c9d6e3; padding: 30px 0; font-size: .85rem; }
.rodape-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.rodape .selo { height: 34px; }
.logo-rodape { height: 34px; width: auto; }
.rodape p { margin: 0; }

/* WhatsApp flutuante (celular) */
.whats-flutuante { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--whats); display: none; place-items: center; box-shadow: 0 10px 25px rgb(0 0 0 / .25); }
.whats-flutuante svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- celular / tablet */
@media (max-width: 900px) {
  .abertura-grade, .orcamento-grade, .contato-grade { grid-template-columns: 1fr; }
  .vitrine { max-width: 300px; }
  .passos { grid-template-columns: 1fr 1fr; }
  .menu { display: none; }
  .topo .botao-whats { margin-left: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topo-linha { height: 60px; gap: 12px; }
  .selo, .logo { height: 32px; }
  .topo .botao-whats span { display: none; }
  .topo .botao-whats { padding: .6em; }
  .abertura { padding: 28px 0 48px; }
  .vitrine { display: none; }
  .obras { grid-template-columns: 1fr 1fr; gap: 10px; }
  .obra-foto { aspect-ratio: 1 / 1; }
  .obra-texto { padding: 10px 10px 12px; }
  .obra-texto b { font-size: .85rem; }
  .obra-texto span { font-size: .75rem; }
  .rodape { padding-bottom: 90px; }
  .servico { padding: 14px; }
  .secao { padding: 56px 0; }
  .passos { grid-template-columns: 1fr; }
  .formulario { grid-template-columns: 1fr; padding: 20px; }
  .whats-flutuante { display: grid; }
  .acoes .botao { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* atendimento com hora marcada (a porta nem sempre está aberta: a equipe está em obra) */
.hora-marcada { margin: 18px 0 20px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, #eef5ff, #f7faff); border: 1px solid #d6e6fb; }
.hora-marcada b { display: block; font-family: Montserrat, sans-serif; font-size: 1.05rem; color: var(--marinho, #0e3151); }
.hora-marcada p { margin: 6px 0 14px; color: var(--apagado); font-size: .95rem; line-height: 1.5; }
.hora-marcada .botao { display: inline-flex; }
.rotulo { margin: 0; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--apagado); }
.rotulo + .horario { margin-top: 6px; }

@media (max-width: 360px) {
  .redes-topo { gap: 0; }
  .redes-topo a { width: 34px; }
}
