/* DimGrid — site da loja (página pública). Cor da marca em --marca (vem da config do site). */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* o display dos blocos (flex/grid) não pode ganhar do hidden */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1f2937; background: #fff; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--marca-escura); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; }
.s-largura { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.s-estreita { max-width: 760px; }
.s-centro { text-align: center; justify-content: center; }
.s-sub { text-align: center; color: #6b7280; margin: 0 auto 1.6rem; max-width: 640px; }
.faixa-previa { background: #fef3c7; color: #78350f; text-align: center; padding: .5rem 1rem; font-size: .9rem; }

/* Topo */
.s-topo { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid #eef0f3; }
.s-topo-linha { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.s-marca { font-weight: 800; font-size: 1.2rem; color: var(--marca-escura); text-decoration: none; }
.s-marca img { max-height: 46px; width: auto; }
.s-menu { display: flex; align-items: center; gap: 1.2rem; }
.s-menu a { color: #374151; text-decoration: none; font-weight: 600; font-size: .92rem; }
.s-menu a:hover { color: var(--marca); }
.s-menu-botao { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: #374151; }

/* Botões */
.s-botao { display: inline-block; background: var(--marca); color: var(--marca-texto); padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--marca); cursor: pointer; font-size: 1rem; }
.s-botao:hover { filter: brightness(.95); }
.s-botao-pequeno { padding: .45rem 1rem; font-size: .9rem; }
.s-menu a.s-botao { color: var(--marca-texto); }
.s-botao-claro { background: #fff; color: var(--marca-escura); border-color: #fff; }
.s-botao-contorno { background: transparent; color: var(--marca-escura); }

/* Chamada principal */
.s-hero { background: linear-gradient(120deg, var(--marca-escura), var(--marca)); color: #fff; padding: clamp(3rem, 9vw, 6.5rem) 0; position: relative; overflow: hidden; }
.s-hero.com-foto { background: linear-gradient(100deg, color-mix(in srgb, var(--marca-escura) 92%, transparent) 0%, color-mix(in srgb, var(--marca) 55%, transparent) 70%, transparent), var(--foto) center / cover; }
.s-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); max-width: 720px; }
.s-hero-texto { font-size: 1.15rem; max-width: 620px; opacity: .95; }
.s-hero-botoes { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Números */
.s-numeros { background: #fff; border-bottom: 1px solid #eef0f3; }
.s-numeros-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; padding-top: 1.6rem; padding-bottom: 1.6rem; text-align: center; }
.s-numeros strong { display: block; font-size: 1.9rem; color: var(--marca); }
.s-numeros span { color: #4b5563; }

/* Seções */
.s-secao { padding: clamp(2.8rem, 7vw, 4.8rem) 0; }
.s-fundo { background: #f6f7f9; }
.s-cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.s-cartao { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(15, 23, 42, .08); padding-bottom: 1rem; }
.s-cartao img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.s-cartao h3 { margin: 1rem 1.1rem .4rem; color: var(--marca-escura); }
.s-cartao p { margin: 0 1.1rem; color: #4b5563; }
.s-sobre-grade { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.s-sobre h2 { text-align: left; }
.s-sobre img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Carrossel (rolagem lateral com encaixe; funciona com o dedo e com as setas do site.js) */
.s-carrossel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 2.4rem) / 3)); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; }
.s-carrossel > * { scroll-snap-align: start; }
.s-carrossel-setas { display: flex; justify-content: center; gap: .6rem; margin-top: .8rem; }
.s-carrossel-setas button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d1d5db; background: #fff; cursor: pointer; font-size: 1.1rem; }
.s-projeto { display: block; background: #fff; border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 6px 24px rgba(15, 23, 42, .08); }
.s-projeto img, .s-sem-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.s-sem-foto { display: grid; place-items: center; font-size: 3rem; background: var(--marca); color: var(--marca-texto); }
.s-projeto-texto { display: block; padding: .9rem 1rem 1.1rem; }
.s-projeto-texto strong { display: block; color: var(--marca-escura); }
.s-projeto-texto small { display: block; color: #6b7280; }
.s-depoimentos { background: linear-gradient(120deg, var(--marca-escura), var(--marca)); }
.s-depoimentos h2, .s-depoimentos .s-sub { color: #fff; }
.s-depoimento { background: #fff; border-radius: 16px; margin: 0; padding: 1.4rem; text-align: center; }
.s-depoimento img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto .8rem; }
.s-depoimento blockquote { margin: 0 0 .8rem; font-style: italic; color: #374151; }
.s-depoimento figcaption { color: #6b7280; font-size: .92rem; }

/* Formulário de orçamento */
.s-form { background: #fff; border-radius: 16px; padding: 1.4rem; box-shadow: 0 6px 24px rgba(15, 23, 42, .08); }
.s-form-grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1rem; }
.s-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92rem; }
.s-form input, .s-form select { font: inherit; padding: .7rem .8rem; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; }
.s-form input:focus, .s-form select:focus { outline: 2px solid var(--marca); border-color: var(--marca); }
.s-form small { font-weight: 400; color: #6b7280; }
.s-form .s-aceite { margin: 1rem 0; font-size: .85rem; opacity: .75; }
.s-form .s-aceite a { color: inherit; }
.s-form .campo-erro input, .s-form .campo-erro select { border-color: #dc2626; }
.s-armadilha { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.s-erro { color: #b91c1c; font-weight: 600; }
.s-resultado { background: #fff; border-radius: 16px; padding: 1.6rem; text-align: center; box-shadow: 0 6px 24px rgba(15, 23, 42, .08); }
.s-resultado-numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1rem 0; }
.s-resultado-numeros strong { display: block; font-size: 1.6rem; color: var(--marca); }
.s-resultado-numeros span { color: #6b7280; font-size: .9rem; }

/* Projeto */
.s-titulo-projeto { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--marca-escura); }
.s-dados-projeto { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1rem 0 1.4rem; }
.s-dados-projeto div { background: #f6f7f9; border-radius: 12px; padding: .6rem .9rem; }
.s-dados-projeto dt { font-size: .8rem; color: #6b7280; }
.s-dados-projeto dd { margin: 0; font-weight: 700; }
.s-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; margin: 1.4rem 0; }
.s-galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

/* Rodapé */
.s-rodape { background: linear-gradient(120deg, var(--marca-escura), var(--marca)); color: #fff; padding: 2.4rem 0 1rem; margin-top: 0; }
.s-rodape a { color: #fff; }
.s-rodape-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; align-items: start; }
.s-rodape-logo { max-height: 70px; width: auto; background: #fff; padding: .5rem .8rem; border-radius: 12px; } /* fundo branco: logo de qualquer cor e com fundo opaco */
.s-contatos { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.s-contatos a { text-decoration: none; }
.s-redes { display: flex; gap: 1rem; }
.s-mapa { margin-top: 1.6rem; }
.s-mapa iframe { display: block; width: 100%; height: 280px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .15); }
.s-endereco a { color: inherit; }
.s-privacidade h2 { text-align: left; font-size: 1.2rem; margin-top: 1.6rem; }
.s-privacidade li { margin-bottom: .35rem; }
.s-credito a { color: inherit; }
.s-credito { font-size: .8rem; opacity: .8; margin-top: 1.6rem; text-align: center; }
.s-zap { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 30; }
.s-zap svg { width: 32px; height: 32px; fill: #fff; }
.s-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; z-index: 40; font-size: .9rem; }
.s-cookies p { margin: 0; }

@media (max-width: 760px) {
    .s-menu-botao { display: block; }
    .s-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 16px; border-bottom: 1px solid #eef0f3; gap: .8rem; }
    .s-menu.aberto { display: flex; }
    .s-form-grade, .s-sobre-grade { grid-template-columns: 1fr; }
    .s-carrossel { grid-auto-columns: 85%; }
    .s-cookies { flex-direction: column; align-items: stretch; text-align: center; bottom: 86px; }
}

/* Unidades da rede (site por rede) */
.s-unidades h2 { text-align: center; }
.s-unidades-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.s-unidades-grade article { border: 1px solid rgb(0 0 0 / .1); border-radius: 14px; padding: 1rem 1.1rem; background: #fff; }
.s-unidades-grade h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.s-unidades-grade p { margin: .15rem 0; font-size: .93rem; }
.s-unidades-grade a { color: inherit; }
