/**
 * Seções reutilizáveis (Sobre, Avaliação de imóveis e widgets do Elementor).
 * Complementa assets/css/home.css, que traz as variáveis e as seções da home.
 */

.hm-block { background: transparent; }
.hm-block + .hm-block { margin-top: 0; }

/* Textos de seção que vêm de editor (podem ter vários parágrafos) */
.hm-section-text p { margin: 0; }
.hm-section-text p + p { margin-top: .6em; }
.hm-section--soft { background: #F4F6FA; }
.hm-eyebrow--center { text-align: center; }
.hm-empty { text-align: center; color: var(--hm-muted); }

/* Botão contorno para fundo claro */
.hm-btn--outline { background: transparent; color: var(--hm-ink); border-color: var(--hm-ink); }
.hm-btn--outline:hover { background: var(--hm-ink); color: #fff; }

/* Etapas: quantidade de colunas segue o número de etapas */
@media (min-width: 1201px) {
	.hm-steps { grid-template-columns: repeat(var(--hm-steps, 5), minmax(0, 1fr)); }
}

/* Números encostados na seção anterior (fundo azul contínuo) */
.hm-numbers-section--tight { padding-top: 24px; }

/* Linha dourada como widget */
.hm-divider-wrap { background: var(--hm-light); padding: 0; }
.hm-divider-wrap--dark { background: var(--hm-navy); padding: 24px 0; }

/* ---------- Hero sem construtoras ---------- */
.hm-hero:not(.hm-hero--has-partners) { border-radius: 0 0 48px 48px; }
.hm-hero:not(.hm-hero--has-partners) .hm-hero-content { padding-bottom: 110px; }
.hm-hero:not(.hm-hero--has-partners) .hm-hero-inner { min-height: 560px; }

/* ---------- Hero com retrato recortado ---------- */
.hm-hero--portrait .hm-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hm-hero--portrait .hm-hero-media { overflow: hidden; }
.hm-hero--portrait .hm-hero-bg {
	position: absolute;
	inset: 0 0 0 20%;
	width: 80%;
	height: 100%;
	object-fit: cover;
	opacity: .35;
	mix-blend-mode: luminosity;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
	mask-image: linear-gradient(to right, transparent, #000 45%);
}
.hm-hero--portrait .hm-hero-img {
	position: absolute;
	inset: auto 0 0 auto;
	left: 0;
	width: 100%;
	height: 96%;
	object-fit: contain;
	object-position: center bottom;
	clip-path: none;
}
.hm-hero--portrait .hm-hero-img--placeholder {
	inset: 12% 6% 0 auto;
	left: auto;
	width: 72%;
	height: auto;
	border-radius: 999px 999px 0 0;
	background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03));
	border: 1px solid rgba(255, 255, 255, .12);
	border-bottom: 0;
}

/* ---------- Apresentação (título + quadro) ---------- */
.hm-split-section { padding: 72px 0 56px; }
.hm-split {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 56px;
	align-items: center;
	max-width: 1320px;
	margin: 0 auto;
	padding-left: max(24px, calc((100vw - 1320px) / 2 + 24px));
}
.hm-split-head { padding: 8px 0 8px 64px; }
.hm-split-title {
	margin: 0 0 18px;
	font-size: clamp(2rem, 3.4vw, 3rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.01em;
	color: var(--hm-ink);
}
.hm-split--large .hm-split-title { font-size: clamp(2.4rem, 4.4vw, 3.9rem); }
.hm-split-subtitle { margin: 0 0 26px; font-size: 1.3rem; line-height: 1.4; color: var(--hm-ink); max-width: 18em; }
.hm-split-panel {
	padding: 40px 56px 40px 48px;
	background: #F2F4F8;
	border-radius: 24px 0 0 24px;
	color: var(--hm-ink);
	font-size: 1.08rem;
	line-height: 1.6;
}
.hm-split-panel p { margin: 0 0 1.1em; }
.hm-split-panel p:last-child { margin-bottom: 0; }
.hm-split-panel strong { font-weight: 700; }

/* Invertido: quadro à esquerda, título alinhado à direita */
.hm-split--reverse {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	padding-left: 0;
	padding-right: max(24px, calc((100vw - 1320px) / 2 + 24px));
}
.hm-split--reverse .hm-split-panel { order: -1; border-radius: 0 24px 24px 0; padding: 40px 48px 40px max(24px, calc((100vw - 1320px) / 2 + 64px)); }
.hm-split--reverse .hm-split-head { padding: 8px 64px 8px 0; text-align: right; }
.hm-split--reverse .hm-split-subtitle { margin-left: auto; }
.hm-split--reverse .hm-actions { justify-content: flex-end; }

/* Citação */
.hm-quote-pill {
	width: fit-content;
	max-width: calc(100% - 48px);
	margin: 48px auto 0;
	padding: 10px 22px;
	border: 1px solid var(--hm-ink);
	border-radius: 8px;
	text-align: center;
	color: var(--hm-ink);
	font-size: 1rem;
	box-shadow: 0 6px 18px rgba(14, 26, 43, .08);
}
.hm-quote-pill strong { margin-left: 4px; }
.hm-split-divider { margin-top: 40px; }

/* ---------- Blocos coloridos ---------- */
.hm-pillars-head { padding-top: 64px; }
.hm-pillars { display: flex; flex-wrap: wrap; }
.hm-pillar { flex: 1 1 100%; color: #fff; }
.hm-pillar--half { flex-basis: 50%; }
.hm-pillar--third { flex-basis: 33.333%; }
.hm-pillar--mid { background: #2D4A70; }
.hm-pillar--deep { background: var(--hm-navy-2); }
.hm-pillar--steel { background: #4A6386; }
.hm-pillar-inner { padding: 36px 48px 40px; max-width: 760px; }
.hm-pillar--half:nth-child(odd) .hm-pillar-inner,
.hm-pillar--full .hm-pillar-inner,
.hm-pillar--third:first-child .hm-pillar-inner { margin-left: auto; margin-right: 0; padding-left: max(48px, calc((100vw - 1320px) / 2 + 64px)); max-width: none; }
.hm-pillar--full .hm-pillar-inner { margin-left: 0; }
.hm-pillar--half:nth-child(even) .hm-pillar-inner { padding-right: max(48px, calc((100vw - 1320px) / 2 + 64px)); }
.hm-pillar-icon { display: block; margin-bottom: 6px; font-size: 34px; color: var(--hm-gold); font-variation-settings: 'FILL' 1; }
.hm-pillar-title { margin: 0 0 12px; font-size: 1.9rem; font-weight: 700; line-height: 1.15; color: #fff; }
.hm-pillar-text { font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .92); max-width: 46em; }
.hm-pillar-text p { margin: 0 0 .6em; }
.hm-pillar-text p:last-child { margin-bottom: 0; }
.hm-pillar-text ul { margin: 0; padding-left: 1.2em; }
.hm-pillar-text li { margin: 0 0 4px; }
.hm-pillar-text li::marker { color: #fff; }

/* ---------- Texto + lista ---------- */
.hm-checklist-section {
	padding: 80px 0;
	background:
		linear-gradient(115deg, rgba(14, 26, 43, .035) 0 22%, transparent 22% 100%),
		linear-gradient(245deg, rgba(14, 26, 43, .03) 0 18%, transparent 18% 100%),
		var(--hm-light);
}
.hm-checklist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0; align-items: center; }
.hm-checklist-intro { padding: 0 56px 0 40px; color: var(--hm-ink); font-size: 1.12rem; line-height: 1.55; }
.hm-checklist-intro p { margin: 0 0 1.1em; }
.hm-checklist-intro p:last-child { margin-bottom: 0; }
.hm-checklist-intro .hm-lead-line { font-size: 1.3rem; line-height: 1.4; }
.hm-checklist-title { margin: 0 0 10px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 700; color: var(--hm-ink); }
.hm-checklist-list {
	list-style: none;
	margin: 0;
	padding: 8px 0 8px 48px;
	border-left: 2px solid transparent;
	border-image: linear-gradient(to bottom, transparent, var(--hm-gold) 15%, var(--hm-gold) 85%, transparent) 1;
	color: var(--hm-ink);
	font-size: .95rem;
	line-height: 1.45;
}
.hm-checklist-list li { display: flex; gap: 10px; align-items: flex-start; }
.hm-checklist-list li + li { margin-top: 18px; }
.hm-checklist-list .material-symbols-outlined { flex: none; font-size: 20px; color: var(--hm-gold); font-weight: 700; }

/* ---------- Diferenciais ---------- */
.hm-features-section .hm-eyebrow { margin-bottom: 12px; }
.hm-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hm-feature {
	padding: 28px 26px;
	background: #fff;
	border-radius: var(--hm-radius);
	box-shadow: 0 8px 24px rgba(14, 26, 43, .08);
	border-top: 3px solid var(--hm-gold);
	transition: transform .25s ease, box-shadow .25s ease;
}
.hm-feature:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(14, 26, 43, .14); }
.hm-feature-icon {
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--hm-navy);
	color: var(--hm-gold);
	display: flex;
	align-items: center;
	justify-content: center;
}
.hm-feature-icon .material-symbols-outlined { font-size: 26px; }
.hm-feature-title { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; color: var(--hm-ink); }
.hm-feature-text { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--hm-muted); }
.hm-section--dark .hm-feature { background: var(--hm-card); box-shadow: none; }
.hm-section--dark .hm-feature-title { color: #fff; }
.hm-section--dark .hm-feature-text { color: rgba(255, 255, 255, .85); }
.hm-section--dark .hm-feature-icon { background: var(--hm-gold); color: #fff; }

/* ---------- Chamada para contato ---------- */
.hm-cta-section { padding: 72px 0; background: linear-gradient(to bottom, #F4F6FA 0, #F4F6FA 50%, var(--hm-light) 50%); }
.hm-cta {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto;
	gap: 40px;
	align-items: center;
	padding: 52px 56px;
	border-radius: 24px;
	background: radial-gradient(120% 140% at 0% 0%, #17325A 0%, var(--hm-navy) 65%);
	color: #fff;
	box-shadow: 0 18px 40px rgba(14, 26, 43, .22);
}
.hm-cta .hm-hero-line--1 { top: auto; bottom: 40px; left: auto; right: -80px; transform: rotate(-32deg); }
.hm-cta-content { position: relative; z-index: 1; }
.hm-cta-title { margin: 0 0 14px; font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 700; line-height: 1.15; color: #fff; }
.hm-cta-text { font-size: 1.02rem; line-height: 1.6; color: rgba(255, 255, 255, .9); max-width: 40em; }
.hm-cta-text p { margin: 0 0 .7em; }
.hm-cta-text p:last-child { margin-bottom: 0; }
.hm-cta-text a { color: #9cc0ff; }
.hm-cta-actions { position: relative; z-index: 1; }
.hm-cta-actions .hm-actions { flex-direction: column; align-items: stretch; }
.hm-cta-actions .hm-btn { justify-content: center; }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
	.hm-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
	.hm-hero:not(.hm-hero--has-partners) { border-radius: 0 0 32px 32px; }
	.hm-hero:not(.hm-hero--has-partners) .hm-hero-inner { min-height: 0; }
	.hm-hero:not(.hm-hero--has-partners) .hm-hero-content { padding-bottom: 40px; }
	.hm-hero--portrait .hm-hero-inner { grid-template-columns: 1fr; }
	.hm-hero--portrait .hm-hero-media { height: 380px; }

	.hm-split,
	.hm-split--reverse { grid-template-columns: 1fr; gap: 28px; padding: 0 24px; }
	.hm-split-head,
	.hm-split--reverse .hm-split-head { padding: 0; text-align: left; }
	.hm-split--reverse .hm-split-subtitle { margin-left: 0; }
	.hm-split--reverse .hm-actions { justify-content: flex-start; }
	.hm-split--reverse .hm-split-panel { order: 0; }
	.hm-split-panel,
	.hm-split--reverse .hm-split-panel { border-radius: 20px; padding: 28px; }

	.hm-pillar--half,
	.hm-pillar--third { flex-basis: 100%; }
	.hm-pillar .hm-pillar-inner,
	.hm-pillar--half:nth-child(odd) .hm-pillar-inner,
	.hm-pillar--half:nth-child(even) .hm-pillar-inner,
	.hm-pillar--full .hm-pillar-inner,
	.hm-pillar--third:first-child .hm-pillar-inner { padding: 32px 24px; margin: 0; max-width: none; }

	.hm-checklist { grid-template-columns: 1fr; gap: 36px; }
	.hm-checklist-intro { padding: 0; }
	.hm-checklist-list { padding-left: 24px; }

	.hm-cta { grid-template-columns: 1fr; padding: 40px 28px; }
	.hm-cta-actions .hm-actions { flex-direction: row; }
}

@media (max-width: 640px) {
	.hm-split-section { padding: 52px 0 40px; }
	.hm-split,
	.hm-split--reverse { padding: 0 16px; }
	.hm-split-panel,
	.hm-split--reverse .hm-split-panel { padding: 22px; font-size: 1rem; }
	.hm-split-subtitle { font-size: 1.1rem; }
	.hm-pillar .hm-pillar-inner,
	.hm-pillar--half:nth-child(odd) .hm-pillar-inner,
	.hm-pillar--half:nth-child(even) .hm-pillar-inner,
	.hm-pillar--full .hm-pillar-inner,
	.hm-pillar--third:first-child .hm-pillar-inner { padding: 28px 16px; }
	.hm-hero--portrait .hm-hero-media { height: 300px; }
	.hm-features { grid-template-columns: 1fr; }
	.hm-checklist-section { padding: 52px 0; }
	.hm-cta-section { padding: 48px 0; }
	.hm-cta { padding: 32px 20px; }
}
