/* =========================================================================
   Modelo 04 — o tema da GS Contabilidade, classe a classe, com o prefixo m4-.

   O :root abaixo traz os valores do tema como reserva: as cores, os raios, a
   largura e a logo do cliente chegam por um segundo :root no <head>, depois
   desta folha, e vencem por virem por último.
   Tipografia: Sora (títulos) · Inter (texto) · Nunito (rótulos) · Jost (marca).
   ========================================================================= */

:root {
	/* Paleta oficial GS Contabilidade: preto + dourado/champanhe + areia */
	--m4-ink: #19191a;
	--m4-ink-2: #2c2c2e;
	--m4-paper: #fdfcf7;
	--m4-surface: #f3f1e8;
	--m4-surface-2: #ebe8dc;
	--m4-sand: #d9d5c1;
	--m4-gold: #c9b977;        /* dourado da marca (decorativo) */
	--m4-gold-2: #b0a05e;      /* dourado mais profundo (gradientes) */
	--m4-gold-soft: #f3edd7;   /* champanhe claro (fundos suaves) */
	--m4-gold-deep: #8a7836;     /* dourado para texto sobre claro (contraste) */
	--m4-gold-light: #fcf1c7;
	--m4-muted: #6a6a66;
	--m4-muted-2: #8d8d84;
	--m4-line: #e7e3d6;
	--m4-line-strong: #d9d5c1;
	--m4-wa: #25d366;
	--m4-wa-dark: #1eb257;
	--m4-white: #ffffff;

	--m4-font-display: "Sora", system-ui, sans-serif;
	--m4-font-body: "Inter", system-ui, -apple-system, sans-serif;
	/* Rótulos/números: Nunito (arredondada, mais amigável que a antiga monoespaçada) */
	--m4-font-mono: "Nunito", system-ui, -apple-system, sans-serif;
	/* Marca (wordmark do menu/rodapé): mesma família geométrica da logo GS */
	--m4-font-logo: "Jost", "Sora", system-ui, sans-serif;

	--m4-container: 1280px;
	--m4-radius: 18px;
	--m4-radius-sm: 12px;
	--m4-radius-lg: 28px;
	--m4-shadow-sm: 0 1px 2px rgba(25, 25, 27, .04), 0 2px 8px rgba(25, 25, 27, .05);
	--m4-shadow: 0 8px 30px rgba(25, 25, 27, .08);
	--m4-shadow-lg: 0 24px 60px rgba(25, 25, 27, .12);
	--m4-ease: cubic-bezier(.22, .61, .36, 1);

	/* Do gerador: logo e escala do título, editáveis no CRM. */
	--m4-logo-h: 52px;
	--m4-logo-max: 260px;
	--m4-hero-scale: clamp(2.3rem, 5.4vw, 4rem);
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--m4-font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--m4-ink);
	background: var(--m4-paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--m4-font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0; color: var(--m4-ink); }
p { margin: 0 0 1rem; }

.m4-sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.m4-skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--m4-ink); color: var(--m4-white); padding: 10px 16px; border-radius: 8px;
	transition: top .2s var(--m4-ease);
}
.m4-skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--m4-gold-deep); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------- layout */
.m4-container { width: 100%; max-width: var(--m4-container); margin-inline: auto; padding-inline: 24px; }
.m4-container--narrow { max-width: 760px; }

section { position: relative; }

/* fonte utilitária / rótulos */
.m4-eyebrow {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: var(--m4-font-mono); font-size: .74rem; font-weight: 500;
	letter-spacing: .08em; text-transform: uppercase; color: var(--m4-muted);
	margin-bottom: 20px;
}
/* alinhado à primeira linha: o rótulo pode quebrar em duas linhas no mobile */
.m4-eyebrow-dot { width: 7px; height: 7px; flex: none; align-self: flex-start; margin-top: .35em; border-radius: 50%; background: var(--m4-gold); box-shadow: 0 0 0 4px var(--m4-gold-soft); }
.m4-eyebrow--light { color: rgba(255, 255, 255, .72); }
.m4-eyebrow--light .m4-eyebrow-dot { box-shadow: 0 0 0 4px rgba(122, 103, 240, .25); }

.m4-hl {
	position: relative; white-space: nowrap; color: var(--m4-ink);
	background: linear-gradient(transparent 62%, var(--m4-gold-light) 62%, var(--m4-gold-soft) 100%);
	padding: 0 .04em;
	/* mantém o traço dourado em cada linha quando o destaque quebra */
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.m4-muted { color: var(--m4-muted); }

/* --------------------------------------------------------------- botões */
.m4-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--m4-font-body); font-weight: 600; font-size: .98rem;
	padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
	transition: transform .18s var(--m4-ease), box-shadow .2s var(--m4-ease), background .2s var(--m4-ease), color .2s var(--m4-ease);
	white-space: nowrap; line-height: 1;
}
.m4-btn svg { width: 20px; height: 20px; flex: none; }
.m4-btn:hover { transform: translateY(-2px); }
.m4-btn:active { transform: translateY(0); }
.m4-btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.m4-btn-block { width: 100%; }

.m4-btn-wa { background: var(--m4-wa); color: #08331a; box-shadow: 0 6px 18px rgba(37, 211, 102, .32); }
.m4-btn-wa:hover { background: var(--m4-wa-dark); color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .4); }

.m4-btn-dark { background: var(--m4-ink); color: var(--m4-white); }
.m4-btn-dark:hover { background: var(--m4-ink-2); box-shadow: var(--m4-shadow); }

.m4-btn-ghost { background: transparent; color: var(--m4-ink); border-color: var(--m4-line-strong); }
.m4-btn-ghost:hover { border-color: var(--m4-ink); background: var(--m4-white); box-shadow: var(--m4-shadow-sm); }

.m4-btn-outline-light { background: transparent; color: var(--m4-white); border-color: rgba(255, 255, 255, .3); }
.m4-btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* --------------------------------------------------------------- header
   Faixa principal em tom escuro (identidade da marca: preto + dourado). */
.m4-site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(20, 20, 21, .9);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	transition: border-color .3s var(--m4-ease), box-shadow .3s var(--m4-ease);
}
.m4-site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, .1); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.m4-header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.m4-brand { display: inline-flex; align-items: center; gap: 13px; }
.m4-brand-logo { width: 52px; height: 52px; object-fit: contain; }
.m4-custom-logo {
	height: var(--m4-logo-h); width: auto; max-width: var(--m4-logo-max);
	object-fit: contain; object-position: left center;
}
.m4-brand-mark {
	font-family: var(--m4-font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em;
	width: 52px; height: 52px; display: grid; place-items: center;
	background: var(--m4-white); color: var(--m4-ink); border-radius: 12px;
}
.m4-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.m4-brand-text strong { font-family: var(--m4-font-logo); font-weight: 400; font-size: 1.16rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.m4-brand-text em { font-style: normal; font-size: .62rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--m4-gold); }

.m4-site-nav { margin-left: auto; }
.m4-menu-primary { display: flex; align-items: center; gap: 4px; }
.m4-menu-primary a {
	display: inline-block; padding: 9px 15px; border-radius: 999px;
	font-weight: 500; font-size: .96rem; color: rgba(255, 255, 255, .82);
	transition: background .18s var(--m4-ease), color .18s var(--m4-ease);
}
.m4-menu-primary a:hover, .m4-menu-primary .is-current > a { background: rgba(255, 255, 255, .12); color: #fff; }

/* submenus (dropdown no desktop) */
.m4-menu-primary li { position: relative; }
.m4-menu-primary .m4-menu-item-has-children { display: flex; align-items: center; }
.m4-submenu-toggle {
	display: inline-grid; place-items: center; width: 26px; height: 34px; margin-left: -6px;
	background: transparent; border: none; cursor: pointer; color: rgba(255, 255, 255, .7); border-radius: 8px;
}
.m4-submenu-toggle:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.m4-submenu-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--m4-ease); }
.m4-submenu-open > .m4-submenu-toggle .m4-submenu-caret { transform: translateY(1px) rotate(-135deg); }

.m4-sub-menu {
	position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; list-style: none; margin: 0;
	background: var(--m4-white); border: 1px solid var(--m4-line); border-radius: 14px; padding: 8px;
	box-shadow: var(--m4-shadow-lg); z-index: 60;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s var(--m4-ease), transform .2s var(--m4-ease), visibility .2s;
}
.m4-sub-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.m4-menu-primary > li:hover > .m4-sub-menu,
.m4-menu-primary > li:focus-within > .m4-sub-menu,
.m4-menu-primary > li.m4-submenu-open > .m4-sub-menu { opacity: 1; visibility: visible; transform: none; }
.m4-sub-menu li { display: block; }
.m4-sub-menu a { display: block; width: 100%; padding: 10px 14px; border-radius: 10px; font-size: .92rem; font-weight: 500; white-space: nowrap; color: var(--m4-ink-2); }
.m4-sub-menu a:hover { background: var(--m4-surface); color: var(--m4-ink); }
/* Item atual dentro do dropdown (fundo branco): mantém texto escuro, não o branco do header. */
.m4-sub-menu .is-current > a,
.m4-sub-menu .is-current > a,
.m4-sub-menu a[aria-current] { background: var(--m4-surface); color: var(--m4-ink); }

.m4-header-cta { flex: none; }
.m4-nav-toggle { display: none; }

/* mobile nav */
@media (max-width: 900px) {
	/* No mobile o WhatsApp do header sai (o botão flutuante já cobre isso)
	   e o botão de menu fica alinhado à direita. */
	.m4-header-cta { display: none; }
	.m4-nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .22);
		background: rgba(255, 255, 255, .06); margin-left: 0;
	}
	.m4-nav-toggle-bar, .m4-nav-toggle-bar::before, .m4-nav-toggle-bar::after {
		content: ""; display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
		transition: transform .25s var(--m4-ease), opacity .2s var(--m4-ease);
	}
	.m4-nav-toggle-bar::before { transform: translateY(-6px); }
	.m4-nav-toggle-bar::after { transform: translateY(4px); }
	.m4-nav-toggle[aria-expanded="true"] .m4-nav-toggle-bar { background: transparent; }
	.m4-nav-toggle[aria-expanded="true"] .m4-nav-toggle-bar::before { transform: rotate(45deg); }
	.m4-nav-toggle[aria-expanded="true"] .m4-nav-toggle-bar::after { transform: rotate(-45deg) translateY(-1px); }

	.m4-site-nav { position: static; margin-left: auto; }
	.m4-menu-primary {
		position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
		background: var(--m4-ink); padding: 16px 24px 28px; border-bottom: 1px solid rgba(255, 255, 255, .08);
		box-shadow: var(--m4-shadow-lg);
		transform: translateY(-12px); opacity: 0; pointer-events: none;
		transition: transform .28s var(--m4-ease), opacity .24s var(--m4-ease);
	}
	.m4-menu-primary.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
	.m4-menu-primary a { padding: 14px 12px; font-size: 1.1rem; border-radius: var(--m4-radius-sm); }

	/* submenu vira acordeão no mobile */
	.m4-menu-primary { max-height: calc(100vh - 72px); overflow-y: auto; }
	.m4-menu-primary .m4-menu-item-has-children { flex-wrap: wrap; }
	.m4-menu-primary .m4-menu-item-has-children > a { flex: 1; }
	.m4-submenu-toggle { width: 48px; height: 52px; margin-left: 0; }
	.m4-submenu-caret { width: 9px; height: 9px; }
	.m4-sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; z-index: auto;
		box-shadow: none; border: none; background: transparent; padding: 0 0 6px 12px; min-width: 0; width: 100%;
		max-height: 0; overflow: hidden; transition: max-height .32s var(--m4-ease);
	}
	.m4-sub-menu::before { display: none; }
	.m4-menu-primary li.m4-submenu-open > .m4-sub-menu { max-height: 560px; }
	.m4-sub-menu a { padding: 12px; font-size: 1.02rem; color: rgba(255, 255, 255, .72); }
	.m4-sub-menu a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
}

/* --------------------------------------------------------------- hero */
.m4-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 7vw, 92px); overflow: hidden; }
.m4-hero-grid {
	display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center;
	position: relative; z-index: 2;
}
.m4-hero-copy h1 {
	font-size: var(--m4-hero-scale); font-weight: 800; letter-spacing: -.035em;
	margin-bottom: 22px;
}
.m4-hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #46464c; max-width: 34ch; margin-bottom: 30px; }
.m4-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.m4-hero-note { margin: 4px 0 0; font-family: var(--m4-font-mono); font-size: .78rem; letter-spacing: .01em; color: var(--m4-muted); }

/* grade sutil no fundo do hero */
.m4-hero-grid-bg {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(25, 25, 27, .035) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(25, 25, 27, .035) 1px, transparent 1px);
	background-size: 46px 46px;
	-webkit-mask-image: radial-gradient(120% 80% at 70% 0%, #000 30%, transparent 75%);
	mask-image: radial-gradient(120% 80% at 70% 0%, #000 30%, transparent 75%);
}

/* --------------------------------------- assinatura: Painel de Clareza */
.m4-clarity-card {
	background: var(--m4-white); border: 1px solid var(--m4-line);
	border-radius: var(--m4-radius-lg); padding: 26px; box-shadow: var(--m4-shadow-lg);
	position: relative;
}
.m4-clarity-card::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
	background: linear-gradient(150deg, rgba(201, 185, 119, .7), transparent 42%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.m4-clarity-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.m4-clarity-title { font-family: var(--m4-font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--m4-muted); }
.m4-clarity-badge {
	font-family: var(--m4-font-mono); font-size: .64rem; letter-spacing: .05em; text-transform: uppercase;
	color: var(--m4-gold-deep); background: var(--m4-gold-soft); padding: 4px 9px; border-radius: 999px;
	display: inline-flex; align-items: center; gap: 6px;
}
.m4-clarity-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--m4-gold-deep); animation: m4-pulse 1.8s ease-in-out infinite; }
@keyframes m4-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.m4-clarity-savings { margin-bottom: 16px; }
.m4-clarity-label { display: block; font-size: .82rem; color: var(--m4-muted); margin-bottom: 6px; }
.m4-clarity-value {
	font-family: var(--m4-font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.7rem);
	letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: block; line-height: 1;
}
.m4-clarity-sub { font-family: var(--m4-font-mono); font-size: .72rem; color: var(--m4-muted-2); }

.m4-clarity-bar { height: 8px; background: var(--m4-surface); border-radius: 999px; overflow: hidden; margin: 18px 0 22px; }
.m4-clarity-bar-fill {
	display: block; height: 100%; width: 0; border-radius: inherit;
	background: linear-gradient(90deg, var(--m4-gold), var(--m4-gold-2));
	transition: width 1.4s var(--m4-ease) .3s;
}
.m4-clarity-card.is-visible .m4-clarity-bar-fill { width: 78%; }

.m4-clarity-rows { border-top: 1px solid var(--m4-line); }
.m4-clarity-rows li {
	display: flex; align-items: center; justify-content: space-between;
	padding: 11px 0; border-bottom: 1px solid var(--m4-line); font-size: .9rem;
}
.m4-clarity-rows span { color: var(--m4-muted); }
.m4-clarity-rows b { font-weight: 600; font-variant-numeric: tabular-nums; }
.m4-clarity-rows b.m4-ok { color: var(--m4-wa-dark); }
.m4-clarity-rows b.m4-accent { color: var(--m4-gold-deep); }
.m4-clarity-note { margin: 14px 0 0; font-size: .72rem; color: var(--m4-muted-2); }
.m4-clarity-card--static { box-shadow: var(--m4-shadow); }

/* ------------------------------- hero: cartão preto & dourado do contador */
.m4-hero-card {
	position: relative; overflow: hidden;
	background: var(--m4-ink); color: #fff;
	border: 1px solid rgba(201, 185, 119, .3);
	border-radius: var(--m4-radius-lg); padding: 34px 32px;
	box-shadow: var(--m4-shadow-lg);
}
.m4-hero-card > * { position: relative; z-index: 1; }
.m4-hero-card-glow {
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: radial-gradient(120% 90% at 100% 0%, rgba(201, 185, 119, .22), transparent 55%);
}
.m4-hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.m4-hero-card-mark { width: 46px; height: 46px; object-fit: contain; }
.m4-hero-card-tag { font-family: var(--m4-font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--m4-gold); }
.m4-hero-card-eyebrow { display: block; font-family: var(--m4-font-mono); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--m4-gold); margin-bottom: 8px; }
.m4-hero-card-name { display: block; font-family: var(--m4-font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -.02em; line-height: 1.12; }
.m4-hero-card-role { display: block; font-family: var(--m4-font-mono); font-size: .74rem; letter-spacing: .02em; color: var(--m4-gold); margin-top: 9px; }
.m4-hero-card-divider { height: 1px; margin: 24px 0; background: linear-gradient(90deg, rgba(201, 185, 119, .55), rgba(201, 185, 119, .05)); }
.m4-hero-card-list { display: flex; flex-direction: column; gap: 13px; }
.m4-hero-card-list li { position: relative; padding-left: 26px; font-size: .95rem; color: rgba(255, 255, 255, .87); }
.m4-hero-card-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 15px; height: 1.5px; background: var(--m4-gold); border-radius: 2px; }
.m4-hero-card-sign { margin: 26px 0 0; font-family: var(--m4-font-display); font-weight: 600; font-style: italic; font-size: 1.08rem; letter-spacing: -.01em; color: var(--m4-gold); }

/* --------------------------------------------------------------- logos */
.m4-logos { padding: 40px 0 8px; }
.m4-logos-title { text-align: center; font-family: var(--m4-font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--m4-muted-2); margin-bottom: 22px; }
.m4-logos-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.m4-logo-chip {
	font-size: .9rem; color: var(--m4-muted); font-weight: 500;
	padding: 9px 18px; border: 1px solid var(--m4-line); border-radius: 999px; background: var(--m4-white);
}
.m4-logo-item { display: inline-flex; align-items: center; flex: none; margin-right: 60px; }
.m4-logo-img {
	height: 52px; width: auto; max-width: 170px; object-fit: contain;
	filter: grayscale(1); opacity: .6; transition: filter .3s var(--m4-ease), opacity .3s var(--m4-ease);
}
.m4-logo-item:hover .m4-logo-img { filter: grayscale(0); opacity: 1; }

/* Carrossel de logos (marquee infinito). O espaçamento fica no margin-right
   de cada item para que translateX(-50%) feche o loop sem emenda. */
.m4-logos-marquee {
	overflow: hidden; width: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.m4-logos-track {
	display: flex; align-items: center; width: max-content;
	animation: m4-marquee 36s linear infinite;
}
.m4-logos-dup { display: contents; }
.m4-logos-marquee:hover .m4-logos-track { animation-play-state: paused; }
@keyframes m4-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.m4-logos-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
	.m4-logo-item { margin: 12px 30px; }
	.m4-logos-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* --------------------------------------------------------------- about */
.m4-about { padding: clamp(60px, 8vw, 104px) 0; }
.m4-about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.m4-about-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 20px; }
.m4-about-copy p { color: #46464c; margin-bottom: 16px; }
.m4-about-copy .m4-btn { margin-top: 12px; }

.m4-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.m4-stat {
	background: var(--m4-surface); border: 1px solid var(--m4-line); border-radius: var(--m4-radius);
	padding: 26px 24px; transition: transform .25s var(--m4-ease), box-shadow .25s var(--m4-ease);
}
.m4-stat:hover { transform: translateY(-4px); box-shadow: var(--m4-shadow-sm); background: var(--m4-white); }
.m4-stat-num {
	display: block; font-family: var(--m4-font-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.5rem);
	letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.m4-stat-label { font-size: .88rem; color: var(--m4-muted); }

/* ------------------------------------------------------------ services */
.m4-services { padding: clamp(60px, 8vw, 104px) 0; background: var(--m4-surface); border-top: 1px solid var(--m4-line); border-bottom: 1px solid var(--m4-line); }
.m4-section-head { max-width: 720px; margin-bottom: 44px; }
.m4-section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.m4-section-lead { font-size: 1.08rem; color: var(--m4-muted); }

.m4-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.m4-card {
	background: var(--m4-white); border: 1px solid var(--m4-line); border-radius: var(--m4-radius);
	padding: 28px 26px; display: flex; flex-direction: column;
	transition: transform .25s var(--m4-ease), box-shadow .25s var(--m4-ease), border-color .25s var(--m4-ease);
}
.m4-card:hover { transform: translateY(-6px); box-shadow: var(--m4-shadow); border-color: var(--m4-line-strong); }
.m4-card-icon {
	width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
	background: var(--m4-gold-soft); color: var(--m4-gold-deep); margin-bottom: 20px;
}
.m4-card-icon svg { width: 26px; height: 26px; }
.m4-card-title { font-size: 1.22rem; margin-bottom: 8px; }
.m4-card-short { font-weight: 600; color: var(--m4-ink-2); margin-bottom: 8px; font-size: .96rem; }
.m4-card-desc { color: var(--m4-muted); font-size: .94rem; margin-bottom: 18px; flex: 1; }
.m4-card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--m4-ink); font-size: .94rem; }
.m4-card-link span { transition: transform .2s var(--m4-ease); color: var(--m4-gold-deep); }
.m4-card-link:hover { color: var(--m4-gold-deep); }
.m4-card-link:hover span { transform: translateX(4px); }

.m4-services-cta { text-align: center; margin-top: 40px; }

/* -------------------------------------------------------- testimonials */
.m4-testimonials { padding: clamp(60px, 8vw, 104px) 0; }
.m4-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.m4-testi {
	background: var(--m4-white); border: 1px solid var(--m4-line); border-radius: var(--m4-radius);
	padding: 28px 26px; margin: 0; display: flex; flex-direction: column; gap: 20px;
}
.m4-testi blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--m4-ink-2); }
.m4-testi blockquote::before { content: "“"; font-family: var(--m4-font-display); font-size: 2.4rem; line-height: 0; color: var(--m4-gold); display: block; height: 20px; }
.m4-testi figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.m4-testi-avatar {
	width: 50px; height: 50px; border-radius: 50%; flex: none;
	display: grid; place-items: center;
	background: var(--m4-ink); color: var(--m4-gold);
	font-family: var(--m4-font-display); font-weight: 700; font-size: 1rem; letter-spacing: .01em;
	border: 1px solid rgba(201, 185, 119, .35);
}
.m4-testi-logo { width: 56px; height: 56px; border-radius: 12px; flex: none; object-fit: contain; padding: 7px; background: var(--m4-surface); border: 1px solid var(--m4-line); }
.m4-testi figcaption strong { display: block; font-family: var(--m4-font-display); font-size: .96rem; }
.m4-testi figcaption em { font-style: normal; font-size: .82rem; color: var(--m4-muted); }

/* ------------------------------------------------------------ cta band */
.m4-cta-band { padding: clamp(56px, 7vw, 92px) 0; background: var(--m4-ink); color: var(--m4-white); overflow: hidden; }
.m4-cta-band::before {
	content: ""; position: absolute; top: -30%; right: -10%; width: 60%; height: 160%;
	background: radial-gradient(closest-side, rgba(201, 185, 119, .28), transparent 70%);
	pointer-events: none;
}
.m4-cta-inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; z-index: 2; }
.m4-cta-copy h2 { color: var(--m4-white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.m4-cta-copy p { color: rgba(255, 255, 255, .72); font-size: 1.06rem; max-width: 46ch; margin-bottom: 20px; }
.m4-cta-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.m4-cta-list li { position: relative; padding-left: 22px; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.m4-cta-list li::before { content: "✓"; position: absolute; left: 0; color: var(--m4-gold); font-weight: 700; }
.m4-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.m4-cta-actions .m4-btn { width: 100%; }
.m4-cta-phone { font-family: var(--m4-font-mono); font-size: .82rem; color: rgba(255, 255, 255, .6); margin: 6px 0 0; }

/* --------------------------------------------------------- page hero */
.m4-page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(30px, 4vw, 44px); }
.m4-page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; max-width: 20ch; }
.m4-page-hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--m4-muted); max-width: 60ch; margin: 20px 0 26px; }
.m4-page-hero--contact, .m4-page-hero--post { padding-bottom: clamp(10px, 3vw, 28px); }

/* -------------------------------------------------------- prose section */
.m4-prose-section { padding: clamp(48px, 6vw, 84px) 0; }
.m4-prose-section.m4-alt { background: var(--m4-surface); border-block: 1px solid var(--m4-line); }
.m4-prose-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.m4-prose-grid h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 18px; }
.m4-prose-grid p { color: #46464c; }
.m4-prose-aside {
	background: var(--m4-white); border: 1px solid var(--m4-line); border-radius: var(--m4-radius);
	padding: 30px 28px; box-shadow: var(--m4-shadow-sm);
}
.m4-prose-aside h3 { font-size: 1.2rem; margin-bottom: 18px; }
.m4-check-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.m4-check-list li { position: relative; padding-left: 30px; font-size: .95rem; color: var(--m4-ink-2); }
.m4-check-list li::before {
	content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
	display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 700;
	background: var(--m4-gold-soft); color: var(--m4-gold-deep);
}

.m4-entry-content { font-size: 1.06rem; }
.m4-entry-content h2 { font-size: 1.7rem; margin: 2em 0 .6em; }
.m4-entry-content h3 { font-size: 1.32rem; margin: 1.6em 0 .5em; }
.m4-entry-content p { margin-bottom: 1.2em; color: #35353b; }
.m4-entry-content a:not(.m4-btn) { color: var(--m4-ink); text-decoration: underline; text-decoration-color: var(--m4-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.m4-entry-content a:not(.m4-btn):hover { color: var(--m4-gold-deep); }
/* Botões dentro de conteúdo mantêm o próprio estilo (sem herdar cor/sublinhado de link). */
.m4-entry-content .m4-btn { text-decoration: none; }
.m4-entry-content ul, .m4-entry-content ol { margin: 0 0 1.2em 1.2em; }
.m4-entry-content ul { list-style: disc; }
.m4-entry-content ol { list-style: decimal; }
.m4-entry-content li { margin-bottom: .5em; }
.m4-entry-content blockquote { border-left: 3px solid var(--m4-gold); padding-left: 20px; margin: 1.4em 0; color: var(--m4-muted); font-style: italic; }
.m4-entry-content img { border-radius: var(--m4-radius); margin: 1.4em 0; }

/* --------------------------------------------------------------- mvv */
.m4-mvv { padding: clamp(56px, 7vw, 92px) 0; background: var(--m4-surface); border-block: 1px solid var(--m4-line); }
.m4-mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.m4-mvv-card { background: var(--m4-white); border: 1px solid var(--m4-line); border-radius: var(--m4-radius); padding: 30px 28px; }
.m4-mvv-tag {
	display: inline-block; font-family: var(--m4-font-mono); font-size: .72rem; letter-spacing: .06em;
	text-transform: uppercase; color: var(--m4-gold-deep); background: var(--m4-gold-soft);
	padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.m4-mvv-card p { color: #46464c; margin: 0; }
.m4-values-list { display: flex; flex-direction: column; gap: 10px; }
.m4-values-list li { position: relative; padding-left: 22px; font-weight: 500; color: var(--m4-ink-2); }
.m4-values-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--m4-gold); }

/* ---------------------------------------------------------- segments */
.m4-segments { padding: clamp(56px, 7vw, 92px) 0; }
.m4-segments.m4-alt { background: var(--m4-surface); border-block: 1px solid var(--m4-line); }
.m4-seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.m4-seg-card {
	background: var(--m4-white); border: 1px solid var(--m4-line); border-radius: var(--m4-radius);
	padding: 26px 24px; transition: transform .25s var(--m4-ease), box-shadow .25s var(--m4-ease);
}
.m4-seg-card:hover { transform: translateY(-5px); box-shadow: var(--m4-shadow); }
.m4-seg-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.m4-seg-card p { font-size: .92rem; color: var(--m4-muted); margin: 0; }

/* --------------------------------------------------------------- team */
.m4-team { padding: clamp(56px, 7vw, 92px) 0; }
.m4-team-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.m4-team-photo {
	position: relative; aspect-ratio: 1; border-radius: var(--m4-radius-lg); display: grid; place-items: center;
	background: linear-gradient(150deg, var(--m4-ink), #35353d);
	border: 1px solid rgba(201, 185, 119, .28); overflow: hidden;
}
.m4-team-photo::after {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: radial-gradient(120% 90% at 100% 0%, rgba(201, 185, 119, .18), transparent 55%);
}
.m4-team-photo-logo { position: relative; width: 62%; height: auto; }
.m4-team-photo-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.m4-team-grid h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 16px; }
.m4-team-grid p { color: #46464c; }
.m4-team-grid .m4-btn { margin-top: 12px; }

/* --------------------------------------------------------------- faq */
.m4-faq { padding: clamp(56px, 7vw, 92px) 0; background: var(--m4-surface); border-block: 1px solid var(--m4-line); }
.m4-faq-list { max-width: 820px; }
.m4-faq-item { background: var(--m4-white); border: 1px solid var(--m4-line); border-radius: var(--m4-radius-sm); margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s var(--m4-ease); }
.m4-faq-item[open] { box-shadow: var(--m4-shadow-sm); }
.m4-faq-item summary {
	list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center;
	justify-content: space-between; gap: 16px; font-family: var(--m4-font-display); font-weight: 600;
	font-size: 1.06rem; letter-spacing: -.01em;
}
.m4-faq-item summary::-webkit-details-marker { display: none; }
.m4-faq-plus { position: relative; width: 18px; height: 18px; flex: none; }
.m4-faq-plus::before, .m4-faq-plus::after { content: ""; position: absolute; top: 50%; left: 0; width: 18px; height: 2px; background: var(--m4-gold-deep); border-radius: 2px; transition: transform .25s var(--m4-ease); }
.m4-faq-plus::after { transform: rotate(90deg); }
.m4-faq-item[open] .m4-faq-plus::after { transform: rotate(0); }
.m4-faq-answer { padding: 0 24px 22px; }
.m4-faq-answer p { margin: 0; color: var(--m4-muted); }

/* --------------------------------------------------------------- contact */
.m4-contact { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); }
.m4-contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.m4-contact-form-wrap { background: var(--m4-white); border: 1px solid var(--m4-line); border-radius: var(--m4-radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--m4-shadow); }
.m4-contact-form-wrap h2 { font-size: 1.6rem; margin-bottom: 8px; }
.m4-contact-form { margin-top: 24px; }
.m4-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.m4-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.m4-field label { font-size: .85rem; font-weight: 600; color: var(--m4-ink-2); margin-bottom: 7px; }
.m4-field input, .m4-field select, .m4-field textarea {
	font: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--m4-line-strong);
	border-radius: var(--m4-radius-sm); background: var(--m4-paper); color: var(--m4-ink);
	transition: border-color .18s var(--m4-ease), box-shadow .18s var(--m4-ease); width: 100%;
}
.m4-field textarea { resize: vertical; min-height: 120px; }
.m4-field input:focus, .m4-field select:focus, .m4-field textarea:focus {
	outline: none; border-color: var(--m4-gold); box-shadow: 0 0 0 4px var(--m4-gold-soft);
}
.m4-field--hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
/* O widget do Turnstile tem largura mínima de 300px. Em telas estreitas sobram
   ~268px no cartão do formulário, então ele é reduzido proporcionalmente em vez
   de cortado (o overflow do wrapper contém a caixa de 300px que fica reservada). */
.m4-field--turnstile { margin-bottom: 18px; }
@media (max-width: 430px) {
	.m4-field--turnstile { overflow: hidden; }
	.m4-field--turnstile .cf-turnstile { transform: scale(.88); transform-origin: left top; margin-bottom: -8px; }
}
.m4-form-status { margin: 14px 0 0; font-size: .92rem; min-height: 1.2em; }
.m4-form-status.is-error { color: #c0392b; }
.m4-form-status.is-success { color: var(--m4-wa-dark); font-weight: 600; }
.m4-contact-form .m4-btn { margin-top: 6px; }

.m4-contact-info { display: flex; flex-direction: column; gap: 22px; }
.m4-contact-primary {
	display: flex; align-items: center; gap: 16px; padding: 20px 22px;
	background: var(--m4-ink); color: var(--m4-white); border-radius: var(--m4-radius);
	transition: transform .2s var(--m4-ease), box-shadow .2s var(--m4-ease);
}
.m4-contact-primary:hover { transform: translateY(-3px); box-shadow: var(--m4-shadow); }
.m4-contact-primary svg { width: 32px; height: 32px; flex: none; color: var(--m4-wa); }
.m4-contact-primary strong { display: block; font-family: var(--m4-font-display); font-size: 1.08rem; }
.m4-contact-primary em { font-style: normal; font-family: var(--m4-font-mono); font-size: .84rem; color: rgba(255, 255, 255, .7); }

.m4-contact-list { display: flex; flex-direction: column; gap: 18px; }
.m4-contact-list > li { display: flex; flex-direction: column; gap: 3px; }
.m4-contact-label { font-family: var(--m4-font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--m4-muted-2); }
.m4-contact-list a { color: var(--m4-ink-2); }
.m4-contact-list a:hover { color: var(--m4-gold-deep); }
.m4-contact-list address { font-style: normal; color: var(--m4-ink-2); line-height: 1.6; }

/* --------------------------------------------------------------- blog */
.m4-blog { padding: clamp(30px, 5vw, 60px) 0 clamp(64px, 8vw, 100px); }
.m4-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.m4-post-card { background: var(--m4-white); border: 1px solid var(--m4-line); border-radius: var(--m4-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--m4-ease), box-shadow .25s var(--m4-ease); }
.m4-post-card:hover { transform: translateY(-5px); box-shadow: var(--m4-shadow); }
.m4-post-thumb img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.m4-post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.m4-post-meta { font-family: var(--m4-font-mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--m4-muted-2); }
.m4-post-card-title { font-size: 1.2rem; }
.m4-post-card-title a:hover { color: var(--m4-gold-deep); }
.m4-post-card-body p { color: var(--m4-muted); font-size: .94rem; margin: 0; }
.m4-post-card-body .m4-card-link { margin-top: auto; }
.m4-pagination { margin-top: 40px; display: flex; justify-content: center; }
.m4-pagination .m4-nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.m4-pagination a, .m4-pagination .m4-current {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
	border: 1.5px solid var(--m4-line-strong); border-radius: 12px; font-weight: 600;
}
.m4-pagination .m4-current { background: var(--m4-ink); color: var(--m4-white); border-color: var(--m4-ink); }
.m4-pagination a:hover { border-color: var(--m4-ink); }

.m4-post-hero-img { margin: 0 0 32px; border-radius: var(--m4-radius); overflow: hidden; }
.m4-post-cta { margin-top: 48px; padding: 32px; background: var(--m4-surface); border: 1px solid var(--m4-line); border-radius: var(--m4-radius); text-align: center; }
.m4-post-cta h2 { font-size: 1.5rem; margin-bottom: 10px; }
.m4-post-cta p { color: var(--m4-muted); margin-bottom: 20px; }

/* ------- blog: filtro de categorias */
.m4-blog-filter { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.m4-blog-chip {
	font-size: .88rem; font-weight: 500; padding: 8px 16px; border-radius: 999px;
	border: 1px solid var(--m4-line-strong); color: var(--m4-ink-2); background: var(--m4-white);
	transition: color .18s var(--m4-ease), background .18s var(--m4-ease), border-color .18s var(--m4-ease);
}
.m4-blog-chip:hover { border-color: var(--m4-ink); }
.m4-blog-chip.is-current { background: var(--m4-ink); color: var(--m4-white); border-color: var(--m4-ink); }

/* meta com categoria */
.m4-post-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.m4-post-cat { color: var(--m4-gold-deep); font-weight: 500; }
.m4-post-cat:hover { text-decoration: underline; }
.m4-post-dot { opacity: .5; }

/* fallback de imagem */
.m4-post-thumb, .m4-post-featured-media { display: block; background: linear-gradient(150deg, var(--m4-ink), #35353d); }
.m4-post-thumb-fallback { display: grid; place-items: center; aspect-ratio: 16/10; width: 100%; font-family: var(--m4-font-display); font-weight: 800; font-size: 2rem; color: rgba(255, 255, 255, .25); letter-spacing: -.03em; }

/* post em destaque */
.m4-post-featured { display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 30px; background: var(--m4-white); border: 1px solid var(--m4-line); border-radius: var(--m4-radius-lg); overflow: hidden; transition: box-shadow .25s var(--m4-ease); }
.m4-post-featured:hover { box-shadow: var(--m4-shadow); }
.m4-post-featured-media { position: relative; min-height: 260px; }
.m4-post-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m4-post-featured-body { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-content: center; }
.m4-post-featured-title { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.m4-post-featured-title a:hover { color: var(--m4-gold-deep); }
.m4-post-featured-body p { color: var(--m4-muted); }

/* artigo: voltar, meta, tags */
.m4-post-back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--m4-font-mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--m4-muted); margin-bottom: 18px; }
.m4-post-back:hover { color: var(--m4-gold-deep); }
.m4-post-meta--single { margin-bottom: 16px; font-size: .82rem; }
.m4-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.m4-post-tags a { font-size: .82rem; padding: 5px 13px; border-radius: 999px; background: var(--m4-surface); border: 1px solid var(--m4-line); color: var(--m4-muted); }
.m4-post-tags a:hover { color: var(--m4-ink); border-color: var(--m4-line-strong); }

/* compartilhar */
.m4-post-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--m4-line); }
.m4-post-share-label { font-family: var(--m4-font-mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--m4-muted-2); margin-right: 4px; }
.m4-post-share-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--m4-ink-2); background: var(--m4-surface); border: 1px solid var(--m4-line); position: relative; transition: color .18s var(--m4-ease), background .18s var(--m4-ease), border-color .18s var(--m4-ease), transform .18s var(--m4-ease); }
.m4-post-share-btn:hover { color: var(--m4-gold-deep); background: var(--m4-gold-soft); border-color: var(--m4-gold); transform: translateY(-2px); }
.m4-post-share-btn svg { width: 18px; height: 18px; }
.m4-post-share-btn.is-copied::after { content: "Link copiado!"; position: absolute; bottom: 118%; left: 50%; transform: translateX(-50%); background: var(--m4-ink); color: #fff; font-size: .7rem; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }

/* relacionados + vazio */
.m4-related-posts { padding: 0 0 clamp(56px, 8vw, 90px); }
.m4-related-posts .m4-section-head { margin-bottom: 28px; }
.m4-blog-empty { text-align: center; padding: 30px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.m4-blog-empty p { color: var(--m4-muted); font-size: 1.05rem; margin: 0; max-width: 46ch; }

@media (max-width: 780px) {
	.m4-post-featured { grid-template-columns: 1fr; }
	.m4-post-featured-media { min-height: 0; aspect-ratio: 16/9; }
}

/* --------------------------------------------------------- service list */
.m4-service-list { padding: clamp(24px, 4vw, 52px) 0 clamp(56px, 7vw, 92px); }
.m4-service-row {
	display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: start;
	padding: 34px 0; border-top: 1px solid var(--m4-line);
}
.m4-service-row:first-child { border-top: none; }
.m4-service-row-head { display: flex; flex-direction: column; gap: 16px; }
.m4-service-num { font-family: var(--m4-font-mono); font-size: 1rem; color: var(--m4-muted-2); }
.m4-service-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--m4-gold-soft); color: var(--m4-gold-deep); }
.m4-service-icon svg { width: 28px; height: 28px; }
.m4-service-row-body h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 8px; }
.m4-service-row-body h3 a { transition: color .18s var(--m4-ease); }
.m4-service-row-body h3 a:hover { color: var(--m4-gold-deep); }
.m4-service-short { font-weight: 600; color: var(--m4-gold-deep); margin-bottom: 10px; }
.m4-service-row-body > p { color: #46464c; max-width: 62ch; margin-bottom: 14px; }
.m4-service-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.m4-service-row-actions .m4-card-link { color: var(--m4-ink); }
.m4-service-row-actions .m4-card-link:hover { color: var(--m4-gold-deep); }

/* Página individual do serviço */
.m4-service-single-head { display: flex; align-items: center; gap: 18px; margin-bottom: 6px; }
.m4-service-icon--lg { width: 64px; height: 64px; border-radius: 18px; flex: none; }
.m4-service-icon--lg svg { width: 32px; height: 32px; }
.m4-service-links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.m4-service-links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--m4-ink-2); transition: color .18s var(--m4-ease); }
.m4-service-links a span { color: var(--m4-gold-deep); transition: transform .2s var(--m4-ease); }
.m4-service-links a:hover { color: var(--m4-gold-deep); }
.m4-service-links a:hover span { transform: translateX(3px); }

/* --------------------------------------------------------------- footer */
.m4-site-footer { background: var(--m4-ink); color: rgba(255, 255, 255, .72); padding: clamp(56px, 7vw, 84px) 0 32px; }
.m4-footer-grid { display: grid; grid-template-columns: 1.6fr .8fr .8fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.m4-brand--footer .m4-brand-text strong { color: var(--m4-white); }
.m4-brand--footer .m4-brand-text em { color: rgba(255, 255, 255, .6); }
.m4-footer-pitch { font-size: .94rem; margin: 18px 0 22px; max-width: 42ch; }
.m4-footer-pitch strong { color: var(--m4-white); }
.m4-footer-title { font-family: var(--m4-font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--m4-muted-2); margin-bottom: 18px; font-weight: 500; }
.m4-footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.m4-footer-col a { font-size: .94rem; transition: color .18s var(--m4-ease); }
.m4-footer-col a:hover { color: var(--m4-white); }
.m4-footer-contact { font-style: normal; font-size: .94rem; line-height: 1.6; }
.m4-footer-label { display: block; font-size: .74rem; color: var(--m4-muted-2); margin-bottom: 2px; }
.m4-footer-contact ul { gap: 16px; }
.m4-footer-social { display: flex; gap: 12px; margin-top: 22px; }
.m4-footer-social a {
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
	transition: color .18s var(--m4-ease), background .18s var(--m4-ease), border-color .18s var(--m4-ease), transform .18s var(--m4-ease);
}
.m4-footer-social a:hover { color: var(--m4-ink); background: var(--m4-gold); border-color: var(--m4-gold); transform: translateY(-2px); }
.m4-footer-social svg { width: 18px; height: 18px; }
.m4-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 24px; font-size: .82rem; color: var(--m4-muted-2); }
.m4-footer-bottom p { margin: 0; }
.m4-footer-fine a { color: var(--m4-gold); transition: color .18s var(--m4-ease); }
.m4-footer-fine a:hover { color: var(--m4-white); text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------- widget WhatsApp flutuante */
.m4-wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; justify-content: flex-end; }

/* botão: só ícone; expande no hover/foco mostrando o texto */
.m4-wa-float {
	display: inline-flex; align-items: center; justify-content: center;
	height: 60px; min-width: 60px; padding: 0; overflow: hidden; cursor: pointer;
	background: var(--m4-wa); color: #08331a; border-radius: 999px; font-weight: 600;
	box-shadow: 0 10px 30px rgba(37, 211, 102, .4);
	transition: min-width .3s var(--m4-ease), padding .3s var(--m4-ease), transform .2s var(--m4-ease), box-shadow .2s var(--m4-ease);
}
.m4-wa-float svg { width: 30px; height: 30px; flex: none; }
.m4-wa-float-label { max-width: 0; opacity: 0; white-space: nowrap; overflow: hidden; transition: max-width .3s var(--m4-ease), opacity .25s var(--m4-ease), margin .3s var(--m4-ease); }
.m4-wa-widget:hover .m4-wa-float, .m4-wa-float:focus-visible { padding: 0 24px 0 18px; box-shadow: 0 14px 36px rgba(37, 211, 102, .5); }
.m4-wa-widget:hover .m4-wa-float-label, .m4-wa-float:focus-visible .m4-wa-float-label { max-width: 160px; opacity: 1; margin-left: 10px; }
.m4-wa-widget.is-open .m4-wa-float { transform: scale(.9); }

/* janelinha de chat integrada */
.m4-wa-chat {
	position: absolute; right: 0; bottom: 74px; width: 340px; max-width: calc(100vw - 32px);
	background: var(--m4-white); border: 1px solid var(--m4-line); border-radius: 18px;
	box-shadow: var(--m4-shadow-lg); overflow: hidden; transform-origin: bottom right;
	display: flex; flex-direction: column; animation: m4-wa-pop .24s var(--m4-ease);
}
.m4-wa-chat[hidden] { display: none; }
@keyframes m4-wa-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

.m4-wa-chat-head { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: var(--m4-wa-dark); color: #fff; }
.m4-wa-chat-avatar { position: relative; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; }
.m4-wa-chat-avatar svg { width: 24px; height: 24px; }
.m4-wa-online { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #4ade80; border: 2px solid var(--m4-wa-dark); }
.m4-wa-chat-id { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.m4-wa-chat-id strong { font-family: var(--m4-font-display); font-size: .98rem; }
.m4-wa-chat-id em { font-style: normal; font-size: .74rem; color: rgba(255, 255, 255, .85); }
.m4-wa-chat-close { background: transparent; border: none; color: #fff; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; opacity: .85; }
.m4-wa-chat-close:hover { opacity: 1; background: rgba(255, 255, 255, .15); }
.m4-wa-chat-close svg { width: 18px; height: 18px; }

/* área de mensagens estilo WhatsApp */
.m4-wa-chat-body {
	padding: 16px 14px; display: flex; flex-direction: column; gap: 9px;
	max-height: 300px; overflow-y: auto;
	background-color: #ece5dd;
	background-image: radial-gradient(rgba(0, 0, 0, .03) 1px, transparent 1px);
	background-size: 18px 18px;
}
.m4-wa-msg { display: flex; }
.m4-wa-msg--in { justify-content: flex-start; }
.m4-wa-msg--out { justify-content: flex-end; }
.m4-wa-bubble {
	max-width: 82%; padding: 9px 12px; font-size: .9rem; line-height: 1.45; color: var(--m4-ink);
	background: #fff; border-radius: 12px; border-top-left-radius: 3px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.m4-wa-msg--out .m4-wa-bubble { background: #d7f8c8; border-radius: 12px; border-top-right-radius: 3px; }

/* compositor */
.m4-wa-chat-compose { display: flex; align-items: center; gap: 8px; padding: 10px; background: var(--m4-surface); border-top: 1px solid var(--m4-line); }
.m4-wa-chat-input {
	flex: 1; min-width: 0; font: inherit; font-size: .92rem; padding: 11px 15px;
	border: 1px solid var(--m4-line-strong); border-radius: 999px; background: var(--m4-white); color: var(--m4-ink);
	transition: border-color .18s var(--m4-ease), box-shadow .18s var(--m4-ease);
}
.m4-wa-chat-input:focus { outline: none; border-color: var(--m4-wa); box-shadow: 0 0 0 3px rgba(37, 211, 102, .16); }
.m4-wa-chat-send {
	flex: none; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
	background: var(--m4-wa); color: #08331a; display: grid; place-items: center;
	transition: background .2s var(--m4-ease), transform .15s var(--m4-ease), color .2s var(--m4-ease);
}
.m4-wa-chat-send:hover { background: var(--m4-wa-dark); color: #fff; transform: scale(1.05); }
.m4-wa-chat-send svg { width: 20px; height: 20px; margin-left: -2px; }

@media (max-width: 560px) { .m4-wa-widget { right: 16px; bottom: 16px; } }

/* ------------------------------------------------------- search form */
.m4-search-form { display: flex; gap: 10px; }
.m4-search-form input { flex: 1; padding: 12px 15px; border: 1.5px solid var(--m4-line-strong); border-radius: var(--m4-radius-sm); font: inherit; }

/* ------------------------------------------------------ reveal / motion */
/* Só oculta para animar quando o JS está ativo — sem JS, tudo permanece visível. */
.js .m4-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--m4-ease), transform .7s var(--m4-ease); transition-delay: var(--m4-delay, 0s); }
.js .m4-reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------- faixa de abertura CNPJ */
.m4-cnpj-band { padding: clamp(20px, 4vw, 40px) 0; }
.m4-cnpj-inner {
	display: grid; grid-template-columns: 1.5fr auto; gap: clamp(24px, 4vw, 44px); align-items: center;
	background: linear-gradient(120deg, var(--m4-gold-soft), var(--m4-surface));
	border: 1px solid var(--m4-line-strong); border-radius: var(--m4-radius-lg);
	padding: clamp(28px, 4vw, 46px);
}
.m4-cnpj-copy h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 12px; max-width: 26ch; }
.m4-cnpj-copy p { color: #46464c; margin: 0; max-width: 52ch; }
.m4-cnpj-action { display: flex; }
.m4-cnpj-action .m4-btn { white-space: normal; }

/* ------------------------------------------------------------- planos */
.m4-plans { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 92px); }
.m4-plans-group { margin-bottom: clamp(40px, 5vw, 64px); }
.m4-plans-group:last-of-type { margin-bottom: 0; }
.m4-plans-cat {
	display: inline-block; font-family: var(--m4-font-mono); font-size: .8rem; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; color: var(--m4-gold-deep);
	background: var(--m4-gold-soft); padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.m4-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.m4-plan-card {
	display: flex; flex-direction: column; height: 100%;
	background: var(--m4-white); border: 1px solid var(--m4-line); border-radius: var(--m4-radius);
	padding: 28px 26px; box-shadow: var(--m4-shadow-sm);
	transition: transform .22s var(--m4-ease), box-shadow .22s var(--m4-ease), border-color .22s var(--m4-ease);
}
.m4-plan-card:hover, .m4-plan-card:focus-within {
	transform: translateY(-4px) scale(1.03); box-shadow: var(--m4-shadow-lg);
	border-color: var(--m4-gold); z-index: 3;
}
.m4-plan-card-head { border-bottom: 1px solid var(--m4-line); padding-bottom: 18px; margin-bottom: 18px; }
.m4-plan-name { font-size: 1.32rem; margin-bottom: 12px; }
.m4-plan-price { font-family: var(--m4-font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: var(--m4-ink); }
.m4-plan-price--hidden { position: relative; display: inline-flex; align-items: center; min-width: 160px; }
.m4-plan-price-blur { filter: blur(8px); opacity: .45; user-select: none; font-family: var(--m4-font-display); font-weight: 800; font-size: 1.5rem; }
.m4-plan-price-mask {
	position: absolute; inset: 0; display: grid; place-items: center; white-space: nowrap;
	font-family: var(--m4-font-mono); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; color: var(--m4-gold-deep);
}
.m4-plan-ideal { margin: 14px 0 0; font-size: .92rem; color: var(--m4-muted); }
.m4-plan-features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; flex: 1; }
.m4-plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .91rem; line-height: 1.35; }
.m4-plan-check { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; margin-top: 1px; }
.m4-plan-check svg { width: 12px; height: 12px; }
.m4-plan-features li.is-in { color: var(--m4-ink-2); }
.m4-plan-features li.is-in .m4-plan-check { background: var(--m4-gold-soft); color: var(--m4-gold-deep); }
.m4-plan-features li.is-out { color: var(--m4-muted-2); }
.m4-plan-features li.is-out .m4-plan-check { background: var(--m4-surface-2); color: var(--m4-muted-2); }
.m4-plan-features li.is-out span:last-child { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .18); }
.m4-plan-card-foot { margin-top: auto; }
.m4-plans-note { margin-top: clamp(28px, 4vw, 44px); font-size: .86rem; color: var(--m4-muted); max-width: 90ch; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 980px) {
	.m4-hero-grid, .m4-about-grid, .m4-prose-grid, .m4-contact-grid, .m4-team-grid, .m4-cta-inner, .m4-cnpj-inner { grid-template-columns: 1fr; }
	/* trilhas 1fr adotam min-width:auto (= min-content) e podem ficar mais largas
	   que o container; min-width:0 permite que a coluna encolha de verdade. */
	.m4-hero-grid > *, .m4-about-grid > *, .m4-prose-grid > *, .m4-contact-grid > *, .m4-team-grid > *, .m4-cta-inner > * { min-width: 0; }
	.m4-plans-grid { grid-template-columns: repeat(2, 1fr); }
	.m4-cnpj-action .m4-btn { width: 100%; }
	.m4-prose-grid .m4-prose-aside, .m4-prose-section.m4-alt .m4-clarity-card { order: 2; }
	.m4-team-photo { max-width: 320px; }
	.m4-cards, .m4-testi-grid, .m4-post-grid, .m4-mvv-grid { grid-template-columns: repeat(2, 1fr); }
	.m4-seg-grid { grid-template-columns: repeat(2, 1fr); }
	.m4-cta-actions { align-items: stretch; }
	.m4-cta-actions .m4-btn { width: 100%; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	/* No header do celular, o wordmark é largo e invadia o botão de menu:
	   mostramos só o monograma GS (o texto continua no desktop e no rodapé). */
	.m4-site-header .m4-brand-text { display: none; }
	/* Em telas estreitas o nowrap do destaque e o dos botões largos empurravam
	   todo o hero para fora da tela (o overflow:hidden da seção cortava o H1). */
	.m4-hl { white-space: normal; }
	.m4-btn { white-space: normal; text-wrap: balance; line-height: 1.25; }
	.m4-cards, .m4-testi-grid, .m4-post-grid, .m4-mvv-grid, .m4-seg-grid, .m4-stats, .m4-field-row, .m4-plans-grid { grid-template-columns: 1fr; }
	.m4-plan-card:hover, .m4-plan-card:focus-within { transform: none; }
	.m4-service-row { grid-template-columns: 1fr; gap: 18px; }
	.m4-service-row-head { flex-direction: row; align-items: center; }
	.m4-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
	.m4-footer-brand { grid-column: 1 / -1; }
	.m4-hero-ctas .m4-btn, .m4-contact-primary { width: 100%; }
}
@media (max-width: 420px) {
	.m4-footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.m4-reveal { opacity: 1; transform: none; }
	.m4-clarity-card.is-visible .m4-clarity-bar-fill { transition: none; }
}

/* =========================================================================
   Do gerador — o que o tema não tinha e os sites da carteira precisam.
   ========================================================================= */

/* Logo horizontal com o símbolo na frente (variante mark=logo): no topo do
   celular, e no cartão do contador, só o símbolo aparece — o mesmo recorte
   que o tema fazia trocando o arquivo pelo monograma. */
.m4-hero-card-mark--crop { object-fit: cover; object-position: left center; }
@media (max-width: 640px) {
	.m4-site-header .m4-custom-logo--mark { width: var(--m4-logo-h); object-fit: cover; }
}

/* Topo sem cartão nem foto: a promessa ocupa a largura. */
.m4-hero--solo .m4-hero-grid { grid-template-columns: 1fr; }
.m4-hero--solo .m4-hero-copy { max-width: 46rem; }
.m4-hero-media img, .m4-about-media img { width: 100%; border-radius: var(--m4-radius-lg); box-shadow: var(--m4-shadow); }
.m4-hero-media, .m4-about-media { margin: 0; }

/* Autorização do formulário (LGPD): o envio só vale com ela. */
.m4-field-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: .86rem; line-height: 1.5; color: var(--m4-muted); cursor: pointer; }
.m4-field-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--m4-ink); }
.m4-field-consent a { color: var(--m4-ink); text-decoration: underline; text-underline-offset: 2px; }

/* Aviso de cookies. */
.m4-consent {
	position: fixed; left: 20px; bottom: 20px; z-index: 120; max-width: 420px;
	padding: 18px 20px; background: var(--m4-white); color: var(--m4-ink);
	border: 1px solid var(--m4-line); border-radius: var(--m4-radius); box-shadow: var(--m4-shadow-lg);
	font-size: .9rem; line-height: 1.5;
}
.m4-consent[hidden] { display: none; }
.m4-consent p { margin: 0 0 14px; }
.m4-consent a { text-decoration: underline; text-underline-offset: 2px; }
.m4-consent-actions { display: flex; gap: 10px; }
.m4-consent-actions .m4-btn { flex: 1; padding-block: 10px; }
@media (max-width: 560px) { .m4-consent { left: 12px; right: 12px; bottom: 92px; max-width: none; } }

/* Números soltos (seção "numeros"): os cartões do "sobre" numa linha só. */
.m4-numbers { padding: clamp(64px, 9vw, 112px) 0; }
.m4-stats--row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .m4-stats--row { grid-template-columns: repeat(2, 1fr); } }

/* Como funciona (seção "passos"): cartões de segmento numerados. */
.m4-steps-list { list-style: none; margin: 0; padding: 0; }
.m4-steps-list .m4-service-num { display: block; margin-bottom: 10px; }

/* Mapa. */
.m4-map { line-height: 0; border-top: 1px solid var(--m4-line); }
.m4-map iframe { width: 100%; height: clamp(280px, 40vw, 420px); border: 0; filter: grayscale(.2); }

/* Convite para avaliar no Google. */
.m4-reviews { padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--m4-line); }
.m4-reviews-inner { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: center; }
.m4-reviews-badge { width: 160px; height: auto; }
.m4-reviews-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.m4-reviews-copy p { margin: 0; color: var(--m4-muted); }
.m4-reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 780px) { .m4-reviews-inner { grid-template-columns: 1fr; } }

/* 404 centrado. */
.m4-page-hero--center { text-align: center; }
.m4-page-hero--center .m4-eyebrow, .m4-page-hero--center .m4-hero-ctas { justify-content: center; }
.m4-page-hero--center h1, .m4-page-hero--center .m4-page-hero-sub { margin-inline: auto; }

/* Matéria: o serviço relacionado e a legenda da foto. */
.m4-post-service { margin: 28px 0 0; padding: 16px 20px; background: var(--m4-surface); border-radius: var(--m4-radius-sm); font-weight: 500; }
.m4-post-service a { color: var(--m4-gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.m4-post-hero-img figcaption { margin-top: 10px; font-size: .84rem; color: var(--m4-muted); text-align: center; }

/* Matérias na home. */
.m4-blog--home { padding: clamp(64px, 9vw, 112px) 0; }
