/**
 * glooom imóveis - site público.
 * Tema "skyline geométrico": blocos chapados no azul-petróleo do logo,
 * silhuetas de prédios, o arco laranja do logo como elemento gráfico e o
 * canto arredondado da família glooom (um canto maior) em cards e fotos.
 * @author Sandro Jordão.
 */

/* ---------------------------------------------------------------- Fontes */

@font-face {
	font-family: 'Montserrat';
	src: url('../fontes/montserrat.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('../fontes/inter.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------------------------------------------------------------- Tokens */

:root {
	/* Marca: azul-petróleo do logo antigo (#016C80 / #448895) e o laranja do arco */
	--teal: #016c80;
	--teal-600: #015a6b;
	--teal-800: #0d3a44;
	--teal-900: #0a2c34;
	--teal-300: #5fa3b0;
	--teal-100: #d5e9ed;
	--teal-50: #eef6f7;

	--orange: #f7931e;
	--orange-hi: #ffa83d;
	--orange-text: #b35400; /* laranja com contraste para texto em fundo claro */

	/* Neutros */
	--bg: #ffffff;
	--bg-2: #f4f8f8;
	--line: #dbe5e7;
	--line-2: #c6d4d7;
	--text: #17323a;
	--muted: #546a70;
	--dim: #7d9095;
	--ink: #1b1306; /* texto sobre o laranja */

	--ok: #1f8a5b;
	--danger: #c43d3d;
	--warn: #b7791f;

	--font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
	--font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	/* Canto glooom: três cantos discretos e o inferior direito largo. */
	--radius: 8px;
	--radius-lg: 14px;
	--corner: 8px 8px 32px 8px;
	--corner-sm: 6px 6px 20px 6px;

	--shadow-sm: 0 1px 2px rgba(10, 44, 52, .06), 0 2px 8px rgba(10, 44, 52, .06);
	--shadow: 0 18px 40px -18px rgba(10, 44, 52, .35);
	--header-h: 76px;
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* ---------------------------------------------------------------- Base */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1rem/1.65 var(--font-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-family: var(--font-display); letter-spacing: -.015em; }
p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--teal-800); }

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

main:focus { outline: none; }

::selection { background: var(--teal); color: #fff; }

.icone {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

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

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--orange);
	color: var(--ink);
	font-weight: 700;
	border-radius: var(--radius);
	transition: top .2s;
}

.skip-link:focus { top: 12px; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	color: var(--teal);
	font: 700 .8rem/1.2 var(--font-display);
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* O arco do logo, pequeno, antes do texto. */
.eyebrow::before {
	content: '';
	width: 26px;
	height: 9px;
	border-top: 3px solid var(--orange);
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
	transform: translateY(3px);
}

.eyebrow--light { color: var(--teal-100); }

/* ---------------------------------------------------------------- Marca (logo em HTML) */

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--text);
	text-decoration: none;
}

.brand img { width: 44px; height: 44px; flex: none; transition: width .3s, height .3s; }

.brand__name {
	display: grid;
	font: 700 1.55rem/1 var(--font-display);
	letter-spacing: -.02em;
}

.brand__name small {
	color: var(--teal);
	font-size: .5em;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 2px;
}

.brand--light { color: #fff; }
.brand--light .brand__name small { color: var(--teal-100); }

/* ---------------------------------------------------------------- Botões e links */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	padding: .8em 1.35em;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font: 700 .98rem/1.2 var(--font-display);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.btn--lg { padding: .95em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: var(--orange-hi); color: var(--ink); box-shadow: 0 10px 22px -12px rgba(247, 147, 30, .9); }

.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-600); color: #fff; }

.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }

.btn--whatsapp { background: #1f9d55; color: #fff; }
.btn--whatsapp:hover { background: #188046; color: #fff; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font: 700 .95rem/1.2 var(--font-display);
	color: var(--teal);
	text-decoration: none;
}

.link-arrow .icone { transition: transform .2s; }
.link-arrow:hover .icone { transform: translateX(3px); }

/* ---------------------------------------------------------------- Cabeçalho */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	isolation: isolate;
}

/* Fundo num ::before: um backdrop-filter no próprio cabeçalho prenderia
   o menu fixo do celular dentro dele. */
.site-header::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, .92);
	border-bottom: 1px solid var(--line);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: box-shadow .3s;
}

.site-header.is-scrolled::before { box-shadow: 0 8px 24px -16px rgba(10, 44, 52, .35); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--header-h);
	padding-block: 10px;
}

.site-header .brand { position: relative; z-index: 2; }
.site-header.is-scrolled .brand img { width: 38px; height: 38px; }

.nav-toggle {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--corner-sm);
	background: #fff;
	color: var(--text);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .25s, background-color .25s;
}

.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
	position: fixed;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
	background: var(--bg);
	overflow-y: auto;
	visibility: hidden;
	opacity: 0;
	transition: opacity .25s, visibility .25s;
}

.site-nav.is-open { visibility: visible; opacity: 1; }

.site-nav__list { display: grid; gap: 2px; }

.site-nav__link {
	display: block;
	padding: 10px 0;
	color: var(--text);
	font: 700 2rem/1.15 var(--font-display);
	letter-spacing: -.02em;
	text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] { color: var(--teal); }

.site-nav__cta { align-self: flex-start; }

.site-nav__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--muted);
	font-weight: 600;
}

@media (min-width: 1024px) {
	.nav-toggle { display: none; }

	.site-nav {
		position: static;
		flex-direction: row;
		align-items: center;
		gap: 28px;
		padding: 0;
		background: none;
		overflow: visible;
		visibility: visible;
		opacity: 1;
	}

	.site-nav__list { display: flex; gap: 26px; }

	.site-nav__link {
		position: relative;
		padding: 6px 0;
		font: 600 .97rem/1.2 var(--font-display);
		letter-spacing: 0;
		color: var(--muted);
	}

	.site-nav__link::after {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		bottom: -3px;
		height: 3px;
		border-radius: 3px;
		background: var(--orange);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .25s;
	}

	.site-nav__link:hover { color: var(--text); }
	.site-nav__link:hover::after,
	.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
	.site-nav__link[aria-current="page"] { color: var(--text); }

	.site-nav__phone { display: none; }
}

/* ---------------------------------------------------------------- Silhueta de prédios */

/* Desenhada em partials/skyline.php; fica na base de blocos escuros. */
.skyline {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: clamp(70px, 11vw, 150px);
	pointer-events: none;
}

.skyline svg { width: 100%; height: 100%; }
.skyline__back { fill: var(--teal-800); }
.skyline__front { fill: var(--teal); opacity: .55; }
.skyline__arc { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; }
.skyline__ground { fill: var(--bg); }

/* ---------------------------------------------------------------- Seções */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--alt { background: var(--bg-2); }

.section__head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 720px; }

.section__head--split {
	max-width: none;
	align-items: end;
}

@media (min-width: 860px) {
	.section__head--split { grid-template-columns: 1fr auto; gap: 32px; }
}

.section__head .eyebrow { margin-bottom: 0; }

.section__title {
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem);
	font-weight: 800;
}

.section__lead { color: var(--muted); font-size: 1.08rem; max-width: 620px; }

/* ---------------------------------------------------------------- Hero (home) */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--teal-900);
	color: #fff;
	padding-block: clamp(40px, 6vw, 80px) calc(clamp(70px, 11vw, 150px) + 24px);
}

/* Blocos chapados de prédios ao fundo, à direita. */
.hero::before {
	content: '';
	position: absolute;
	top: 0;
	right: -6vw;
	width: 58vw;
	height: 100%;
	background:
		linear-gradient(var(--teal-800), var(--teal-800)) 8% 100% / 14% 62% no-repeat,
		linear-gradient(var(--teal-800), var(--teal-800)) 26% 100% / 16% 84% no-repeat,
		linear-gradient(var(--teal-800), var(--teal-800)) 46% 100% / 18% 96% no-repeat,
		linear-gradient(var(--teal-800), var(--teal-800)) 68% 100% / 14% 72% no-repeat,
		linear-gradient(var(--teal-800), var(--teal-800)) 88% 100% / 16% 54% no-repeat;
	opacity: .55;
}

.hero__grid {
	position: relative;
	display: grid;
	gap: 36px;
	align-items: center;
}

@media (min-width: 960px) {
	.hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

.hero__title {
	font-size: clamp(2.2rem, 1.3rem + 4vw, 3.9rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.03em;
}

.hero__title em {
	font-style: normal;
	color: var(--orange);
}

.hero__lead {
	margin-top: 18px;
	max-width: 540px;
	color: var(--teal-100);
	font-size: 1.12rem;
}

/* Foto em arco (o arco do logo). */
.hero__media { position: relative; justify-self: center; width: min(100%, 480px); }

.hero__arch {
	position: relative;
	aspect-ratio: 4 / 4.6;
	overflow: hidden;
	border-radius: 999px 999px 40px 14px;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}

.hero__arch img { width: 100%; height: 100%; object-fit: cover; }

.hero__badge {
	position: absolute;
	left: -12px;
	bottom: 28px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px 12px 12px;
	border-radius: var(--corner-sm);
	background: #fff;
	color: var(--text);
	box-shadow: var(--shadow);
	font-size: .92rem;
	line-height: 1.3;
}

.hero__badge strong { display: block; font: 800 1.35rem/1 var(--font-display); color: var(--teal); }

.hero__badge-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--corner-sm);
	background: var(--orange);
	color: var(--ink);
}

@media (max-width: 959px) {
	.hero__media { display: none; }
}

/* ---------------------------------------------------------------- Busca */

.search {
	margin-top: 28px;
	padding: 18px;
	border-radius: var(--corner);
	background: #fff;
	color: var(--text);
	box-shadow: var(--shadow);
}

.search__grid { display: grid; gap: 12px; }

@media (min-width: 560px) {
	.search__grid { grid-template-columns: 1fr 1fr; }
}

/* Busca da home: barra de largura total abaixo do texto. */
.hero__search { position: relative; z-index: 1; }
.hero__search .search { margin-top: 32px; }

@media (min-width: 900px) {
	.search--hero .search__grid { grid-template-columns: 1.2fr 1.2fr 1fr auto; align-items: end; }
}

.search .field__label { font-size: .82rem; color: var(--muted); }
.search .btn { width: 100%; }

@media (min-width: 900px) { .search--hero .btn { width: auto; min-width: 160px; } }


/* Busca da página /imoveis (barra lateral no desktop). */
.filters {
	padding: 20px;
	border-radius: var(--corner);
	background: #fff;
	box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}

.filters__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	font-size: 1.05rem;
	font-weight: 700;
}

.filters__grid { display: grid; gap: 14px; }
.filters__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.filters__actions { display: grid; gap: 8px; margin-top: 4px; }

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

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: #fff;
	color: var(--text);
	font-size: .88rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.chip:hover { border-color: var(--teal); color: var(--teal); }

.chip--active { border-color: var(--teal); background: var(--teal); color: #fff; }
.chip--active:hover { color: #fff; }

.chip__x { opacity: .75; font-weight: 400; }

/* Rádio em "pílulas" (finalidade, quartos). */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }

.pills label {
	padding: 7px 12px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	font-size: .88rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}

.pills input:checked + label { border-color: var(--teal); background: var(--teal); color: #fff; }
.pills input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------------------------------------------------------------- Tipos (home) */

.types {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

@media (min-width: 700px) { .types { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .types { grid-template-columns: repeat(6, 1fr); } }

.type-card {
	height: 100%;
	display: grid;
	gap: 6px;
	padding: 18px;
	border-radius: var(--corner-sm);
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
	color: var(--text);
	text-decoration: none;
	transition: box-shadow .2s, transform .2s, background-color .2s;
}

.type-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--teal), var(--shadow-sm); color: var(--text); }

.type-card__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: 6px;
	border-radius: var(--corner-sm);
	background: var(--teal-50);
	color: var(--teal);
}

.type-card__name { font: 700 1rem/1.25 var(--font-display); }
.type-card__total { color: var(--muted); font-size: .88rem; }

/* ---------------------------------------------------------------- Card de imóvel */

.properties {
	display: grid;
	gap: 22px;
}

@media (min-width: 640px) { .properties { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .properties { grid-template-columns: repeat(3, 1fr); } }

@media (min-width: 1024px) { .properties--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .properties--2 { grid-template-columns: repeat(3, 1fr); } }

.property-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--corner);
	background: #fff;
	box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
	transition: box-shadow .25s, transform .25s;
}

.property-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }

.property-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--teal-50);
}

.property-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.property-card:hover .property-card__media img { transform: scale(1.04); }

.property-card__noimg {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--teal-300);
}

.property-card__noimg .icone { width: 56px; height: 56px; }

.property-card__tags {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tag {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .94);
	color: var(--text);
	font: 700 .75rem/1.3 var(--font-display);
	letter-spacing: .02em;
}

.tag--teal { background: var(--teal); color: #fff; }
.tag--orange { background: var(--orange); color: var(--ink); }
.tag--sold { background: var(--teal-900); color: #fff; }

.property-card__photos {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(10, 44, 52, .72);
	color: #fff;
	font-size: .78rem;
	font-weight: 600;
}

.property-card__photos .icone { width: 14px; height: 14px; }

.property-card__body {
	display: grid;
	gap: 6px;
	flex: 1;
	padding: 18px 20px 20px;
}

.property-card__price {
	font: 800 1.35rem/1.2 var(--font-display);
	color: var(--teal);
	letter-spacing: -.01em;
}

.property-card__price--muted { color: var(--muted); font-size: 1.1rem; }

.property-card__title {
	font: 700 1.02rem/1.35 var(--font-display);
	letter-spacing: 0;
}

/* O link cobre o card inteiro (sem aninhar links). */
.property-card__title a { color: var(--text); text-decoration: none; }
.property-card__title a::after { content: ''; position: absolute; inset: 0; }
.property-card__title a:hover { color: var(--teal); }

.property-card__place {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: .9rem;
}

.property-card__place .icone { width: 16px; height: 16px; color: var(--teal-300); }

.specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	color: var(--text);
	font-size: .88rem;
	font-weight: 600;
}

.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs .icone { width: 18px; height: 18px; color: var(--teal); }


.empty {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 48px 24px;
	border: 2px dashed var(--line-2);
	border-radius: var(--corner);
	text-align: center;
	color: var(--muted);
}

.empty .icone { width: 48px; height: 48px; color: var(--teal-300); }
.empty__title { color: var(--text); font-size: 1.25rem; font-weight: 700; }

/* ---------------------------------------------------------------- Vantagens */

.perks { display: grid; gap: 18px; }
@media (min-width: 700px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .perks { grid-template-columns: repeat(4, 1fr); } }

.perk {
	display: grid;
	gap: 10px;
	padding: 26px 24px;
	border-radius: var(--corner);
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
}

.perk__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: var(--corner-sm);
	background: var(--teal);
	color: #fff;
}

.perk__icon .icone { width: 26px; height: 26px; }
.perk__title { font-size: 1.1rem; font-weight: 700; }
.perk p { color: var(--muted); }

/* ---------------------------------------------------------------- Faixa escura (anuncie) */

.band {
	position: relative;
	overflow: hidden;
	background: var(--teal);
	color: #fff;
}

.band__grid {
	display: grid;
	gap: 32px;
	align-items: center;
}

@media (min-width: 900px) { .band__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.band__media img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--corner);
}

.band .section__title { color: #fff; }
.band__text p { color: var(--teal-100); font-size: 1.08rem; }
.band__text > * + * { margin-top: 16px; }

.band__list { display: grid; gap: 10px; margin-top: 20px; }
.band__list li { display: flex; gap: 10px; align-items: flex-start; color: #fff; }
.band__list .icone { margin-top: 2px; color: var(--orange); }

.band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Arco laranja grande, decorativo. */
.band::after {
	content: '';
	position: absolute;
	right: -10%;
	bottom: -55%;
	width: 60%;
	aspect-ratio: 1;
	border: 18px solid var(--orange);
	border-radius: 50%;
	opacity: .14;
	pointer-events: none;
}

/* ---------------------------------------------------------------- Páginas internas */

.page-head {
	position: relative;
	overflow: hidden;
	background: var(--teal-900);
	color: #fff;
	padding-block: clamp(36px, 5vw, 64px) calc(clamp(70px, 11vw, 150px) * .7 + 16px);
}

.page-head .skyline { height: calc(clamp(70px, 11vw, 150px) * .7); }

.page-head__title {
	font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem);
	font-weight: 800;
	letter-spacing: -.03em;
}

.page-head__lead { margin-top: 14px; max-width: 640px; color: var(--teal-100); font-size: 1.1rem; }

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
	color: var(--teal-100);
	font-size: .88rem;
}

.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--teal-300); }

.prose { display: grid; gap: 16px; }
.prose p { color: var(--muted); font-size: 1.05rem; }
.prose strong { color: var(--text); }

.split { display: grid; gap: 36px; }
@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; gap: 64px; }
	.split--center { align-items: center; }
}

.split__media img { width: 100%; border-radius: var(--corner); aspect-ratio: 4 / 3; object-fit: cover; }

.numbers {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

@media (min-width: 900px) { .numbers { grid-template-columns: repeat(4, 1fr); } }

.number {
	padding: 22px;
	border-radius: var(--corner);
	background: var(--teal-50);
}

.number strong { display: block; font: 800 clamp(1.8rem, 1.3rem + 2vw, 2.6rem)/1 var(--font-display); color: var(--teal); }
.number span { color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------------- Lista de imóveis */

.listing { display: grid; gap: 28px; align-items: start; }

@media (min-width: 1024px) {
	.listing { grid-template-columns: 300px 1fr; gap: 36px; }
	.listing__aside { position: sticky; top: calc(var(--header-h) + 16px); }
}

.listing__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 20px;
}

.listing__count { font-weight: 600; color: var(--muted); }
.listing__count strong { color: var(--text); font-size: 1.1rem; }

.listing__sort { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.listing__sort .field__label { white-space: nowrap; font-size: .9rem; color: var(--muted); }

.listing__active { margin-bottom: 20px; }

/* Filtros do celular: abrem num painel (details). */
.filters-toggle { display: none; }

@media (max-width: 1023px) {
	.filters-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 14px 18px;
		border-radius: var(--corner-sm);
		background: #fff;
		box-shadow: 0 0 0 1px var(--line);
		font: 700 1rem/1 var(--font-display);
		cursor: pointer;
		list-style: none;
	}

	.filters-toggle::-webkit-details-marker { display: none; }
	.filters-toggle .filters-toggle__n { color: var(--teal); }

	.filters-panel[open] .filters-toggle { border-radius: var(--corner-sm) var(--corner-sm) 0 0; }
	.filters-panel .filters { border-radius: 0 0 var(--corner) var(--corner); }
}

@media (min-width: 1024px) {
	.filters-panel > summary { display: none; }
}

.pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 36px;
}

.pager a,
.pager span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: var(--radius);
	box-shadow: 0 0 0 1px var(--line);
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
}

.pager a:hover { box-shadow: 0 0 0 2px var(--teal); color: var(--teal); }
.pager [aria-current="page"] { background: var(--teal); color: #fff; box-shadow: none; }
.pager .pager__gap { box-shadow: none; }

/* ---------------------------------------------------------------- Página do imóvel */

.property-head { padding-block: clamp(24px, 4vw, 40px) 0; }

.property-head .breadcrumb { color: var(--muted); }
.property-head .breadcrumb a { color: var(--teal); }
.property-head .breadcrumb li + li::before { color: var(--line-2); }

.property-head__top {
	display: grid;
	gap: 16px;
	align-items: end;
}

@media (min-width: 900px) { .property-head__top { grid-template-columns: 1fr auto; gap: 32px; } }

.property-head__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.property-head__tags .tag { background: var(--teal-50); }
.property-head__tags .tag--sold { background: var(--teal-900); }

.property-head__title { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem); font-weight: 800; }

.property-head__place { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); }
.property-head__place .icone { color: var(--teal); }

.property-head__price { text-align: left; }
@media (min-width: 900px) { .property-head__price { text-align: right; } }
.property-head__price small { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; }
.property-head__price strong { font: 800 clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem)/1.1 var(--font-display); color: var(--teal); }

/* Galeria: foto grande + 4 menores (desktop); carrossel no celular. */
.gallery {
	display: grid;
	gap: 8px;
	margin-top: 24px;
}

.gallery a { position: relative; display: block; overflow: hidden; background: var(--teal-50); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.03); }

@media (max-width: 767px) {
	.gallery {
		grid-auto-flow: column;
		grid-auto-columns: 88%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	.gallery::-webkit-scrollbar { display: none; }
	.gallery a { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); scroll-snap-align: center; }
}

@media (min-width: 768px) {
	.gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 210px)); }
	.gallery a:first-child { grid-row: span 2; border-radius: 14px 0 0 14px; }
	.gallery a:nth-child(3) { border-radius: 0 14px 0 0; }
	.gallery a:nth-child(5) { border-radius: 0 0 40px 0; }
	.gallery a:nth-child(n+6) { display: none; }
	.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 440px; }
	.gallery--1 a:first-child { border-radius: var(--corner); }
	.gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 380px; }
	.gallery--2 a:first-child { grid-row: auto; }
	.gallery--2 a:nth-child(2) { border-radius: 0 14px 40px 0; }
	.gallery--3 { grid-template-columns: 2fr 1fr; }
	.gallery--3 a:nth-child(2) { border-radius: 0 14px 0 0; }
	.gallery--3 a:nth-child(3) { border-radius: 0 0 40px 0; }
	.gallery--4 a:nth-child(4) { grid-column: span 2; border-radius: 0 0 40px 0; }
}

@media (min-width: 1100px) {
	.gallery { grid-template-rows: repeat(2, minmax(0, 240px)); }
	.gallery--1 { grid-template-rows: 500px; }
	.gallery--2 { grid-template-rows: 440px; }
}

.gallery__more {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: var(--radius);
	background: #fff;
	color: var(--text);
	font-size: .88rem;
	font-weight: 700;
	box-shadow: var(--shadow-sm);
}

.gallery__noimg {
	display: grid;
	place-items: center;
	gap: 8px;
	height: 280px;
	margin-top: 24px;
	border-radius: var(--corner);
	background: var(--teal-50);
	color: var(--teal-300);
	text-align: center;
}

.gallery__noimg .icone { width: 64px; height: 64px; }

.property-body {
	display: grid;
	gap: 36px;
	align-items: start;
}

@media (min-width: 1024px) {
	.property-body { grid-template-columns: 1fr 380px; gap: 48px; }
	.property-body__aside { position: sticky; top: calc(var(--header-h) + 16px); }
}

.facts {
	margin-bottom: 36px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }

.fact {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border-radius: var(--corner-sm);
	background: var(--bg-2);
}

.fact .icone { width: 26px; height: 26px; color: var(--teal); }
.fact strong { display: block; font: 700 1.05rem/1.2 var(--font-display); }
.fact span { color: var(--muted); font-size: .85rem; }

.property-block + .property-block { margin-top: 36px; }
.property-block__title { margin-bottom: 14px; font-size: 1.35rem; font-weight: 700; }
.property-block__text { color: var(--muted); font-size: 1.05rem; white-space: pre-line; }

.details {
	display: grid;
	gap: 0 32px;
}

@media (min-width: 640px) { .details { grid-template-columns: 1fr 1fr; } }

.details div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--line);
}

.details dt { color: var(--muted); }
.details dd { font-weight: 700; text-align: right; }

.interest {
	display: grid;
	gap: 16px;
	padding: 24px;
	border-radius: var(--corner);
	background: #fff;
	box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

.interest__title { font-size: 1.25rem; font-weight: 800; }
.interest__text { color: var(--muted); font-size: .95rem; }
.interest .form-grid { grid-template-columns: 1fr; }
.interest__or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: .85rem; }
.interest__or::before,
.interest__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.interest__code { color: var(--dim); font-size: .85rem; text-align: center; }

/* ---------------------------------------------------------------- Oportunidades */

.opportunities { display: grid; gap: 18px; }
@media (min-width: 860px) { .opportunities { grid-template-columns: 1fr 1fr; } }

.opportunity {
	display: grid;
	gap: 10px;
	padding: 26px;
	border-radius: var(--corner);
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
	border-left: 5px solid var(--orange);
}

.opportunity__title { font-size: 1.2rem; font-weight: 700; }
.opportunity__text { color: var(--muted); white-space: pre-line; }
.opportunity .link-arrow { margin-top: 6px; }

/* ---------------------------------------------------------------- Etapas */

.steps { display: grid; gap: 16px; counter-reset: step; }

.step {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 16px;
	align-items: start;
}

.step__number {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--corner-sm);
	background: var(--teal);
	color: #fff;
	font: 800 1rem/1 var(--font-display);
}

.step__title { font-size: 1.05rem; font-weight: 700; }
.step p { color: var(--muted); }

/* ---------------------------------------------------------------- Formulários */

.form-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .form-layout { grid-template-columns: 1.4fr 1fr; gap: 48px; } }

.form-card {
	display: grid;
	gap: 18px;
	padding: clamp(22px, 4vw, 40px);
	border-radius: var(--corner);
	background: #fff;
	box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

.form-card__title { font-size: 1.4rem; font-weight: 800; }

.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) {
	.form-grid { grid-template-columns: 1fr 1fr; }
	.field--full { grid-column: 1 / -1; }
}

.field { position: relative; display: grid; gap: 6px; align-content: start; }

.field__label { font-weight: 600; font-size: .92rem; }

.field--set { min-width: 0; margin: 0; padding: 0; border: 0; }
.field--set legend { padding: 0; margin-bottom: 6px; }
.field__label span { color: var(--orange-text); }

.field__input {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background: #fff;
	color: var(--text);
	font: inherit;
	transition: border-color .2s, box-shadow .2s;
}

.field__input::placeholder { color: var(--dim); }

.field__input:focus {
	outline: none;
	border-color: var(--teal);
	box-shadow: 0 0 0 3px rgba(1, 108, 128, .18);
}

textarea.field__input { resize: none; min-height: 132px; }

.field__error {
	display: none;
	color: var(--danger);
	font-size: .86rem;
	font-weight: 600;
}

.field.has-error .field__input { border-color: var(--danger); }
.field.has-error .field__error { display: block; }

.field__counter {
	justify-self: end;
	color: var(--dim);
	font-size: .8rem;
}

.field__counter.is-near { color: var(--warn); }

/* Select customizado (init_select() em www/js/tools.js) */
select.custom-select-source { display: none !important; }

.custom-select-wrapper { position: relative; width: 100%; }

.custom-select-wrapper .custom-select-input {
	display: block;
	padding-right: 40px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
}

.custom-select-wrapper.with-arrow::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	pointer-events: none;
	transform: translateY(-70%) rotate(45deg);
	transition: transform .15s;
}

.custom-select-wrapper.with-arrow.open::after { transform: translateY(-30%) rotate(-135deg); }

.custom-select-wrapper.open .custom-select-input {
	border-color: var(--teal);
	box-shadow: 0 0 0 3px rgba(1, 108, 128, .18);
	cursor: text;
}

.custom-select-wrapper.disabled .custom-select-input {
	background: var(--bg-2);
	color: var(--dim);
	cursor: not-allowed;
}

.custom-select-dropdown {
	position: fixed;
	z-index: 10000;
	display: none;
	max-height: 280px;
	padding: 4px;
	overflow-y: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}

.custom-select-item {
	padding: 9px 12px;
	border-radius: 6px;
	color: var(--text);
	line-height: 1.3;
	cursor: pointer;
}

.custom-select-item:hover,
.custom-select-item.active { background: var(--teal-50); }

.custom-select-item.selected { background: var(--teal-100); color: var(--teal-800); font-weight: 700; }

.custom-select-group {
	padding: 10px 12px 4px;
	color: var(--dim);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: default;
}

.custom-select-empty { padding: 9px 12px; color: var(--dim); font-size: .9rem; }

/* Campo invisível antispam (honeypot). */
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.form-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-top: 4px;
}

.form-card__status { color: var(--warn); font-weight: 600; min-height: 1.5em; }
.form-card__note { color: var(--dim); font-size: .85rem; }

/* Contato ao lado do formulário */
.contact-info { display: grid; gap: 22px; }

.contact-list { display: grid; gap: 16px; }

.contact-list li {
	display: flex;
	gap: 14px;
	color: var(--muted);
}

.contact-list strong { display: block; color: var(--text); font-family: var(--font-display); }

.contact-list__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex: none;
	border-radius: var(--corner-sm);
	background: var(--teal-50);
	color: var(--teal);
}

.contact-list a { color: var(--text); }

.map {
	overflow: hidden;
	border-radius: var(--corner);
	box-shadow: 0 0 0 1px var(--line);
}

.map iframe {
	display: block;
	width: 100%;
	height: 280px;
	border: 0;
}

.aside-card {
	display: grid;
	gap: 18px;
	padding: 26px;
	border-radius: var(--corner);
	background: var(--teal-50);
}

.aside-card__title { font-size: 1.2rem; font-weight: 800; }

/* ---------------------------------------------------------------- 404 */

.notfound__inner { max-width: 640px; text-align: center; margin-inline: auto; }
.notfound__code { font: 900 clamp(6rem, 4rem + 12vw, 10rem)/.9 var(--font-display); color: var(--teal); letter-spacing: -.04em; }
.notfound .section__lead { margin: 12px auto 0; }
.notfound__more { margin-top: 56px; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------------------------------------------------------------- Diálogo e lightbox */

dialog { color: var(--text); }

.modal {
	width: min(100% - 32px, 440px);
	padding: 0;
	border: 0;
	border-radius: var(--corner);
	background: #fff;
	box-shadow: var(--shadow);
}

.modal::backdrop { background: rgba(10, 44, 52, .6); }

.modal__body { display: grid; justify-items: center; gap: 12px; padding: 32px 28px 28px; text-align: center; }

.modal__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: var(--corner-sm);
	background: var(--ok);
	color: #fff;
	font-size: 1.5rem;
}

.modal--error .modal__icon { background: var(--danger); }
.modal__title { font-size: 1.5rem; font-weight: 800; }
.modal__text { color: var(--muted); }
.modal .btn { margin-top: 8px; min-width: 120px; }

.lightbox {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(6, 26, 31, .96);
}

.lightbox::backdrop { background: transparent; }

.lightbox__figure {
	display: grid;
	place-items: center;
	height: calc(100% - 64px);
	padding: 56px 16px 0;
}

.lightbox__img { max-height: 100%; width: auto; border-radius: var(--radius); }

.lightbox__caption {
	display: flex;
	justify-content: center;
	gap: 16px;
	padding: 16px;
	color: var(--teal-100);
}

.lightbox__counter { color: var(--teal-300); }

.lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
}

.lightbox__btn:hover { background: var(--orange); color: var(--ink); }
.lightbox__btn[hidden] { display: none; }
.lightbox__btn--close { top: 12px; right: 12px; }
.lightbox__btn--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------- Rodapé */

.site-footer {
	position: relative;
	background: var(--teal-900);
	color: var(--teal-100);
}

.site-footer__grid {
	display: grid;
	gap: 36px;
	padding-block: clamp(48px, 7vw, 80px);
}

@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }

.site-footer__brand p { max-width: 300px; margin-top: 16px; color: var(--teal-100); }
.site-footer__creci { margin-top: 8px !important; color: var(--teal-300) !important; font-size: .88rem; font-weight: 600; }

.site-footer__title {
	margin-bottom: 14px;
	color: #fff;
	font: 700 .8rem/1.2 var(--font-display);
	letter-spacing: .16em;
	text-transform: uppercase;
}

.site-footer ul { display: grid; gap: 10px; }

.site-footer__nav a { color: var(--teal-100); text-decoration: none; }
.site-footer__nav a:hover { color: var(--orange); }

.site-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.site-footer__contact .icone { margin-top: 3px; color: var(--orange); }
.site-footer__contact a { color: var(--teal-100); overflow-wrap: anywhere; }
.site-footer__contact a:hover { color: var(--orange); }

.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }

.site-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 24px;
	padding-block: 20px;
	color: var(--teal-300);
	font-size: .9rem;
}

.site-footer__bar a { color: var(--teal-100); }
.site-footer__bar a:hover { color: var(--orange); }

.site-footer__note { flex-basis: 100%; }

@media (max-width: 639px) {
	.site-footer__bar { flex-direction: column; }
}

/* ---------------------------------------------------------------- Animação ao rolar */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s ease, transform .7s ease;
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}

	.js [data-reveal] { opacity: 1; transform: none; }
}
