/* ==========================================================================
   Embracom — base
   Tokens, reset escopado, tipos, botoes, cabecalho, menu do celular,
   cursor e rodape. As dobras da home ficam em dobras.css.

   --em-accent, --em-blue e --em-len chegam do Customizer (inline, em :root).
   ========================================================================== */

:root {
	--em-accent: #8DC046;
	--em-blue: #355DA0;
	--em-len: 1;
	--em-ink: #EEEDE8;      /* texto claro e fundo claro */
	--em-bg: #0A0B0D;       /* fundo escuro e texto escuro */
	--em-blue-media: #2A4C85;
	--em-cinza: #55585E;
	--em-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--em-mono-f: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
	--em-ease: cubic-bezier(.65, 0, .35, 1);
	--em-ease-out: cubic-bezier(.22, 1, .36, 1);
	--em-mobile: 820px;     /* referencia: o script usa o mesmo corte */
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

.em-body {
	margin: 0;
	background: var(--em-bg);
	color: var(--em-ink);
	font-family: var(--em-sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

.em-body *,
.em-body *::before,
.em-body *::after {
	box-sizing: border-box;
}

.em-body ::selection {
	background: var(--em-accent);
	color: var(--em-bg);
}

.em-body :focus-visible {
	outline: 2px solid var(--em-accent);
	outline-offset: 4px;
	border-radius: 2px;
}

.em-body a {
	color: inherit;
	text-decoration: none;
}

.em-body a:hover {
	color: var(--em-accent);
}

/* O Hello imprime margens proprias em titulos e paragrafos.
   :where() zera a especificidade: qualquer regra de componente vence. */
.em-body :where(.em-header, .em-menu, .em-hero, .em-sobre, .em-sol, .em-proj, .em-metodo, .em-cli, .em-contato, .em-footer) :where(h1, h2, h3, p, ol, ul, li, figure, blockquote) {
	margin: 0;
	padding: 0;
}

.em-body :where(.em-hero, .em-sobre, .em-sol, .em-proj, .em-metodo, .em-cli, .em-contato, .em-footer) :where(ol, ul) {
	list-style: none;
}

.em-body :where(.em-hero, .em-sobre, .em-sol, .em-proj, .em-metodo, .em-cli, .em-contato, .em-footer, .em-header) img {
	display: block;
	max-width: none;
}

/* Elementor: as dobras ocupam a largura toda, sem respiro do container. */
.em-body .elementor-widget:where([class*="elementor-widget-em-"]) {
	width: 100%;
}

/* ---------- Tipos ---------- */

.em-mono {
	font: 500 12px/1 var(--em-mono-f);
	letter-spacing: .14em;
	text-transform: uppercase;
}

.em-cinza {
	color: var(--em-cinza);
}

.em-h2 {
	font: 800 min(5.4vw, 92px)/.92 var(--em-sans);
	letter-spacing: -.05em;
}

.em-seta {
	display: inline-block;
}

/* Linha que esconde o texto que sobe (titulos em mascara). */
.em-mascara {
	display: block;
	overflow: hidden;
	padding-bottom: .04em;
}

.em-mascara__linha {
	display: block;
}

/* ---------- Botoes ---------- */

/* Folha: cantos opostos arredondados que invertem no hover. */
.em-body .em-btn {
	--r: 26px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 17px 26px;
	border: 0;
	border-radius: var(--r) 0 var(--r) 0;
	font: 600 15px/1 var(--em-sans);
	letter-spacing: 0;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: gap .4s var(--em-ease), border-radius .4s var(--em-ease), background .4s;
}

.em-body .em-btn:hover,
.em-body .em-btn:focus-visible {
	gap: 18px;
	border-radius: 0 var(--r) 0 var(--r);
}

.em-body .em-btn--verde,
.em-body .em-btn--verde:hover,
.em-body .em-btn--verde:focus {
	background: var(--em-accent);
	color: var(--em-bg);
}

.em-body .em-btn--claro,
.em-body .em-btn--claro:focus {
	background: var(--em-ink);
	color: var(--em-bg);
}

.em-body .em-btn--claro:hover {
	background: var(--em-accent);
	color: var(--em-bg);
}

/* Tamanhos: cabecalho, padrao, menu do celular, envio do formulario. */
.em-body .em-btn--p {
	--r: 20px;
	gap: 10px;
	padding: 13px 20px;
	font-size: 14px;
}

.em-body .em-btn--p:hover {
	gap: 16px;
}

.em-body .em-btn--g {
	--r: 28px;
	padding: 18px 26px;
	font-size: 16px;
}

.em-body .em-btn--fixo {
	--r: 24px;
	padding: 16px 24px;
}

.em-body .em-btn--fixo:hover {
	gap: 12px;
	border-radius: var(--r) 0 var(--r) 0;
}

.em-body .em-btn--envio {
	--r: 28px;
	gap: 14px;
	min-height: 56px;
	padding: 0 28px;
	font-size: 16px;
}

.em-body .em-btn--envio:hover {
	gap: 20px;
	background: var(--em-ink);
}

.em-body .em-btn--envio[disabled] {
	opacity: .6;
	cursor: wait;
}

/* Link sublinhado. */
.em-body .em-linha {
	display: inline-flex;
	align-self: flex-start;
	gap: .3em;
	padding: 10px 0;
	border-bottom: 2px solid var(--em-accent);
	font: 600 15px/1 var(--em-sans);
	transition: border-color .3s, color .3s;
}

.em-body .em-linha--p {
	padding: 8px 0;
}

.em-body .em-linha--fina {
	border-bottom: 1px solid rgba(238, 237, 232, .4);
	font-weight: 500;
}

.em-body .em-linha--fina:hover {
	border-color: var(--em-accent);
}

.em-body .em-linha--azul {
	border-color: var(--em-blue);
}

.em-body .em-linha--escura {
	padding: 8px 0;
	border-color: var(--em-bg);
	font-size: 16px;
}

.em-body .em-linha--escura:hover {
	color: var(--em-bg);
	border-color: var(--em-blue);
}

/* ---------- Cabecalho ---------- */

.em-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 80;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 22px 4vw;
	color: var(--em-ink);
	transition: padding .5s var(--em-ease), background .5s, backdrop-filter .5s;
}

.admin-bar .em-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .em-header {
		top: 46px;
	}
}

.em-header.is-rolado {
	padding-top: 14px;
	padding-bottom: 14px;
	background: rgba(10, 11, 13, .72);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.em-header__logo {
	display: flex;
}

.em-body .em-header__logo img {
	width: auto;
	height: 24px;
}

.em-header__nav {
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.6vw, 40px);
}

.em-body .em-header__link {
	padding: 8px 0;
	color: var(--em-ink);
	font: 500 12px/1 var(--em-mono-f);
	letter-spacing: .14em;
	text-transform: uppercase;
}

.em-body .em-header__menu,
.em-body .em-header__menu:hover,
.em-body .em-header__menu:focus {
	display: none;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 0 4px;
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--em-ink);
	font: 500 12px/1 var(--em-mono-f);
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
}

.em-header__burger {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.em-header__burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--em-ink);
}

.em-header__burger span + span {
	width: 14px;
	align-self: flex-end;
	background: var(--em-accent);
}

@media (max-width: 819.98px) {
	.em-header__nav {
		display: none;
	}

	.em-body .em-header__menu,
	.em-body .em-header__menu:hover,
	.em-body .em-header__menu:focus {
		display: flex;
	}
}

/* ---------- Menu do celular (tela cheia) ---------- */

.em-menu {
	position: fixed;
	inset: 0;
	z-index: 70;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 4vh;
	padding: 0 6vw 8vh;
	background: var(--em-blue);
	color: var(--em-ink);
	visibility: hidden;
	clip-path: inset(0 0 100% 0);
	transition: clip-path .8s var(--em-ease);
}

.em-menu.is-aberto {
	clip-path: inset(0 0 0 0);
}

.em-menu__nav {
	display: flex;
	flex-direction: column;
	gap: 1vh;
}

.em-menu__item {
	overflow: hidden;
}

.em-body .em-menu__link {
	display: flex;
	align-items: baseline;
	gap: 16px;
	font: 800 13vw/1.02 var(--em-sans);
	letter-spacing: -.045em;
	transform: translateY(110%);
	transition: transform .8s var(--em-ease-out);
}

.em-menu.is-aberto .em-menu__link {
	transform: translateY(0);
	transition-delay: calc(.25s + var(--i, 0) * .06s);
}

.em-menu .em-btn {
	align-self: flex-start;
}

/* ---------- Cursor personalizado ---------- */

.em-cursor {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 90;
	display: none;
	align-items: center;
	justify-content: center;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	overflow: hidden;
	border-radius: 50%;
	background: #fff;
	mix-blend-mode: difference;
	pointer-events: none;
	transition: width .5s var(--em-ease), height .5s var(--em-ease), margin .5s var(--em-ease), border-radius .5s var(--em-ease), background .4s;
}

.em-cursor-on .em-cursor {
	display: flex;
}

.em-cursor-on body {
	cursor: none;
}

.em-cursor.is-grande {
	background: var(--em-accent);
	mix-blend-mode: normal;
}

.em-cursor__rotulo {
	color: var(--em-bg);
	font: 500 12px/1 var(--em-mono-f);
	letter-spacing: .12em;
	white-space: nowrap;
	opacity: 0;
	transition: opacity .3s;
}

.em-cursor.is-grande .em-cursor__rotulo {
	opacity: 1;
}

/* ---------- Rodape ---------- */

.em-footer {
	display: flex;
	flex-direction: column;
	gap: 12vh;
	padding: 14vh 4vw 5vh;
	background: var(--em-bg);
	color: var(--em-ink);
}

.em-footer__grade {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 48px 4vw;
}

/* Celular e tablet em pe: frase e colunas uma embaixo da outra. */
@media (orientation: portrait) and (max-width: 1100px) {
	.em-footer__grade {
		grid-template-columns: minmax(0, 1fr);
	}
}

.em-body .em-footer__frase {
	max-width: 300px;
	font: 500 clamp(18px, 1.6vw, 24px)/1.25 var(--em-sans);
	letter-spacing: -.015em;
	text-wrap: pretty;
}

.em-footer__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.em-footer__titulo {
	margin-bottom: 6px;
	color: #8A8D93;
}

.em-body .em-footer__link {
	font: 400 16px/1.3 var(--em-sans);
}

.em-footer__link--vazio {
	color: #8A8D93;
	font-style: italic;
}

.em-body .em-footer__logo {
	width: 100%;
	height: auto;
}

.em-footer__base {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(238, 237, 232, .12);
	color: #8A8D93;
	font-size: 11px;
	line-height: 1.6;
}

.em-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

/* ---------- Editor ---------- */

.em-aviso-oculta {
	padding: 14px 20px;
	background: #FFF4D6;
	color: #6B4E00;
	font: 500 14px/1.4 var(--em-sans);
	text-align: center;
}
