/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0D0D0D;
  --blue:    #1A4B8C;
  --blue-lt: #2563B8;
  --wood:    #C4A87A;
  --wood-lt: #E8D5B0;
  --white:   #F5F5F5;
  --gray:    #8A8A8A;
  --gray-dk: #1E1E1E;
  --radius:  6px;
  --font-h:  'Raleway', sans-serif;
  --font-b:  'Lato', sans-serif;
  --max-w:   1180px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--dark { background: var(--gray-dk); }
.section--blue { background: var(--blue); }

.section__header { text-align: center; margin-bottom: 56px; }
.section__tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--wood); margin-bottom: 12px;
}
.section__tag--light { color: var(--wood-lt); }
.section__title {
  font-family: var(--font-h);
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  line-height: 1.15; color: var(--white); margin-bottom: 16px;
}
.section__desc { font-size: 17px; color: var(--gray); max-width: 560px; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-b); font-size: 15px; font-weight: 700;
  letter-spacing: .5px; border: 2px solid transparent;
  cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-lt); border-color: var(--blue-lt); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.3); }
.btn--outline:hover { border-color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.btn--ghost:hover { color: var(--wood); }
.btn--white { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn--white:hover { background: var(--wood-lt); border-color: var(--wood-lt); }
.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline-white:hover { border-color: var(--white); }
.btn--lg { padding: 17px 36px; font-size: 16px; }
.btn--sm { padding: 8px 18px; font-size: 13px; }

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,13,13,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: baseline; gap: 6px; }
.logo__elo { font-family: var(--font-h); font-size: 22px; font-weight: 800; color: var(--white); }
.logo__area { font-family: var(--font-h); font-size: 14px; font-weight: 600; color: var(--wood); letter-spacing: 1px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); transition: color var(--transition); letter-spacing: .3px; }
.nav a:hover { color: var(--white); }
.nav .btn { padding: 8px 20px; font-size: 13px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; padding-top: 68px; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0D0D0D 0%, #0f1a2e 50%, #0D1B2A 100%);
}
.hero__bg--capa {
  background: url('img/hero-casa-alto-padrao.png') center / cover no-repeat;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,13,13,.82) 0%, rgba(13,13,13,.58) 45%, rgba(13,13,13,.25) 100%),
    linear-gradient(0deg, rgba(13,13,13,.5) 0%, rgba(13,13,13,.1) 40%, transparent 70%);
}
.hero__content { position: relative; z-index: 1; max-width: 720px; padding: 80px 24px; }
.hero__tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--wood); margin-bottom: 20px; }
.hero__title { font-family: var(--font-h); font-size: clamp(38px, 6vw, 72px); font-weight: 800; line-height: 1.1; color: var(--white); margin-bottom: 24px; }
.hero__title em { font-style: normal; color: var(--wood); }
.hero__desc { font-size: 18px; color: rgba(245,245,245,.7); max-width: 560px; margin-bottom: 40px; line-height: 1.7; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 1; }
.hero__scroll span { display: block; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.2); border-radius: 12px; position: relative; }
.hero__scroll span::after { content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--wood); border-radius: 2px; animation: scroll-dot 1.6s infinite; }
@keyframes scroll-dot { 0%,100%{top:5px;opacity:1} 80%{top:18px;opacity:0} }

/* NUMBERS */
.numbers { background: var(--gray-dk); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); padding: 48px 0; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.numbers__item strong { display: block; font-family: var(--font-h); font-size: 36px; font-weight: 800; color: var(--wood); line-height: 1.1; margin-bottom: 6px; }
.numbers__item span { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); }

/* SERVICES */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--gray-dk); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 32px 28px; transition: border-color var(--transition), transform var(--transition); }
.card:hover { border-color: rgba(196,168,122,.3); transform: translateY(-4px); }
.card__icon { width: 48px; height: 48px; color: var(--wood); margin-bottom: 20px; }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* IMÓVEIS */
.imoveis__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.imovel-card { display: block; background: var(--black); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), border-color var(--transition); }
.imovel-card:hover { transform: translateY(-4px); border-color: rgba(196,168,122,.25); }
.imovel-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.imovel-card__img img { width: 100%; height: 100%; object-fit: cover; }
.imovel-card__tag { position: absolute; top: 12px; left: 12px; background: var(--blue); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.imovel-card__tag--blue { background: var(--wood); color: var(--black); }
.imovel-card__body { padding: 20px; }
.imovel-card__body h4 { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.imovel-card__local { font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.imovel-card__price { font-size: 16px; font-weight: 700; color: var(--wood); margin-bottom: 16px; }

.imoveis__vertodos { text-align: center; margin-bottom: 40px; }

.imoveis__cta { text-align: center; padding: 40px; border: 1px dashed rgba(255,255,255,.1); border-radius: var(--radius); }
.imoveis__cta p { color: var(--gray); margin-bottom: 20px; }

/* MCMV BANNER */
.mcmv { background: linear-gradient(135deg, var(--blue) 0%, #0f2d5e 100%); padding: 80px 0; }
.mcmv__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mcmv__content .section__tag { color: var(--wood-lt); }
.mcmv__content h2 { font-family: var(--font-h); font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; color: var(--white); margin-bottom: 16px; line-height: 1.2; }
.mcmv__content p { color: rgba(255,255,255,.75); margin-bottom: 32px; font-size: 16px; }
.mcmv__box { display: flex; flex-direction: column; gap: 16px; }
.mcmv__item { display: flex; align-items: flex-start; gap: 16px; padding: 16px; background: rgba(255,255,255,.08); border-radius: var(--radius); }
.mcmv__item strong { font-family: var(--font-h); font-size: 28px; font-weight: 800; color: var(--wood); min-width: 36px; line-height: 1; }
.mcmv__item span { font-size: 14px; color: rgba(255,255,255,.8); padding-top: 4px; }

/* SOBRE */
.sobre__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sobre__img { border-radius: var(--radius); overflow: hidden; }
.sobre__img-placeholder { aspect-ratio: 4/5; background: rgba(196,168,122,.08); border: 2px dashed rgba(196,168,122,.2); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(196,168,122,.4); }
.sobre__img-placeholder svg { width: 56px; height: 56px; }
.sobre__img-placeholder span { font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.sobre__content .section__title { text-align: left; margin-bottom: 8px; }
.sobre__role { font-size: 14px; font-weight: 700; color: var(--wood); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.sobre__content p { color: rgba(245,245,245,.75); margin-bottom: 16px; }
.sobre__list { list-style: none; margin: 24px 0 32px; }
.sobre__list li { font-size: 14px; color: rgba(245,245,245,.65); padding: 8px 0 8px 16px; border-bottom: 1px solid rgba(255,255,255,.06); position: relative; }
.sobre__list li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--wood); }

/* CONTATO */
.contato__inner { text-align: center; }
.contato__inner .section__desc { color: rgba(245,245,245,.7); }
.contato__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; margin-bottom: 32px; }
.contato__links { display: flex; gap: 12px; justify-content: center; align-items: center; font-size: 13px; color: rgba(255,255,255,.5); }
.contato__links a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.contato__links a:hover { color: var(--white); }

/* FOOTER */
.footer { background: #080808; border-top: 1px solid rgba(255,255,255,.06); padding: 32px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.footer__inner p { font-size: 12px; color: rgba(255,255,255,.3); }
.footer__social { display: flex; gap: 16px; margin-top: 6px; }
.footer__social a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer__social a:hover { color: var(--wood); }
.footer__social svg { width: 20px; height: 20px; }

/* IMÓVEIS — estados dinâmicos */
.imoveis__loading { grid-column: 1 / -1; text-align: center; color: var(--gray); padding: 32px 0; }
.imovel-card__img[data-galeria] { cursor: zoom-in; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 500; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox__close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: var(--white); font-size: 36px; line-height: 1; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.08); border: none; color: var(--white); font-size: 32px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; transition: background var(--transition); }
.lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--gray); font-size: 13px; }

@media (max-width: 768px) {
  .lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
}

/* FILTRO DE BAIRROS */
.imoveis__filtro { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.filtro-pill { background: transparent; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.7); font-size: 13px; font-family: var(--font-b); padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background var(--transition), border-color var(--transition), color var(--transition); }
.filtro-pill:hover { border-color: rgba(196,168,122,.4); color: var(--white); }
.filtro-pill--ativo { background: var(--wood); border-color: var(--wood); color: var(--black); font-weight: 700; }

/* IMÓVEIS POR BAIRRO */
.bairros__header { margin: 24px 0 20px; }
.bairros__header h3 { font-family: var(--font-h); font-size: 20px; font-weight: 700; color: var(--white); }
.bairros__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bairro-card { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: none; padding: 0; cursor: pointer; display: block; }
.bairro-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.bairro-card:hover img { transform: scale(1.06); }
.bairro-card__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 55%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 14px; text-align: left; }
.bairro-card__overlay strong { font-family: var(--font-h); font-size: 16px; font-weight: 800; color: var(--white); }
.bairro-card__overlay span { font-size: 11px; letter-spacing: .5px; color: rgba(255,255,255,.7); text-transform: uppercase; margin-top: 2px; }
.bairro-card__overlay em { font-size: 12px; font-style: normal; color: var(--wood-lt); margin-top: 6px; }

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

/* PÁGINA DE DETALHE DO IMÓVEL */
.imovel-detalhe { padding: 40px 0 96px; }
.imovel-detalhe__voltar { display: inline-flex; align-items: center; gap: 6px; color: var(--gray); font-size: 14px; margin-bottom: 24px; transition: color var(--transition); }
.imovel-detalhe__voltar:hover { color: var(--wood); }
.imovel-detalhe__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }

.galeria__principal { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--gray-dk); cursor: zoom-in; }
.galeria__principal img { width: 100%; height: 100%; object-fit: cover; }
.galeria__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.5); border: none; color: var(--white); font-size: 28px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.galeria__nav--prev { left: 12px; }
.galeria__nav--next { right: 12px; }
.galeria__tag { position: absolute; top: 16px; left: 16px; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; }
.galeria__tag--blue { background: var(--wood); color: var(--black); }
.galeria__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.galeria__thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: .55; transition: opacity var(--transition); border: 2px solid transparent; }
.galeria__thumbs img:hover { opacity: .85; }
.galeria__thumbs img.ativa { opacity: 1; border-color: var(--wood); }

.imovel-info__preco { font-family: var(--font-h); font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--wood); margin-bottom: 6px; }
.imovel-info__titulo { font-family: var(--font-h); font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.imovel-info__local { font-size: 14px; color: var(--gray); margin-bottom: 20px; }
.imovel-info__specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.imovel-info__specs span { display: block; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 12px; font-size: 13px; color: rgba(255,255,255,.75); }
.imovel-info__specs strong { display: block; font-family: var(--font-h); font-size: 18px; color: var(--white); }
.imovel-info__ctas { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.imovel-info__descricao h3 { font-family: var(--font-h); font-size: 16px; color: var(--white); margin-bottom: 10px; }
.imovel-info__descricao p { color: rgba(245,245,245,.7); white-space: pre-line; }

@media (max-width: 900px) {
  .imovel-detalhe__grid { grid-template-columns: 1fr; }
  .galeria__thumbs { grid-template-columns: repeat(5, 1fr); }
}

/* WHATSAPP FLOAT */
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; z-index: 200; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.35); transition: transform var(--transition), box-shadow var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--black); padding: 24px; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav.open { display: flex; }
  .hamburger { display: flex; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: 1fr; }
  .imoveis__grid { grid-template-columns: 1fr; }
  .mcmv__inner { grid-template-columns: 1fr; }
  .sobre__grid { grid-template-columns: 1fr; }
  .sobre__img { display: none; }
  .hero__ctas { flex-direction: column; }
  .contato__actions { flex-direction: column; align-items: center; }
  .section { padding: 64px 0; }
}
