/* ===========================================================
   Reginaldo Costa Imóveis — Estilo base
   Paleta: preto/grafite + off-white + dourado discreto
   Display: Archivo Black (caixa alta, estilo da arte)
   =========================================================== */

:root {
  --black: #0d0d0d;
  --graphite: #1a1a1a;
  --graphite-2: #242424;
  --offwhite: #f4f1ea;
  --offwhite-2: #e9e4d8;
  --gold: #c9a24b;
  --gold-soft: #d9bd78;
  --text-light: #f4f1ea;
  --text-muted: #b7b2a8;
  --text-dark: #161616;

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

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: "Archivo", system-ui, sans-serif;
  background: var(--black);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.display {
  font-family: "Archivo Black", "Archivo", sans-serif;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-weight: 900;
}

.gold { color: var(--gold); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95rem 1.8rem;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.btn--gold { background: var(--gold); color: #161103; }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(201,162,75,0.7); }
.btn--ghost { background: transparent; color: var(--text-light); border-color: rgba(244,241,234,0.35); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.25rem clamp(1.2rem, 4vw, 3rem);
  transition: padding 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(13,13,13,0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(244,241,234,0.08);
}
.site-header.is-scrolled .site-header__inner { padding-top: 0.85rem; padding-bottom: 0.85rem; }
.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; transition: height 0.4s var(--ease); }
.site-header.is-scrolled .brand img { height: 32px; }

.site-nav { display: flex; gap: 2.2rem; }
.site-nav a {
  position: relative; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.3s; padding: 4px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.site-nav a:hover { color: var(--offwhite); }
.site-nav a:hover::after { width: 100%; }

.site-header__actions { display: flex; align-items: center; gap: 1.4rem; }
.header-phone {
  font-size: 0.82rem; letter-spacing: 0.06em; color: var(--offwhite);
  font-weight: 600; transition: color 0.3s; white-space: nowrap;
}
.header-phone:hover { color: var(--gold); }
.header-cta { padding: 0.65rem 1.3rem; font-size: 0.72rem; }

/* botão hambúrguer (mobile) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 30px; height: 22px;
  background: none; border: none; cursor: pointer; padding: 0; justify-content: center;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--offwhite); transition: transform 0.35s var(--ease), opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* menu mobile */
.mobile-nav {
  display: none; flex-direction: column; gap: 0.4rem;
  padding: 1rem clamp(1.2rem, 4vw, 3rem) 1.8rem;
  background: rgba(13,13,13,0.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244,241,234,0.08);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding: 0.7rem 0; border-bottom: 1px solid rgba(244,241,234,0.06); }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .btn { margin-top: 1rem; justify-content: center; border-bottom: none; }

/* ---------- HERO (camadas com parallax) ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: center; overflow: hidden; }

/* todas as camadas ocupam o palco; o parallax move via transform (GSAP/JS) */
.hero__layer { position: absolute; inset: 0; will-change: transform; }

.hero__layer--video { z-index: 0; overflow: hidden; }
.hero__video { width: 100%; height: 120%; object-fit: cover; transform: scale(1.14); }

/* névoa/atmosfera à deriva — simula clouds/smoke do FIND em tom escuro */
.hero__fog { z-index: 1; pointer-events: none; opacity: 0.55; mix-blend-mode: screen; }
.hero__fog--back {
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(120,130,150,0.18), transparent 60%),
    radial-gradient(50% 40% at 85% 70%, rgba(90,100,120,0.16), transparent 60%);
  animation: fogDrift 38s ease-in-out infinite alternate;
}
.hero__fog--front {
  background:
    radial-gradient(45% 35% at 70% 25%, rgba(160,170,190,0.14), transparent 60%),
    radial-gradient(55% 45% at 30% 80%, rgba(70,80,95,0.18), transparent 60%);
  animation: fogDrift 26s ease-in-out infinite alternate-reverse;
}
@keyframes fogDrift {
  from { transform: translate3d(-3%, 0, 0) scale(1.05); }
  to   { transform: translate3d(4%, -2%, 0) scale(1.15); }
}

/* brilho dourado ambiente */
.hero__glow { z-index: 1; pointer-events: none;
  background: radial-gradient(40% 35% at 50% 88%, rgba(201,162,75,0.22), transparent 70%);
}

.hero__overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.15) 35%, rgba(13,13,13,0.78) 100%);
}
.hero__content {
  z-index: 3;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--maxw); width: 100%;
  margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 3rem);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1.6rem; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft);
}
.hero__eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--gold); }
.hero__title { font-size: clamp(2.2rem, 6.2vw, 5.4rem); max-width: 16ch; }
.hero__subtitle { margin-top: 1.6rem; max-width: 46ch; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--text-muted); }
.hero__ctas { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  z-index: 2; text-align: center; color: var(--text-muted);
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__scroll-line { width: 1px; height: 48px; margin: 0.8rem auto 0; background: linear-gradient(var(--gold), transparent); }

/* ---------- Seções genéricas ---------- */
.section { position: relative; padding: clamp(4rem, 10vh, 9rem) clamp(1.2rem, 4vw, 3rem); }
.section__head { max-width: var(--maxw); margin: 0 auto 3rem; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 3.4rem); max-width: 20ch; }
.section__head p { margin-top: 1.2rem; max-width: 50ch; color: var(--text-muted); }

/* cenas full-bleed com vídeo */
.section--entrada, .section--casa, .section--tour, .section--cta { min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.scene-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,13,13,0.45), rgba(13,13,13,0.65)); }
.scene-overlay--strong { background: linear-gradient(180deg, rgba(13,13,13,0.55), rgba(13,13,13,0.85)); }
.scene-copy { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.scene-copy--center { text-align: center; }
.scene-copy--center h2, .scene-copy--center p { margin-left: auto; margin-right: auto; }
.scene-copy h2 { font-size: clamp(1.8rem, 4.4vw, 3.6rem); max-width: 22ch; }
.scene-copy p { margin-top: 1.3rem; max-width: 48ch; color: var(--text-muted); }

/* placeholders */
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: "Archivo", monospace; font-size: 0.8rem; letter-spacing: 0.1em;
  color: var(--text-muted); border: 1px dashed rgba(201,162,75,0.4);
  background: repeating-linear-gradient(45deg, #141414, #141414 14px, #181818 14px, #181818 28px);
  min-height: 220px; border-radius: 4px;
}
.placeholder--dark { min-height: 56vh; margin-bottom: 2.5rem; }
.placeholder--portrait { aspect-ratio: 4/5; min-height: 420px; }

.section--construcao, .section--entrada, .section--familia { background: var(--black); }
.scene-copy, .section__head { }

/* Reginaldo */
.reginaldo__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 0.8fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.reginaldo__photo { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 70px -25px rgba(0,0,0,0.7); }
.reginaldo__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reginaldo__photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(201,162,75,0.25); border-radius: 6px; pointer-events: none; }
.reginaldo__text h2 { font-size: clamp(1.7rem, 3.4vw, 3rem); }
.reginaldo__text p { margin-top: 1.2rem; color: var(--text-muted); max-width: 46ch; }
.keywords { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.8rem 0 2rem; }
.keywords li {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4rem 0.9rem; border: 1px solid rgba(201,162,75,0.35); border-radius: 50px; color: var(--gold-soft);
}

/* Portfólio */
.section--portfolio { background: var(--graphite); }
.cards { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card { background: var(--black); border-radius: 6px; overflow: hidden; border: 1px solid rgba(244,241,234,0.06); transition: transform 0.5s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card__img { aspect-ratio: 4/3; }
.card h3 { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.15rem; padding: 1.2rem 1.3rem 0; }
.card p { padding: 0.5rem 1.3rem 1.4rem; color: var(--text-muted); font-size: 0.92rem; }

/* Diferenciais */
.section--diferenciais { background: var(--offwhite); color: var(--text-dark); }
.section--diferenciais .section__head p,
.section--diferenciais .diff h3 { color: var(--text-dark); }
.diffs { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.diff { border-top: 1px solid rgba(22,22,22,0.18); padding-top: 1.2rem; }
.diff span { font-family: "Archivo Black", sans-serif; color: var(--gold); font-size: 1.4rem; }
.diff h3 { margin-top: 0.6rem; font-family: "Archivo", sans-serif; font-weight: 600; font-size: 1.25rem; }

/* Depoimentos */
.section--depoimentos { background: var(--graphite-2); }
.quotes { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.quotes blockquote { font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.5; color: var(--offwhite); border-left: 2px solid var(--gold); padding-left: 1.6rem; }

/* Rodapé */
.site-footer { background: var(--black); padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem) 2rem; border-top: 1px solid rgba(244,241,234,0.08); }
.footer__top { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer__logo { height: 40px; width: auto; }
.footer__links { display: flex; gap: 1.8rem; }
.footer__links a { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.footer__links a:hover { color: var(--gold); }
.footer__bottom { max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 2rem; border-top: 1px solid rgba(244,241,234,0.08); display: flex; gap: 2rem; flex-wrap: wrap; color: var(--text-muted); font-size: 0.88rem; }
.footer__bottom a:hover { color: var(--gold); }
.footer__copy { max-width: var(--maxw); margin: 1.5rem auto 0; color: rgba(183,178,168,0.5); font-size: 0.78rem; }
.footer__credit { max-width: var(--maxw); margin: 0.4rem auto 0; color: rgba(183,178,168,0.45); font-size: 0.74rem; letter-spacing: 0.04em; }
.footer__credit a { color: rgba(183,178,168,0.7); transition: color 0.3s; }
.footer__credit a:hover { color: var(--gold); }

/* ---------- Animação inicial (estado pré-GSAP) ---------- */
.anim-in { opacity: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .reginaldo__grid, .cards, .diffs, .quotes { grid-template-columns: 1fr; }
  .site-header__actions { display: none; }
  .nav-toggle { display: flex; }
  /* evita overflow horizontal: links do rodapé quebram linha */
  .footer__links { flex-wrap: wrap; gap: 0.9rem 1.4rem; }
}
@media (max-width: 560px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

/* ===========================================================
   CENAS AVANÇADAS (timelines GSAP)
   =========================================================== */

/* ---------- 2. Construção do prédio ---------- */
.section--construcao { padding: 0; }
.build-stage { position: relative; height: 100vh; overflow: hidden; background: #0a0a0a; }
.build-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 50% 78%, rgba(201,162,75,0.16), transparent 62%),
    linear-gradient(180deg, #10151f 0%, #1b2433 42%, #2b3242 64%, #14171d 100%);
}

/* palco do prédio real recortado (proporção 1500x1348 ≈ 1.11:1) */
.build-scene {
  position: absolute; left: 50%; bottom: 10vh; transform: translateX(-50%);
  width: min(620px, 82vw); aspect-ratio: 1500 / 1348;
}

/* moldura retangular não combina com o recorte transparente — desativada */
.build-frame { display: none; }

/* linha de base dourada (chão de onde o prédio "sobe") */
.build-scene::after {
  content: ""; position: absolute; left: -6%; right: -6%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  box-shadow: 0 0 16px rgba(201,162,75,0.5);
}

/* prédio real — revelado de baixo p/ cima via clip-path (simula "subir/construir") */
.build-photo { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.build-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; display: block;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,0.55)); }

/* brilho dourado de conclusão */
.build-glow { position: absolute; inset: -10% -10% -16% -10%; pointer-events: none; opacity: 0;
  background: radial-gradient(48% 55% at 50% 62%, rgba(201,162,75,0.30), transparent 72%); }

.build-progress { position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%); width: min(260px, 60vw); height: 2px; background: rgba(255,255,255,0.18); }
.build-progress__bar { display: block; height: 100%; width: 0%; background: var(--gold); box-shadow: 0 0 10px rgba(201,162,75,0.6); }

.build-copy { position: absolute; left: 0; right: 0; top: 12vh; text-align: center; padding: 0 1.5rem; z-index: 4; pointer-events: none; }
.build-text {
  position: absolute; left: 0; right: 0; margin: 0 auto; max-width: 20ch;
  font-family: "Archivo Black", sans-serif; text-transform: uppercase; line-height: 1;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem); color: var(--offwhite);
  text-shadow: 0 4px 24px rgba(0,0,0,0.7);
  opacity: 0; filter: blur(10px);
}

/* ---------- 4. Portas da casa ---------- */
.door {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 3;
  background: linear-gradient(180deg, #15171b, #0b0c0e);
  border-right: 1px solid rgba(201,162,75,0.25);
}
.door--left { left: 0; }
.door--right { right: 0; border-right: none; border-left: 1px solid rgba(201,162,75,0.25); }
.door__handle { position: absolute; top: 50%; width: 8px; height: 60px; background: var(--gold); border-radius: 4px; transform: translateY(-50%); }
.door--left .door__handle { right: 14px; }
.door--right .door__handle { left: 14px; }

/* ---------- 6. Família ---------- */
.section--familia { min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.familia-bg { position: absolute; inset: 0; z-index: 0; transform: scale(1.1); filter: blur(20px); opacity: 0; }
.familia-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.section--familia .scene-overlay { z-index: 1;
  background: linear-gradient(90deg, rgba(13,13,13,0.85) 0%, rgba(13,13,13,0.45) 40%, rgba(13,13,13,0.2) 100%); }
.section--familia .scene-copy { z-index: 3; }

/* ---------- 8. Portfólio horizontal ---------- */
.section--portfolio { padding: 0; background: var(--graphite); }
.hscroll { height: 100vh; overflow: hidden; }
.hscroll__track { display: flex; gap: 2rem; height: 100%; align-items: center; padding: 0 8vw; width: max-content; }
.hscroll__intro { flex: 0 0 auto; width: min(540px, 82vw); padding-right: 2.5rem; }
.hscroll__intro h2 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); overflow-wrap: break-word; }
.hscroll__intro p { margin-top: 1.2rem; color: var(--text-muted); max-width: 40ch; }
.hscroll__hint { display: inline-block; margin-top: 1.6rem; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }
.hcard { flex: 0 0 auto; width: min(360px, 78vw); height: 64vh; background: var(--black); border: 1px solid rgba(244,241,234,0.06); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.5s var(--ease); }
.hcard:hover { transform: translateY(-8px); }
.hcard__img { flex: 1; overflow: hidden; }
.hcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.hcard:hover .hcard__img img { transform: scale(1.06); }
.hcard__body { padding: 1.3rem 1.4rem 1.6rem; }
.hcard__body h3 { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.2rem; }
.hcard__body p { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.92rem; }

@media (max-width: 768px) {
  /* mobile: simplifica o horizontal para rolagem por arrasto, sem pin longo */
  .hscroll { height: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .hscroll__track { padding: 3rem 5vw; }
  .hcard { height: 60vh; scroll-snap-align: center; }
  .build-scene { width: 60vw; }
}

/* Acessibilidade: respeitar preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .hero__video, .scene-video { transform: none !important; }
  .build-layer, .build-tower, .build-text { opacity: 1 !important; filter: none !important; transform: none !important; }
  .build-text:not(:first-child) { display: none; }
  .door { display: none; }
  .familia-bg { opacity: 1 !important; filter: none !important; transform: none !important; }
  * { scroll-behavior: auto; }
}

/* ===========================================================
   PÁGINA DE CADASTRO DE IMÓVEIS
   =========================================================== */
.page-form { background: var(--black); }
.form-page { padding-top: 90px; }
.form-hero {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 7vh, 5rem) clamp(1.2rem, 4vw, 3rem) 1.5rem;
}
.form-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-top: 0.4rem; }
.form-hero p { margin-top: 1.2rem; max-width: 56ch; color: var(--text-muted); }

.form-wrap { max-width: 880px; margin: 0 auto; padding: 1rem clamp(1.2rem, 4vw, 3rem) clamp(4rem, 8vh, 7rem); }
.imovel-form {
  background: var(--graphite); border: 1px solid rgba(244,241,234,0.07);
  border-radius: 10px; padding: clamp(1.4rem, 3.5vw, 2.6rem);
}
.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem 1.4rem; }
.field { display: flex; flex-direction: column; grid-column: span 3; }
.field--full { grid-column: 1 / -1; }
.field--third { grid-column: span 2; }

.field label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.5rem; }
.imovel-form input,
.imovel-form select,
.imovel-form textarea {
  width: 100%; background: var(--black); color: var(--offwhite);
  border: 1px solid rgba(244,241,234,0.14); border-radius: 4px;
  padding: 0.8rem 0.9rem; font-family: "Archivo", sans-serif; font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.imovel-form input::placeholder,
.imovel-form textarea::placeholder { color: rgba(183,178,168,0.5); }
.imovel-form input:focus,
.imovel-form select:focus,
.imovel-form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,75,0.18);
}
.imovel-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-soft) 50%), linear-gradient(135deg, var(--gold-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 1.15rem, calc(100% - 12px) 1.15rem; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.imovel-form textarea { resize: vertical; min-height: 96px; }

.field.divider { margin-top: 0.6rem; }
.field.divider span {
  display: block; font-family: "Archivo", sans-serif; font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--offwhite);
  padding-top: 1rem; border-top: 1px solid rgba(244,241,234,0.1);
}

.form-note { margin: 1.4rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.form-submit { margin-top: 1.6rem; width: 100%; justify-content: center; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field, .field--third { grid-column: span 1; }
  .field--full { grid-column: 1 / -1; }
}

/* ---------- Uploader (seleção de arquivos/fotos/vídeos) ---------- */
.uploader { grid-column: 1 / -1; }
.uploader__drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px dashed rgba(201,162,75,0.45); border-radius: 6px; padding: 1.6rem 1.2rem;
  background: rgba(255,255,255,0.02); cursor: pointer; text-align: center;
  transition: border-color 0.3s, background 0.3s;
}
.uploader__drop:hover, .uploader__drop.is-drag { border-color: var(--gold); background: rgba(201,162,75,0.07); }
.uploader__drop strong { color: var(--offwhite); font-weight: 600; font-size: 0.95rem; }
.uploader__drop span { font-size: 0.82rem; color: var(--text-muted); }
.uploader__drop .uploader__icon { font-size: 1.4rem; color: var(--gold-soft); }
.uploader input[type="file"] { display: none; }
.uploader__count { display: block; margin-top: 0.6rem; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--gold-soft); }
.file-list { list-style: none; margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.5rem; }
.file-list li { display: flex; align-items: center; gap: 0.8rem; background: var(--black); border: 1px solid rgba(244,241,234,0.12); border-radius: 4px; padding: 0.55rem 0.8rem; }
.file-list__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.85rem; color: var(--offwhite); }
.file-list__meta { font-size: 0.76rem; color: var(--text-muted); white-space: nowrap; }
.file-list__rm { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 0 0.2rem; transition: color 0.3s; }
.file-list__rm:hover { color: var(--gold); }

/* ---------- Grupos de checkbox (características desejadas) ---------- */
.checks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem 1rem; }
.check {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  font-size: 0.88rem; color: var(--text-muted); padding: 0.55rem 0.7rem;
  border: 1px solid rgba(244,241,234,0.12); border-radius: 4px; transition: border-color 0.3s, color 0.3s;
}
.check:hover { border-color: rgba(201,162,75,0.5); color: var(--offwhite); }
.check input { width: 16px; height: 16px; accent-color: var(--gold); flex: 0 0 auto; }
.check:has(input:checked) { border-color: var(--gold); color: var(--offwhite); }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }

/* ---------- Guia: como fotografar o imóvel (details/summary) ---------- */
.guide { margin-top: 1.6rem; background: var(--graphite); border: 1px solid rgba(244,241,234,0.08); border-radius: 10px; overflow: hidden; }
.guide > summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--offwhite);
}
.guide > summary::-webkit-details-marker { display: none; }
.guide > summary .guide__hint { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.guide > summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.guide[open] > summary::after { content: "\2212"; }
.guide__body { padding: 0 1.4rem 1.5rem; }
.guide__body > p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.2rem; }
.guide-steps { list-style: none; counter-reset: g; display: grid; gap: 0.9rem; }
.guide-steps li { counter-increment: g; position: relative; padding-left: 2.6rem; color: var(--text-muted); font-size: 0.92rem; }
.guide-steps li::before {
  content: counter(g); position: absolute; left: 0; top: -2px; width: 1.7rem; height: 1.7rem;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid rgba(201,162,75,0.5); color: var(--gold); font-family: "Archivo Black", sans-serif; font-size: 0.78rem;
}
.guide-steps li strong { color: var(--offwhite); }
.guide__check { list-style: none; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(244,241,234,0.1); display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.2rem; }
.guide__check li { position: relative; padding-left: 1.5rem; font-size: 0.86rem; color: var(--text-muted); }
.guide__check li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
@media (max-width: 640px) { .guide__check { grid-template-columns: 1fr; } }

/* ---------- Seção de contato (formulário) ---------- */
.section--contato { background: var(--graphite); }
.contato__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.contato__intro h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); margin-top: 0.4rem; }
.contato__intro p { margin-top: 1.1rem; color: var(--text-muted); max-width: 42ch; }
.contato__info { list-style: none; margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; }
.contato__info li { font-size: 0.92rem; color: var(--text-muted); letter-spacing: 0.02em; padding-left: 18px; position: relative; }
.contato__info li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.contato__info a { color: var(--offwhite); transition: color 0.3s; }
.contato__info a:hover { color: var(--gold); }
.contato__form { background: var(--black); }

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

/* ===========================================================
   PÁGINA DE IMÓVEIS — busca + filtros + resultados
   =========================================================== */
.page-listings { background: var(--black); }
.listings-main { padding-top: 90px; }

.listings-hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.2rem, 6vh, 4rem) clamp(1.2rem, 4vw, 3rem) 1.2rem;
}
.listings-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-top: 0.4rem; }
.listings-hero p { margin-top: 1rem; max-width: 54ch; color: var(--text-muted); }

/* ---------- Barra de filtros (sticky) ---------- */
.filters-wrap {
  position: sticky; top: 70px; z-index: 40;
  background: rgba(13,13,13,0.92); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(244,241,234,0.07);
  border-bottom: 1px solid rgba(244,241,234,0.07);
}
.filters {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
}
.filters__seg { display: inline-flex; gap: 0.3rem; background: var(--black); border: 1px solid rgba(244,241,234,0.14); border-radius: 50px; padding: 0.3rem; margin-bottom: 1rem; }
.seg-btn {
  border: none; background: transparent; color: var(--text-muted); cursor: pointer;
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.55rem 1.2rem; border-radius: 50px; transition: all 0.3s var(--ease);
}
.seg-btn.is-active { background: var(--gold); color: #161103; }
.seg-btn:not(.is-active):hover { color: var(--offwhite); }

.filters__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.8rem 1rem; align-items: end; }
.filters .field { grid-column: span 3; margin: 0; min-width: 0; }
.filters .field--wide { grid-column: span 4; }
.filters .field--narrow { grid-column: span 2; }
.filters label { font-size: 0.68rem; }
.filters input, .filters select { padding: 0.7rem 0.8rem; font-size: 0.9rem; }
.filters__actions { grid-column: span 2; display: flex; }
.filters__clear {
  background: transparent; border: 1px solid rgba(244,241,234,0.18); color: var(--text-muted);
  border-radius: 4px; cursor: pointer; width: 100%; padding: 0.7rem 0.6rem;
  font-family: "Archivo", sans-serif; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.filters__clear:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Barra de resultados ---------- */
.results-bar {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.8rem clamp(1.2rem, 4vw, 3rem) 0.4rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.results-bar__count { font-size: 0.9rem; color: var(--text-muted); }
.results-bar__count strong { color: var(--offwhite); font-weight: 700; }
.results-bar__sort { display: flex; align-items: center; gap: 0.6rem; }
.results-bar__sort label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.results-bar__sort select { background: var(--black); color: var(--offwhite); border: 1px solid rgba(244,241,234,0.14); border-radius: 4px; padding: 0.5rem 0.7rem; font-family: "Archivo", sans-serif; font-size: 0.85rem; cursor: pointer; }

/* ---------- Grade de imóveis ---------- */
.listings-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.6rem clamp(1.2rem, 4vw, 3rem) clamp(4rem, 8vh, 7rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem;
}
.prop-card {
  background: var(--graphite); border: 1px solid rgba(244,241,234,0.06); border-radius: 8px;
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.prop-card:hover { transform: translateY(-6px); border-color: rgba(201,162,75,0.4); box-shadow: 0 28px 60px -30px rgba(0,0,0,0.85); }
.prop-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.prop-card:hover .prop-card__media img { transform: scale(1.07); }
.prop-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  padding: 0.4rem 0.8rem; border-radius: 3px; backdrop-filter: blur(6px);
}
.prop-badge--venda { background: rgba(201,162,75,0.92); color: #161103; }
.prop-badge--aluguel { background: rgba(13,13,13,0.78); color: var(--gold-soft); border: 1px solid rgba(201,162,75,0.5); }
.prop-ref { position: absolute; bottom: 0.8rem; right: 0.9rem; z-index: 2; font-size: 0.64rem; letter-spacing: 0.14em; color: rgba(244,241,234,0.7); background: rgba(13,13,13,0.6); padding: 0.25rem 0.6rem; border-radius: 3px; }
.prop-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.prop-price { font-family: "Archivo Black", sans-serif; font-size: 1.35rem; color: var(--offwhite); line-height: 1; }
.prop-price small { font-family: "Archivo", sans-serif; font-weight: 500; font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.06em; }
.prop-card__body h3 { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.05rem; margin-top: 0.7rem; color: var(--offwhite); }
.prop-loc { margin-top: 0.35rem; font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.prop-loc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.prop-specs { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; border-top: 1px solid rgba(244,241,234,0.08); }
.prop-specs span { font-size: 0.78rem; color: var(--text-muted); }
.prop-specs strong { color: var(--offwhite); font-weight: 600; }

.no-results { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.no-results strong { display: block; font-family: "Archivo Black", sans-serif; text-transform: uppercase; color: var(--offwhite); font-size: 1.3rem; margin-bottom: 0.8rem; }
.no-results .btn { margin-top: 1.6rem; }

/* ---------- Modal de detalhe ---------- */
.prop-modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
}
.prop-modal.is-open { display: flex; }
.prop-modal__backdrop { position: absolute; inset: 0; background: rgba(8,8,8,0.82); backdrop-filter: blur(6px); }
.prop-modal__dialog {
  position: relative; z-index: 1; width: min(960px, 100%); max-height: 90vh; overflow: auto;
  background: var(--graphite); border: 1px solid rgba(201,162,75,0.25); border-radius: 10px;
  display: grid; grid-template-columns: 1.1fr 1fr;
}
.prop-modal__media { position: relative; min-height: 320px; }
.prop-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.prop-modal__media .prop-badge { top: 1.1rem; left: 1.1rem; }
.prop-modal__info { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; }
.prop-modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(244,241,234,0.25); background: rgba(13,13,13,0.7); color: var(--offwhite);
  font-size: 1.3rem; line-height: 1; cursor: pointer; transition: all 0.3s var(--ease);
}
.prop-modal__close:hover { border-color: var(--gold); color: var(--gold); }
.prop-modal__info .prop-price { font-size: 1.7rem; }
.prop-modal__info h2 { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.4rem; margin-top: 0.7rem; }
.prop-modal__desc { margin-top: 1rem; color: var(--text-muted); font-size: 0.95rem; }
.prop-modal__specs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; margin: 1.4rem 0; }
.prop-modal__specs li { font-size: 0.86rem; color: var(--text-muted); padding: 0.55rem 0; border-bottom: 1px solid rgba(244,241,234,0.08); }
.prop-modal__specs strong { color: var(--offwhite); }
.prop-modal__cta { margin-top: auto; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.prop-modal__cta .btn { flex: 1; justify-content: center; }

@media (max-width: 1024px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .filters__row { grid-template-columns: repeat(6, 1fr); }
  .filters .field, .filters .field--wide, .filters .field--narrow, .filters__actions { grid-column: span 3; }
  .prop-modal__dialog { grid-template-columns: 1fr; }
  .prop-modal__media { aspect-ratio: 16/10; min-height: 0; }
}
@media (max-width: 600px) {
  .listings-grid { grid-template-columns: 1fr; }
  .filters__row { grid-template-columns: 1fr 1fr; }
  .filters .field, .filters .field--wide, .filters .field--narrow, .filters__actions { grid-column: span 1; }
  .filters .field--wide { grid-column: span 2; }
  .results-bar { justify-content: flex-start; }
}

/* ---------- Placeholder de imagem ausente ---------- */
.prop-card__noimg {
  width: 100%; height: 100%; min-height: 180px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #15171b, #0b0c0e); color: rgba(201,162,75,0.5);
  font-family: "Archivo Black", sans-serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
}

/* ===========================================================
   PÁGINA DE DETALHE DO IMÓVEL
   =========================================================== */
.imovel-single { padding-top: 90px; }
.imovel-single__wrap { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.5rem, 4vh, 3rem) clamp(1.2rem, 4vw, 3rem) clamp(4rem, 8vh, 7rem); }
.imovel-single__back { display: inline-block; margin-bottom: 1.4rem; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); transition: color 0.3s; }
.imovel-single__back:hover { color: var(--gold); }
.imovel-single__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.6rem, 3vw, 3rem); align-items: start; }

.imovel-gallery__main { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 1px solid rgba(244,241,234,0.08); }
.imovel-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imovel-gallery__main .prop-badge { top: 1rem; left: 1rem; z-index: 2; }
.imovel-gallery__thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; padding: 0; }
.imovel-gallery__thumbs button { width: 84px; height: 64px; padding: 0; border: 1px solid rgba(244,241,234,0.14); border-radius: 5px; overflow: hidden; cursor: pointer; background: none; transition: border-color 0.3s; }
.imovel-gallery__thumbs button.is-active, .imovel-gallery__thumbs button:hover { border-color: var(--gold); }
.imovel-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.imovel-info { background: var(--graphite); border: 1px solid rgba(244,241,234,0.08); border-radius: 10px; padding: clamp(1.4rem, 3vw, 2rem); position: sticky; top: 92px; }
.imovel-info__ref { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }
.imovel-info .prop-price { font-family: "Archivo Black", sans-serif; font-size: 1.9rem; color: var(--offwhite); margin-top: 0.4rem; line-height: 1; }
.imovel-info .prop-price small { font-family: "Archivo", sans-serif; font-weight: 500; font-size: 0.8rem; color: var(--text-muted); }
.imovel-info__title { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.4rem; margin-top: 0.7rem; color: var(--offwhite); }
.imovel-info .prop-loc { margin-top: 0.4rem; }
.imovel-info__specs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin: 1.4rem 0; padding: 0; }
.imovel-info__specs li { display: flex; flex-direction: column; padding: 0.6rem 0; border-bottom: 1px solid rgba(244,241,234,0.08); }
.imovel-info__specs span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.imovel-info__specs strong { color: var(--offwhite); font-size: 1.05rem; margin-top: 2px; }
.imovel-info__cta { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.4rem; }
.imovel-info__cta .btn { justify-content: center; }

.imovel-single__desc { margin-top: clamp(2rem, 5vh, 3.5rem); max-width: 760px; }
.imovel-single__desc h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin-bottom: 1rem; }
.imovel-single__body { color: var(--text-muted); line-height: 1.7; }
.imovel-single__body p { margin-bottom: 1rem; }

@media (max-width: 880px) {
  .imovel-single__grid { grid-template-columns: 1fr; }
  .imovel-info { position: static; }
}
