/* ==========================================================================
   Muniz Fazendas — Landing Page de Imóvel
   CSS compartilhado entre todas as LPs
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F6F2;
  --color-dark: #1A2B1E;
  --color-dark-soft: #2D3E32;
  --color-gold: #C5A55A;
  --color-gold-light: #D4BF7E;
  --color-text: #2C2C2C;
  --color-text-light: #666666;
  --color-border: #E5E2DC;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1FAD54;
  --font-heading: 'Instrument Serif', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --max-width: 1100px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Header (sticky) --- */
.lp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s;
  background: transparent;
}

.lp-header.scrolled {
  background: rgba(26, 43, 30, .97);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}

.lp-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.lp-header__logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter .3s;
}

.lp-header.scrolled .lp-header__logo img {
  filter: brightness(0) invert(1);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gold);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.btn-header-cta:hover { background: var(--color-gold-light); transform: translateY(-1px); }

.btn-header-cta svg { width: 18px; height: 18px; fill: currentColor; }

/* --- Header Nav (desktop) --- */
.lp-header__nav {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.lp-header__nav a {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}

.lp-header__nav a:hover { color: #fff; }

@media (min-width: 769px) {
  .lp-header__nav { display: flex; }
}

/* --- Hamburger (mobile) --- */
.lp-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 201;
}

.lp-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
  transform-origin: center;
}

.lp-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.lp-hamburger.active span:nth-child(2) { opacity: 0; }
.lp-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 769px) {
  .lp-hamburger { display: none; }
}

/* --- Mobile Menu Overlay --- */
.lp-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 43, 30, .97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.lp-mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.lp-mobile-menu a {
  font-family: var(--font-heading);
  font-size: 28px;
  color: #fff;
  transition: color .2s;
}

.lp-mobile-menu a:hover { color: var(--color-gold); }

.lp-mobile-menu .btn-mobile-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: var(--color-gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* --- Header right group --- */
.lp-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Hero --- */
.lp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 60px;
  overflow: hidden;
}

.lp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lp-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,43,30,.3) 0%,
    rgba(26,43,30,.5) 40%,
    rgba(26,43,30,.85) 75%,
    rgba(26,43,30,.95) 100%
  );
  z-index: 1;
}

.lp-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.lp-hero__badge {
  display: inline-block;
  background: var(--color-gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.lp-hero__title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 12px;
}

.lp-hero__subtitle {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  max-width: 600px;
}

.lp-hero__stats {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lp-hero__stat {
  text-align: center;
}

.lp-hero__stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1.2;
}

.lp-hero__stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.6);
}

.lp-hero__price {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--color-gold);
  margin-bottom: 28px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-whatsapp);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.btn-cta:hover { background: var(--color-whatsapp-hover); transform: translateY(-2px); }

.btn-cta svg { width: 22px; height: 22px; fill: currentColor; }

/* --- Section Base --- */
.lp-section {
  padding: 80px 0;
}

.lp-section--alt {
  background: var(--color-bg-alt);
}

.lp-section__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.lp-section__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  color: var(--color-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.lp-section__desc {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 600px;
  margin-bottom: 40px;
}

/* --- Gallery --- */
.lp-video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  background: #000;
  aspect-ratio: 16/9;
}

.lp-video-wrapper iframe,
.lp-video-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
}

.lp-video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,.5);
  font-size: 18px;
}

.lp-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.lp-gallery__item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.lp-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.lp-gallery__item:hover img { transform: scale(1.05); }

.lp-gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* --- Lightbox --- */
.lp-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
}

.lp-lightbox.active { display: flex; }

.lp-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
}

.lp-lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}

.lp-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lp-lightbox__nav:hover { background: rgba(255,255,255,.3); }

.lp-lightbox__prev { left: 16px; }
.lp-lightbox__next { right: 16px; }

/* --- Ficha Técnica --- */
.lp-ficha {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.lp-ficha__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.lp-ficha__icon {
  margin-bottom: 8px;
  color: var(--color-gold);
}

.lp-ficha__icon svg {
  width: 28px;
  height: 28px;
}

.lp-ficha__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-dark);
}

.lp-ficha__label {
  font-size: 13px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.lp-ficha-highlight {
  background: var(--color-dark);
  color: #fff;
  padding: 24px 32px;
  border-radius: 12px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.4;
}

.lp-ficha-highlight span { color: var(--color-gold); }

/* --- Diferenciais --- */
.lp-diferenciais {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.lp-diferencial {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.lp-diferencial__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: 8px;
  color: var(--color-gold);
}

.lp-diferencial__icon svg {
  width: 22px;
  height: 22px;
}

.lp-diferencial__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
}

/* --- Localização --- */
.lp-distancias {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.lp-distancia {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.lp-distancia__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--color-dark);
  color: var(--color-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-distancia__icon svg {
  width: 18px;
  height: 18px;
}

.lp-mapa {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.lp-mapa iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Permuta --- */
.lp-permuta-box {
  background: var(--color-dark);
  color: #fff;
  border-radius: 16px;
  padding: 48px;
}

.lp-permuta-box h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 16px;
}

.lp-permuta-box p {
  color: rgba(255,255,255,.75);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 500px;
}

.lp-permuta-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.lp-permuta-list li {
  background: rgba(197,165,90,.15);
  border: 1px solid rgba(197,165,90,.3);
  color: var(--color-gold-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
}

.lp-permuta-cta {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-gold);
  font-style: italic;
}

/* --- CTA Final --- */
.lp-cta-final {
  background: var(--color-dark);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.lp-cta-final__title {
  font-family: var(--font-heading);
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.lp-cta-final__subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.7);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.lp-cta-final .btn-cta {
  font-size: 18px;
  padding: 18px 40px;
}

.lp-cta-secondary {
  display: inline-block;
  margin-top: 20px;
  color: rgba(255,255,255,.5);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.2);
  transition: color .2s;
}

.lp-cta-secondary:hover { color: rgba(255,255,255,.8); }

/* --- Footer --- */
.lp-footer {
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
}

.lp-footer a { color: var(--color-gold); }

/* --- Floating WhatsApp --- */
.lp-float-wpp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform .2s;
  cursor: pointer;
}

.lp-float-wpp:hover { transform: scale(1.1); }

.lp-float-wpp svg { width: 28px; height: 28px; fill: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .lp-hero { min-height: 100svh; padding-bottom: 40px; }
  .lp-hero__title { font-size: 34px; }
  .lp-hero__subtitle { font-size: 15px; }
  .lp-hero__stats { gap: 20px; }
  .lp-hero__stat-value { font-size: 22px; }
  .lp-hero__price { font-size: 28px; }

  .lp-section { padding: 56px 0; }
  .lp-section__title { font-size: 28px; }

  .lp-gallery { grid-template-columns: repeat(2, 1fr); }

  .lp-ficha { grid-template-columns: repeat(2, 1fr); }

  .lp-diferenciais { grid-template-columns: 1fr; }

  .lp-distancias { grid-template-columns: 1fr; }

  .lp-permuta-box { padding: 32px 24px; }
  .lp-permuta-box h3 { font-size: 22px; }

  .lp-cta-final__title { font-size: 28px; }

  .btn-header-cta span { display: none; }
  .btn-header-cta { padding: 10px 14px; }
}

@media (max-width: 480px) {
  .lp-hero__title { font-size: 28px; }
  .lp-hero__stats { gap: 16px; }
  .lp-hero__stat-value { font-size: 20px; }
  .lp-hero__price { font-size: 24px; }
  .lp-ficha { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lp-ficha__item { padding: 16px; }
  .lp-ficha__value { font-size: 18px; }
  .lp-gallery { gap: 4px; }
}
