/* Modelos de site · Borgmann Tecnologia
   Base comum: cada modelo só troca os tokens (cores, fontes, raio) e acrescenta o que é do nicho. */

:root {
  --fundo: #ffffff;
  --fundo-2: #f4f6f8;
  --texto: #18202b;
  --texto-suave: #5b6675;
  --primaria: #1d57f1;
  --primaria-texto: #ffffff;
  --secundaria: #10c4d1;
  --linha: rgb(24 32 43 / .1);
  --fonte-titulo: system-ui, sans-serif;
  --fonte-texto: system-ui, sans-serif;
  --raio: 14px;
  --largura: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --sombra: 0 18px 50px -24px rgb(16 24 40 / .28);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --barra-demo: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--barra-demo) + 84px); }
body {
  margin: 0; padding-top: var(--barra-demo);
  background: var(--fundo); color: var(--texto);
  font: 400 clamp(15.5px, 1vw, 17px)/1.65 var(--fonte-texto);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--fonte-titulo); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(36px, 5.2vw, 68px); }
h2 { font-size: clamp(28px, 3.4vw, 46px); }
h3 { font-size: clamp(18px, 1.5vw, 22px); }
p { margin: 0 0 1em; }
.container { width: min(var(--largura), 100% - 2 * var(--gutter)); margin-inline: auto; }
.secao { padding: clamp(72px, 10vw, 128px) 0; }
.secao--alt { background: var(--fundo-2); }
.secao-cabeca { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.secao-cabeca--centro { margin-inline: auto; text-align: center; }
.secao-cabeca p { color: var(--texto-suave); font-size: 1.08em; }
.sobretitulo {
  display: inline-block; margin-bottom: 14px; color: var(--primaria);
  font: 600 13px/1 var(--fonte-texto); letter-spacing: .14em; text-transform: uppercase;
}
.suave { color: var(--texto-suave); }

/* ── Botões ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--raio); border: 1.5px solid transparent;
  background: var(--primaria); color: var(--primaria-texto);
  font: 600 15px/1 var(--fonte-texto); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--primaria); }
.btn--linha { background: transparent; color: inherit; border-color: currentColor; }
.btn--linha:hover { box-shadow: none; background: rgb(127 127 127 / .08); }
.btn--claro { background: #fff; color: var(--texto); }
.botoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Cabeçalho ── */
.cabecalho {
  position: sticky; top: var(--barra-demo); z-index: 40;
  background: color-mix(in srgb, var(--fundo) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linha);
}
.cabecalho .container { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1.1 var(--fonte-titulo); letter-spacing: -.02em; }
.logo small { display: block; font: 500 11px/1.2 var(--fonte-texto); letter-spacing: .16em; text-transform: uppercase; color: var(--texto-suave); }
.logo-marca { width: 40px; height: 40px; border-radius: calc(var(--raio) * .7); display: grid; place-items: center; background: var(--primaria); color: var(--primaria-texto); font-size: 18px; flex: none; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--texto-suave); transition: color .25s; }
.nav a:hover { color: var(--texto); }
.cabecalho .btn { padding: 12px 20px; }
.nav-abrir { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--linha); border-radius: 10px; background: none; cursor: pointer; color: inherit; }
.nav-abrir span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; transition: transform .3s; }
@media (max-width: 900px) {
  .nav-abrir { display: block; }
  .cabecalho .btn { display: none; }
  .nav {
    position: fixed; inset: calc(var(--barra-demo) + 76px) 0 auto; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--fundo); border-bottom: 1px solid var(--linha);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--linha); font-size: 17px; }
  .nav-aberta .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav-aberta .nav-abrir span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav-aberta .nav-abrir span:last-child { transform: translateY(-3px) rotate(-45deg); }
}

/* ── Grades e cartões ── */
.grade { display: grid; gap: clamp(16px, 2vw, 26px); }
.grade-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grade-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grade-3, .grade-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grade-2, .grade-3, .grade-4 { grid-template-columns: 1fr; } }
.cartao {
  padding: clamp(22px, 2.4vw, 32px); border-radius: var(--raio);
  background: var(--fundo); border: 1px solid var(--linha);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.cartao:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.cartao p { color: var(--texto-suave); margin: 0; }
.icone {
  width: 52px; height: 52px; margin-bottom: 18px; border-radius: calc(var(--raio) * .8);
  display: grid; place-items: center; background: color-mix(in srgb, var(--primaria) 12%, transparent); color: var(--primaria);
}
.icone svg { width: 26px; height: 26px; }
.dividido { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .dividido { grid-template-columns: 1fr; } }
.foto { border-radius: var(--raio); overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.lista-check { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.lista-check li { position: relative; padding-left: 30px; }
.lista-check li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primaria) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.numeros b { display: block; font: 700 clamp(30px, 3.4vw, 46px)/1 var(--fonte-titulo); color: var(--primaria); margin-bottom: 6px; }
.numeros span { color: var(--texto-suave); font-size: 14.5px; }
@media (max-width: 760px) { .numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Depoimentos ── */
.depoimento { display: flex; flex-direction: column; gap: 18px; }
.depoimento blockquote { margin: 0; font-size: 1.04em; }
.depoimento footer { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; }
.depoimento footer b { display: block; font-size: 15px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--fundo-2); color: var(--primaria); font-weight: 700; flex: none; }
.estrelas { color: #f5b301; letter-spacing: 2px; font-size: 15px; }

/* ── FAQ ── */
.faq { display: grid; gap: 12px; max-width: 840px; margin-inline: auto; }
.faq details { border: 1px solid var(--linha); border-radius: var(--raio); background: var(--fundo); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--primaria); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--texto-suave); }

/* ── Formulário ── */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo { display: grid; gap: 6px; }
.campo--inteiro, .form .btn, .form-aviso { grid-column: 1 / -1; }
.campo label { font-size: 13.5px; font-weight: 600; }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; color: var(--texto); padding: 13px 15px;
  background: var(--fundo); border: 1px solid var(--linha); border-radius: calc(var(--raio) * .7);
  transition: border-color .25s, box-shadow .25s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--primaria); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primaria) 18%, transparent); }
.form-aviso { margin: 0; font-size: 14px; color: var(--primaria); min-height: 1.4em; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ── Rodapé ── */
.rodape { padding: 64px 0 28px; background: var(--texto); color: rgb(255 255 255 / .72); font-size: 14.5px; }
.rodape .logo { color: #fff; }
.rodape .logo small { color: rgb(255 255 255 / .5); }
.rodape-grade { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.rodape h4 { color: #fff; font: 600 14px/1 var(--fonte-texto); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.rodape a { display: block; text-decoration: none; padding: 4px 0; transition: color .25s; }
.rodape a:hover { color: #fff; }
.rodape a.logo { display: flex; padding: 0; }
.rodape { padding-bottom: 96px; } /* espaço para o WhatsApp flutuante não cobrir a assinatura */
.rodape a.assinatura { display: inline-flex; align-items: center; gap: 8px; padding: 0; }
.rodape a.assinatura img { width: 22px; height: 22px; opacity: .85; transition: opacity .25s, transform .4s var(--ease); }
.rodape a.assinatura:hover img { opacity: 1; transform: rotate(-8deg) scale(1.08); }
.rodape-fim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .12); font-size: 13px; }
@media (max-width: 860px) { .rodape-grade { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rodape-grade { grid-template-columns: 1fr; } }

/* ── Revelar na rolagem ── */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.revelar.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .revelar { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ── Faixa do modelo de demonstração (inserida pelo base.js) ── */
.demo-barra {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--barra-demo);
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 12px;
  background: #070c16; color: #e8edf5; font: 500 13px/1 "Geist", system-ui, sans-serif;
}
.demo-barra b { color: #10c4d1; font-weight: 600; }
.demo-barra a { color: #04202a; background: #10c4d1; text-decoration: none; padding: 7px 12px; border-radius: 4px; font-weight: 600; white-space: nowrap; }
.demo-barra a.demo-outros { background: none; color: #93a3b8; padding: 7px 4px; }
.demo-barra a.demo-outros:hover { color: #e8edf5; }
@media (max-width: 640px) { .demo-barra .demo-texto-longo, .demo-barra .demo-outros { display: none; } }

.demo-whats {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px rgb(0 0 0 / .25);
  transition: transform .3s var(--ease);
}
.demo-whats:hover { transform: scale(1.07); }
.demo-whats svg { width: 28px; height: 28px; }
