/* =====================================================================
   RWS & Teixeira — Corretores de Imóveis
   Tema: branco / preto / azul #034bff
   ===================================================================== */

:root {
  --brand: #034bff;
  --brand-dark: #0239cc;
  --brand-soft: #eaf0ff;
  --ink: #090c0d;
  --ink-2: #2b2f38;
  --muted: #6b7280;
  --bg: #ffffff;
  --tint: #e4e8f7;
  /* Mesmo valor do --ink de propósito: um é tinta (texto), o outro é chão
     (rodapé e seções escuras). Andam juntos, mas dizem coisas diferentes. */
  --dark: #090c0d;
  --line: #e6e9f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(9, 12, 13, .08);
  --shadow-lg: 0 24px 60px rgba(9, 12, 13, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  /* Largura útil do site — menu, conteúdo e rodapé alinhados pela mesma régua.
     Os blocos de texto têm limite próprio (hero, cabeçalho de seção, páginas
     legais), então alargar aqui só beneficia as grades. */
  --wrap: min(1400px, 92%);
  /* Altura da navbar fixa. Vale para o próprio cabeçalho, para o topo do menu
     mobile e para o quanto ele precisa subir ao fechar — três números que
     tinham de andar juntos e antes estavam escritos à mão em cada lugar. */
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: var(--wrap); margin-inline: auto; }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--notop { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .title,
.section--dark .eyebrow { color: #fff; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: .8rem;
}
.title {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.title em { font-style: normal; color: var(--brand); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.section__head-link,
.section__head-note { color: var(--muted); font-weight: 600; }
.section__head-link:hover { color: var(--brand); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(3, 75, 255, .28); }
.btn--brand:hover { background: var(--brand-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--brand); color: var(--brand); }
.section--dark .btn--line { border-color: rgba(255,255,255,.3); color: #fff; }
.btn--full { width: 100%; }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px);
  border-color: var(--line);
}
.nav__inner {
  width: var(--wrap);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: .6rem; }
/* Logo enviada pelo painel: altura fixa, largura livre. */
.nav__logo { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.nav__monogram {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  border-radius: 10px;
  font-family: var(--head); font-weight: 800; font-size: .85rem;
  letter-spacing: .02em;
}
.nav__brand-name { font-family: var(--head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.nav__brand-name em { font-style: normal; color: var(--brand); }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links > a { font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: color .2s; }
.nav__links > a:hover { color: var(--brand); }
.nav__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--brand); color: #fff !important;
  padding: .55rem 1rem; border-radius: 999px; font-weight: 700;
}
.nav__cta:hover { background: var(--brand-dark); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; gap: 6px; justify-content: center; align-items: center; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }
.nav__toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(7rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 5rem);
  /* Três camadas, de cima para baixo: o véu que segura o contraste do texto, a
     foto e a cor de base — esta última é o que aparece se a imagem não carregar,
     então o hero nunca fica sem fundo.
     O véu é opaco à esquerda, onde ficam título e busca, e vai abrindo para a
     direita, que é onde está a chave. A foto é ancorada à direita pelo mesmo
     motivo: em tela estreita o corte come o lado vazio, não o assunto. */
  background-image:
    linear-gradient(100deg, #fff 0%, rgba(255, 255, 255, .94) 34%, rgba(255, 255, 255, .6) 62%, rgba(255, 255, 255, .2) 100%),
    url("../img/hero.webp"),
    linear-gradient(180deg, #fff, var(--tint));
  background-size: cover;
  background-position: center, right center, center;
  background-repeat: no-repeat;
}
.hero__text { max-width: 720px; }
.hero__eyebrow {
  font-family: var(--head); font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--head); font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.03em;
}
.hero__title span { display: block; }
.hero__title em { font-style: normal; color: var(--brand); }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); margin: 1.5rem 0 2rem; max-width: 600px; }

.hero__search {
  display: flex; gap: .6rem; flex-wrap: wrap;
  background: #fff; padding: .8rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  max-width: 760px;
}
.hero__search select,
.hero__search input {
  flex: 1 1 160px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  font-family: var(--body); font-size: .95rem;
  background: var(--bg); color: var(--ink);
}
.hero__search .btn { flex: 1 1 100%; }

/* ---------- Cards de imóvel ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
/* Catálogo: divide espaço com a barra de filtros, por isso cabem menos cards. */
.cards--catalog { grid-template-columns: repeat(2, 1fr); }

/* Favoritos ocupa a largura inteira — a grade se ajusta sozinha ao container. */
.cards--favoritos { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__link { display: block; }
.card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--tint);
  overflow: hidden;
}
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__photo:not(.card__photo--slider) img { transform: scale(1.05); }
.card__nophoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }

/* Slider de fotos no card (mobile + desktop) */
.card__track { display: flex; height: 100%; transition: transform .35s var(--ease); }
.card__photo--slider .card__track img { flex: 0 0 100%; width: 100%; height: 100%; }
.card__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  font-size: 1.3rem; line-height: 1; display: grid; place-items: center;
  cursor: pointer; z-index: 3; box-shadow: 0 2px 8px rgba(16, 24, 40, .2);
  opacity: 0; transition: opacity .2s, background .2s;
}
.card__arrow--prev { left: .6rem; }
.card__arrow--next { right: .6rem; }
.card__arrow:hover { background: #fff; }
.card:hover .card__arrow { opacity: 1; }
.card__counter {
  position: absolute; bottom: .7rem; right: .7rem; z-index: 3;
  background: rgba(9, 12, 13, .65); color: #fff;
  font-size: .72rem; font-weight: 600; padding: .2rem .5rem; border-radius: 999px;
}
.card__seeall {
  position: absolute; bottom: .7rem; left: .7rem; z-index: 3;
  background: rgba(9, 12, 13, .65); color: #fff;
  font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .25rem;
}
.card__seeall::before { content: "⤢"; font-size: .8rem; }
/* No touch/mobile as setas ficam sempre visíveis (não há hover). */
@media (hover: none), (max-width: 640px) {
  .card__arrow { opacity: 1; }
}
.card__badges { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.card__body { padding: 1.2rem 1.3rem 1.4rem; }
.card__type { font-size: .82rem; color: var(--muted); font-weight: 600; }
.card__title { font-family: var(--head); font-weight: 700; font-size: 1.2rem; margin: .2rem 0 .8rem; letter-spacing: -.01em; line-height: 1.25; }
.card__specs { list-style: none; display: flex; flex-wrap: wrap; gap: .9rem; padding: .8rem 0; border-top: 1px solid var(--line); margin-bottom: .8rem; }
.card__specs li { font-size: .85rem; color: var(--ink-2); }
.card__specs strong { color: var(--ink); }
.card__price { font-family: var(--head); font-weight: 800; font-size: 1.35rem; color: var(--brand); }

/* ---------- Badges ---------- */
.badge {
  font-family: var(--head);
  font-weight: 700;
  font-size: .72rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  letter-spacing: .02em;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(11,13,18,.1);
}
.badge--finalidade { background: var(--brand); color: #fff; }
.badge--reservado { background: #f59e0b; color: #fff; }
.badge--ref { background: rgba(11,13,18,.78); color: #fff; }
.badge--tipo { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step__num { font-family: var(--head); font-weight: 800; color: var(--brand); font-size: 1.4rem; }
.step h3 { font-family: var(--head); font-size: 1.1rem; margin: .6rem 0 .4rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- Equipe / corretores ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.team--page { grid-template-columns: repeat(3, 1fr); }
.team__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; padding-bottom: 1.3rem; }
.team__card--full { text-align: left; }
.team__photo { aspect-ratio: 1; background: var(--brand-soft); display: grid; place-items: center; overflow: hidden; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__photo span { font-family: var(--head); font-weight: 800; font-size: 2.4rem; color: var(--brand); }
.team__photo--lg { aspect-ratio: 4 / 3; }
.team__card figcaption { padding: 1rem 1.2rem 0; }
.team__card--full figcaption { padding: 1.1rem 1.3rem 0; }
.team__card strong { font-family: var(--head); font-size: 1.1rem; display: block; }
.team__creci, .team__card figcaption span { color: var(--muted); font-size: .85rem; }
.team__bio { color: var(--ink-2); font-size: .92rem; margin: .6rem 0; }
.team__count { color: var(--brand); font-weight: 700; font-size: .85rem; margin: .4rem 0 .8rem; }

/* ---------- Contato ---------- */
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.contact__list { list-style: none; display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.1); color: var(--brand); font-size: 1.1rem; }
.section--dark .contact__icon { background: rgba(255,255,255,.1); color: #fff; }
.contact__list strong { display: block; font-family: var(--head); }
.contact__list a, .contact__list span { color: inherit; opacity: .85; }

.contact__card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-lg); }
.contact__card--aside { box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact__card-title { font-family: var(--head); font-size: 1.3rem; margin-bottom: 1.1rem; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__field { display: grid; gap: .35rem; }
.form__field label { font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.form__field input,
.form__field textarea,
.filters__form select,
.filters__form input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .85rem;
  font-family: var(--body); font-size: .95rem;
  background: var(--bg); color: var(--ink);
  width: 100%;
}
.form__field input:focus,
.form__field textarea:focus,
.filters__form select:focus,
.filters__form input:focus,
.hero__search input:focus,
.hero__search select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form__error { color: #dc2626; font-size: .82rem; }
.form__note { font-size: .78rem; color: var(--muted); text-align: center; }
.form__note a { color: var(--brand); }
.form__success { background: var(--brand-soft); color: var(--brand-dark); padding: .9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 1rem; }
.form__fail { background: #fef2f2; color: #b91c1c; padding: .9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 1rem; }
.btn.is-loading { cursor: progress; }
.btn__spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: btnspin .7s linear infinite; vertical-align: -3px; }
@keyframes btnspin { to { transform: rotate(360deg); } }

/* ---------- Page head ---------- */
.page-head { padding: clamp(6rem, 12vw, 8.5rem) 0 1.5rem; background: linear-gradient(180deg, var(--tint), #fff); }
.page-head__sub { color: var(--muted); margin-top: .6rem; font-size: 1.05rem; }

/* ---------- Catálogo ---------- */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 2.2rem; align-items: start; }
.filters { position: sticky; top: 90px; }
.filters__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: 1rem; box-shadow: var(--shadow); }
.filters__title { font-family: var(--head); font-size: 1.1rem; }
.filters__clear { text-align: center; color: var(--muted); font-size: .85rem; }
.filters__clear:hover { color: var(--brand); }

/* Botão da sanfona: existe só no mobile (ver responsivo). No desktop o painel é
   sempre visível e ele some, junto com o checkbox que guarda o estado. */
.filters__toggle { display: none; }
.filters__badge {
  min-width: 22px; height: 22px; padding: 0 .4rem;
  display: inline-grid; place-items: center;
  background: var(--brand); color: #fff;
  border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.filters__chevron { margin-left: auto; transition: transform .25s var(--ease); }

/* Filtros — rótulo de grupo, pílulas (quartos/banheiros/vagas) e faixa de preço */
.form__label { font-weight: 600; font-size: .85rem; color: var(--ink-2); }
/* `position: relative` prende os radios absolutos ao grupo — sem isso, no
   mobile (onde .filters deixa de ser sticky) o containing block deles vira a
   viewport e eles escapam do overflow-x: hidden do body. */
.pills { position: relative; display: flex; gap: .5rem; flex-wrap: wrap; }
/* Radio real escondido atrás da pílula. O seletor precisa do `input`: com
   `.pills__input` sozinho a regra `.filters__form input { width: 100% }` acima
   vence por especificidade e estica o radio até a largura toda, criando scroll
   lateral no catálogo. */
input.pills__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pill {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: .9rem; color: var(--ink-2);
  cursor: pointer; user-select: none;
  transition: border-color .15s, color .15s, background .15s;
}
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pills__input:checked + .pill { background: var(--brand); border-color: var(--brand); color: #fff; }
.pills__input:focus-visible + .pill { outline: 2px solid var(--brand); outline-offset: 2px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.price-range__field { display: grid; gap: .3rem; }
.price-range__field label { font-weight: 500; font-size: .78rem; color: var(--muted); }
.catalog__count { color: var(--muted); font-weight: 600; margin-bottom: 1.2rem; }
.empty { text-align: center; padding: 3rem 1rem; display: grid; gap: 1rem; justify-items: center; color: var(--muted); }
.empty__hint { font-size: .9rem; max-width: 30rem; }
/* Garante que o atributo hidden vença regras de display (.empty usa grid). */
[hidden] { display: none !important; }

/* Resumo dos filtros ativos: etiquetas clicáveis que removem o próprio filtro */
.applied { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.applied__label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.applied__chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
  transition: border-color .15s, color .15s, background .15s;
}
.applied__chip:hover, .applied__chip:focus-visible { border-color: var(--brand); color: var(--brand); background: var(--tint); }
/* Herda a cor do chip no hover — o × não deve virar o único elemento colorido. */
.applied__x { font-size: 1.05rem; line-height: 1; color: var(--muted); }
.applied__chip:hover .applied__x, .applied__chip:focus-visible .applied__x { color: inherit; }
.applied__reset { font-size: .85rem; color: var(--muted); text-decoration: underline; }
.applied__reset:hover { color: var(--brand); }

/* Barra de ferramentas do catálogo (contagem + ordenação + mapa) */
.catalog__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.catalog__toolbar .catalog__count { margin-bottom: 0; }
.catalog__tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.catalog__sort select {
  padding: .5rem 2rem .5rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-weight: 600; font-size: .85rem; color: var(--ink-2); cursor: pointer;
}

/* Lista de comodidades (checkboxes) nos filtros */
.check-list { display: grid; gap: .5rem; max-height: 220px; overflow-y: auto; padding-right: .3rem; }
.check-list__item { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.check-list__item input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Perguntas frequentes ---------- */
.faq { max-width: 820px; display: grid; gap: .8rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.1rem 1.3rem; transition: border-color .2s; }
.faq__item[open] { border-color: var(--brand); }
.faq__q { font-family: var(--head); font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); flex: none; }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { color: var(--ink-2); margin-top: .8rem; }

/* ---------- Paginação ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.pagination__btn { font-family: var(--head); font-weight: 700; padding: .6rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; transition: .2s; }
.pagination__btn:hover:not(.is-disabled) { border-color: var(--brand); color: var(--brand); }
.pagination__btn.is-disabled { opacity: .4; cursor: default; }
.pagination__info { color: var(--muted); font-size: .9rem; }

/* ---------- Página do imóvel ---------- */
/* Folga no topo para não ficar sob a navbar fixa (72px) — evita o "espaço
   estranho" no mobile, onde o conteúdo encostava/escondia atrás do header. */
.imovel { padding-top: clamp(5.5rem, 9vw, 7rem); }
.imovel__back { margin-bottom: 1.4rem; }

/* Botão "voltar" e toolbar de ações (compartilhar) */
.imovel__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.back-link,
.imovel__tool {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: .9rem; color: var(--ink-2);
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.back-link:hover,
.imovel__tool:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.imovel__tool { color: var(--brand); }

/* Modal de compartilhamento */
.share-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 5vh 5vw; background: rgba(8, 10, 16, .55); }
.share-modal.is-open { display: flex; }
.share-modal__panel { position: relative; width: min(440px, 100%); background: #fff; border-radius: var(--radius); padding: 1.8rem 1.8rem 2rem; box-shadow: 0 24px 60px rgba(16, 24, 40, .28); }
.share-modal__title { font-family: var(--head); font-size: 1.3rem; margin: 0 0 1.3rem; }
.share-modal__close { position: absolute; top: 1rem; right: 1.1rem; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 50%; transition: background .2s, color .2s; }
.share-modal__close:hover { background: var(--tint); color: var(--ink); }
.share-opts { display: grid; gap: .7rem; }
.share-opt {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  position: relative;
  padding: .85rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--brand); background: #fff;
  color: var(--brand); font-weight: 600; font-size: .98rem;
  cursor: pointer; transition: background .15s, color .15s;
}
.share-opt svg { position: absolute; left: 1.1rem; }
.share-opt:hover { background: var(--brand-soft); }
.share-opt.is-done { background: var(--brand); color: #fff; border-color: var(--brand); }
.imovel__grid { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
.imovel__cover { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 0; cursor: zoom-in; background: var(--tint); padding: 0; }
.imovel__cover img { width: 100%; height: 100%; object-fit: cover; }
.imovel__cover--empty { display: grid; place-items: center; color: var(--muted); cursor: default; }
.gallery--imovel { margin-top: 1rem; }

/* Slider principal da página do imóvel */
.imovel__slider { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.imovel__slider-track { display: flex; height: 100%; transition: transform .4s var(--ease); }
.imovel__slide { flex: 0 0 100%; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background: var(--tint); cursor: zoom-in; position: relative; display: block; }
.imovel__slide img { width: 100%; height: 100%; object-fit: cover; }
.imovel__slide--video { cursor: pointer; display: grid; place-items: center; }
.imovel__slide--video.gallery__item--link { background: var(--ink); }
.imovel__slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 1.7rem; line-height: 1; display: grid; place-items: center;
  cursor: pointer; z-index: 3; box-shadow: 0 2px 10px rgba(16, 24, 40, .25);
  transition: background .2s;
}
.imovel__slider-arrow:hover { background: #fff; }
.imovel__slider-arrow--prev { left: .8rem; }
.imovel__slider-arrow--next { right: .8rem; }
.imovel__slider-counter {
  position: absolute; bottom: .9rem; right: .9rem; z-index: 3;
  background: rgba(9, 12, 13, .65); color: #fff;
  font-size: .8rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px;
}
.imovel__thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.imovel__thumb {
  flex: 0 0 84px; height: 64px; border: 2px solid transparent; border-radius: var(--radius-sm);
  overflow: hidden; padding: 0; cursor: pointer; background: var(--tint); position: relative; opacity: .7;
  transition: opacity .2s, border-color .2s;
}
.imovel__thumb img { width: 100%; height: 100%; object-fit: cover; }
.imovel__thumb:hover { opacity: 1; }
.imovel__thumb.is-active { opacity: 1; border-color: var(--brand); }
.imovel__thumb-play { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; display: grid; place-items: center; background: rgba(3, 75, 255, .9); color: #fff; border-radius: 50%; font-size: .6rem; }
@media (max-width: 640px) {
  .imovel__slider-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
  .imovel__thumb { flex-basis: 68px; height: 52px; }
}

.imovel__header { margin: 1.8rem 0 1.2rem; }
.imovel__badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.imovel__title { font-family: var(--head); font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.02em; line-height: 1.1; }
.imovel__location { color: var(--muted); font-weight: 600; margin-top: .5rem; }

.imovel__specs { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; }
.imovel__specs li { background: #fff; padding: 1rem; text-align: center; }
.imovel__specs strong { display: block; font-family: var(--head); font-size: 1.2rem; color: var(--ink); }
.imovel__specs span { font-size: .8rem; color: var(--muted); }

.imovel__subtitle { font-family: var(--head); font-weight: 700; font-size: 1.3rem; margin: 2rem 0 .8rem; }
.imovel__desc p { color: var(--ink-2); }
.features { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.features li { color: var(--ink-2); font-weight: 500; }

.map-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.imovel__map-note { color: var(--muted); font-size: .85rem; margin-top: .6rem; }

/* Sidebar de preço */
.imovel__aside { position: sticky; top: 90px; display: grid; gap: 1.4rem; }
.price-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.price-box__label { font-family: var(--head); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.price-box__value { font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--brand); margin: .2rem 0 1rem; }
.price-box__extra { list-style: none; display: grid; gap: .5rem; padding: 1rem 0; margin-bottom: 1.1rem; border-top: 1px solid var(--line); }
.price-box__extra li { display: flex; justify-content: space-between; font-size: .9rem; }
.price-box__extra span { color: var(--muted); }
.price-box__corretor { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.price-box__corretor img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.price-box__corretor strong { font-family: var(--head); display: block; font-size: .95rem; }
.price-box__corretor span { color: var(--muted); font-size: .82rem; }

/* ---------- Galeria (tiles quadrados) + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.gallery__item { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--tint); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--video::after { content: ""; position: absolute; inset: 0; background: rgba(11,13,18,.28); }
.gallery__play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: 50%; font-size: 1rem; z-index: 2; box-shadow: 0 6px 18px rgba(3, 75, 255,.5); }
.gallery__item--link { display: grid; place-items: center; background: var(--ink); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 10, 16, .92); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 4vh 4vw; }
.lightbox.is-open { display: flex; }
.lightbox__stage { max-width: 1100px; width: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 100%; max-height: 82vh; border-radius: 8px; object-fit: contain; }
.lightbox__video { width: 100%; max-width: 960px; aspect-ratio: 16 / 9; }
.lightbox__video iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.lightbox__caption { color: rgba(255,255,255,.85); margin-top: 1rem; font-size: .92rem; text-align: center; }
.lightbox__close { position: absolute; top: 1.4rem; right: 1.6rem; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background .2s; z-index: 2; }
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__counter { position: absolute; top: 1.9rem; left: 1.6rem; color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 600; letter-spacing: .02em; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1;
  cursor: pointer; transition: background .2s; z-index: 2;
  display: grid; place-items: center;
}
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__nav--prev { left: 1.6rem; }
.lightbox__nav--next { right: 1.6rem; }
.lightbox__img { cursor: zoom-in; }
.lightbox__img.is-zoomed { max-width: none; max-height: none; width: auto; cursor: zoom-out; }
.lightbox__stage { overflow: auto; }
@media (max-width: 640px) {
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
}

/* ---------- Footer ----------
   Fundo preto e texto branco. Sobre o preto o branco dá 19.6:1, então a
   hierarquia pode ser feita com alfa sem risco: o tom mais apagado daqui ainda
   fica em 5.9:1. Continua sendo cor com alfa, e não `opacity`, porque opacity
   empilha entre pai e filho e derruba o contraste sem avisar. */
.footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 3rem 0; }
.footer__inner { display: grid; gap: 1.2rem; }
.footer__brand { font-family: var(--head); font-weight: 800; font-size: 1.4rem; color: #fff; }
/* No claro o "& Teixeira" sai em azul; aqui a marca inteira é branca — o azul
   da marca sobre preto fica em 3.2:1, no limite e visualmente apagado. */
.footer__brand em { font-style: normal; color: #fff; }
.footer__tag { font-size: .9rem; }
/* Nome e CRECI de cada corretor. O registro fica em tom mais apagado para o
   nome continuar sendo o que se lê primeiro — sem marcador nenhum entre eles. */
.footer__corretores { list-style: none; font-size: .85rem; line-height: 1.7; margin-top: .35rem; }
.footer__corretores li + li { margin-top: .1rem; }
.footer__corretores span { color: rgba(255,255,255,.55); margin-left: .4rem; }
.footer__nap { font-size: .85rem; font-style: normal; line-height: 1.8; margin-top: .8rem; }
.footer__nap a:hover { color: #fff; text-decoration: underline; }
.footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: .82rem; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; align-items: center; }
/* Crédito da agência: discreto ao lado do copyright, e a marca alinhada à
   linha de base do texto em vez de flutuar acima dela. */
.footer__feito a { display: inline-flex; align-items: center; gap: .4rem; }
.footer__feito img { height: 1.15em; width: auto; display: block; }
.footer__feito a:hover span { color: #fff; text-decoration: underline; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float { position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .25s var(--ease); }
.whats-float:hover { transform: scale(1.08); }

/* ---------- Legal ---------- */
.legal-page { padding-top: clamp(6rem, 12vw, 9rem); }
.legal-page__body { max-width: 760px; margin-top: 1.8rem; display: grid; gap: .4rem; }
.legal-page__body h2 { font-family: var(--head); font-size: 1.2rem; margin-top: 1.6rem; }
.legal-page__body p, .legal-page__body li { color: var(--ink-2); }
.legal-page__body ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal-page__body a { color: var(--brand); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
/* Em telas largas a coluna de resultados do catálogo comporta 3 cards; com 2
   eles ficam desproporcionais. A grade de favoritos se vira sozinha. */
@media (min-width: 1280px) {
  .cards--catalog { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  /* Sem espaço para texto de um lado e foto do outro: o véu vira vertical, o
     texto fica sobre a parte clara de cima e a foto respira embaixo. Arquivo
     menor também — não faz sentido baixar 1920px num celular. */
  .hero {
    background-image:
      linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .92) 38%, rgba(255, 255, 255, .3) 100%),
      url("../img/hero-mobile.webp"),
      linear-gradient(180deg, #fff, var(--tint));
    background-position: center, center bottom, center;
  }
  .cards, .cards--catalog { grid-template-columns: repeat(2, 1fr); }
  .cards--favoritos { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team, .team--page { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .imovel__grid { grid-template-columns: 1fr; }
  .imovel__aside { position: static; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }

  /* Aqui o catálogo vira uma coluna só e o painel aberto empurraria os cards
     para bem abaixo da dobra. Ele passa a nascer fechado, com o botão no lugar. */
  .filters__toggle {
    display: flex; align-items: center; gap: .6rem; width: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: .95rem 1.1rem; box-shadow: var(--shadow);
    font-family: var(--head); font-size: 1.05rem; color: var(--ink);
    cursor: pointer; user-select: none;
  }
  /* O checkbox fica fora da tela; o foco do teclado precisa aparecer no botão. */
  .filters__switch:focus-visible + .filters__toggle { outline: 2px solid var(--brand); outline-offset: 2px; }
  .filters__switch:not(:checked) ~ .filters__form { display: none; }
  .filters__switch:checked + .filters__toggle .filters__chevron { transform: rotate(180deg); }
  .filters__form { margin-top: .8rem; }
  /* O botão já diz "Filtrar" — repetir no topo do painel só ocupa altura. */
  .filters__title { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 1.2rem 6%; gap: 1rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    /* Esconder por uma porcentagem da própria altura não fecha a conta: o painel
       começa var(--nav-h) abaixo do topo, então -120% só o tira da tela se ele
       passar de 360px. Menu curto (poucos links) deixava uma faixa à mostra.
       O deslocamento certo é a altura do painel MAIS a do cabeçalho. */
    transform: translateY(calc(-100% - var(--nav-h)));
    /* Fechado, o menu não pode receber toque nem foco de teclado. A
       visibilidade só troca ao fim do movimento, para a saída ser vista. */
    visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s .35s;
  }
  .nav__links.is-open {
    transform: none;
    visibility: visible;
    transition: transform .35s var(--ease), visibility 0s;
  }
  .nav__toggle { display: flex; }
  .cards, .cards--catalog, .cards--favoritos, .steps, .team, .team--page { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .hero__search { flex-direction: column; }
  .hero__search select, .hero__search input { flex: 1 1 auto; }
}
