/* =========================================================
   RIO AVE AFLITOS — estilos
   Medidas de referência: layout do Figma em 1440px de largura.
   As cores vêm do Personalizar (variáveis injetadas em inc/setup.php).
========================================================= */

/* ---------------------------------------------------------
   1. FONTE
--------------------------------------------------------- */
@font-face {
	font-family: "Nomixa";
	src: url("../fonts/nomixa-var.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}

/* ---------------------------------------------------------
   2. TOKENS
--------------------------------------------------------- */
:root {
	--navy: #101B30;
	--navy-rgb: 16, 27, 48;
	--topo: #0A1427;
	--clara: #E8EAED;
	--clara-rgb: 232, 234, 237;
	--destaque: #5DAAAB;
	--erro: #B3261E;
	--ok: #1D6B5B;

	--ff: "Nomixa", "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(20px, 4.17vw, 60px);
	--topo-h: 108px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------------------------------------------------------
   3. BASE
--------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: var(--topo-h);
}

body {
	margin: 0;
	background: var(--navy);
	color: var(--clara);
	font-family: var(--ff);
	font-size: 16px;
	line-height: 1.5;
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--destaque); outline-offset: 3px; }

.skip-link {
	position: absolute;
	left: 12px;
	top: -80px;
	z-index: 1000;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--clara);
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.container {
	width: min(100% - 2 * var(--gutter), var(--w, 1046px));
	margin-inline: auto;
}

/* ---------------------------------------------------------
   4. BOTÕES
--------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 17px;
	border: 0;
	border-radius: 999px;
	font-family: var(--ff);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .09em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease);
}
.btn .ico { width: 21px; height: 21px; flex: none; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:hover .ico { transform: translateX(2px); }

.btn--claro { background: var(--clara); color: var(--navy); }
.btn--claro:hover { background: #fff; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); }

.btn--escuro { background: var(--navy); color: var(--clara); }
.btn--escuro:hover { background: var(--topo); box-shadow: 0 14px 30px -14px rgba(var(--navy-rgb), .55); }

/* ---------------------------------------------------------
   5. TOPO
--------------------------------------------------------- */
.topo {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--topo);
	transition: box-shadow .3s;
}
.topo.is-rolado { box-shadow: 0 14px 32px -20px rgba(0, 0, 0, .7); }

.admin-bar .topo { top: 32px; }
@media (max-width: 782px) { .admin-bar .topo { top: 46px; } }
@media (max-width: 600px) { .admin-bar .topo { top: 0; } }

.topo__inner {
	height: var(--topo-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-inline: var(--gutter);
}

.topo__marca { display: block; flex: none; }
.topo__logo { height: 47px; width: auto; max-width: 220px; object-fit: contain; }

.topo__btn { padding: 0 16.5px; }
.topo__btn-mob { display: none; }

/* ---------------------------------------------------------
   6. ÁREA ESCURA (hero + blocos) e linhas decorativas
--------------------------------------------------------- */
.escuro {
	position: relative;
	background-color: var(--navy);
}

.escuro.tem-decor,
.contato.tem-decor {
	background-repeat: no-repeat;
	background-position: center top;
	background-size: max(1440px, 100%) auto;
}
.escuro.tem-decor { background-image: url("../img/decor-escuro.svg"); }
.contato.tem-decor { background-image: url("../img/decor-claro.svg"); }

.eyebrow {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 11px;
	color: var(--destaque);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	text-align: center;
}
.eyebrow::after {
	content: "";
	width: 41px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

/* ---------------------------------------------------------
   7. HERO
--------------------------------------------------------- */
.hero {
	padding-block: 212px 142px;
	text-align: center;
}

.hero__inner {
	--w: 1100px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero__eyebrow { margin-bottom: 70px; }

.hero__titulo {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 96px;
	color: var(--clara);
	font-size: 84px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.01em;
}
.hero__palavra { white-space: nowrap; }
.hero__arco { width: 257px; height: auto; flex: none; margin-top: -1px; }

.hero__texto {
	max-width: 790px;
	margin-top: 66px;
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
}

.hero__btn {
	margin-top: 74px;
	min-height: 53px;
	padding: 0 16.5px 0 17.5px;
	font-size: 13px;
	letter-spacing: .07em;
}

/* ---------------------------------------------------------
   8. BLOCOS (Residencial / Empresarial)
--------------------------------------------------------- */
.bloco { padding-block: 104px; }
.bloco:last-child { padding-bottom: 143px; }

.bloco__grid {
	display: grid;
	grid-template-columns: minmax(0, 538fr) 2px minmax(0, 506fr);
	align-items: center;
}

.bloco__principal {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.bloco__icone,
.bloco__item-icone img {
	height: calc(var(--h, 60px) * var(--escala, 1));
	width: auto;
}

.bloco__titulo {
	margin-top: 28px;
	color: var(--clara);
	font-size: 57px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -.015em;
}

.bloco__divisor {
	width: 2px;
	height: 325px;
	border-radius: 2px;
	background: var(--destaque);
}

.bloco__itens {
	display: flex;
	flex-direction: column;
	gap: 54px;
	padding-left: clamp(40px, 13.05vw, 188px);
}

.bloco__item-texto {
	font-size: 19px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -.02em;
}
.bloco__item-texto::before {
	content: "";
	display: block;
	width: 40px;
	height: 1.5px;
	margin: 12px 0 11.5px;
	background: var(--destaque);
}

/* ---------------------------------------------------------
   9. FORMULÁRIO
--------------------------------------------------------- */
.contato {
	position: relative;
	background-color: var(--clara);
	color: var(--navy);
	padding-block: 129px 195px;
}

.contato__inner {
	--w: 806px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.contato__eyebrow {
	gap: 9px;
	margin-bottom: 15px;
	font-size: 14px;
}
.contato__eyebrow::after { width: 32px; }

.contato__titulo {
	max-width: 760px;
	font-size: 48px;
	font-weight: 500;
	line-height: 1.3;
}

.contato__texto {
	max-width: 650px;
	margin-top: 32px;
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
}

.form {
	width: 100%;
	margin-top: 36px;
}

.campo {
	--pt: 40px;
	position: relative;
	text-align: left;
}

.campo input {
	display: block;
	width: 100%;
	height: calc(var(--pt) + 49px);
	padding: var(--pt) 0 24px;
	border: 0;
	border-bottom: 1px solid rgba(var(--navy-rgb), .8);
	border-radius: 0;
	background: transparent;
	color: var(--navy);
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: .04em;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
}

.campo select {
	display: block;
	width: 100%;
	height: calc(var(--pt) + 49px);
	padding: var(--pt) 30px 24px 0;
	border: 0;
	border-bottom: 1px solid rgba(var(--navy-rgb), .8);
	border-radius: 0;
	background: transparent;
	color: var(--navy);
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: .04em;
	outline: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.campo select option { color: var(--navy); background: var(--clara); }

.campo__seta {
	position: absolute;
	right: 2px;
	bottom: 26px;
	width: 17px;
	height: 17px;
	opacity: .65;
	pointer-events: none;
}

.campo label {
	position: absolute;
	left: 0;
	top: var(--pt);
	color: var(--navy);
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: .1em;
	pointer-events: none;
	transform-origin: left top;
	transition: transform .35s var(--ease), opacity .35s;
}

.campo input:focus + label,
.campo input:not(:placeholder-shown) + label,
.campo input:-webkit-autofill + label,
.campo select:focus + label,
.campo select:required:valid + label {
	transform: translateY(-27px) scale(.7);
	opacity: .72;
}

/* traço de foco */
.campo::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--navy);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .45s var(--ease);
}
.campo:focus-within::after { transform: scaleX(1); }

.campo input:-webkit-autofill,
.campo input:-webkit-autofill:hover,
.campo input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 80px var(--clara) inset;
	-webkit-text-fill-color: var(--navy);
	caret-color: var(--navy);
}

.campo.is-invalido input,
.campo.is-invalido select { border-bottom-color: var(--erro); }
.campo.is-invalido label { color: var(--erro); opacity: 1; }
.campo.is-invalido::after { background: var(--erro); }

.form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form__rodape {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.form__lgpd {
	max-width: 750px;
	margin-top: 38px;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 23px;
	letter-spacing: -.02em;
}

.form__aceite {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 11px;
	margin-top: 21px;
	font-size: 16px;
	line-height: 20px;
	letter-spacing: -.04em;
	cursor: pointer;
	user-select: none;
}
.form__aceite input {
	position: absolute;
	opacity: 0;
	width: 16px;
	height: 16px;
	margin: 0;
}

.form__check {
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	border: 1.5px solid var(--navy);
	border-radius: 3px;
	transition: background-color .2s, border-color .2s;
}
.form__check svg { width: 11px; height: 11px; color: var(--clara); opacity: 0; transition: opacity .2s; }

.form__aceite input:checked + .form__check { background: var(--navy); }
.form__aceite input:checked + .form__check svg { opacity: 1; }
.form__aceite input:focus-visible + .form__check { outline: 2px solid var(--destaque); outline-offset: 2px; }
.form__aceite.is-invalido { color: var(--erro); }
.form__aceite.is-invalido .form__check { border-color: var(--erro); }

.form__btn {
	margin-top: 29px;
	min-height: 51px;
	font-size: 14px;
	letter-spacing: .05em;
}
.form__btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.form__feedback {
	max-width: 520px;
	margin-top: 20px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}
.form__feedback:empty { display: none; }

.form__aviso {
	max-width: 860px;
	margin-top: 52px;
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
	opacity: .6;
}
.form__feedback.is-ok { color: var(--ok); }
.form__feedback.is-erro { color: var(--erro); }

/* ---------------------------------------------------------
   10. RODAPÉ
--------------------------------------------------------- */
.rodape {
	background: var(--navy);
	color: var(--clara);
}

.rodape__inner {
	padding: 39px clamp(20px, 2.92vw, 42px) 0;
}

.rodape a { text-decoration: none; transition: opacity .25s; }
.rodape a:hover { opacity: .7; }

.rodape__topo {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
}

.rodape__arco { width: 160px; height: auto; }

.rodape__dados {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 29px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: -.035em;
}

.rodape__redes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 25px;
}

.rodape__rede {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.rodape__rede .ico { width: 15px; height: 15px; stroke-width: 2; }

.rodape__titulo {
	margin-bottom: 33px;
	font-size: 30.5px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.rodape__atalhos {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	gap: 33px 52px;
}

.rodape__atalho {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: -.035em;
}
.rodape__atalho-ico { width: 21px; height: 21px; margin-left: -2px; stroke-width: 1.9; }
.rodape__atalho-txt { display: inline-flex; align-items: center; gap: 6px; }

.rodape .seta { width: 14px; height: 14px; flex: none; stroke-width: 2.2; }

.rodape__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	margin-top: 42px;
	padding-block: 22px 23px;
	border-top: 1px solid rgba(var(--clara-rgb), .06);
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: -.01em;
}

.rodape__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
}
.rodape__legal-link { display: inline-flex; align-items: center; gap: 4px; }

/* ---------------------------------------------------------
   11. PÁGINAS INTERNAS
--------------------------------------------------------- */
.pagina {
	min-height: 60vh;
	padding-block: clamp(64px, 10vw, 140px);
	background: var(--clara);
	color: var(--navy);
}
.pagina__inner { --w: 760px; }
.pagina .eyebrow { align-items: flex-start; margin-bottom: 20px; font-size: 14px; }
.pagina__titulo { margin-bottom: 32px; font-size: clamp(32px, 5vw, 48px); font-weight: 500; line-height: 1.2; }
.pagina__subtitulo { margin-bottom: 12px; font-size: 26px; font-weight: 500; }
.pagina__subtitulo a { text-decoration: none; }
.pagina__item + .pagina__item { margin-top: 48px; }
.pagina__conteudo { margin-bottom: 32px; font-size: 17px; line-height: 1.7; }
.pagina__conteudo > * + * { margin-top: 1.1em; }
.pagina__conteudo h2,
.pagina__conteudo h3 { margin-top: 1.8em; font-weight: 500; line-height: 1.3; }
.pagina__conteudo ul,
.pagina__conteudo ol { padding-left: 1.3em; list-style: revert; }
.pagina__conteudo a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------
   12. ANIMAÇÃO DE ENTRADA
--------------------------------------------------------- */
.js [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 22px, 0);
	transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js [data-reveal].is-visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
	.btn, .btn .ico, .campo::after, .campo label { transition: none; }
}

/* ---------------------------------------------------------
   13. RESPONSIVO
--------------------------------------------------------- */

/* Notebook / tablet deitado: o título cresce proporcional à tela */
@media (max-width: 1100px) {
	.hero { padding-block: clamp(96px, 19.3vw, 212px) clamp(72px, 12.9vw, 142px); }
	.hero__eyebrow { margin-bottom: clamp(36px, 6.4vw, 70px); }
	.hero__titulo { font-size: clamp(26px, 7.6vw, 84px); gap: clamp(10px, 6.7vw, 96px); }
	.hero__arco { width: clamp(56px, 17.9vw, 257px); }
	.hero__texto { margin-top: clamp(32px, 6vw, 66px); }
	.hero__btn { margin-top: clamp(36px, 6.7vw, 74px); }
}

/* Tablet: blocos empilhados */
@media (max-width: 900px) {
	.bloco { padding-block: 56px; }
	.bloco:first-of-type { padding-top: 24px; }
	.bloco:last-child { padding-bottom: 96px; }

	.bloco__grid { grid-template-columns: minmax(0, 1fr); justify-items: start; }
	.bloco__principal { --escala: .85; }
	.bloco__titulo { margin-top: 20px; font-size: clamp(40px, 8vw, 57px); }

	.bloco__divisor { width: 64px; height: 2px; margin-block: 32px 36px; }

	.bloco__itens {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 44px 32px;
		width: 100%;
		padding-left: 0;
	}

	.contato { padding-block: 96px 120px; }
	.contato__titulo { font-size: clamp(30px, 6vw, 48px); line-height: 1.25; }
	.contato__texto { margin-top: 24px; font-size: 18px; line-height: 1.6; }

	.rodape__topo { flex-direction: column; align-items: flex-start; }
}

/* Celular */
@media (max-width: 600px) {
	:root { --topo-h: 72px; }

	.topo__logo { height: 36px; }
	.topo__btn { min-height: 40px; padding: 0 15px; font-size: 11px; letter-spacing: .06em; }
	.topo__btn-desk { display: none; }
	.topo__btn-mob { display: inline; }

	.hero__texto { font-size: 17px; line-height: 1.6; }
	.hero__btn { min-height: 50px; font-size: 12px; }
	.hero__btn .ico { width: 19px; height: 19px; }

	.bloco__item-texto { font-size: 18px; line-height: 1.4; }
	.bloco__item-icone { display: block; --escala: .85; }
	.bloco__item-icone img { --escala: .85; }

	.contato { padding-block: 72px 96px; }
	.contato__eyebrow { margin-bottom: 12px; }
	.contato__texto { font-size: 16px; }
	.form { margin-top: 20px; }

	.campo { --pt: 32px; }
	.campo input,
	.campo select { height: calc(var(--pt) + 45px); padding-bottom: 20px; font-size: 16px; }
	.campo label { font-size: 16px; letter-spacing: .08em; }
	.campo__seta { bottom: 22px; }
	.campo input:focus + label,
	.campo input:not(:placeholder-shown) + label,
	.campo input:-webkit-autofill + label,
	.campo select:focus + label,
	.campo select:required:valid + label { transform: translateY(-24px) scale(.75); }

	.form__lgpd { margin-top: 28px; font-size: 12.5px; line-height: 20px; }
	.form__btn { width: 100%; max-width: 340px; }

	.rodape__inner { padding-top: 48px; }
	.rodape__titulo { font-size: 26px; margin-bottom: 24px; }
	.rodape__atalhos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; width: 100%; }
	.rodape__contato { width: 100%; }
	.rodape__base { flex-direction: column; align-items: flex-start; margin-top: 40px; }
}
