/* ==========================================================================
   IMÓVEL PIÇARRAS — Coastal Luxury / Editorial
   Paleta: oceano profundo (petróleo) + areia cremosa + latão (brass)
   Tipografia: Fraunces (display serif) + Instrument Sans (texto)
   ========================================================================== */

:root {
  /* oceano */
  --deep: #0c2f33;          /* petróleo profundo */
  --deep-2: #10404a;        /* petróleo médio */
  --teal: #1d5c66;          /* teal de apoio */
  --foam: #cfe3e0;          /* espuma / texto sobre escuro */

  /* areia */
  --sand: #f4ecdf;          /* areia quente (fundo principal) */
  --sand-2: #ece0cc;        /* areia mais escura */
  --cream: #fbf7ef;         /* off-white cremoso (cards) */

  /* acento */
  --brass: #b98a44;         /* latão */
  --brass-2: #d8ab63;       /* latão claro / dourado da tarde */

  --ink: #1d2a2b;           /* texto sobre claro */
  --ink-soft: #4e5f5e;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", sans-serif;

  --radius: 18px;
  --shadow-card: 0 18px 50px -18px rgba(12, 47, 51, 0.35);
  --shadow-deep: 0 30px 80px -25px rgba(12, 47, 51, 0.55);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 0.5em; }
h1 em, h2 em { font-style: italic; color: var(--brass); }

::selection { background: var(--brass); color: var(--cream); }

/* Grão sutil por cima de tudo */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-brass {
  background: linear-gradient(135deg, var(--brass-2), var(--brass));
  color: #fff; box-shadow: 0 10px 26px -10px rgba(185, 138, 68, 0.65);
}
.btn-brass:hover { box-shadow: 0 16px 34px -10px rgba(185, 138, 68, 0.8); }

.btn-deep { background: var(--deep); color: var(--foam); }
.btn-deep:hover { background: var(--deep-2); }

.btn-whats {
  background: transparent; color: var(--foam); border-color: rgba(207, 227, 224, 0.35);
}
.btn-whats:hover { border-color: var(--brass-2); color: var(--brass-2); }

.btn-ghost {
  background: transparent; color: var(--deep); border-color: rgba(12, 47, 51, 0.25);
}
.btn-ghost:hover { border-color: var(--deep); }

.btn-block { width: 100%; }

.link-btn {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--brass); text-decoration: underline; cursor: pointer;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 47, 51, 0.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(207, 227, 224, 0.12);
  transition: background 0.35s;
}
.site-header.scrolled { background: rgba(12, 47, 51, 0.92); }

.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--foam); text-decoration: none; flex-shrink: 0;
}
.logo-mark { width: 42px; height: 42px; }
.wordmark {
  font-family: var(--serif); font-size: 1.28rem; letter-spacing: 0.01em; line-height: 1;
}
.wordmark em { font-style: italic; font-weight: 600; color: var(--brass-2); }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  color: var(--foam); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--brass-2); transition: width 0.35s var(--ease-out);
}
.main-nav a:hover::after { width: 100%; }

.header-ctas { display: flex; gap: 10px; }
.header-ctas .btn { padding: 10px 18px; font-size: 0.85rem; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 9px; margin-left: auto;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--foam); margin: 6px 0;
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--foam); overflow: hidden;
  padding: 130px 28px 90px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    url("https://images.unsplash.com/photo-1519046904884-53103b34b206?w=2000&q=80") center 60% / cover no-repeat;
  transform: scale(1.06);
  animation: heroDrift 22s var(--ease-out) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }

.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(112deg, rgba(9, 36, 40, 0.94) 0%, rgba(12, 47, 51, 0.78) 42%, rgba(16, 64, 74, 0.35) 72%, rgba(216, 171, 99, 0.18) 100%),
    linear-gradient(to top, rgba(9, 36, 40, 0.75), transparent 45%);
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 64px; align-items: center;
}

.hero-kicker {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass-2); margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 400;
  letter-spacing: -0.015em; margin-bottom: 24px;
}
.hero h1 em { color: var(--brass-2); }
.hero-sub {
  max-width: 54ch; font-size: 1.06rem; color: rgba(207, 227, 224, 0.88); margin: 0 0 28px;
}
.hero-sub strong { color: #fff; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-badges span {
  font-size: 0.85rem; font-weight: 500; color: rgba(207, 227, 224, 0.85);
}

/* card de lead do hero */
.lead-card {
  background: var(--cream); color: var(--ink);
  border-radius: calc(var(--radius) + 6px); padding: 34px 32px;
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(185, 138, 68, 0.25);
  position: relative;
}
.lead-card::before {
  content: ""; position: absolute; top: 0; left: 32px; right: 32px; height: 3px;
  background: linear-gradient(90deg, var(--brass-2), var(--brass), transparent);
  border-radius: 0 0 3px 3px;
}
.lead-card-kicker {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 8px;
}
.lead-card h2 { font-size: 1.5rem; margin-bottom: 20px; }

/* formulários de lead */
.lead-form .field { margin-bottom: 14px; }
.lead-form label {
  display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px;
}
.lead-form input {
  width: 100%; padding: 13px 16px; font: inherit; font-size: 0.98rem;
  border: 1px solid rgba(12, 47, 51, 0.18); border-radius: 12px;
  background: #fff; color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.lead-form input:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(185, 138, 68, 0.18);
}
.lead-form input.invalid { border-color: #c0392b; }
.form-note {
  font-size: 0.78rem; color: var(--ink-soft); text-align: center; margin: 12px 0 0;
}

/* indicador de scroll */
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 24px; height: 40px; border: 1.5px solid rgba(207, 227, 224, 0.5); border-radius: 14px;
}
.hero-scroll span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 3px; background: var(--brass-2);
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(14px); opacity: 0; }
}

/* reveals do hero no load */
.reveal-1, .reveal-2, .reveal-3, .reveal-4, .reveal-5, .reveal-6 {
  opacity: 0; transform: translateY(28px);
  animation: rise 1s var(--ease-out) forwards;
}
.reveal-1 { animation-delay: 0.15s; }
.reveal-2 { animation-delay: 0.3s; }
.reveal-3 { animation-delay: 0.48s; }
.reveal-4 { animation-delay: 0.64s; }
.reveal-5 { animation-delay: 0.8s; }
.reveal-6 { animation-delay: 1.4s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ============ SCROLL REVEAL (IntersectionObserver) ============ */
.sr { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.sr.in { opacity: 1; transform: none; }

/* ============ STATS ============ */
.stats { background: var(--deep); color: var(--foam); padding: 58px 28px; }
.stats-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: -16px; top: 12%; bottom: 12%; width: 1px;
  background: rgba(207, 227, 224, 0.16);
}
.stat strong {
  display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400; color: var(--brass-2); line-height: 1;
}
.stat span { font-size: 0.86rem; color: rgba(207, 227, 224, 0.78); display: block; margin-top: 10px; }

/* ============ SEÇÕES ============ */
.section-head { max-width: 1280px; margin: 0 auto 34px; }
.section-kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 10px;
}
.section-kicker--light { color: var(--brass-2); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.section-sub { max-width: 58ch; color: inherit; opacity: 0.82; margin-top: 6px; }

/* ============ LISTINGS ============ */
.listings { padding: 96px 28px; }

.filters {
  max-width: 1280px; margin: 0 auto 14px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: end;
  background: var(--cream); border: 1px solid rgba(12, 47, 51, 0.1);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: 0 10px 30px -18px rgba(12, 47, 51, 0.25);
}
.filter { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; }
.filter label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.filter select {
  font: inherit; font-size: 0.95rem; padding: 11px 14px;
  border: 1px solid rgba(12, 47, 51, 0.18); border-radius: 10px;
  background: #fff; color: var(--ink); cursor: pointer;
}
.filter select:focus { outline: none; border-color: var(--brass); }
#f-limpar { flex: 0 0 auto; padding: 11px 20px; font-size: 0.85rem; }

.results-count {
  max-width: 1280px; margin: 0 auto 22px; font-size: 0.88rem; color: var(--ink-soft);
}

.grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}

/* card de imóvel */
.card {
  position: relative;
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid rgba(12, 47, 51, 0.07);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-deep); }

.card-media { position: relative; aspect-ratio: 4 / 2.9; overflow: hidden; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
}
.card:hover .card-media img { transform: scale(1.07); filter: saturate(1.12); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 47, 51, 0.55), transparent 45%);
}

.card-badges { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 8px; }
.badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(251, 247, 239, 0.92); color: var(--deep);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge--destaque { background: linear-gradient(135deg, var(--brass-2), var(--brass)); color: #fff; }
.badge--mar {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  background: rgba(12, 47, 51, 0.72); color: var(--foam);
  font-size: 0.72rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge--mar::before { content: "≈ "; color: var(--brass-2); }

.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-bairro {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 6px;
}
.card-title {
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; margin: 0 0 10px;
  color: var(--ink);
}
.card-preco {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--deep);
  margin: 0 0 14px; letter-spacing: -0.01em;
}
.card-preco small { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.06em; display: block; }

.card-specs {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 16px; padding: 12px 0 0;
  border-top: 1px dashed rgba(12, 47, 51, 0.15);
  font-size: 0.84rem; color: var(--ink-soft);
}
.card-specs span { display: inline-flex; align-items: center; gap: 6px; }
.card-specs svg { width: 15px; height: 15px; stroke: var(--brass); flex-shrink: 0; }

.card-desc {
  font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card .btn { margin-top: auto; }

.empty-state {
  max-width: 1280px; margin: 30px auto 0; text-align: center;
  font-size: 1rem; color: var(--ink-soft);
  background: var(--cream); border: 1px dashed rgba(12, 47, 51, 0.2);
  border-radius: var(--radius); padding: 40px 24px;
}

/* ============ LANÇAMENTOS ============ */
.launches {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(216, 171, 99, 0.14), transparent 60%),
    linear-gradient(170deg, var(--deep) 0%, var(--deep-2) 100%);
  color: var(--foam); padding: 96px 28px;
}
.launches .section-head h2 { color: #fff; }
.grid--launches .card { background: rgba(251, 247, 239, 0.045); border-color: rgba(207, 227, 224, 0.14); }
.grid--launches .card-title { color: #fff; }
.grid--launches .card-preco { color: var(--brass-2); }
.grid--launches .card-preco small,
.grid--launches .card-specs,
.grid--launches .card-desc { color: rgba(207, 227, 224, 0.72); }
.grid--launches .card-specs { border-top-color: rgba(207, 227, 224, 0.18); }
.grid--launches .card-bairro { color: var(--brass-2); }

/* ============ POR QUE PIÇARRAS ============ */
.why { padding: 110px 28px; }
.why-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 72px; align-items: center;
}
.why-media { margin: 0; position: relative; }
.why-media img {
  border-radius: var(--radius); box-shadow: var(--shadow-deep);
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.why-media::before {
  content: ""; position: absolute; inset: -22px 22px 22px -22px; z-index: -1;
  border: 1px solid var(--brass); border-radius: var(--radius); opacity: 0.5;
}
.why-media figcaption {
  position: absolute; bottom: 18px; left: 18px;
  background: rgba(12, 47, 51, 0.78); color: var(--foam);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 8px 14px; border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.why-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.why-lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 60ch; }
.why-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 30px 0 34px; }
.why-cols h3 {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--deep); margin-bottom: 12px;
}
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li {
  font-size: 0.82rem; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  background: var(--cream); border: 1px solid rgba(12, 47, 51, 0.14); color: var(--ink);
}
.chip-list--brass li { border-color: rgba(185, 138, 68, 0.45); color: var(--brass); font-weight: 600; }

/* ============ CTA FINAL ============ */
.final-cta {
  position: relative; padding: 110px 28px; color: var(--foam); overflow: hidden;
  background:
    linear-gradient(100deg, rgba(9, 36, 40, 0.95) 20%, rgba(12, 47, 51, 0.82) 60%, rgba(185, 138, 68, 0.35) 100%),
    url("https://images.unsplash.com/photo-1519046904884-53103b34b206?w=1800&q=70") center 30% / cover no-repeat fixed;
}
.final-cta-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: center;
}
.final-copy h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 3.1rem); }
.final-copy p { color: rgba(207, 227, 224, 0.88); max-width: 52ch; }
.final-points { list-style: none; margin: 26px 0 0; padding: 0; }
.final-points li {
  padding: 10px 0 10px 30px; position: relative; font-size: 0.95rem;
  border-bottom: 1px solid rgba(207, 227, 224, 0.14);
}
.final-points li::before {
  content: "◈"; position: absolute; left: 0; color: var(--brass-2);
}

.lead-form--big {
  background: var(--cream); color: var(--ink);
  border-radius: calc(var(--radius) + 6px); padding: 36px 34px;
  box-shadow: var(--shadow-deep); border: 1px solid rgba(185, 138, 68, 0.3);
}

/* ============ FOOTER ============ */
.site-footer { background: #081f22; color: rgba(207, 227, 224, 0.8); padding: 70px 28px 0; }
.footer-inner {
  max-width: 1280px; margin: 0 auto; display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 54px;
}
.brand--footer { color: var(--foam); margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brass-2); margin: 6px 0 16px;
}
.footer-col a, .footer-col span { display: block; color: inherit; text-decoration: none; font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--brass-2); }
.footer-link {
  display: block; background: none; border: none; padding: 0; margin: 0 0 10px;
  font: inherit; font-size: 0.92rem; color: inherit; text-align: left; cursor: pointer;
}
.footer-link:hover { color: var(--brass-2); }
.footer-bairros { display: flex; flex-wrap: wrap; gap: 7px; }
.footer-bairros span {
  font-size: 0.78rem; padding: 5px 12px; border: 1px solid rgba(207, 227, 224, 0.2);
  border-radius: 999px; margin: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(207, 227, 224, 0.12);
  max-width: 1280px; margin: 0 auto; padding: 22px 0 30px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 0.76rem; opacity: 0.7; max-width: 70ch; }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(8, 31, 34, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease forwards;
}
.modal-panel {
  position: relative; width: 100%; max-width: 460px;
  background: var(--cream); border-radius: calc(var(--radius) + 6px);
  padding: 38px 36px; box-shadow: var(--shadow-deep);
  border: 1px solid rgba(185, 138, 68, 0.3);
  animation: modalIn 0.5s var(--ease-out) forwards;
  max-height: 92svh; overflow-y: auto;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(34px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 1.7rem; line-height: 1; color: var(--ink-soft); cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
}
.modal-close:hover { background: rgba(12, 47, 51, 0.08); color: var(--ink); }
.modal-body h3 { font-size: 1.6rem; margin-bottom: 6px; }
.modal-imovel {
  font-size: 0.88rem; font-weight: 600; color: var(--deep);
  background: rgba(185, 138, 68, 0.12); border: 1px solid rgba(185, 138, 68, 0.35);
  border-radius: 10px; padding: 10px 14px; margin: 0 0 18px;
}
.modal-imovel::before { content: "◈ "; color: var(--brass); }
.modal-success { text-align: center; padding: 12px 0; }
.modal-success svg { margin: 0 auto 18px; }
.modal-success h3 { font-size: 1.7rem; }
.modal-success p { color: var(--ink-soft); margin-bottom: 24px; }

/* newsletter — variação mais leve, com faixa de latão no topo */
.modal-panel--news { max-width: 430px; overflow: hidden; }
.modal-panel--news::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brass-2), var(--brass), var(--teal));
}
.news-wave { width: 74px; height: 18px; margin-bottom: 12px; }
.modal--news h3 { font-size: 1.45rem; line-height: 1.2; }
.news-sub { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 20px; }

/* ==========================================================================
   PAGE HERO (subpáginas: /imoveis, /blog, artigos) + breadcrumb
   ========================================================================== */
.page-hero {
  position: relative; color: var(--foam); overflow: hidden;
  padding: 160px 28px 70px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: url("https://images.unsplash.com/photo-1519046904884-53103b34b206?w=1800&q=75") center 55% / cover no-repeat;
  transform: scale(1.05);
}
.page-hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(9,36,40,0.95) 0%, rgba(12,47,51,0.82) 48%, rgba(16,64,74,0.5) 78%, rgba(216,171,99,0.22) 100%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.015em; margin: 14px 0 16px; }
.page-hero h1 em { color: var(--brass-2); }
.page-hero-sub { max-width: 62ch; font-size: 1.05rem; color: rgba(207,227,224,0.88); margin: 0; }

.breadcrumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 0.82rem; color: rgba(207,227,224,0.7); margin-bottom: 6px;
}
.breadcrumb a { color: var(--brass-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--foam); }

.listings--page { padding-top: 40px; }

/* ==========================================================================
   ETAPA 2 — banner de saudação personalizada (/imoveis)
   ========================================================================== */
.catalog-greeting {
  max-width: 1280px; margin: 0 auto 26px;
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(120deg, var(--cream), #fff);
  border: 1px solid rgba(185, 138, 68, 0.35);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius); padding: 20px 24px;
  box-shadow: 0 10px 30px -20px rgba(12, 47, 51, 0.3);
}
.catalog-greeting svg { color: var(--brass); flex-shrink: 0; }
.catalog-greeting.is-personalized { background: linear-gradient(120deg, #fbf3e3, #fff); }
.catalog-greeting-title {
  font-family: var(--serif); font-size: 1.35rem; color: var(--deep); margin: 0 0 3px; line-height: 1.15;
}
.catalog-greeting-sub { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   MODAL PRÉ-PREENCHIDO (etapa 2) — "enviando como … editar"
   ========================================================================== */
.modal-prefill {
  font-size: 0.9rem; color: var(--ink); margin: 0 0 6px;
  background: rgba(12, 47, 51, 0.05); border: 1px solid rgba(12, 47, 51, 0.12);
  border-radius: 10px; padding: 11px 14px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.modal-prefill #modal-prefill-text { color: var(--deep); font-weight: 500; }
/* quando pré-preenchido, recolhe os campos; ao "editar", reexibe */
.is-prefilled .field--prefill { display: none; }
.is-prefilled.is-editing .field--prefill { display: block; margin-bottom: 14px; }
.is-prefilled .form-note { margin-top: 8px; }

/* ==========================================================================
   CARD com interesse já registrado (etapa 2)
   ========================================================================== */
.card.has-interesse { border-color: rgba(185, 138, 68, 0.55); }
.card.has-interesse::after {
  content: "✓ Interesse"; position: absolute; top: 14px; right: 14px; z-index: 3;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--brass-2), var(--brass)); color: #fff;
  padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(185, 138, 68, 0.6);
}
.btn.btn-registered {
  background: transparent; color: var(--brass);
  border: 1px solid rgba(185, 138, 68, 0.6); box-shadow: none;
}
.btn.btn-registered:hover { transform: translateY(-2px); }

/* ==========================================================================
   BLOG — índice e artigos
   ========================================================================== */
.blog-index { padding: 70px 28px 96px; }
.blog-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.post-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(12,47,51,0.07); box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-deep); }
.post-card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.post-card:hover .post-card-media img { transform: scale(1.06); }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 10px;
}
.post-card h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.22; margin: 0 0 10px; }
.post-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 16px; }
.post-more { margin-top: auto; font-size: 0.86rem; font-weight: 600; color: var(--deep); }
.post-more::after { content: " →"; color: var(--brass); }

/* corpo do artigo */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 64px 28px 40px; }
.article-body { font-size: 1.08rem; line-height: 1.75; color: #2b3a3a; }
.article-body h2 {
  font-family: var(--serif); font-size: 1.7rem; margin: 44px 0 14px; color: var(--deep);
}
.article-body h3 { font-family: var(--serif); font-size: 1.32rem; margin: 30px 0 10px; color: var(--deep); }
.article-body p { margin: 0 0 18px; }
.article-body ul { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { color: var(--deep); }
.article-body blockquote {
  margin: 24px 0; padding: 16px 22px; border-left: 3px solid var(--brass);
  background: var(--cream); border-radius: 0 12px 12px 0;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--deep);
}
.article-lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 8px; }
.article-meta { font-size: 0.85rem; color: var(--ink-soft); margin: 10px 0 0; }

/* CTA embutido no fim do artigo */
.article-cta {
  max-width: 760px; margin: 20px auto 0; padding: 0 28px;
}
.article-cta-inner {
  background: linear-gradient(150deg, var(--deep), var(--deep-2));
  color: var(--foam); border-radius: calc(var(--radius) + 6px);
  padding: 40px 38px; text-align: center; box-shadow: var(--shadow-deep);
}
.article-cta-inner h2 { color: #fff; font-size: 1.7rem; margin-bottom: 10px; }
.article-cta-inner p { color: rgba(207,227,224,0.85); max-width: 46ch; margin: 0 auto 22px; }

/* links relacionados */
.related {
  max-width: 760px; margin: 0 auto; padding: 48px 28px 96px;
}
.related h2 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 18px; color: var(--deep); }
.related-list { display: grid; gap: 12px; }
.related-list a {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 16px 20px; border: 1px solid rgba(12,47,51,0.12); border-radius: 14px;
  background: var(--cream); color: var(--ink); font-weight: 500;
  transition: border-color 0.25s, transform 0.35s var(--ease-out);
}
.related-list a:hover { border-color: var(--brass); transform: translateX(4px); }
.related-list a::before { content: "◈"; color: var(--brass); }

/* ============ RESPONSIVO ============ */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 120px; }
  .lead-card { max-width: 520px; }
  .header-ctas .btn-whats { display: none; }
}

@media (max-width: 860px) {
  .main-nav, .header-ctas { display: none; }
  .nav-toggle { display: block; }

  .site-header.nav-open { background: rgba(12, 47, 51, 0.97); }
  .site-header.nav-open .header-inner { flex-wrap: wrap; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; gap: 4px; width: 100%; order: 3;
    padding: 12px 0 6px; margin: 0;
  }
  .site-header.nav-open .main-nav a { padding: 10px 0; font-size: 1.05rem; }
  .site-header.nav-open .header-ctas {
    display: flex; flex-direction: column; width: 100%; order: 4; padding-bottom: 16px;
  }
  .site-header.nav-open .header-ctas .btn-whats { display: inline-flex; }
  .site-header.nav-open .nav-toggle span:first-child { transform: translateY(8px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:last-child { transform: rotate(-45deg); }

  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .stat + .stat::before { display: none; }

  .why-inner, .final-cta-inner { grid-template-columns: 1fr; gap: 48px; }
  .why-media img { aspect-ratio: 16 / 11; }
  .final-cta { background-attachment: scroll; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 130px; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .listings, .launches, .why, .final-cta { padding-left: 20px; padding-right: 20px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .lead-card { padding: 28px 22px; }
  .lead-form--big { padding: 28px 22px; }
  .modal-panel { padding: 30px 22px; }
  .filters { padding: 16px; }
}

/* respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .sr { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   TOAST — micro-conversões do perfil progressivo (interesse extra sem form)
   ========================================================================== */
.ip-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 22px);
  z-index: 1200;
  max-width: min(92vw, 460px);
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--deep);
  color: var(--foam);
  border: 1px solid rgba(216, 171, 99, 0.45);
  box-shadow: 0 18px 46px rgba(12, 47, 51, 0.34);
  font-size: 0.96rem;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.1px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ip-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .ip-toast { transition: opacity 0.2s ease; transform: translate(-50%, 0); }
}

/* ==========================================================================
   PORTAL — hub de categorias + páginas de recorte local (SEO)
   ========================================================================== */
/* grade de cartões de categoria no hub /imoveis/ */
.cat-hub { max-width: 1280px; margin: 0 auto; padding: 64px 28px 40px; }
.cat-hub-head { text-align: center; max-width: 62ch; margin: 0 auto 40px; }
.cat-hub-head p.section-kicker { justify-content: center; }
.cat-hub-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--deep); }
.cat-hub-head > p:last-child { color: var(--ink-soft); font-size: 1.05rem; margin: 8px auto 0; }
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.cat-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: var(--cream); border: 1px solid rgba(12, 47, 51, 0.09);
  border-radius: var(--radius); padding: 26px 24px; color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), border-color 0.25s, box-shadow 0.45s var(--ease-out);
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--brass); box-shadow: var(--shadow-deep); }
.cat-card .cat-ico { color: var(--brass); font-size: 1.4rem; line-height: 1; }
.cat-card h3 { font-family: var(--serif); font-size: 1.28rem; color: var(--deep); margin: 0; }
.cat-card p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); line-height: 1.55; }
.cat-card .cat-more { margin-top: auto; padding-top: 12px; color: var(--brass); font-weight: 600; font-size: 0.92rem; }

/* FAQ (accordion nativo <details>, zero JS) */
.faq { max-width: 760px; margin: 0 auto; padding: 8px 28px 40px; }
.faq h2 { font-family: var(--serif); font-size: 1.5rem; color: var(--deep); margin-bottom: 18px; }
.faq details {
  border: 1px solid rgba(12, 47, 51, 0.12); border-radius: 14px;
  background: var(--cream); margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color: var(--brass); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-family: var(--serif); font-size: 1.1rem; color: var(--deep);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--brass); font-size: 1.5rem; font-family: var(--sans);
  line-height: 1; flex-shrink: 0; transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; color: #2b3a3a; line-height: 1.7; }
.faq .faq-a p { margin: 0 0 12px; }
.faq .faq-a p:last-child { margin-bottom: 0; }
.faq .faq-a a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }

/* CTA duplo (dois botões do funil na mesma caixa) */
.article-cta-inner .cta-duo {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 4px;
}
.article-cta-inner .cta-duo .btn { margin: 0; }

@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-hub, .faq { padding-left: 20px; padding-right: 20px; }
  .article-cta-inner .cta-duo .btn { width: 100%; }
}
