/* Mega Imóveis – seções da landing page (medidas da referência, prancheta de 1450px) */

:root {
	--mega-bg-light: #f5f5f5;
	--mega-yellow: #f7b623;
	--mega-yellow-alt: #f9b107;
	--mega-blue-dark: #08141f;
	--mega-navy: #0b1622;
	--mega-font-heading: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--mega-font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Hero ------------------------------------------------------------------ */

.mega-hero {
	/* Ocupa a altura da janela abaixo do cabeçalho (e da barra do admin, se houver),
	   para os 5 passos caberem sempre na tela. --mega-header-h vem do tema. */
	--mega-hero-h: calc(100vh - var(--mega-header-h, 124px) - var(--mega-adminbar, 0px));
	position: relative;
	height: clamp(520px, var(--mega-hero-h), 860px);
	overflow: hidden;
	background: var(--mega-navy);
}

@supports (height: 100svh) {
	.mega-hero { --mega-hero-h: calc(100svh - var(--mega-header-h, 124px) - var(--mega-adminbar, 0px)); }
}

body.admin-bar .mega-hero { --mega-adminbar: 32px; }

.mega-hero__foto {
	position: absolute;
	inset: 0;
	/* Foco nas pessoas: corta um pouco do céu e um pouco da base. */
	background-position: center 60%;
	background-size: cover;
}

.mega-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	/* Mesmo container do cabeçalho e da grade de imóveis (1240px úteis). */
	max-width: calc(var(--mega-container, 1240px) + 2 * var(--mega-gutter, 24px));
	margin: 0 auto;
	padding: 0 var(--mega-gutter, 24px);
}

.mega-hero__passos {
	/* Medidas dos passos: círculo/altura, espaço entre eles e altura da pílula. */
	--p-h: 100px;
	--p-gap: 28px;
	/* Pílula com a altura do círculo: todas iguais, com espaço para título em 2 linhas
	   + descrição em 2 linhas (o caso do passo 05). */
	--p-pill: 100px;
	--p-svg: 56px;
	--p-pad: 14px;
	--p-c: var(--p-h); /* diâmetro do círculo; por padrão, a altura da linha */
	display: flex;
	flex-direction: column;
	gap: var(--p-gap);
	width: 440px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mega-hero__passo {
	position: relative;
	display: flex;
	align-items: center;
	height: var(--p-h);
	margin: 0;
}

/* Linha e argola entre os círculos */
.mega-hero__passo:not(:last-child)::after {
	content: "";
	position: absolute;
	/* da base do círculo até o topo do próximo */
	top: calc((var(--p-h) + var(--p-c)) / 2);
	left: calc(var(--p-c) / 2 - 1px);
	width: 2px;
	height: calc(var(--p-h) - var(--p-c) + var(--p-gap));
	background: var(--mega-yellow);
}

.mega-hero__passo:not(:last-child)::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: calc(var(--p-h) + var(--p-gap) / 2 - 6px);
	left: calc(var(--p-c) / 2 - 6px);
	width: 12px;
	height: 12px;
	border: 2px solid var(--mega-yellow);
	border-radius: 50%;
	background: var(--mega-navy);
	box-sizing: border-box;
}

.mega-hero__icone {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 var(--p-c);
	height: var(--p-c);
	border: 3px solid var(--mega-yellow);
	border-radius: 50%;
	background: var(--mega-navy);
	color: var(--mega-yellow);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
	box-sizing: border-box;
}

.mega-hero__icone svg { width: var(--p-svg); height: var(--p-svg); }

.mega-hero__pill {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	/* Altura mínima comum; com mais linhas (ex.: passo 05) a pílula cresce mantendo o
	   mesmo respiro vertical (--p-pad) dos outros cards. */
	min-height: var(--p-pill);
	margin-left: -20px;
	/* 20px ficam sob o círculo: 20 + 22 = mesmo respiro visual da direita. */
	padding: var(--p-pad) 22px var(--p-pad) 42px;
	border-radius: 999px; /* pontas sempre redondas, mesmo se a pílula crescer */
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.mega-hero__num {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	height: 48px;
	border-radius: 50%;
	background: #e6e6e6;
	color: var(--mega-blue-dark);
	font: 800 22px/1 var(--mega-font-heading);
}

.mega-hero__txt {
	min-width: 0;
	margin-left: 14px;
	padding-left: 14px;
	border-left: 3px solid var(--mega-yellow);
}

.mega-hero__txt strong {
	display: block;
	margin-bottom: 3px;
	color: var(--mega-navy);
	font: 800 18px/1.05 var(--mega-font-heading);
	letter-spacing: -0.02em;
	text-transform: uppercase;
	/* Limita a ~1 palavra longa por linha: "ACOMPANHAMENTO / DE OBRA" em qualquer tela. */
	max-width: 11em;
	text-wrap: balance;
}

.mega-hero__txt span {
	display: block;
	color: #4a4a4a;
	font: 400 12px/1.3 var(--mega-font-heading);
}

/* Janelas baixas (ex.: notebook 1366×768): passos mais compactos para caber tudo. */
@media (min-width: 1025px) and (max-height: 820px) {
	.mega-hero__passos { --p-h: 92px; --p-gap: 14px; --p-pill: 92px; --p-svg: 50px; --p-pad: 10px; }
}

@media (min-width: 1025px) and (max-height: 680px) {
	.mega-hero__passos { --p-h: 82px; --p-gap: 10px; --p-pill: 82px; --p-svg: 44px; --p-pad: 8px; }
	.mega-hero__txt strong { font-size: 16px; }
	.mega-hero__txt span { font-size: 11px; }
}

@media (max-width: 1024px) {
	.mega-hero { height: auto; background: var(--mega-bg-light); }
	.mega-hero__foto { position: relative; height: 62vw; }
	.mega-hero__inner { justify-content: center; padding: 40px 16px 48px; }
	.mega-hero__passos { width: 100%; max-width: 420px; }
	.mega-hero__pill { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
	.mega-hero__passo:not(:last-child)::before { background: var(--mega-bg-light); }
	.mega-hero__txt strong { font-size: 16px; }
	.mega-hero__txt span br,
	.mega-tl__texto br { display: none; }
}

@media (max-width: 400px) {
	/* Tela estreita: descrições podem ir a 3 linhas; a pílula (104px) fica um pouco
	   mais alta que o círculo (88px) para todas terem a mesma altura. */
	.mega-hero__passos { --p-h: 104px; --p-c: 88px; --p-gap: 18px; --p-pill: 104px; --p-svg: 48px; --p-pad: 8px; }
	.mega-hero__num { flex-basis: 40px; height: 40px; font-size: 18px; }
	.mega-hero__pill { padding-left: 28px; }
	.mega-hero__txt span { font-size: 12px; }
}

/* Faixa de texto --------------------------------------------------------- */

.mega-destaque {
	padding: 92px 24px;
	background: var(--mega-bg-light);
}

.mega-destaque__texto {
	max-width: 1240px;
	margin: 0 auto;
	color: var(--mega-blue-dark);
	font: 300 36px/1.4 var(--mega-font-heading);
	letter-spacing: -0.01em;
	text-align: center;
	text-wrap: balance;
}

@media (max-width: 1024px) {
	.mega-destaque { padding: 56px 20px; }
	.mega-destaque__texto { font-size: 26px; }
	.mega-destaque__texto br { display: none; }
}

@media (max-width: 600px) {
	.mega-destaque__texto { font-size: 21px; }
}

/* Título de seção e divisor ---------------------------------------------- */

.mega-titulo-secao {
	margin: 0;
	color: var(--mega-blue-dark);
	font: 800 66px/1.1 var(--mega-font-heading);
	letter-spacing: 0.02em;
	text-align: center;
	text-transform: uppercase;
}

/* Seletor reforçado: o Elementor zera o fundo de "hr" com .elementor hr. */
.mega-oqf hr.mega-divisor,
.mega-dif hr.mega-divisor {
	display: block;
	width: 100%;
	max-width: 1040px;
	height: 5px;
	margin: 70px auto 0;
	border: 0;
	background: var(--mega-navy);
	opacity: 1;
}

@media (max-width: 1024px) {
	.mega-titulo-secao { font-size: 44px; }
	.mega-oqf hr.mega-divisor { margin-top: 40px; height: 4px; }
	.mega-dif hr.mega-divisor { height: 4px; }
}

@media (max-width: 600px) {
	.mega-titulo-secao { font-size: 34px; }
}

/* O que fazemos: linha do tempo em "S" ----------------------------------- */

.mega-oqf {
	padding: 135px 24px 0;
}

.mega-tl {
	position: relative;
	max-width: 1265px;
	margin: 105px auto 0;
	padding-bottom: 70px;
}

.mega-tl__lista {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(20, minmax(0, 1fr));
	grid-auto-rows: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mega-tl__passo {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	text-align: center;
}

/* Linha de cima: até 3 passos (centros em 20%, 50% e 80%) */
.mega-tl__passo--l1-3:nth-child(1) { grid-column: 2 / 8; }
.mega-tl__passo--l1-3:nth-child(2) { grid-column: 8 / 14; }
.mega-tl__passo--l1-3:nth-child(3) { grid-column: 14 / 20; }
.mega-tl__passo--l1-2:nth-child(1) { grid-column: 4 / 10; }
.mega-tl__passo--l1-2:nth-child(2) { grid-column: 12 / 18; }
.mega-tl__passo--l1-1 { grid-column: 8 / 14; }
[class*="mega-tl__passo--l1-"] { grid-row: 1; min-height: 375px; }

/* Linha de baixo (centros em 30% e 70% quando são 2) */
[class*="mega-tl__passo--l2-"] { grid-row: 2; }
.mega-tl__passo--l2-1 { grid-column: 8 / 14; }
.mega-tl__passo--l2-2:nth-child(4) { grid-column: 4 / 10; }
.mega-tl__passo--l2-2:nth-child(5) { grid-column: 12 / 18; }
.mega-tl__passo--l2-3:nth-child(4) { grid-column: 2 / 8; }
.mega-tl__passo--l2-3:nth-child(5) { grid-column: 8 / 14; }
.mega-tl__passo--l2-3:nth-child(6) { grid-column: 14 / 20; }

.mega-tl__icone {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 164px;
	height: 164px;
	border: 5px solid var(--mega-yellow);
	border-radius: 50%;
	background: var(--mega-navy);
	color: var(--mega-yellow);
	box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
	box-sizing: border-box;
}

.mega-tl__icone svg { width: 100px; height: 100px; }

.mega-tl__num {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-top: -6px;
	border-radius: 50%;
	background: var(--mega-yellow);
	color: var(--mega-navy);
	font: 800 28px/1 var(--mega-font-heading);
}

.mega-tl__titulo {
	margin: 12px 0 8px;
	color: var(--mega-navy);
	font: 800 31px/1.08 var(--mega-font-heading);
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-wrap: balance;
}

.mega-tl__texto {
	margin: 0;
	color: #555;
	font: 400 21px/1.32 var(--mega-font-heading);
}

/* Trilho: sai do 01, passa por 02 e 03, desce pela direita e volta até o 04.
   Centro dos números: 164 - 6 + 29 = 187px do topo da linha; linhas a cada 375px. */
.mega-tl__curva {
	position: absolute;
	top: 185px;
	left: 30%;
	right: 4%;
	height: 375px;
	border: 3px solid var(--mega-yellow);
	border-left: 0;
	border-radius: 0 95px 95px 0;
	box-sizing: border-box;
}

/* Extensão do trilho de cima até o passo 01 (de 20% a 30% da largura total). */
.mega-tl__curva::before {
	content: "";
	position: absolute;
	top: -3px;
	right: 100%;
	width: 15.2%; /* 10% do total ÷ 66% (largura do trilho) */
	height: 3px;
	background: var(--mega-yellow);
}

.mega-tl__curva i {
	position: absolute;
	top: 50%;
	right: -10px;
	width: 17px;
	height: 17px;
	margin-top: -8px;
	border-radius: 50%;
	background: var(--mega-navy);
}

@media (max-width: 1024px) {
	.mega-oqf { padding-top: 72px; }
	.mega-tl { max-width: 520px; margin-top: 56px; padding-bottom: 40px; }
	.mega-tl__curva { display: none; }
	.mega-tl__lista { display: flex; flex-direction: column; gap: 64px; }
	[class*="mega-tl__passo--l"] { min-height: 0; position: relative; }
	.mega-tl__passo:not(:last-child)::after {
		content: "";
		position: absolute;
		bottom: -56px;
		left: 50%;
		width: 3px;
		height: 48px;
		margin-left: -1.5px;
		background: var(--mega-yellow);
	}
	.mega-tl__icone { width: 132px; height: 132px; }
	.mega-tl__icone svg { width: 70px; height: 70px; }
	.mega-tl__titulo { font-size: 26px; }
	.mega-tl__texto { font-size: 18px; }
}

/* Diferenciais ----------------------------------------------------------- */

.mega-dif {
	padding: 100px 24px 130px;
}

.mega-dif hr.mega-divisor { margin: 0 auto 140px; }

.mega-dif__lista {
	display: flex;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mega-dif__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 266px;
	margin: 0;
	text-align: center;
}

.mega-dif__icone {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 136px;
	height: 136px;
	border: 4px solid #111;
	border-radius: 50%;
	background: #fff;
	color: #111;
	box-sizing: border-box;
}

.mega-dif__icone svg { width: 96px; height: 96px; }

/* Conector com argola entre os círculos */
.mega-dif__item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 66px;
	left: calc(50% + 68px);
	width: calc(100% - 136px);
	height: 4px;
	background: #111;
}

.mega-dif__item:not(:last-child)::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 57px;
	left: calc(100% - 11px);
	width: 22px;
	height: 22px;
	border: 4px solid #111;
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
}

.mega-dif__titulo {
	margin-top: 18px;
	color: #111;
	font: 700 22px/1.2 var(--mega-font-heading);
	letter-spacing: -0.01em;
}

.mega-dif__texto {
	margin-top: 8px;
	color: #333;
	font: 400 16px/1.4 var(--mega-font-heading);
}

@media (max-width: 1100px) {
	.mega-dif { padding: 64px 20px 80px; }
	.mega-dif hr.mega-divisor { margin-bottom: 64px; }
	.mega-dif__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 16px; max-width: 600px; margin: 0 auto; }
	.mega-dif__item { flex: none; }
	.mega-dif__item::before,
	.mega-dif__item::after { display: none; }
	.mega-dif__icone { width: 112px; height: 112px; }
	.mega-dif__icone svg { width: 68px; height: 68px; }
	.mega-dif__titulo { font-size: 19px; }
	.mega-dif__texto { font-size: 15px; }
	.mega-dif__texto br { display: none; }
}
