/* ConnectSite — base comum dos modelos Moderno, Elegante, Minimalista e Vibrante (body.cs-modelo-novo).
   Cada modelo tem o próprio arquivo (modelo-*.css) com cores, fontes e disposição. Cores do cliente só por variável.
   Padrão e Impacto não carregam este arquivo. */

@font-face { font-family: 'Geist'; src: url(../fontes/modelos/geist.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(../fontes/modelos/fraunces.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url(../fontes/modelos/dm-sans.woff2) format('woff2'); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(../fontes/modelos/space-grotesk.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url(../fontes/modelos/outfit.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

html:has(body.cs-modelo-novo), body.cs-modelo-novo { overflow-x: clip; }
body.cs-modelo-novo .wp-site-blocks, body.cs-modelo-novo main { overflow-x: clip; }

/* ---------- Topo (hero) dos modelos: limpa o visual do padrão ---------- */
body.cs-modelo-novo .cs-hero.cs-hero-m { background: none; color: inherit; overflow: visible; padding-block: clamp(3rem, 7vw, 5.5rem) !important; }
body.cs-modelo-novo .cs-hero.cs-hero-m::before, body.cs-modelo-novo .cs-hero.cs-hero-m::after { display: none; }
body.cs-modelo-novo .cs-hero-m h1 { color: inherit; max-width: none; margin: 0; }
body.cs-modelo-novo .cs-hero-m .cs-sobretitulo { background: none; border: 0; padding: 0; border-radius: 0; color: inherit; }
body.cs-modelo-novo .cs-hero-m .cs-hero-texto { color: inherit; max-width: 58ch; margin: 0; }
body.cs-modelo-novo .cs-hero-m .cs-hero-provas { color: inherit; }
.cs-hm { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cs-hero-sem-foto .cs-hm { grid-template-columns: 1fr; }
.cs-hm-texto { display: grid; gap: 1.3rem; justify-items: start; }
.cs-hm-texto > * { margin: 0 !important; }
.cs-hm-midia { position: relative; margin: 0 !important; }
.cs-hm-foto { margin: 0 !important; }
.cs-hm-foto img { display: block; width: 100%; object-fit: cover; }
.cs-hm-selo { position: absolute; z-index: 2; display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; max-width: 280px; border-radius: 16px; background: #fff; color: #111; box-shadow: 0 20px 40px rgba(0, 0, 0, .16); }
.cs-hm-selo strong { display: block; font-size: .95rem; line-height: 1.25; }
.cs-hm-selo small { display: block; font-size: .8rem; opacity: .65; }
.cs-hm-selo-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #1FAF54; color: #fff; }
.cs-hm-selo-ic::before { width: 20px !important; height: 20px !important; }
/* Vídeo do topo: a capa cobre o vídeo até ele tocar (sem botão de play à mostra) e some devagar. */
.cs-hm-video { position: relative; overflow: hidden; }
.cs-video-capa { position: absolute; inset: 0; z-index: 1; background-size: cover; background-position: center; pointer-events: none; transition: opacity .7s ease; }
.cs-video-tocando .cs-video-capa { opacity: 0; }
.cs-ancora { height: 0; margin: 0 !important; scroll-margin-top: 90px; }
.cs-js .cs-hm-midia { animation: cs-m-midia 1.2s cubic-bezier(.2, .7, .2, 1) .25s both; }
@keyframes cs-m-midia { from { opacity: 0; transform: translateY(50px) scale(.96); } }

/* ---------- Cartões de serviço com foto e número ---------- */
body.cs-modelo-novo .cs-card { display: flex; flex-direction: column; }
body.cs-modelo-novo .cs-card .cs-pacote-botao { margin-top: auto !important; padding-top: 1rem; }
.cs-card-num { display: none; }
body.cs-modelo-novo .cs-card.cs-card-com-foto { padding: 0 0 1.6rem !important; overflow: hidden; background-image: none; }
body.cs-modelo-novo .cs-card.cs-card-com-foto::before { display: none; }
body.cs-modelo-novo .cs-card.cs-card-com-foto > *:not(.cs-card-foto) { margin-inline: 1.5rem !important; }
body.cs-modelo-novo .cs-card.cs-card-com-foto > h3 { margin-top: .6rem !important; }
.cs-card-foto { margin: 0 0 1.1rem !important; overflow: hidden; }
.cs-card-foto img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cs-card:hover .cs-card-foto img { transform: scale(1.06); }

/* ---------- Faixa com os serviços correndo (criada pelo modelos.js) ---------- */
.cs-faixa-movel { max-width: none !important; width: 100%; overflow: hidden; margin: 0 !important; padding-block: 1.1rem; }
.cs-faixa-movel-trilho { display: flex; width: max-content; animation: cs-m-faixa 40s linear infinite; }
.cs-faixa-movel:hover .cs-faixa-movel-trilho { animation-play-state: paused; }
.cs-faixa-movel span { display: inline-flex; align-items: center; white-space: nowrap; }
@keyframes cs-m-faixa { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
/* Cabeçalho de seção alinhado à esquerda, na mesma largura do conteúdo. */
body.cs-modelo-novo .cs-cabeca-secao { max-width: var(--wp--style--global--wide-size, 1180px) !important; margin-inline: auto !important; }
body.cs-modelo-novo .cs-cabeca-secao > * { max-width: 720px; }
body.cs-modelo-novo .cs-cabeca-secao h2::after { display: none !important; }
body.cs-modelo-novo .cs-cta-caixa h2::after { display: none !important; }

/* ---------- Celular ---------- */
@media (max-width: 781px) {
	.cs-hm { grid-template-columns: 1fr; }
	.cs-hm-selo { max-width: 230px; padding: .55rem .75rem; }
	.cs-hm-selo small { display: none; }
	body.cs-modelo-novo .cs-hero-m .cs-hero-botoes { flex-direction: column; flex-wrap: nowrap !important; align-items: stretch; width: 100%; }
	body.cs-modelo-novo .cs-hero-m .cs-hero-botoes .wp-block-button, body.cs-modelo-novo .cs-hero-m .cs-hero-botoes .wp-block-button__link { width: 100%; text-align: center; justify-content: center; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
	.cs-faixa-movel-trilho, .cs-js .cs-hm-midia { animation: none !important; }
}

/* Cabeçalho preso no topo ao rolar (o pai <header> é que gruda; o .cs-topo sozinho só grudaria dentro dele). */
body.cs-modelo-novo .wp-site-blocks > header { position: sticky; top: 0; z-index: 50; }
body.cs-modelo-novo.admin-bar .wp-site-blocks > header { top: 32px; }
@media (max-width: 782px) { body.cs-modelo-novo.admin-bar .wp-site-blocks > header { top: 46px; } }
body.cs-modelo-novo .cs-topo { position: relative !important; top: auto !important; }
body.cs-modelo-novo .wp-site-blocks > header:has(.is-menu-open) { z-index: 100000; }
