/* Base comum dos modelos Escolha seu Site — o tema de cada modelo fica em tema.css */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; font-family: var(--fonte); color: var(--texto); background: var(--fundo); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulo); color: var(--tinta); line-height: 1.1; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--cor); outline-offset: 3px; }
.conteiner { width: min(var(--largura, 1200px), 100% - 40px); margin-inline: auto; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: #fff; padding: 10px 16px; z-index: 100; }
.pular:focus { left: 8px; }

.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 28px; border-radius: var(--raio-botao, 999px); background: var(--cor); color: var(--sobre-cor, #fff); font-weight: 700; text-decoration: none; border: 2px solid var(--cor); transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.botao:hover { transform: translateY(-2px); background: var(--cor-2); border-color: var(--cor-2); }
.botao-vazado { background: transparent; color: var(--tinta); border-color: currentColor; }
.botao-vazado:hover { background: var(--tinta); color: var(--fundo); border-color: var(--tinta); }
.sobretitulo { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cor); margin-bottom: 14px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 50; background: var(--topo-fundo, rgba(255, 255, 255, .9)); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s; }
.topo.rolou { border-color: var(--linha); box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .4); }
.topo-linha { display: flex; align-items: center; gap: 24px; height: 80px; }
.marca img { height: 44px; width: auto; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { color: var(--topo-texto, var(--tinta)); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.menu a:hover { color: var(--cor); }
.botao-topo { min-height: 46px; padding: 0 20px; font-size: .92rem; }
.abrir-menu { display: none; }

/* Seções */
.secao { padding: clamp(76px, 9vw, 120px) 0; }
.secao-alt { background: var(--fundo-2); }
.secao-topo { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.secao-topo.centro { margin-inline: auto; text-align: center; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.grade-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grade-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cartao { background: var(--cartao, #fff); border: 1px solid var(--linha); border-radius: var(--raio); padding: 30px 28px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.cartao:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(0, 0, 0, .45); }
.cartao p:last-child { margin-bottom: 0; }
.foto { width: 100%; object-fit: cover; border-radius: var(--raio); }
.lista-check { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.lista-check li { position: relative; padding-left: 34px; font-weight: 600; color: var(--tinta); }
.lista-check li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--cor); color: var(--sobre-cor, #fff); font-size: .75rem; display: grid; place-items: center; }

.numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.numeros strong { display: block; font-family: var(--titulo); font-size: clamp(2.4rem, 4.4vw, 3.4rem); color: var(--cor); line-height: 1; }
.numeros span { font-size: .95rem; }

.depoimentos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.depoimento { background: var(--cartao, #fff); border: 1px solid var(--linha); border-radius: var(--raio); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.depoimento blockquote { margin: 0; color: var(--tinta); font-size: 1.05rem; flex: 1; }
.depoimento figcaption { font-weight: 700; font-size: .92rem; }
.estrelas { color: var(--estrela, #f5a524); letter-spacing: 3px; }

.faq details { border-bottom: 1px solid var(--linha); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font-weight: 700; color: var(--tinta); position: relative; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--cor); font-size: 1.6rem; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 20px; margin: 0; }

.dados { display: grid; grid-template-columns: auto 1fr; gap: 12px 26px; margin: 26px 0 32px; }
.dados dt { font-weight: 800; color: var(--tinta); }
.dados dd { margin: 0; }
.mapa { min-height: 380px; border-radius: var(--raio); overflow: hidden; border: 1px solid var(--linha); }
.mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Abas (cardápio, imóveis...) */
.abas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.aba { font: inherit; font-weight: 700; cursor: pointer; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--linha); background: transparent; color: var(--tinta); transition: all .2s; }
.aba[aria-selected="true"] { background: var(--cor); border-color: var(--cor); color: var(--sobre-cor, #fff); }
[data-painel][hidden] { display: none !important; }

/* Faixa que corre */
.faixa { overflow: hidden; }
.faixa-trilho { display: flex; width: max-content; animation: correr 26s linear infinite; }
.faixa-trilho span { white-space: nowrap; padding: 14px 22px; }
@keyframes correr { to { transform: translateX(-50%); } }

/* Rodapé */
.rodape { background: var(--rodape-fundo, var(--tinta)); color: var(--rodape-texto, rgba(255, 255, 255, .7)); padding: 66px 0 28px; font-size: .95rem; }
.rodape a { color: var(--rodape-link, #fff); text-decoration: none; }
.rodape a:hover { color: var(--cor); }
.rodape h2 { font-size: 1.05rem; color: var(--rodape-link, #fff); margin-bottom: 14px; }
.rodape p { margin: 0 0 8px; }
.rodape img { height: 44px; width: auto; margin-bottom: 16px; }
.rodape-grade { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.rodape-fim { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(127, 127, 127, .25); font-size: .85rem; }

.whats-flutuante { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .4); transition: transform .2s; }
.whats-flutuante:hover { transform: scale(1.07); }

.revelar { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.revelar.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revelar { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1000px) {
  .grade-3, .depoimentos { grid-template-columns: 1fr 1fr; }
  .grade-4, .numeros { grid-template-columns: 1fr 1fr; }
  .grade-2 { grid-template-columns: 1fr; }
}
@media (max-width: 840px) {
  body { font-size: 16px; }
  .topo-linha { height: 68px; gap: 12px; }
  .marca img { height: 38px; }
  .botao-topo { display: none; }
  .abrir-menu { display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--fundo-2); cursor: pointer; }
  .abrir-menu span, .abrir-menu span::before, .abrir-menu span::after { display: block; width: 20px; height: 2px; background: var(--topo-texto, var(--tinta)); border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
  .abrir-menu span::before, .abrir-menu span::after { content: ""; position: absolute; left: 0; }
  .abrir-menu span::before { top: -6px; }
  .abrir-menu span::after { top: 6px; }
  .abrir-menu[aria-expanded="true"] span { background: transparent; }
  .abrir-menu[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .abrir-menu[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 20px 20px; background: var(--fundo); border-bottom: 1px solid var(--linha); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3); display: none; }
  .menu.aberto { display: flex; }
  .menu a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--linha); font-size: 1.05rem; color: var(--tinta); }
  .rodape-grade { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 580px) {
  .grade-3, .grade-4, .depoimentos { grid-template-columns: 1fr; }
  .botao { width: 100%; }
  .botao-topo { width: auto; }
}
