/* ================================================================
   MMX INVEST IMÓVEIS — Landing Page
   Design inspirado no template DAX (UWS) + identidade MMX
   ================================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* MMX Brand */
  --mmx-red:        #E31E24;
  --mmx-red-dark:   #B8181D;
  --mmx-red-glow:   rgba(227, 30, 36, 0.35);
  --mmx-silver:     #C0C0C0;
  --mmx-silver-lt:  #E8E8E8;
  --mmx-charcoal:   #1A1C22;
  --mmx-charcoal-2: #242830;
  --mmx-charcoal-3: #2E323C;
  --mmx-white:      #FFFFFF;
  --mmx-muted:      #9BA3AF;

  /* DAX-inspired tokens (adaptados) */
  --base-color:     #9BA3AF;
  --heading-color:  #E8E8E8;
  --primary-color:  var(--mmx-red);
  --secondary-color:#2E323C;
  --lighter-color:  #242830;
  --border-color:   rgba(255,255,255,0.08);

  /* Typography */
  --font-main: "Montserrat", "Segoe UI", sans-serif;
  --font-display: "Montserrat", sans-serif;

  /* Spacing */
  --section-py: clamp(72px, 10vw, 120px);
  --container: 1200px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Transitions */
  --ease: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--base-color);
  background: var(--mmx-charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--mmx-red);
  color: var(--mmx-white);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--mmx-white);
  outline-offset: 2px;
}

.footer-address {
  margin-top: 16px;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--mmx-muted);
  line-height: 1.8;
}

.footer-address a { color: var(--mmx-silver-lt); }
.footer-address a:hover { color: var(--mmx-red); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ease), background var(--ease), transform var(--ease), box-shadow var(--ease); }
ul { list-style: none; }

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

/* ── Typography ────────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mmx-red);
  margin-bottom: 16px;
}

.section-tag::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--mmx-red);
  transform: skewX(-12deg);
}

.reveal.visible .section-tag::before {
  animation: drawTagLine 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.section-title .accent { color: var(--mmx-red); }

.section-desc {
  font-size: 1.05rem;
  color: var(--base-color);
  max-width: 640px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--mmx-white) 0%, var(--mmx-silver) 50%, var(--mmx-white) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-shimmer {
  animation: textShimmer 4s linear infinite;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--mmx-red);
  color: var(--mmx-white);
  border-color: var(--mmx-red);
  box-shadow: 0 4px 24px var(--mmx-red-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: none;
}

.btn-primary:hover::before,
.btn-whatsapp:hover::before {
  animation: btnShine 0.75s ease;
}

.btn-primary:hover {
  background: var(--mmx-red-dark);
  border-color: var(--mmx-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--mmx-red-glow);
}

.btn-outline {
  background: transparent;
  color: var(--mmx-white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--mmx-red);
  color: var(--mmx-red);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--mmx-white);
  border-color: #25D366;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
}

.btn-sm { padding: 12px 24px; font-size: 0.8rem; }

/* ── Header ────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transform: translateY(-100%);
  transition: background var(--ease), padding var(--ease), box-shadow var(--ease), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.header.scrolled {
  background: rgba(26, 28, 34, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.logo:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 12px rgba(227, 30, 36, 0.35));
}

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

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mmx-silver-lt);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mmx-red);
  transform: skewX(-12deg);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover,
.nav-links a.active { color: var(--mmx-red); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mmx-white);
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  animation: kenBurns 22s ease-in-out infinite alternate;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
}

.hero-glow-1 {
  width: 420px;
  height: 420px;
  background: rgba(227, 30, 36, 0.22);
  top: 10%;
  right: -5%;
  animation: floatOrb 9s ease-in-out infinite;
}

.hero-glow-2 {
  width: 320px;
  height: 320px;
  background: rgba(192, 192, 192, 0.08);
  bottom: 15%;
  left: -8%;
  animation: floatOrb 12s ease-in-out infinite reverse;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 28, 34, 0.92) 0%,
    rgba(26, 28, 34, 0.75) 50%,
    rgba(26, 28, 34, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 100px;
  max-width: 780px;
  will-change: transform, opacity;
  transition: opacity 0.1s linear;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(227, 30, 36, 0.15);
  border: 1px solid rgba(227, 30, 36, 0.4);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mmx-red);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--mmx-white);
  margin-bottom: 24px;
}

.hero-title .line-accent {
  display: block;
  position: relative;
  padding-bottom: 8px;
}

.hero-title .line-accent::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--mmx-red);
  transform: skewX(-12deg);
}

body.page-loaded .hero-title .line-accent::after {
  animation: drawLine 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--mmx-muted);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mmx-white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat span {
  font-size: 0.8rem;
  color: var(--mmx-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--mmx-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll svg { opacity: 0.6; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── About ─────────────────────────────────────────────────── */
.about { padding: var(--section-py) 0; background: var(--mmx-charcoal-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(227,30,36,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.about-image:hover::after { opacity: 1; }

.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image:hover img { transform: scale(1.06); }

.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--mmx-red);
  border-radius: var(--radius-lg);
  transform: translate(16px, 16px);
  z-index: -1;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(227, 30, 36, 0.12);
  border-radius: var(--radius);
  color: var(--mmx-red);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.about-feature:hover .about-feature-icon {
  transform: scale(1.12) rotate(-4deg);
  background: rgba(227, 30, 36, 0.22);
}

.about-feature h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mmx-white);
  margin-bottom: 2px;
}

.about-feature p {
  font-size: 0.8rem;
  color: var(--mmx-muted);
  line-height: 1.5;
}

/* ── Apartments ────────────────────────────────────────────── */
.apartments { padding: var(--section-py) 0; }

.apartments-header {
  text-align: center;
  margin-bottom: 56px;
}

.apartments-header .section-desc { margin: 0 auto; }

/* ── Apartments Carousel ───────────────────────────────────── */
.apartments-carousel {
  position: relative;
  padding: 0 56px;
}

.apartments-viewport {
  overflow: hidden;
  --slide-width: 360px;
}

.apartments-track {
  display: flex;
  gap: 28px;
  will-change: transform;
}

.apartments-track .apt-card {
  flex: 0 0 var(--slide-width);
  min-width: 0;
}

.apartments-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 28, 34, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--mmx-white);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), opacity var(--ease);
}

.apartments-nav:hover:not(:disabled) {
  background: var(--mmx-red);
  border-color: var(--mmx-red);
  transform: translateY(-50%) scale(1.08);
}

.apartments-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.apartments-prev { left: 0; }
.apartments-next { right: 0; }

.apartments-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.apartments-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--mmx-charcoal-3);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}

.apartments-dot.active {
  background: var(--mmx-red);
  transform: scale(1.2);
}

.apt-card {
  background: var(--mmx-charcoal-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.apt-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 24px 56px rgba(0,0,0,0.45), 0 0 0 1px rgba(227,30,36,0.15);
  border-color: rgba(227, 30, 36, 0.35);
}

.apt-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.apt-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.apt-card:hover .apt-card-image img { transform: scale(1.06); }

.apt-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: var(--mmx-red);
  color: var(--mmx-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  animation: badgePulse 2.5s ease-in-out infinite;
}

.apt-card-body { padding: 24px; }

.apt-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mmx-white);
  margin-bottom: 8px;
}

.apt-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.apt-card-meta span {
  font-size: 0.8rem;
  color: var(--mmx-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.apt-card-body p {
  font-size: 0.875rem;
  color: var(--base-color);
  margin-bottom: 20px;
  line-height: 1.6;
}

.apt-card .btn-proposta {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

.btn-full { width: 100%; }

/* ── Modal Proposta ────────────────────────────────────────── */
body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px 32px;
  background: var(--mmx-charcoal-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mmx-charcoal);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--mmx-muted);
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.modal-close:hover {
  color: var(--mmx-white);
  border-color: var(--mmx-red);
  background: rgba(227, 30, 36, 0.1);
}

.modal-header { margin-bottom: 24px; padding-right: 40px; }

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mmx-white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--mmx-muted);
  line-height: 1.6;
}

.modal-imovel {
  display: flex;
  gap: 16px;
  padding: 16px;
  margin-bottom: 24px;
  background: var(--mmx-charcoal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.modal-imovel-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.modal-imovel-info { flex: 1; min-width: 0; }

.modal-imovel-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mmx-white);
  margin-bottom: 8px;
}

.modal-imovel-info p {
  font-size: 0.8rem;
  color: var(--mmx-muted);
  line-height: 1.5;
  margin-bottom: 4px;
}

.modal-imovel-info p strong { color: var(--mmx-silver-lt); }

.modal-imovel-badge {
  display: inline-block;
  padding: 3px 8px;
  margin-bottom: 8px;
  background: var(--mmx-red);
  color: var(--mmx-white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mmx-silver-lt);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--mmx-white);
  background: var(--mmx-charcoal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-group input::placeholder { color: rgba(155, 163, 175, 0.5); }

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--mmx-red);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.15);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239BA3AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--mmx-charcoal-2);
  color: var(--mmx-white);
}

#proposta-form .btn-full { margin-top: 8px; }

/* ── Benefits ──────────────────────────────────────────────── */
.benefits { padding: var(--section-py) 0; background: var(--mmx-charcoal-2); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.benefit-card {
  padding: 32px 28px;
  background: var(--mmx-charcoal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: border-color 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.benefit-card:hover {
  border-color: rgba(227, 30, 36, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(227, 30, 36, 0.1);
  border-radius: var(--radius);
  color: var(--mmx-red);
  margin-bottom: 20px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.15) rotate(5deg);
  background: rgba(227, 30, 36, 0.2);
}

.benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mmx-white);
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--mmx-muted);
  line-height: 1.6;
}

/* ── Counters ──────────────────────────────────────────────── */
.counters {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--mmx-red) 0%, var(--mmx-red-dark) 100%);
  position: relative;
  overflow: hidden;
}

.counters::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmerSlide 3s ease-in-out infinite;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.counter-item strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--mmx-white);
  line-height: 1;
  margin-bottom: 8px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.counter-item.visible strong {
  animation: counterPop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.counter-item span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* ── Gallery ───────────────────────────────────────────────── */
.gallery { padding: var(--section-py) 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
  margin-top: 48px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-grid.visible .gallery-item {
  animation: galleryZoomIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.gallery-grid.visible .gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-grid.visible .gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-grid.visible .gallery-item:nth-child(3) { animation-delay: 0.25s; }
.gallery-grid.visible .gallery-item:nth-child(4) { animation-delay: 0.35s; }

.gallery-item:hover {
  transform: scale(1.02);
  z-index: 2;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,28,34,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--ease);
}

.gallery-item:hover::after { opacity: 1; }

/* ── Gallery Carousel (5+ imagens) ─────────────────────────── */
.gallery-carousel {
  position: relative;
  margin-top: 48px;
  padding: 0 56px;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.gallery-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 28, 34, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--mmx-white);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.gallery-nav:hover {
  background: var(--mmx-red);
  border-color: var(--mmx-red);
}

.gallery-prev { left: 0; }
.gallery-next { right: 0; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--mmx-charcoal-3);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}

.gallery-dot.active {
  background: var(--mmx-red);
  transform: scale(1.2);
}

.gallery-counter {
  text-align: center;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mmx-muted);
}

/* ── Location ──────────────────────────────────────────────── */
.location { padding: var(--section-py) 0; background: var(--mmx-charcoal-2); }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.location-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.location-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.location-image:hover img { transform: scale(1.05); }

.location-list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.location-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--mmx-silver-lt);
}

.location-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--mmx-red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Mapa de Bairros ───────────────────────────────────────── */
.bairros-map {
  padding: var(--section-py) 0;
  background: var(--mmx-charcoal);
  border-top: 1px solid var(--border-color);
}

.bairros-map-header {
  text-align: center;
  margin-bottom: 48px;
}

.bairros-map-header .section-desc {
  margin: 0 auto;
  max-width: 620px;
}

.bairros-map-frame {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  background: var(--mmx-charcoal-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.bairros-map-svg {
  width: 100%;
  aspect-ratio: 800 / 420;
  border-radius: var(--radius);
  overflow: hidden;
}

.bairros-map-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bairros-map-svg .map-zone {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.5;
}

.bairros-map-svg .map-road {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.bairros-map-svg .map-watermark {
  fill: rgba(255, 255, 255, 0.04);
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.bairros-map-svg .map-pin-group {
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.bairros-map-svg .map-pin-group:hover {
  transform: scale(1.12);
}

.bairros-map-svg .map-pin-pulse {
  fill: rgba(227, 30, 36, 0.25);
  transform-origin: center;
  animation: mapPinPulse 2.5s ease-out infinite;
}

.bairros-map-svg .map-pin-dot {
  fill: var(--mmx-red);
  stroke: var(--mmx-white);
  stroke-width: 2;
}

.bairros-map-svg .map-pin-group.destaque .map-pin-dot {
  filter: drop-shadow(0 0 6px rgba(227, 30, 36, 0.6));
}

.bairros-map-svg .map-pin-label {
  fill: var(--mmx-white);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
  pointer-events: none;
}

.bairros-map-svg .map-pin-group.destaque .map-pin-label {
  font-size: 12px;
  font-weight: 700;
  fill: var(--mmx-silver-lt);
}

.bairros-map-svg .map-compass {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
}

.bairros-map-svg .map-compass-n {
  fill: var(--mmx-red);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-main);
}

.bairros-map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--mmx-muted);
}

.bairros-map-legend-dot {
  width: 10px;
  height: 10px;
  background: var(--mmx-red);
  border-radius: 50%;
  border: 2px solid var(--mmx-white);
  flex-shrink: 0;
}

.bairros-map-legend-note {
  color: rgba(155, 163, 175, 0.7);
  font-size: 0.75rem;
}

@keyframes mapPinPulse {
  0%   { r: 6;  opacity: 0.7; }
  70%  { r: 18; opacity: 0; }
  100% { r: 18; opacity: 0; }
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials { padding: var(--section-py) 0; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  padding: 32px;
  background: var(--mmx-charcoal-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, box-shadow 0.45s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 30, 36, 0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  line-height: 1;
  color: rgba(227, 30, 36, 0.15);
  font-family: Georgia, serif;
}

.testimonial-stars {
  color: #F1B000;
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 0.9rem;
  color: var(--base-color);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mmx-red);
}

.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
  color: var(--mmx-white);
}

.testimonial-author span {
  font-size: 0.75rem;
  color: var(--mmx-muted);
}

/* ── FAQ (SEO) ─────────────────────────────────────────────── */
.faq { padding: var(--section-py) 0; background: var(--mmx-charcoal-2); }

.faq-list { margin-top: 48px; max-width: 800px; }

.faq-item {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

.faq-item.active {
  background: rgba(255,255,255,0.02);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--mmx-white);
  transition: color var(--ease);
}

.faq-question:hover { color: var(--mmx-red); }

.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--ease);
  color: var(--mmx-red);
}

.faq-item.active .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), padding 0.45s ease, opacity 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
  opacity: 1;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--mmx-muted);
  line-height: 1.7;
}

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--mmx-charcoal-3) 0%, var(--mmx-charcoal) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-animated {
  background: linear-gradient(-45deg, #1a1c22, #2e323c, #242830, #1a1c22);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(227, 30, 36, 0.12);
  filter: blur(100px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ctaGlowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.cta-banner .section-title { margin-bottom: 16px; }

.cta-banner .section-desc {
  margin: 0 auto 32px;
  text-align: center;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  padding: 64px 0 32px;
  background: var(--mmx-charcoal);
  border-top: 3px solid var(--mmx-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--mmx-muted);
  max-width: 320px;
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mmx-white);
  margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.875rem;
  color: var(--mmx-muted);
}

.footer-links a:hover { color: var(--mmx-red); }

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mmx-charcoal-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--mmx-silver-lt);
  transition: all var(--ease);
}

.social-link:hover {
  background: var(--mmx-red);
  border-color: var(--mmx-red);
  color: var(--mmx-white);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--mmx-muted);
}

/* ── Floating WhatsApp ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border-radius: 50%;
  color: var(--mmx-white);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  transition: transform var(--ease), box-shadow var(--ease);
  animation: pulse-wa 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
  animation: none;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 6px 32px rgba(37, 211, 102, 0.8), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

/* ── Reveal & Motion System ──────────────────────────────────── */
.anim-in {
  opacity: 0;
  transform: translateY(40px);
}

body.page-loaded .anim-in {
  animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.15s + var(--delay, 0) * 0.12s);
}

.anim-in[data-anim-delay="0"] { --delay: 0; }
.anim-in[data-anim-delay="1"] { --delay: 1; }
.anim-in[data-anim-delay="2"] { --delay: 2; }
.anim-in[data-anim-delay="3"] { --delay: 3; }
.anim-in[data-anim-delay="4"] { --delay: 4; }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-scale { transform: scale(0.92); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

.stagger-group .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-group .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger-group .reveal:nth-child(3) { transition-delay: 0.19s; }
.stagger-group .reveal:nth-child(4) { transition-delay: 0.26s; }
.stagger-group .reveal:nth-child(5) { transition-delay: 0.33s; }
.stagger-group .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.14); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(30px, -25px); }
}

@keyframes drawLine {
  from { width: 0; }
  to   { width: 80px; }
}

@keyframes drawTagLine {
  from { width: 0; opacity: 0.5; }
  to   { width: 32px; opacity: 1; }
}

@keyframes textShimmer {
  to { background-position: 200% center; }
}

@keyframes btnShine {
  to { transform: translateX(120%); }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(227, 30, 36, 0); }
}

@keyframes shimmerSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes counterPop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes galleryZoomIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes ctaGlowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

body.page-loaded .header { transform: translateY(0); }

/* ── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .anim-in {
    opacity: 1;
    transform: none;
  }

  .hero-bg { animation: none; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .benefits-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  .apartments-carousel { padding: 0 48px; }

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

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

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .header .btn-primary { display: none; }

  .nav-toggle { display: flex; }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 28, 34, 0.98);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .about-grid,
  .location-grid { grid-template-columns: 1fr; gap: 40px; }

  .about-features { grid-template-columns: 1fr; }

  .apartments-carousel { padding: 0 36px; }

  .benefits-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  .counters-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .gallery-grid { grid-template-columns: 1fr; }

  .gallery-item:first-child { grid-column: span 1; }

  .gallery-carousel { padding: 0 44px; }

  .gallery-nav { width: 40px; height: 40px; }

  .location-list { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .modal-box { padding: 28px 20px 24px; }

  .modal-imovel { flex-direction: column; }

  .modal-imovel-img { width: 100%; height: 140px; }

  .hero-ctas { flex-direction: column; }

  .hero-ctas .btn { width: 100%; justify-content: center; }

  .bairros-map-frame { padding: 12px; }

  .bairros-map-header .section-title br { display: none; }

  .bairros-map-svg .map-pin-label { font-size: 8px; }

  .bairros-map-svg .map-pin-group.destaque .map-pin-label { font-size: 9px; }

  .bairros-map-svg .map-watermark { font-size: 18px; }
}
