/**
 * Home v2 (template/page-home.php) — 14/10/2026. Carrega depois de sulminas-contato.css
 * (tokens .smcp-contato, botões, números e chips da Empresa via classes smcp-em-*).
 * Celular primeiro: tudo empilha em uma coluna e ganha colunas conforme a tela cresce.
 */
.smcp-home { padding-bottom: 56px; }
.smcp-home .smcp-hm-body { gap: 48px; }

/* Classes reaproveitadas da página Empresa (sulminas-empresa.css não carrega aqui). */
.smcp-home .smcp-em-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ct-lima-texto); }
.smcp-home h2 { margin: 0; font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; line-height: 1.25; color: var(--ct-ink); text-wrap: balance; }
.smcp-home h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; color: var(--ct-ink); }
.smcp-home .smcp-em-stats {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -28px; position: relative; z-index: 2;
	background: var(--ct-surface); border: 1px solid var(--ct-line); border-radius: 14px; box-shadow: 0 10px 30px rgba(20, 30, 15, .08); overflow: hidden;
}
.smcp-home .smcp-em-stats > div { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--ct-line); }
.smcp-home .smcp-em-stats > div:first-child { border-left: 0; }
.smcp-home .smcp-em-stats strong { font-size: 26px; font-weight: 700; line-height: 1.15; color: var(--ct-ink); font-variant-numeric: tabular-nums; }
.smcp-home .smcp-em-stats .smcp-em-stat-sm { font-size: 18px; line-height: 1.6; }
.smcp-home .smcp-em-stats span { font-size: 13px; color: var(--ct-muted); line-height: 1.45; }
.smcp-home .smcp-em-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.smcp-home .smcp-em-pillars > div { padding: 22px; border-radius: 14px; background: var(--ct-surface); border: 1px solid var(--ct-line); }
.smcp-home .smcp-em-pillars p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ct-muted); }
.smcp-home .smcp-em-pill-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--ct-lima-suave); color: var(--ct-lima-texto); }
.smcp-home .smcp-em-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.smcp-home .smcp-em-chips a {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
	background: var(--ct-surface); border: 1px solid var(--ct-line); color: var(--ct-ink-2); font-size: 14px; font-weight: 600; text-decoration: none;
}
.smcp-home .smcp-em-chips a:hover { border-color: var(--ct-lima); color: var(--ct-lima-texto); }
.smcp-home .smcp-em-chips .smcp-ic { color: var(--ct-lima-texto); }

/* ── Abertura ─────────────────────────────────────────────────────────── */
.smcp-home .smcp-hm-hero { position: relative; isolation: isolate; color: #fff; padding: 56px 0 76px; background: var(--ct-dark); }
.smcp-home .smcp-hm-hero-bg, .smcp-home .smcp-hm-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.smcp-home .smcp-hm-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(18, 22, 16, .72) 0%, rgba(18, 22, 16, .55) 45%, rgba(18, 22, 16, .82) 100%);
}
.smcp-home .smcp-hm-hero-in { display: flex; flex-direction: column; gap: 12px; }
.smcp-home .smcp-hm-h1 {
	margin: 0; max-width: 24ch; color: #fff; font-weight: 700; line-height: 1.12; letter-spacing: -.01em;
	font-size: clamp(28px, 4.4vw, 46px); text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.smcp-home .smcp-hm-lede { margin: 0; max-width: 54ch; font-size: 17px; line-height: 1.55; color: #e3e9dc; }

/* Busca */
.smcp-home .smcp-hm-search {
	margin-top: 12px; background: rgba(255, 255, 255, .97); color: var(--ct-ink);
	border-radius: 16px; padding: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.smcp-home .smcp-hm-seg { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 12px; border: 0; border-radius: 10px; background: var(--ct-ground); }
.smcp-home .smcp-hm-seg label { margin: 0; cursor: pointer; }
.smcp-home .smcp-hm-seg input { position: absolute; opacity: 0; pointer-events: none; }
.smcp-home .smcp-hm-seg span {
	display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 8px;
	font-size: 14px; font-weight: 600; color: var(--ct-ink-2);
}
.smcp-home .smcp-hm-seg input:checked + span { background: var(--ct-dark); color: #fff; }
.smcp-home .smcp-hm-seg input:focus-visible + span { outline: 2px solid var(--ct-lima); outline-offset: 2px; }
.smcp-home .smcp-hm-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.smcp-home .smcp-hm-field { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0; }
.smcp-home .smcp-hm-search .smcp-hm-field > span, .smcp-home .smcp-hm-search .smcp-hm-q > label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ct-muted); }
.smcp-home .smcp-hm-field select, .smcp-home .smcp-hm-field input {
	width: 100%; min-height: 50px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ct-line);
	background-color: #fff; color: var(--ct-ink); font-size: 15px; box-shadow: none;
}
/* Selects no mesmo desenho do campo de texto em todo navegador: o Safari do iPhone ignora a
 * altura do <select> nativo, por isso a aparência própria + seta desenhada. */
.smcp-home .smcp-hm-field select {
	-webkit-appearance: none; -moz-appearance: none; appearance: none; height: 50px; line-height: 48px; padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667061' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px; text-overflow: ellipsis;
}
.smcp-home .smcp-hm-field select::-ms-expand { display: none; }
.smcp-home .smcp-hm-field select:focus, .smcp-home .smcp-hm-field input:focus { outline: none; border-color: var(--ct-lima-hover); box-shadow: 0 0 0 3px rgba(168, 207, 69, .3); }
.smcp-home .smcp-hm-search-btn { min-height: 50px; justify-content: center; border: 0; cursor: pointer; }
.smcp-home .smcp-hm-search .smcp-hm-q > label { margin: 0; }

/* Campo inteligente + sugestões */
.smcp-home .smcp-hm-q-box { position: relative; }
.smcp-home .smcp-hm-q-box > svg { position: absolute; left: 14px; top: 16px; color: var(--ct-muted); pointer-events: none; }
.smcp-home .smcp-hm-field .smcp-hm-q-box input { padding-left: 42px; -webkit-appearance: none; appearance: none; }
.smcp-home .smcp-hm-q-box input::placeholder { color: #7b8276; }
.smcp-home .smcp-hm-sug {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid var(--ct-line); border-radius: 12px; box-shadow: 0 16px 36px rgba(18, 33, 15, .18);
	max-height: 320px; overflow-y: auto;
}
.smcp-home .smcp-hm-sug a {
	display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 8px;
	color: var(--ct-ink); font-size: 15px; font-weight: 500; text-decoration: none; line-height: 1.3;
}
.smcp-home .smcp-hm-sug a::before {
	content: ""; flex: none; width: 16px; height: 16px; background: var(--ct-lima-texto, #4f6e14);
	-webkit-mask: var(--smcp-sug-ico) center / contain no-repeat; mask: var(--smcp-sug-ico) center / contain no-repeat;
	--smcp-sug-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}
.smcp-home .smcp-hm-sug a[data-ico="map-pin"]::before { --smcp-sug-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.smcp-home .smcp-hm-sug a[data-ico="hash"]::before { --smcp-sug-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' x2='20' y1='9' y2='9'/%3E%3Cline x1='4' x2='20' y1='15' y2='15'/%3E%3Cline x1='10' x2='8' y1='3' y2='21'/%3E%3Cline x1='16' x2='14' y1='3' y2='21'/%3E%3C/svg%3E"); }
.smcp-home .smcp-hm-sug a:hover, .smcp-home .smcp-hm-sug a[aria-selected="true"] { background: var(--ct-lima-suave, #f4f9e8); }
.smcp-home .smcp-hm-hero:has(.smcp-hm-sug:not([hidden])) { z-index: 3; }   /* lista por cima dos números */
.smcp-home .smcp-hm-sug-vazio { padding: 10px; font-size: 14px; color: var(--ct-muted); line-height: 1.45; }

.smcp-home .smcp-hm-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.smcp-home .smcp-hm-quick a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: #fff;
	font-size: 13.5px; font-weight: 600; text-decoration: none; backdrop-filter: blur(4px);
}
.smcp-home .smcp-hm-quick a:hover { background: var(--ct-lima); border-color: var(--ct-lima); color: var(--ct-lima-tinta); }

/* ── Cabeçalho de seção ───────────────────────────────────────────────── */
.smcp-home .smcp-hm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.smcp-home .smcp-hm-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ct-lima-texto); text-decoration: none; white-space: nowrap; }
.smcp-home .smcp-hm-more:hover { text-decoration: underline; }

/* ── Tipos ────────────────────────────────────────────────────────────── */
.smcp-home .smcp-hm-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.smcp-home .smcp-hm-types a {
	position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--ct-dark);
	text-decoration: none; isolation: isolate;
}
.smcp-home .smcp-hm-types img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .35s ease; }
.smcp-home .smcp-hm-types a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(12, 16, 10, .82) 100%); }
.smcp-home .smcp-hm-types a:hover img { transform: scale(1.05); }
.smcp-home .smcp-hm-type-txt { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; color: #fff; }
.smcp-home .smcp-hm-type-txt strong { font-size: 16.5px; font-weight: 700; line-height: 1.25; }
.smcp-home .smcp-hm-type-txt span { font-size: 13px; color: #dfe6d8; }

/* ── Cartões de imóvel ────────────────────────────────────────────────── */
.smcp-home .smcp-hm-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.smcp-home .smcp-hm-card a {
	display: flex; flex-direction: column; height: 100%; border-radius: 14px; overflow: hidden;
	background: var(--ct-surface); border: 1px solid var(--ct-line); color: var(--ct-ink-2); text-decoration: none;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.smcp-home .smcp-hm-card a:hover { border-color: var(--ct-lima); box-shadow: 0 14px 30px rgba(20, 30, 15, .12); transform: translateY(-2px); }
.smcp-home .smcp-hm-card a:focus-visible { outline: 3px solid rgba(168, 207, 69, .6); outline-offset: 2px; }
.smcp-home .smcp-hm-card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #e9ede4; }
.smcp-home .smcp-hm-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.smcp-home .smcp-hm-card-tag {
	position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px;
	background: var(--ct-lima); color: var(--ct-lima-tinta); font-size: 12px; font-weight: 700;
}
.smcp-home .smcp-hm-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.smcp-home .smcp-hm-card-price { font-size: 19px; font-weight: 700; color: var(--ct-ink); font-variant-numeric: tabular-nums; }
.smcp-home .smcp-hm-card-title {
	font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ct-ink-2);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.smcp-home .smcp-hm-card-loc { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ct-muted); }
.smcp-home .smcp-hm-card-loc .smcp-ic { color: var(--ct-lima-texto); flex: none; }
.smcp-home .smcp-hm-card-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--ct-line); font-size: 13px; color: var(--ct-ink-2); }
.smcp-home .smcp-hm-card-specs span { display: inline-flex; align-items: center; gap: 5px; }
.smcp-home .smcp-hm-card-specs .smcp-ic { color: var(--ct-muted); }

.smcp-home .smcp-hm-note { margin: 14px 0 0; font-size: 14.5px; color: var(--ct-muted); }
.smcp-home .smcp-hm-note-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ct-lima-texto); text-decoration: none; }
.smcp-home .smcp-hm-note-link svg { width: 16px; height: 16px; }
.smcp-home .smcp-hm-note-link:hover { text-decoration: underline; }

/* ── Proprietários ────────────────────────────────────────────────────── */
.smcp-home .smcp-hm-sell {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
	padding: 36px; border-radius: 18px; background: var(--ct-dark); color: #c9d1c2;
}
.smcp-home .smcp-hm-sell h2 { color: #fff; margin-bottom: 10px; }
.smcp-home .smcp-hm-sell .smcp-em-kicker { color: var(--ct-lima); }
.smcp-home .smcp-hm-sell-txt p:not(.smcp-em-kicker) { margin: 0 0 18px; font-size: 16px; line-height: 1.6; }
.smcp-home .smcp-hm-steps { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.smcp-home .smcp-hm-steps li {
	counter-increment: passo; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start;
	padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06);
}
.smcp-home .smcp-hm-steps li::before {
	content: counter(passo); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--ct-lima); color: var(--ct-lima-tinta); font-weight: 700;
}
.smcp-home .smcp-hm-steps strong { color: #fff; font-size: 15.5px; }
.smcp-home .smcp-hm-steps span { font-size: 14px; line-height: 1.5; }

/* ── Cidades ──────────────────────────────────────────────────────────── */
.smcp-home .smcp-hm-cities .smcp-hm-n {
	min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--ct-lima-suave); color: var(--ct-lima-texto);
	font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums;
}

/* ── Texto + perguntas ────────────────────────────────────────────────── */
.smcp-home .smcp-hm-seo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.smcp-home .smcp-hm-seo-txt h2 { margin-bottom: 14px; }
.smcp-home .smcp-hm-seo-txt p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.75; color: var(--ct-ink-2); max-width: 62ch; }
.smcp-home .smcp-hm-faq { display: flex; flex-direction: column; gap: 10px; }
.smcp-home .smcp-hm-faq .smcp-hm-faq-h { font-size: 20px; margin-bottom: 4px; }
.smcp-home .smcp-hm-faq details { border: 1px solid var(--ct-line); border-radius: 12px; background: var(--ct-surface); }
.smcp-home .smcp-hm-faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px;
	cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; color: var(--ct-ink);
}
.smcp-home .smcp-hm-faq summary::-webkit-details-marker { display: none; }
.smcp-home .smcp-hm-faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; color: var(--ct-lima-texto); line-height: 1; }
.smcp-home .smcp-hm-faq details[open] summary::after { content: "−"; }
.smcp-home .smcp-hm-faq details p { margin: 0; padding: 0 16px 16px; font-size: 14.5px; line-height: 1.65; color: var(--ct-ink-2); }

/* ── Responsivo ───────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
	.smcp-home .smcp-hm-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
	.smcp-home .smcp-hm-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.smcp-home .smcp-hm-q, .smcp-home .smcp-hm-search-btn { grid-column: 1 / -1; }
	.smcp-home .smcp-hm-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.smcp-home .smcp-hm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smcp-home .smcp-em-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smcp-home .smcp-hm-sell, .smcp-home .smcp-hm-seo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
	.smcp-home .smcp-hm-body { gap: 40px; }
	.smcp-home .smcp-hm-hero { padding: 32px 0 60px; }
	.smcp-home .smcp-hm-lede { font-size: 15.5px; }
	.smcp-home .smcp-hm-search { padding: 12px; border-radius: 14px; }
	.smcp-home .smcp-hm-seg { display: flex; }
	.smcp-home .smcp-hm-seg label { flex: 1; }
	.smcp-home .smcp-hm-seg span { justify-content: center; width: 100%; }
	.smcp-home .smcp-hm-fields { gap: 8px; }
	.smcp-home .smcp-hm-field select { font-size: 15px; padding: 0 34px 0 12px; background-position: right 10px center; }
	/* Rolagem lateral só DENTRO da faixa de atalhos — a página nunca rola de lado. */
	.smcp-home .smcp-hm-quick { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
	.smcp-home .smcp-hm-quick a { flex: none; }
	.smcp-home .smcp-hm-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.smcp-home .smcp-hm-type-txt strong { font-size: 15px; }
	.smcp-home .smcp-hm-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	/* 3 números: dois lado a lado e as especialidades na linha de baixo, inteira */
	.smcp-home .smcp-em-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smcp-home .smcp-em-stats > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ct-line); }
	.smcp-home .smcp-em-stats > div { padding: 16px 14px; }
	.smcp-home .smcp-em-stats strong { font-size: 21px; }
	.smcp-home .smcp-em-stats .smcp-em-stat-sm { font-size: 14.5px; }
	.smcp-home .smcp-em-pillars { grid-template-columns: minmax(0, 1fr); }
	.smcp-home .smcp-hm-sell { padding: 26px 20px; }
	.smcp-home .smcp-hm-sell .smcp-ct-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.smcp-home .smcp-hm-types img, .smcp-home .smcp-hm-card a { transition: none; }
	.smcp-home .smcp-hm-types a:hover img, .smcp-home .smcp-hm-card a:hover { transform: none; }
}
