/* =========================================================
   JD CORRETOR DE IMÓVEIS — estilos
   Paleta: preto / cinza / dourado
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --black: #0a0a0b;
  --charcoal: #141416;
  --steel: #232326;
  --steel-2: #313136;
  --grey: #9a99a1;
  --grey-light: #c9c8cf;
  --offwhite: #f1efe9;
  --white: #fbfaf8;

  --gold: #c6a15b;
  --gold-bright: #e9cd8d;
  --gold-dim: #8a6f3c;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--offwhite);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 76px 0;
}

.section--alt {
  background: var(--offwhite);
  color: var(--black);
}

.eyebrow {
  display: none; /* propositalmente sem "rótulo em caixa alta" acima de todo título */
}

.section-head {
  max-width: 620px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--grey);
  margin: 0;
  font-size: 15.5px;
}

.section--alt .section-head p {
  color: #5a5952;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  box-shadow: 0 6px 22px -6px rgba(198, 161, 91, 0.55);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -6px rgba(233, 205, 141, 0.7);
}

.btn-outline {
  background: transparent;
  color: var(--offwhite);
  border: 1.5px solid var(--steel-2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.12);
}

.section--alt .btn-outline {
  color: var(--black);
  border-color: #d8d5cc;
}

.btn-ghost {
  background: var(--steel);
  color: var(--offwhite);
}

.btn-ghost:hover {
  background: var(--steel-2);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

/* ---------- Loading screen ---------- */

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  position: relative;
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-mark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loader-mark circle {
  fill: none;
  stroke: var(--steel-2);
  stroke-width: 2;
}

.loader-mark .arc {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: loader-sweep 1.4s var(--ease) infinite;
  transform-origin: center;
}

.loader-mark span {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

@keyframes loader-sweep {
  0% {
    stroke-dashoffset: 190;
    transform: rotate(0deg);
  }
  50% {
    stroke-dashoffset: 40;
    transform: rotate(190deg);
  }
  100% {
    stroke-dashoffset: 190;
    transform: rotate(360deg);
  }
}

#loading-screen p {
  color: var(--grey);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
}

.logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 15px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-size: 14.5px;
  color: var(--grey-light);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn span.short {
  display: none;
}

#btn-mobile-nav {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  padding: 6px;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px 26px;
    gap: 16px;
    border-bottom: 1px solid var(--steel-2);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  #btn-mobile-nav {
    display: block;
  }
  .nav-cta .btn span.long {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 92px 0 84px;
  overflow: hidden;
  background: radial-gradient(
      circle at 82% 18%,
      rgba(198, 161, 91, 0.16),
      transparent 55%
    ),
    var(--black);
}

.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.28), transparent 70%);
  top: -180px;
  right: -140px;
  filter: blur(10px);
  animation: drift 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-24px, 30px) scale(1.08);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
  opacity: 0;
  animation: rise 0.7s var(--ease) forwards;
  animation-delay: 0.1s;
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.2);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.06;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: rise 0.8s var(--ease) forwards;
  animation-delay: 0.22s;
}

.hero h1 em {
  font-style: normal;
  position: relative;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--grey-light);
  font-size: 17px;
  max-width: 460px;
  margin: 0 0 30px;
  opacity: 0;
  animation: rise 0.8s var(--ease) forwards;
  animation-delay: 0.34s;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.8s var(--ease) forwards;
  animation-delay: 0.46s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card {
  background: var(--charcoal);
  border: 1px solid var(--steel-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  opacity: 0;
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: 0.5s;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(198, 161, 91, 0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--grey-light);
}

.hero-card li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 1px;
}

.hero-card li strong {
  color: var(--white);
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

/* ---------- Cidades ---------- */

.cidades-wrap {
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}

.cidades-wrap::-webkit-scrollbar {
  height: 6px;
}

.cidades-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.cidades-wrap::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: var(--radius-pill);
}

.cidades-row {
  display: flex;
  gap: 10px;
  width: max-content;
}

.pill-city {
  border: 1.5px solid var(--steel-2);
  background: var(--charcoal);
  color: var(--grey-light);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}

.pill-city:hover {
  transform: translateY(-1px);
}

.pill-city.active {
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.14);
  background: linear-gradient(180deg, rgba(198, 161, 91, 0.14), transparent);
}

/* ---------- Catálogo ---------- */

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

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

.pill-tipo {
  border: 1.5px solid var(--steel-2);
  background: transparent;
  color: var(--grey);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}

.pill-tipo.active,
.pill-tipo:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.result-count {
  color: var(--grey);
  font-size: 13.5px;
}

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

@media (min-width: 620px) {
  .grid-imoveis {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

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

.card-imovel {
  background: var(--charcoal);
  border: 1px solid var(--steel-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  opacity: 0;
  transform: translateY(14px);
}

.card-imovel.in {
  opacity: 1;
  transform: translateY(0);
}

.card-imovel:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 14px 34px -18px rgba(198, 161, 91, 0.5);
  transform: translateY(-4px);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--steel), var(--charcoal));
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media svg {
  width: 34%;
  height: 34%;
  color: var(--gold-dim);
  opacity: 0.85;
}

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

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 10, 11, 0.7);
  border: 1px solid var(--steel-2);
  color: var(--grey-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-cidade {
  font-size: 12px;
  color: var(--grey);
}

.card-titulo {
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--white);
  line-height: 1.3;
  margin: 0;
  min-height: 40px;
}

.card-specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--grey-light);
  font-size: 12.5px;
}

.card-specs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-specs svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.card-preco-row {
  margin-top: auto;
  padding-top: 6px;
}

.preco-antigo {
  color: var(--grey);
  font-size: 12.5px;
  text-decoration: line-through;
  display: block;
}

.preco-atual {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 19px;
  font-weight: 500;
}

.preco-atual small {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--grey);
  font-weight: 600;
}

.card-cta {
  margin-top: 10px;
}

.catalog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--grey);
  border: 1px dashed var(--steel-2);
  border-radius: var(--radius-lg);
}

.catalog-empty .btn {
  margin-top: 16px;
}

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* ---------- Depoimentos ---------- */

.depo-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 4px 20px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}

.depo-strip::-webkit-scrollbar {
  height: 6px;
}

.depo-strip::-webkit-scrollbar-track {
  background: transparent;
}

.depo-strip::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: var(--radius-pill);
}

.depo-card {
  flex: 0 0 auto;
  width: min(340px, 80vw);
  background: var(--charcoal);
  border: 1px solid var(--steel-2);
  border-radius: var(--radius-md);
  padding: 22px;
}

.depo-card p {
  color: var(--grey-light);
  font-size: 14.5px;
  margin: 0 0 14px;
}

.depo-card strong {
  color: var(--gold-bright);
  font-size: 14px;
}

/* ---------- Contato ---------- */

.contato-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.contato-card {
  background: var(--charcoal);
  border: 1px solid var(--steel-2);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contato-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

.contato-card svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
  margin-bottom: 14px;
}

.contato-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  margin: 0 0 6px;
}

.contato-card p {
  color: var(--grey);
  font-size: 14px;
  margin: 0 0 14px;
}

/* ---------- Footer ---------- */

footer {
  background: var(--black);
  border-top: 1px solid var(--steel);
  padding: 30px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--grey);
  font-size: 13px;
}

.footer-row a {
  color: var(--grey-light);
}

.footer-row a:hover {
  color: var(--gold-bright);
}

/* ---------- WhatsApp flutuante ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 400;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(198, 161, 91, 0.7);
  animation: float-pulse 2.6s ease-in-out infinite;
}

.wa-float svg {
  width: 27px;
  height: 27px;
  color: #1a1408;
}

@keyframes float-pulse {
  0%,
  100% {
    box-shadow: 0 10px 26px -8px rgba(198, 161, 91, 0.7);
  }
  50% {
    box-shadow: 0 10px 30px -4px rgba(233, 205, 141, 0.9);
  }
}

/* ---------- Modal "Agendar visita" ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 7, 0.72);
  backdrop-filter: blur(3px);
  z-index: 700;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  z-index: 701;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(420px, 92vw);
  background: var(--charcoal);
  border: 1px solid var(--steel-2);
  border-radius: var(--radius-lg);
  padding: 26px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0.28s var(--ease);
}

.modal.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--steel);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 4px;
}

.modal .modal-imovel {
  color: var(--gold-bright);
  font-size: 13.5px;
  margin: 0 0 18px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--grey);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--steel);
  border: 1.5px solid var(--steel-2);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field textarea {
  resize: vertical;
  min-height: 70px;
}

.form-note {
  font-size: 12px;
  color: var(--grey);
  margin: 4px 0 18px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  background: var(--charcoal);
  border: 1px solid var(--gold-dim);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 18px;
  height: 18px;
  color: var(--gold-bright);
}

/* ---------- Utilitários ---------- */

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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