/* Tripolone — home na estrutura Horizon. */

/* Mesmo creme da seção institucional em toda a página. */
.home-h { background: var(--papel); }

/* ---------- Hero em foto inteira ---------- */
.hero-h {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(720px, 92vh, 1020px);
	padding-block: 7rem 9rem;
	overflow: hidden;
	isolation: isolate;
}

.hero-h__fundo { position: absolute; inset: 0; z-index: -1; background: var(--papel); }

.hero-h__fundo img {
	position: absolute;
	inset: 0 0 0 auto;
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right center;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
	animation: aproxima 24s var(--ease) both;
}

/* Véu creme à esquerda: mantém a foto visível e dá contraste ao texto escuro. */
.hero-h__fundo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,
		rgba(247, 244, 236, .98) 0%,
		rgba(247, 244, 236, .94) 30%,
		rgba(247, 244, 236, .68) 48%,
		rgba(247, 244, 236, .16) 69%,
		rgba(247, 244, 236, 0) 85%);
}

@keyframes aproxima { from { transform: scale(1.1); } to { transform: scale(1); } }

.hero-h__conteudo { position: relative; }

.hero-h__titulo {
	/* "Segurança em cada negociação" pede duas linhas equilibradas; com 13ch
	   ela quebrava em três. */
	max-width: 17ch;
	margin-bottom: 1.4rem;
	font-family: var(--serif-marca);
	font-size: clamp(2.4rem, 1rem + 4.4vw, 5rem);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: 0;
}

.hero-h__titulo { color: var(--verde-900); }

.hero-h__texto {
	max-width: 40ch;
	margin: 0 0 2.2rem;
	font-size: clamp(1rem, .9rem + .35vw, 1.2rem);
	color: var(--texto-medio);
}

.hero-h .chapeu { color: var(--dourado); }
.hero-h .chapeu--linha::after { background: var(--dourado-titulo); }
.hero-h .btn { background: var(--ouro-metal); color: var(--ouro-texto); }
.hero-h .btn:hover { color: var(--ouro-texto); }

.hero-h__acoes { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Entrada do hero em cascata. */
.hero-h__conteudo > * { animation: sobe 1.3s var(--ease) both; }
.hero-h__conteudo > :nth-child(2) { animation-delay: .14s; }
.hero-h__conteudo > :nth-child(3) { animation-delay: .28s; }
.hero-h__conteudo > :nth-child(4) { animation-delay: .42s; }

@keyframes sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Busca sobreposta ao hero (lugar do card de números) ---------- */
.busca-h { position: relative; z-index: 3; margin-top: -6.5rem; }

.busca-h .busca-imoveis {
	margin: 0;
	padding: 1.6rem 1.8rem;
	border: 1px solid var(--borda);
	border-radius: var(--raio);
	background: var(--branco);
	box-shadow: 0 24px 60px rgba(29, 37, 21, .12);
	animation: sobe 1.3s .45s var(--ease) both;
}

.busca-h .busca-imoveis__campos { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
.busca-h .busca-imoveis__botao { padding-inline: 2.2rem; }

/* ---------- Serviços sobre o fundo claro ---------- */
.servicos-h { padding-block: 2.2rem 0; }

.servicos-h__card {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border: 1px solid rgba(184, 134, 58, .28);
	border-radius: var(--raio);
	background: var(--branco);
}

.servicos-h__item {
	display: flex;
	gap: 1rem;
	align-items: start;
	padding: 1.7rem 1.8rem;
}

.servicos-h__item:not(:nth-child(3n)) { border-inline-end: 1px solid rgba(184, 134, 58, .28); }
.servicos-h__item:nth-child(-n + 3) { border-bottom: 1px solid rgba(184, 134, 58, .28); }

.servicos-h__icone {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--verde-900);
	color: var(--dourado-claro);
	transition: background var(--suave) var(--ease), color var(--suave), transform var(--suave) var(--ease);
}

.servicos-h__item:hover .servicos-h__icone {
	background: var(--pistache);
	color: var(--verde-900);
	transform: translateY(-2px);
}

.servicos-h__item h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; color: var(--verde-900); }
.servicos-h__item p { margin: 0; font-size: .86rem; color: var(--texto-medio); }

/* ---------- Destaques ---------- */
.destaques-h { padding-block: var(--espaco); }
.destaques-h .secao__topo { margin-bottom: 2.6rem; }

.secao__titulo { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }

/* Títulos-chave em caixa alta como o lettering da marca, sem alterar o texto
   original para leitores de tela nem os títulos dos imóveis. */
.home-h .hero-h__titulo,
.home-h .destaques-h .secao__titulo,
.home-h .faixa-h__titulo,
.home-h .procura__texto .secao__titulo,
.home-h .guia-h .secao__titulo {
	font-family: var(--serif-marca);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
	text-wrap: balance;
}

.home-h .destaques-h .secao__titulo,
.home-h .guia-h .secao__titulo { font-size: var(--t-secao); }

.home-h .faixa-h__titulo,
.home-h .procura__texto .secao__titulo { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.7rem); }

/* ---------- Faixa de avaliação com fotografia em toda a área ---------- */
.faixa-h { padding-bottom: var(--espaco); }
.faixa-h > .env { width: 100%; }

.faixa-h__caixa {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(540px, 32vw, 620px);
	border: 0;
	border-radius: 0;
	background: #172012;
	color: var(--branco);
	overflow: hidden;
	isolation: isolate;
}

.faixa-h__texto {
	position: relative;
	z-index: 2;
	width: min(58%, 780px);
	margin-inline-start: max(var(--respiro), calc((100% - var(--largura)) / 2));
	padding: clamp(2rem, 1.5rem + 3vw, 3.8rem);
}

.faixa-h__titulo {
	margin-bottom: 1rem;
	font-family: var(--serif);
	font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem);
	font-weight: 600;
	line-height: 1.12;
	color: var(--branco);
}

.home-h .faixa-h__titulo em { color: inherit; }
.faixa-h__titulo .ponto { color: var(--branco); }

.faixa-h .chapeu--claro { color: var(--branco); }
.faixa-h__texto > p:not(.chapeu) { max-width: 42ch; margin: 0 0 1.8rem; color: rgba(255, 255, 255, .94); }
.faixa-h__texto .btn {
	min-height: 64px;
	padding: 1.15rem 2rem;
	gap: .85rem;
	font-size: 1rem;
}
.faixa-h__texto .btn__circulo { width: 28px; height: 28px; margin-inline-end: 0; }

.faixa-h__foto { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.faixa-h__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Preto transparente só para sustentar a leitura; a foto continua aparente. */
.faixa-h__foto::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(8, 9, 7, .64) 0%, rgba(8, 9, 7, .50) 32%, rgba(8, 9, 7, .18) 58%, rgba(8, 9, 7, 0) 82%);
}

/* ---------- Quem somos ---------- */
.sobre-h { padding-block: var(--espaco); }

.sobre-h__grade {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 1rem + 4vw, 5rem);
	align-items: center;
}

.sobre-h__foto { margin: 0; position: relative; }

.sobre-h__foto img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center 20%;
	border-radius: var(--raio);
}

/* Moldura dourada deslocada atrás da foto. */
.sobre-h__foto::before {
	content: "";
	position: absolute;
	inset: 1.2rem -1.2rem -1.2rem 1.2rem;
	z-index: -1;
	border: 1px solid var(--dourado-claro);
	border-radius: var(--raio);
}

.sobre-h__texto > p:not(.chapeu):not(.sobre-h__assinatura) { color: var(--texto-medio); max-width: 56ch; }

.sobre-h__assinatura {
	margin: 1.4rem 0 1.8rem;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--dourado);
}

.depoimentos-h { margin-top: var(--espaco); }

/* ---------- Depoimentos ---------- */
.depoimentos { padding-block: var(--espaco); background: var(--papel); }

.depoimentos__grade {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.4rem;
}

.depoimento {
	padding: 1.6rem;
	border: 1px solid var(--borda);
	border-radius: var(--raio);
	background: var(--branco);
}

.depoimento__aspas { font-size: 1.8rem; font-weight: 700; color: var(--menta-200); line-height: 1; }
.depoimento p { margin: .5rem 0 1.3rem; color: var(--texto-medio); font-size: .88rem; }

.depoimento__autor { display: flex; align-items: center; gap: .75rem; }
.depoimento__autor img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.depoimento__autor strong { display: block; font-size: .85rem; }
.depoimento__autor span { font-size: .74rem; color: var(--texto-suave); }
.depoimento__estrelas { margin-top: .2rem; color: var(--estrela); font-size: .72rem; letter-spacing: .1em; }

/* ---------- Blog ---------- */
.blog { padding-block: var(--espaco); background: var(--branco); }

.blog__grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }

.post-card {
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	gap: 1rem;
	align-items: center;
	padding: .7rem;
	border: 1px solid var(--borda);
	border-radius: var(--raio);
	background: var(--branco);
	transition: box-shadow var(--suave) var(--ease);
}

.post-card:hover { box-shadow: var(--sombra); }
.post-card img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
.post-card time { font-size: .7rem; color: var(--texto-suave); }
.post-card h3 { font-size: .92rem; margin: .3rem 0 .6rem; }
.post-card__link { font-size: .78rem; font-weight: 600; color: var(--verde-800); }


/* ==========  Home clara: títulos escuros, detalhes dourados  ========== */
.destaques-h .secao__titulo,
.guia-h .secao__titulo { color: var(--verde-900); }

.destaques-h .secao__apoio,
.guia-h .secao__apoio { color: var(--texto-medio); }

.destaques-h .chapeu,
.guia-h .chapeu,
.servicos-h .chapeu { color: var(--dourado); font-weight: 700; }

.destaques-h .chapeu::after,
.guia-h .chapeu::after {
	content: "";
	display: block;
	width: 34px;
	height: 1px;
	margin-top: .6rem;
	background: var(--dourado-titulo);
}

.destaques-h .secao__topo .link-seta,
.guia-h .secao__topo .link-seta { color: var(--verde-900); }

.destaques-h .secao__topo .link-seta:hover,
.guia-h .secao__topo .link-seta:hover { color: var(--dourado); }

.destaques-h .ponto, .guia-h .ponto { color: var(--dourado-titulo); }
.home-h .aviso-vazio { color: var(--texto-medio); }

/* O guia e os demais capítulos compartilham o creme da referência. */
.home-h .guia-h { background: transparent; }

/* Cartões brancos sobre creme mantêm contraste e ritmo de leitura. */
.home-h .imovel-card,
.home-h .post-card,
.home-h .post-h,
.home-h .busca-imoveis,
.home-h .depoimento,
.home-h .sobre-h,
.home-h .procura__form,
.home-h .procura__ok { color: var(--texto); }


/* ==========  Ritmo de capítulos com a mesma base clara  ========== */

.destaques-h,
.sobre-h {
	background: var(--papel);
	border-block: 1px solid rgba(184, 134, 58, .18);
}

.destaques-h .secao__titulo { color: var(--verde-900); }
.destaques-h .chapeu { color: var(--dourado); }
.destaques-h .secao__apoio { color: var(--texto-medio); }
.destaques-h .secao__topo .link-seta { color: var(--verde-900); }
.destaques-h .secao__topo .link-seta:hover { color: var(--dourado); }
.destaques-h .chapeu::after { display: none; }

/* Numeração discreta das seções: dá ordem de leitura sem acrescentar elemento. */
.destaques-h .chapeu::before,
.faixa-h .chapeu::before,
.home-h .procura .chapeu::before,
.guia-h .chapeu::before,
.sobre-h .chapeu::before {
	margin-inline-end: .9rem;
	font-variant-numeric: tabular-nums;
	opacity: .75;
}

.destaques-h .chapeu::before { content: "01"; }
.faixa-h .chapeu::before { content: "02"; }
.home-h .procura .chapeu::before { content: "03"; }
.guia-h .chapeu::before { content: "04"; }
.sobre-h .chapeu::before { content: "05"; }

@media (max-width: 1200px) {
	.busca-h .busca-imoveis__campos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.busca-h .busca-imoveis__botao { grid-column: auto; }
}

@media (max-width: 1024px) {
	.servicos-h__card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.servicos-h__item { border: 0 !important; border-bottom: 1px solid var(--borda) !important; }
	.sobre-h__grade { grid-template-columns: 1fr; }
	.faixa-h__texto { width: min(calc(100% - 2 * var(--respiro)), 700px); }
	.faixa-h__foto::before { background: linear-gradient(0deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .50) 58%, rgba(0, 0, 0, .22) 100%); }
}

@media (max-width: 768px) {
	.hero-h { display: block; min-height: 0; padding-block: clamp(300px, 80vw, 420px) 8rem; }
	/* A foto aparece inteira acima do texto no retrato, sem o corte do banner largo. */
	.hero-h__fundo { inset: 0 0 auto; height: clamp(275px, 74vw, 390px); overflow: hidden; }
	.hero-h__fundo img {
		inset: 0;
		width: 100%;
		max-width: none;
		object-fit: cover;
		object-position: center;
		-webkit-mask-image: none;
		mask-image: none;
	}

	/* O rodapé da foto se dissolve no fundo claro onde começa o título. */
	.hero-h__fundo::after {
		background: linear-gradient(180deg,
			rgba(247, 244, 236, 0) 55%,
			var(--papel) 100%);
	}
	.busca-h .busca-imoveis { padding: 1.2rem; }
	.busca-h .busca-imoveis__campos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.busca-h .busca-imoveis__botao { grid-column: 1 / -1; }
	.servicos-h__card { grid-template-columns: 1fr; }
	.sobre-h__foto::before { display: none; }
	.procura__caixa { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.faixa-h__caixa { min-height: 610px; align-items: flex-end; }
	.faixa-h__texto { padding: 2rem 1.5rem 2.5rem; }
	.faixa-h__texto .btn { justify-content: center; width: 100%; padding-inline: 1rem; font-size: clamp(.88rem, 3.6vw, 1rem); }
}

/* ---------- Hero escuro (pedido do dono, 05/10/2026) ----------
   A foto ocupa a seção inteira, um degradê preto discreto na esquerda dá
   contraste ao texto branco, e o título em caixa alta ficou menor e mais leve. */
.hero-h__fundo { background: #0c0e0a; }

.hero-h__fundo img {
	inset: 0;
	width: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 72% center;
	-webkit-mask-image: none;
	mask-image: none;
}

.hero-h__fundo::after {
	background: linear-gradient(90deg,
		rgba(8, 9, 7, .58) 0%,
		rgba(8, 9, 7, .44) 32%,
		rgba(8, 9, 7, .18) 56%,
		rgba(8, 9, 7, 0) 78%);
}

.home-h .hero-h__titulo {
	max-width: 20ch;
	color: #fff;
	font-size: clamp(1.9rem, 1rem + 2.4vw, 3.3rem);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: .06em;
}

.hero-h__texto { color: rgba(255, 255, 255, .9); }
.hero-h__titulo, .hero-h__texto { text-shadow: 0 1px 14px rgba(0, 0, 0, .25); }
.hero-h .chapeu { color: var(--dourado-claro); }
.hero-h .chapeu--linha::after { background: var(--dourado-claro); }

@media (max-width: 768px) {
	.hero-h {
		display: flex;
		align-items: flex-end;
		min-height: clamp(620px, 100svh, 860px);
		padding-block: 6rem 8rem;
	}
	.hero-h__fundo { inset: 0; height: auto; }
	.hero-h__fundo img { object-position: 78% center; }
	.hero-h__fundo::after {
		background: linear-gradient(180deg,
			rgba(8, 9, 7, .08) 0%,
			rgba(8, 9, 7, .25) 40%,
			rgba(8, 9, 7, .68) 100%);
	}
}

/* Pedido do dono (05/10/2026): carteira mais perto do bloco de serviços. */
.servicos-h + .destaques-h { padding-top: clamp(2.5rem, 1.6rem + 2.4vw, 4.5rem); }

/* Pedido do dono (05/10/2026): seções da home mais próximas. Antes o espaço
   de baixo de uma somava com o de cima da seguinte (~210px na tela grande). */
.home-h .destaques-h,
.home-h .faixa-h,
.home-h .procura,
.home-h .guia-h { padding-bottom: clamp(3rem, 1.8rem + 3vw, 5rem); }
.home-h .faixa-h + .procura,
.home-h .procura + .guia-h,
.home-h .guia-h + .sobre-h { padding-top: 0; }

/* Pedido do dono (05/10/2026): "Seu patrimônio em boas mãos" sem negrito, mais leve. */
.home-h .sobre-h .secao__titulo { font-weight: 400; letter-spacing: .01em; }

/* Pedido do dono (05/10/2026): "Não achou o que procura?" com título e texto maiores,
   o título continua cerca de 3x o texto. */
.home-h .procura__texto .secao__titulo { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); }
.home-h .procura__texto .secao__apoio { font-size: clamp(.98rem, .9rem + .3vw, 1.12rem); line-height: 1.65; max-width: 38ch; }

/* Busca personalizada: painel de texto em verde-musgo; formulário permanece branco. */
.home-h .procura__texto { background: var(--musgo-escuro); color: var(--branco); }
.home-h .procura__texto .chapeu,
.home-h .procura__texto .secao__titulo,
.home-h .procura__texto .secao__apoio { color: var(--branco); }

/* Faixa "Qual documento eu preciso?" antes do rodapé (mesmo desenho do blog, conteudo.css). */
.ferramenta-h { padding-bottom: clamp(3rem, 1.8rem + 3vw, 5rem); }
.ferramenta-h .guia__ferramenta {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	padding: 2.4rem 2.6rem;
	border-radius: var(--raio);
	background: var(--verde-900);
	color: var(--branco);
}
.ferramenta-h .guia__ferramenta-icone { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; background: rgba(212, 162, 108, .15); color: var(--dourado-claro); }
.ferramenta-h .guia__ferramenta > div { display: grid; gap: .35rem; }
.home-h .ferramenta-h h2 { margin: 0; font-family: var(--serif); font-size: calc(1.3rem + 4px); font-weight: 600; line-height: 1.2; letter-spacing: 0; color: var(--branco); text-transform: none; }
.ferramenta-h .guia__ferramenta p { margin: 0; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.ferramenta-h .guia__ferramenta .btn { margin-inline-start: auto; white-space: nowrap; }
@media (max-width: 768px) {
	.ferramenta-h .guia__ferramenta { flex-direction: column; align-items: flex-start; padding: 1.8rem 1.6rem; }
	.ferramenta-h .guia__ferramenta .btn { margin-inline-start: 0; }
}
.home-h > :has(+ .ferramenta-h) { padding-bottom: clamp(2.5rem, 1.6rem + 2.4vw, 4rem); }

/* Pedido do dono (05/10/2026): a foto do topo aparece inteira. A seção acompanha a
   proporção da foto (1448 x 1086, 4:3), então "cover" não corta nada no computador.
   No celular a foto vertical cortaria o texto; lá continua preenchendo a tela. */
@media (min-width: 769px) {
	.hero-h { min-height: 0; aspect-ratio: 1448 / 1086; }
	.hero-h__fundo img { object-position: center top; animation: none; }
}

/* Pedido do dono (05/10/2026): "Seu patrimônio em boas mãos" em caixa alta, como os outros títulos da home. */
.home-h .sobre-h .secao__titulo { font-family: var(--serif-marca); font-weight: 400; letter-spacing: 0; text-transform: uppercase; text-wrap: balance; }

/* Pedido do dono (05/10/2026): título da faixa de documentos em caixa alta, fonte de letreiro da marca. */
.home-h .ferramenta-h h2 { font-family: var(--serif-marca); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }

/* Pedido do dono (06/10/2026): busca de imóveis mais compacta e um pouco mais baixa,
   ainda sobreposta ao banner (antes subia 104px sobre a foto, agora 56px). */
@media (min-width: 769px) {
	.busca-h { margin-top: -3.5rem; }
	.busca-h .busca-imoveis { padding: 1.1rem 1.5rem 1.2rem; }
	.busca-h .busca-imoveis__abas { margin-bottom: .7rem; }
}
