/* =========================================================
   RODRIGO VARELLA BROKER — folha de estilo única
   Sumário: 1 tokens · 2 base · 3 utilitários · 4 botões
            5 header · 6 hero · 7 serviços · 8 especialidades
            9 sobre · 10 benefícios · 11 regiões · 12 imóveis · 13 cta
            14 rodapé · 15 whatsapp flutuante
            16 animações · 17 responsivo
            18 modais: financiamento e captura
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --navy:  #1A2530;
  --ink:   #101820;
  --slate: #2C3E50;
  --gold:  #C5A880;
  --ice:   #F4F6F8;
  --white: #FFFFFF;

  --text-on-dark: rgba(255, 255, 255, .78);
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: rgba(26, 37, 48, .12);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 2px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;

  --shadow-md: 0 2px 4px rgba(16, 24, 32, .06), 0 24px 56px rgba(16, 24, 32, .14);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, video { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }

ul { margin: 0; padding: 0; list-style: none; }

button, input, select { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 24px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 3. UTILITÁRIOS ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }

.section-light { background: var(--white); }
.section-ice   { background: var(--ice); }
.section-navy  { background: var(--navy); }
.section-dark  { background: var(--ink); }

.section-navy, .section-dark { color: var(--text-on-dark); }
.section-navy h2, .section-dark h2,
.section-navy h3, .section-dark h3 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head-center { margin-inline: auto; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.4rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: .5em;
}
.section-dark .section-title,
.section-navy .section-title { color: var(--white); }

.section-text {
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
  color: rgba(44, 62, 80, .82);
  max-width: 58ch;
}
.section-head-center .section-text { margin-inline: auto; }
.section-dark .section-text,
.section-navy .section-text { color: var(--text-on-dark); }

.eyebrow {
  margin: 0 0 1.1em;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.section-head-center .eyebrow { justify-content: center; }
.eyebrow-dark { color: #9a7f55; }

.rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 28px;
}
.rule-center { margin-inline: auto; }

/* ---------- 4. BOTÕES ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  min-height: 52px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease),
              box-shadow .35s var(--ease);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .16);
  transform: translateX(-101%);
  transition: transform .5s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 24, 32, .18); }
.btn:hover::after { transform: translateX(0); }
.btn:active { transform: translateY(0); }

.btn-gold  { --btn-bg: var(--gold);  --btn-fg: var(--ink); }
.btn-navy  { --btn-bg: var(--navy);  --btn-fg: var(--white); }
.btn-navy:hover { --btn-bg: var(--ink); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, .45);
}
.btn-ghost:hover { --btn-bg: var(--white); --btn-fg: var(--navy); border-color: var(--white); }

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--line-light);
}
.btn-outline:hover { --btn-bg: var(--navy); --btn-fg: var(--white); border-color: var(--navy); }

.btn-sm { padding: 12px 22px; min-height: 44px; font-size: .7rem; }
.btn-lg { padding: 19px 44px; min-height: 60px; }

/* ---------- 5. HEADER ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .45s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }

/* O desfoque do cabeçalho rolado fica num ::before, não no .site-header em
   si. `backdrop-filter` (e `filter`) num ancestral cria um novo "containing
   block" para qualquer descendente position:fixed — e o menu mobile (.nav)
   é um deles. Com o filtro no próprio header, o menu passava a se encaixar
   na altura do header (~84px) em vez da tela inteira, cortado no celular
   assim que a página estava rolada. Um ::before atrás do conteúdo resolve:
   tem o filtro, mas não é ancestral de nada. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(26, 37, 48, .88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: grid; line-height: 1.1; color: var(--white); }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.6rem);
  letter-spacing: .02em;
}
.brand-sub {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}
.brand-sub i { font-style: normal; opacity: .5; margin-inline: 2px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav-list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: rgba(255, 255, 255, .8);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .08em;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--white); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 1px;
  background: var(--white);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 22.5px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--header-h) + 40px) clamp(80px, 11vh, 132px);
  overflow: hidden;
  background: var(--ink);
}

.hero-media { position: absolute; inset: -4% 0; z-index: 0; }
.hero-media > img,
.hero-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-playing { opacity: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(16, 24, 32, .92) 0%, rgba(16, 24, 32, .55) 38%, rgba(16, 24, 32, .18) 68%, rgba(16, 24, 32, .45) 100%),
    linear-gradient(to right, rgba(16, 24, 32, .72) 0%, rgba(16, 24, 32, .18) 48%, rgba(16, 24, 32, 0) 78%);
}

.hero-content { position: relative; z-index: 1; color: var(--white); }
.hero .eyebrow { color: var(--gold); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.25rem + 5.2vw, 5.1rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.015em;
  max-width: 22ch;
  margin-bottom: .36em;
}

.hero-text {
  max-width: 48ch;
  font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, .86);
  margin-bottom: 2.4em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .6);
}
.scroll-hint-label {
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.scroll-hint-line {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, .28);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 42%;
  background: var(--gold);
  animation: scrollTrail 2.6s var(--ease) infinite;
}
.scroll-hint:hover { color: var(--white); }

@keyframes scrollTrail {
  0%   { transform: translateY(-110%); }
  55%  { transform: translateY(240%); }
  100% { transform: translateY(240%); }
}

/* ---------- 7. SERVIÇOS ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.4vw, 32px);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transition: background .4s var(--ease);
}
.service-icon svg {
  width: 21px;
  height: 21px;
  stroke: var(--gold);
  stroke-width: 1.4;
  transition: stroke .4s var(--ease);
}
.service:hover .service-icon { background: var(--gold); }
.service:hover .service-icon svg { stroke: var(--ink); }

.service h3 {
  font-family: var(--font-display);
  font-size: 1.36rem;
  line-height: 1.2;
  color: var(--navy);
}
.service p { font-size: .93rem; color: rgba(44, 62, 80, .78); }
.service .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 8. ESPECIALIDADES ---------- */
.specialties {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 36px);
}

.specialty { display: grid; gap: 10px; align-content: start; }

.specialty-art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
  border-radius: var(--radius);
  overflow: hidden;
}
.specialty-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 24, 32, .5) 0%, rgba(16, 24, 32, 0) 58%);
  pointer-events: none;
}
.specialty-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.specialty:hover .specialty-art img { transform: scale(1.06); }

.specialty h3 {
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.2;
  color: var(--white);
}
.specialty p { font-size: .9rem; color: var(--text-on-dark); }

/* ---------- 9. SOBRE ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}

.about-media { margin: 0; position: relative; }
.about-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius);
}
.about-media figcaption {
  display: grid;
  gap: 3px;
  margin-top: 20px;
  padding-left: 16px;
  border-left: 1px solid var(--gold);
}
.about-media figcaption strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
}
.about-media figcaption span {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9a7f55;
}
.about-media figcaption i { font-style: normal; opacity: .5; }

.about-copy .signature {
  margin-block: 1.8em;
  padding-left: 18px;
  border-left: 1px solid var(--gold);
  font-size: .95rem;
  line-height: 1.6;
}
.about-copy .signature strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
}

/* ---------- 10. BENEFÍCIOS ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(234px, 1fr));
  gap: clamp(26px, 3vw, 44px);
}
.benefit {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
}
.benefit::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .6s var(--ease);
}
.benefit:hover::after { width: 100%; }

.benefit-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.benefit-icon svg { width: 20px; height: 20px; stroke: var(--gold); stroke-width: 1.4; }

.benefit h3 {
  font-family: var(--font-display);
  font-size: 1.42rem;
  color: var(--navy);
  margin-bottom: .45em;
}
.benefit p { font-size: .92rem; color: rgba(44, 62, 80, .78); }

/* ---------- 11. REGIÕES ---------- */
.regions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.region {
  position: relative;
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 272px;
  padding: 26px 22px;
  background: var(--navy);
  border-radius: var(--radius);
  color: var(--white);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.region:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.region-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform .9s var(--ease);
}
.region:hover .region-bg { transform: scale(1.06); }
.region::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(16, 24, 32, .94) 8%, rgba(16, 24, 32, .25) 62%, rgba(16, 24, 32, .5) 100%);
}
.region > * { position: relative; z-index: 1; }

.region-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
}
.region-text {
  font-size: .85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
  margin: 0;
}

.regions-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line-light);
}
.regions-cta p {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.22;
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.8rem);
  color: var(--navy);
  max-width: 24ch;
}

/* ---------- 12. IMÓVEIS (imoveis.html, imovel.html e destaques da home) ---------- */

/* Faixa de topo das páginas internas, no lugar do hero em vídeo da home. */
.page-head {
  background: var(--navy);
  color: var(--text-on-dark);
  padding-block: calc(var(--header-h) + clamp(56px, 8vh, 96px)) clamp(48px, 7vh, 80px);
}
.page-head .section-title { color: var(--white); margin-bottom: .35em; }
.page-head .section-text { color: var(--text-on-dark); }
.page-head .rule { margin-bottom: 22px; }
.page-head .eyebrow i { font-style: normal; opacity: .55; }

/* Variante com o mesmo vídeo do banner da home. Reaproveita .hero-media e
   #heroVideo, então quem liga o vídeo continua sendo iniciarHero() no main.js
   — inclusive os cuidados com conexão lenta e movimento reduzido. */
.page-head-video {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.page-head-video > .shell { position: relative; z-index: 1; }

/* Mais fechado que o scrim do hero: aqui a faixa é baixa e o texto ocupa o
   meio dela, onde o gradiente da home é claro demais. */
.page-head-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(16, 24, 32, .9) 0%, rgba(16, 24, 32, .66) 50%, rgba(16, 24, 32, .34) 100%),
    linear-gradient(to top, rgba(16, 24, 32, .62) 0%, rgba(16, 24, 32, .34) 100%);
}

.migalhas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.4em;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.migalhas a:hover { color: var(--gold); }
.migalhas i { font-style: normal; opacity: .45; }

/* ---- Filtros ---- */
.imoveis-filtros {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 36px);
}

/* Estes três usam display:grid/flex, que vence o `display:none` padrão do
   atributo [hidden] — por isso a regra explícita. */
.imoveis-filtros[hidden],
.imoveis-resumo[hidden],
.campo[hidden] { display: none; }

.campo { display: grid; gap: 8px; min-width: 0; }
.campo label {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #9a7f55;
}

/* ---- Dropdown próprio (substitui o <select> nativo) ----
   O <select> do sistema abre uma lista que o navegador desenha do jeito dele
   — em alguns WebViews ela sai maior que o cartão e sem nenhuma cor do site.
   Aqui o gatilho e a lista são nossos: mesmo visual em qualquer navegador. */
.selecao { position: relative; }

.selecao-gatilho {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  color: var(--navy);
  font: inherit;
  font-size: .94rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .3s var(--ease);
}
.selecao-gatilho:hover { border-color: rgba(26, 37, 48, .3); }
.selecao-gatilho[aria-expanded="true"] { border-color: var(--gold); }

.selecao-valor { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.selecao-seta {
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.selecao-gatilho[aria-expanded="true"] .selecao-seta { transform: rotate(180deg); }

.selecao-lista {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.selecao-lista[hidden] { display: none; }

.selecao-opcao {
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--navy);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.selecao-opcao:hover,
.selecao-opcao.is-focada { background: var(--ice); }
.selecao-opcao.is-selecionada { background: var(--gold); color: var(--ink); font-weight: 500; }

.imoveis-resumo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 18px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
  border-bottom: 1px solid var(--line-light);
}
.imoveis-contagem {
  margin: 0;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
}
.imoveis-limpar {
  background: none;
  border: 0;
  padding: 0 0 4px;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(44, 62, 80, .7);
  border-bottom: 1px solid var(--gold);
  cursor: pointer;
  transition: color .3s var(--ease);
}
.imoveis-limpar:hover { color: var(--navy); }
.imoveis-limpar[hidden] { display: none; }

/* ---- Grade e cartão ---- */
/* Três colunas, como a grade de especialidades da home. */
.imoveis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 34px);
}

.imovel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.imovel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.imovel-card:focus-within { border-color: var(--gold); }

.imovel-art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(152deg, #22303d 0%, #101820 100%);
}
.imovel-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.imovel-card:hover .imovel-art img { transform: scale(1.06); }
.imovel-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 24, 32, .42) 0%, rgba(16, 24, 32, 0) 52%);
  pointer-events: none;
}
.imovel-art-vazia {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(255, 255, 255, .4);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.selo {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 7px 13px;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
/* Linguagem diferente da finalidade de propósito: aquele selo é um bloco
   chapado e classifica o imóvel; este é um reforço, em vidro escuro com fio
   dourado, para os dois não brigarem no canto da foto. */
.selo-destaque {
  left: auto;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(16, 24, 32, .5);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(197, 168, 128, .6);
  color: var(--white);
}
.selo-destaque .estrela {
  width: 12px;
  height: 12px;
  flex: none;
  fill: var(--gold);
}

.imovel-corpo {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 2.2vw, 26px);
}
.imovel-local {
  margin: 0;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #9a7f55;
}
.imovel-local i { font-style: normal; opacity: .55; margin-inline: 2px; }

.imovel-titulo {
  font-family: var(--font-display);
  font-size: 1.36rem;
  line-height: 1.22;
  color: var(--navy);
  transition: color .3s var(--ease);
}
/* O link cobre o cartão inteiro, então qualquer ponto dele é clicável. */
.imovel-titulo a::after { content: ''; position: absolute; inset: 0; }
.imovel-card:hover .imovel-titulo { color: #35506b; }

.imovel-preco {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}

.imovel-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  font-size: .82rem;
  color: rgba(44, 62, 80, .8);
}
.imovel-specs li { display: inline-flex; align-items: center; gap: 7px; }
.imovel-specs svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.destaques-cta { margin-top: clamp(36px, 4vw, 56px); text-align: center; }

.imoveis-carregar-mais { margin-top: clamp(32px, 4vw, 48px); text-align: center; }
.imoveis-carregar-mais .btn[hidden] { display: none; }

/* ---- Estados: carregando, vazio e erro ---- */
.imoveis-status {
  padding: clamp(44px, 7vw, 86px) 0;
  text-align: center;
}
.imoveis-status h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  color: var(--navy);
  margin-bottom: .5em;
}
.imoveis-status p {
  max-width: 48ch;
  margin-inline: auto;
  color: rgba(44, 62, 80, .78);
  font-size: .95rem;
}
.imoveis-status .btn { margin-top: 26px; }

.card-esqueleto {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-esqueleto b,
.card-esqueleto i {
  display: block;
  background: linear-gradient(90deg, rgba(26, 37, 48, .055) 25%, rgba(26, 37, 48, .1) 37%, rgba(26, 37, 48, .055) 63%);
  background-size: 400% 100%;
  animation: brilho 1.5s var(--ease) infinite;
}
.card-esqueleto b { aspect-ratio: 4 / 3; }
.card-esqueleto i { height: 13px; margin: 24px 24px 0; border-radius: var(--radius); }
.card-esqueleto i:nth-of-type(2) { width: 72%; }
.card-esqueleto i:nth-of-type(3) { width: 45%; margin-bottom: 26px; }

@keyframes brilho {
  from { background-position: 100% 50%; }
  to   { background-position: 0 50%; }
}

/* ---- Página do imóvel ---- */
.imovel-detalhe {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.galeria { display: grid; gap: 12px; }
.galeria-palco {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(152deg, #22303d 0%, #101820 100%);
  border-radius: var(--radius);
  overflow: hidden;
}
.galeria-palco img { width: 100%; height: 100%; object-fit: cover; }

.galeria-seta {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(16, 24, 32, .5);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.galeria-seta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.galeria-seta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.galeria-seta-ant { left: 14px; }
.galeria-seta-prox { right: 14px; }

.galeria-contador {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 12px;
  background: rgba(16, 24, 32, .62);
  border-radius: var(--radius);
  color: var(--white);
  font-size: .72rem;
  letter-spacing: .1em;
}

.galeria-miniaturas {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.galeria-miniaturas button {
  flex: none;
  width: 96px;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  opacity: .5;
  transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.galeria-miniaturas button img { width: 100%; height: 100%; object-fit: cover; }
.galeria-miniaturas button:hover { opacity: .85; }
.galeria-miniaturas button.is-ativa { opacity: 1; border-color: var(--gold); }

.imovel-descricao { margin-top: clamp(36px, 4vw, 56px); }
.imovel-descricao h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  color: var(--navy);
  margin-bottom: .6em;
}
.imovel-descricao p { max-width: 64ch; color: rgba(44, 62, 80, .85); }

.ficha {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--ice);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}
.ficha-preco {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem);
  line-height: 1.1;
  color: var(--navy);
}
.ficha-preco small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(44, 62, 80, .62);
}
.ficha-lista { display: grid; margin: 24px 0; }
.ficha-lista > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: .9rem;
}
.ficha-lista dt { color: rgba(44, 62, 80, .7); }
.ficha-lista dd { margin: 0; color: var(--navy); font-weight: 500; text-align: right; }
.ficha .btn { width: 100%; }
.ficha-financiar { margin-top: 10px; }
.ficha-aviso {
  margin: 16px 0 0;
  font-size: .76rem;
  line-height: 1.6;
  color: rgba(44, 62, 80, .6);
}

.imovel-cta-fixo { display: none; }

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

@media (max-width: 920px) {
  .imovel-detalhe { grid-template-columns: 1fr; }
  .ficha { position: static; }

  .imovel-cta-fixo {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 95;
    padding: 12px var(--gutter);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(26, 37, 48, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-dark);
  }
  .imovel-cta-fixo .btn { width: 100%; }
  body.tem-cta-fixo .wa-float { display: none; }
  body.tem-cta-fixo .site-footer .footer-bottom { padding-bottom: 96px; }
}

@media (max-width: 680px) {
  /* Sem espaço lateral, o texto atravessa a faixa inteira — o escurecimento
     precisa ser parelho, não só do lado esquerdo. */
  .page-head-scrim {
    background:
      linear-gradient(to right, rgba(16, 24, 32, .88) 0%, rgba(16, 24, 32, .76) 100%),
      linear-gradient(to top, rgba(16, 24, 32, .5) 0%, rgba(16, 24, 32, .3) 100%);
  }

  .imoveis-filtros { grid-template-columns: 1fr; gap: 12px; }
  .imoveis-grid { grid-template-columns: 1fr; }
  .galeria-seta { width: 40px; height: 40px; }
  .galeria-miniaturas button { width: 76px; }
  .ficha-lista > div { font-size: .86rem; }
}

/* ---------- 13. CTA ---------- */
.cta { overflow: hidden; }
.cta::before {
  content: '';
  position: absolute;
  inset: auto -10% -60% auto;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(197, 168, 128, .18);
  border-radius: 50%;
  pointer-events: none;
}
.cta-inner { position: relative; text-align: center; max-width: 760px; margin-inline: auto; }
.cta-inner .section-text { margin-inline: auto; margin-bottom: 2.4em; }
.cta-meta {
  margin-top: 2.6em;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.cta-meta a:hover { color: var(--gold); }
.cta-meta i { font-style: normal; opacity: .4; }

/* ---------- 14. RODAPÉ ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-top: clamp(56px, 7vw, 88px);
  font-size: .9rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--line-dark);
}
.footer-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  color: var(--white);
  max-width: 18ch;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 60px);
}
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); margin: 0; }
.footer-sub {
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 6px 0 18px;
}
.footer-sub i { font-style: normal; opacity: .5; }
.footer-note { max-width: 36ch; color: rgba(255, 255, 255, .6); font-size: .88rem; }

.footer-title {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: rgba(255, 255, 255, .66); }
.footer-col a:hover { color: var(--gold); }
.footer-col span { color: rgba(255, 255, 255, .66); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 76px 26px 0;
  border-top: 1px solid var(--line-dark);
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
}
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- 15. WHATSAPP FLUTUANTE ---------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(16, 24, 32, .3);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease), background .35s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 26px; height: 26px; fill: var(--gold); transition: fill .35s var(--ease); }
.wa-float:hover { background: var(--gold); }
.wa-float:hover svg { fill: var(--navy); }

/* ---------- 16. ANIMAÇÕES ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 17. RESPONSIVO ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(380px, 86vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 36px;
    padding: 90px 36px 40px;
    background: var(--navy);
    border-left: 1px solid var(--line-dark);
    transform: translateX(101%);
    visibility: hidden;
    transition: transform .55s var(--ease), visibility .55s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line-dark); }
  .nav-list li:first-child { border-top: 1px solid var(--line-dark); }
  .nav-link {
    padding: 18px 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: .01em;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), color .3s var(--ease);
  }
  .nav.is-open .nav-link { opacity: 1; transform: none; }
  .nav.is-open .nav-list li:nth-child(1) .nav-link { transition-delay: .12s; }
  .nav.is-open .nav-list li:nth-child(2) .nav-link { transition-delay: .17s; }
  .nav.is-open .nav-list li:nth-child(3) .nav-link { transition-delay: .22s; }
  .nav.is-open .nav-list li:nth-child(4) .nav-link { transition-delay: .27s; }
  .nav.is-open .nav-list li:nth-child(5) .nav-link { transition-delay: .32s; }
  .nav.is-open .nav-list li:nth-child(6) .nav-link { transition-delay: .37s; }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--gold); }
  .nav-cta { align-self: flex-start; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(16, 24, 32, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s var(--ease);
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; }
}

@media (max-width: 680px) {
  .hero {
    min-height: 88vh;
    min-height: 88svh;
    align-items: center;
    padding-block: calc(var(--header-h) + 56px) 120px;
  }
  .hero-title {
    font-size: clamp(2.05rem, 1.3rem + 4.2vw, 2.7rem);
    max-width: 100%;
  }
  .hero-title br { display: none; }
  .hero-actions .btn { width: 100%; }
  .hero-media > img, .hero-media > video { object-position: center 62%; }

  .services { grid-template-columns: 1fr; }
  .service .btn { width: 100%; }
  .specialties { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .specialty h3 { font-size: 1.2rem; }
  .specialty p { font-size: .84rem; }

  .regions-cta { flex-direction: column; align-items: stretch; }
  .regions-cta .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  /* Centralizado, como as outras chamadas do site (a seção final de cada
     página também é toda centralizada) — e o botão um pouco menor que o
     padrão do desktop, que no celular ficava grande para um texto curto. */
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-top .btn {
    padding: 14px 26px;
    min-height: 48px;
    font-size: .72rem;
    letter-spacing: .12em;
  }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .region { min-height: 196px; }

  .cta-meta { gap: 6px 16px; }
  .cta-meta i { display: none; }

  .eyebrow { font-size: .6rem; letter-spacing: .16em; gap: 10px; }
  .eyebrow::before { width: 22px; }

  .footer-bottom { padding-right: 0; padding-bottom: 86px; }

  .wa-float { width: 50px; height: 50px; }
  .wa-float svg { width: 23px; height: 23px; }
  .scroll-hint { display: none; }

  /* "Falar com Rodrigo no WhatsApp" não cabe em uma linha no celular com o
     padding do desktop — o texto quebrava em duas linhas e, como a caixa não
     tem como ficar mais estreita que o texto, o .btn-lg esticava para a
     largura inteira da tela e virava um bloco bem mais alto que o resto dos
     botões do site. Menor aqui, cabe numa linha só. */
  .btn-lg {
    padding: 16px 26px;
    min-height: 54px;
    font-size: .72rem;
    letter-spacing: .1em;
  }
}

/* ---------- MOVIMENTO REDUZIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-media { transform: none !important; }
}

/* ---------- 18. MODAIS: FINANCIAMENTO E CAPTURA ----------
   A estrutura vem de assets/js/modal.js; o conteúdo, de
   assets/js/financiamento.js e assets/js/captura.js. */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(16, 24, 32, .72);
  opacity: 0;
  transition: opacity .3s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal[hidden] { display: none; }
.modal.is-aberto { opacity: 1; }

.modal-caixa {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 5vw, 52px);
  transform: translateY(14px);
  transition: transform .35s var(--ease);
}
.modal.is-aberto .modal-caixa { transform: none; }

.modal-fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  color: var(--slate);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.modal-fechar:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.modal-fechar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.modal-eyebrow {
  margin: 0 0 .7em;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #9a7f55;
}
.modal-titulo {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  color: var(--navy);
  padding-right: 44px;      /* não passar por baixo do botão de fechar */
}
.modal-titulo + .rule { margin-top: 22px; }
.modal-texto {
  max-width: 62ch;
  color: rgba(44, 62, 80, .85);
}
.modal-nota {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  font-size: .82rem;
  color: rgba(44, 62, 80, .6);
}

/* ---------- Cartões dos bancos ---------- */
.bancos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.banco {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px 20px 18px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.banco:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* Caixa de altura fixa para a logo. As imagens dos bancos vêm em formatos
   bem diferentes — umas quadradas com fundo colorido, outras largas e
   transparentes, só com o símbolo. A altura fixa mais o `contain` deixam
   todas do mesmo tamanho aparente, sem distorcer nenhuma. */
.banco-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 46px;
  margin-bottom: 14px;
}
.banco-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.banco-nome {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--navy);
}
.banco-dica {
  font-size: .78rem;
  color: rgba(44, 62, 80, .62);
}
.banco-ir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* `auto` em vez de uma medida fixa: os cartões da mesma linha têm a altura
     do mais alto, e sem isto o "Simular" de um banco com a legenda em duas
     linhas desce e desalinha dos vizinhos. */
  margin-top: auto;
  padding-top: 14px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9a7f55;
}
.banco-ir svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.banco:hover .banco-ir svg { transform: translate(2px, -2px); }

/* ---------- Faixa que abre o modal, na listagem ---------- */
.financiamento-faixa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(22px, 3vw, 32px);
  background: var(--ice);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}
.financiamento-faixa h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--navy);
}
.financiamento-faixa p {
  margin: 6px 0 0;
  max-width: 54ch;
  font-size: .9rem;
  color: rgba(44, 62, 80, .72);
}

/* ---------- Popup de cadastro ---------- */
.modal-captura { max-width: 480px; }
.modal-captura .modal-texto { margin-bottom: 0; }

.captura-form { margin-top: 26px; }

.campo-rotulo {
  display: block;
  margin-bottom: 7px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}
.campo-rotulo span { text-transform: none; letter-spacing: 0; opacity: .5; }

.campo-texto {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.campo-texto::placeholder { color: rgba(44, 62, 80, .38); }
.campo-texto:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, .22);
}

/* Campo-armadilha para robôs: fora da tela, mas ainda preenchível por quem
   preenche tudo. `display: none` não serve — robô que lê o HTML ignora. */
.campo-armadilha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captura-aviso {
  margin: 0 0 14px;
  min-height: 1.2em;
  font-size: .85rem;
  color: rgba(44, 62, 80, .7);
}
.captura-aviso.is-erro { color: #9b2c2c; }

.captura-form .btn { width: 100%; }

.captura-termos {
  margin: 16px 0 0;
  font-size: .76rem;
  line-height: 1.6;
  color: rgba(44, 62, 80, .55);
}
.captura-termos a { color: #9a7f55; text-decoration: underline; }
.captura-termos a:hover { color: var(--navy); }

.captura-pronto { text-align: center; padding: 10px 0; }
.captura-pronto .modal-titulo { padding-right: 0; }
.captura-pronto .modal-texto { margin-inline: auto; }

.captura-tique {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(197, 168, 128, .16);
}
.captura-tique svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #9a7f55;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 820px) {
  .bancos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .modal { padding: 0; align-items: stretch; }
  .modal-caixa { max-width: none; min-height: 100%; border-radius: 0; }
  .modal-captura { min-height: auto; margin: auto; }
  .financiamento-faixa { flex-direction: column; align-items: stretch; }
  .financiamento-faixa .btn { width: 100%; }
}

@media (max-width: 420px) {
  .bancos { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal-caixa { transition: none; }
  .modal-caixa { transform: none; }
}
