/* Camada incremental: preserva .vc-* e adiciona contratos .vcv-*. */
:root {
  --vcv-ink: #1d1d1d;
  --vcv-ink-soft: #4b5563;
  --vcv-gold: #c8a96a;
  --vcv-gold-text: #70551f;
  --vcv-surface: #ffffff;
  --vcv-surface-soft: #f5f5f5;
  --vcv-focus: #1769aa;
  --vcv-radius-sm: 6px;
  --vcv-radius-md: 10px;
  --vcv-radius-lg: 14px;
  --vcv-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.07);
  --vcv-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.12);
  --vcv-space-1: 8px;
  --vcv-space-2: 16px;
  --vcv-space-3: 24px;
  --vcv-space-4: 32px;
  --vcv-space-5: 48px;
  --vcv-space-6: 64px;
  --vcv-container: 1200px;
}

/* Header mais compacto e Home sem o recuo vertical padrão do Astra. */
.home #masthead .site-branding {
  padding-block: 12px;
}

.home #masthead .custom-logo {
  width: auto;
  max-height: 64px;
}

.home #masthead .main-header-menu > .menu-item > .menu-link {
  min-height: 72px;
  height: 72px;
}

.home #primary {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Fallbacks explícitos para os blocos que ficavam branco sobre branco. */
.home .vc-hero {
  background: linear-gradient(rgba(29, 29, 29, 0.72), rgba(29, 29, 29, 0.88)),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920") center / cover no-repeat;
  min-height: 680px;
  align-items: flex-start;
  padding: 72px 20px 64px;
}

.home .vc-hero > .vc-hero-content > .vc-section-subtitle {
  display: none;
}

.home .vcv-hero__content {
  text-align: left;
  margin-inline: 0 auto;
}

.home .vcv-hero__content h1 {
  max-width: 760px;
}

.home .vcv-hero__content > p {
  max-width: 690px;
}

.home .vcv-section {
  padding-block: 72px;
}

.home .vcv-section__action {
  margin-top: var(--vcv-space-5);
  text-align: center;
}

.home .vcv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: inherit;
}

.home .vcv-btn {
  min-height: 46px;
  margin: 0;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--vcv-radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.home .vcv-btn--primary {
  color: var(--vcv-ink);
  background: var(--vcv-gold);
}

.home .vcv-btn--primary:hover {
  color: var(--vcv-ink);
  background: #b8955a;
}

.home .vcv-btn--secondary {
  color: #fff;
  border-color: #fff;
  background: rgba(0, 0, 0, 0.2);
}

.home .vcv-btn--secondary:hover {
  color: var(--vcv-ink);
  background: #fff;
}

.home .vcv-btn--whatsapp {
  color: #fff;
  background: #087a35;
}

.home .vcv-btn--whatsapp:hover {
  color: #fff;
  background: #06632b;
}

.home .vcv-btn--instagram {
  color: var(--vcv-ink);
  border-color: var(--vcv-ink);
  background: transparent;
}

.home .vcv-btn--instagram:hover {
  color: #fff;
  background: var(--vcv-ink);
}

.home .vc-cta-prop {
  background: linear-gradient(135deg, #1d1d1d 0%, #2d2d2d 100%);
}

.home .vc-cond-card-overlay {
  background: linear-gradient(to top, rgba(20, 20, 20, 0.96) 0%, rgba(20, 20, 20, 0.15) 72%);
}

/* Texto dourado precisa de uma variante mais escura sobre fundos claros. */
.home .vc-section-light .vc-section-subtitle,
.home .vc-about-text > .vc-section-subtitle,
.home .vc-testimonial > div:last-child,
.home #vcv-destaques-grid .vcv-card p:first-of-type {
  color: var(--vcv-gold-text);
}

.home .vc-section-dark .vc-section-subtitle,
.home .vc-cta-prop .vc-section-subtitle,
.home .vc-cond-card-overlay p {
  color: #e2c98f;
}

.home .vc-cta-prop h2,
.home .vc-cta-prop > p:not(.vc-section-subtitle),
.home .vc-cond-card-overlay h3 {
  color: #fff;
}

/* Contratos dos cards dinâmicos, acima dos estilos inline legados. */
.home #vcv-destaques-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.home #vcv-destaques-grid > .vcv-card {
  min-width: 0;
  height: 100%;
  background: var(--vcv-surface);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.home .vcv-property-media {
  height: auto !important;
  aspect-ratio: 4 / 3;
}

.home .vcv-property-track,
.home .vcv-property-image {
  height: 100% !important;
}

.home .vcv-property-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.home .vcv-property-info > a:last-child {
  min-height: 46px;
  margin-top: auto;
}

.home #vcv-destaques-grid > .vcv-card:focus-visible,
.home #vcv-destaques-grid > .vcv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.home .vcv-carousel-button {
  width: 44px !important;
  height: 44px !important;
  background: rgba(0, 0, 0, 0.72) !important;
}

/* Área mínima de toque e foco visível. */
.home a,
.home button,
.home [role="link"] {
  touch-action: manipulation;
}

.home .vc-btn,
.home .vc-whatsapp-cta,
.home #vcv-destaques-grid a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home :where(a, button, [role="link"]):focus-visible {
  outline: 3px solid var(--vcv-focus) !important;
  outline-offset: 3px;
}

.home .ast-mobile-menu-trigger-minimal {
  min-width: 44px;
  min-height: 44px;
}

.home .joinchat__button {
  background-color: #087a35;
}

/* Rodapé com contraste consistente, inclusive sobre estilos legados do Astra. */
.home .site-footer,
.home .site-footer .site-primary-footer-wrap,
.home .site-footer .site-below-footer-wrap,
.home .site-footer .ast-small-footer {
  color: #f5f5f5 !important;
  background: #171717 !important;
  border-color: rgba(200, 169, 106, 0.42) !important;
}

.home .site-footer :where(p, span, address, .ast-footer-copyright) {
  color: #f5f5f5 !important;
  opacity: 1 !important;
}

.home .site-footer .ast-footer-copyright,
.home .site-footer .ast-footer-copyright p,
.home .site-footer .ast-small-footer-wrap {
  color: #f5f5f5 !important;
  opacity: 1 !important;
}

.home .site-footer a {
  color: #e2c98f !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.home .site-footer a:hover,
.home .site-footer a:focus-visible {
  color: #fff !important;
}

.home .vcv-back-to-top {
  position: fixed;
  z-index: 9998;
  left: 20px;
  bottom: 20px;
  display: inline-grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: var(--vcv-ink);
  background: var(--vcv-gold);
  border: 1px solid rgba(29, 29, 29, 0.24);
  border-radius: 50%;
  box-shadow: var(--vcv-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
    background-color 0.2s ease;
}

.home .vcv-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.home .vcv-back-to-top:hover {
  color: var(--vcv-ink);
  background: #e2c98f;
}

.home .vcv-back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Condomínios sem imagens genéricas que possam sugerir locais incorretos. */
.home .vcv-condo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home .vcv-condo-card {
  display: block;
  height: 240px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(145deg, #1d1d1d, #353535);
  border: 1px solid rgba(200, 169, 106, 0.35);
  border-radius: var(--vcv-radius-md);
  box-shadow: var(--vcv-shadow-sm);
}

.home .vcv-condo-card:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--vcv-shadow-md);
}

.home .vcv-condo-card .vc-cond-card-overlay {
  position: relative;
  inset: auto;
  height: 100%;
  padding: 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.home .vcv-condo-card .vc-cond-card-overlay span {
  margin-top: 18px;
  color: #fff;
  font: 600 0.85rem 'Poppins', sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home .vcv-region__intro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.home .vcv-about-home__layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.home .vcv-about-home__portrait {
  margin: 0;
  overflow: hidden;
  border-radius: var(--vcv-radius-lg);
  box-shadow: var(--vcv-shadow-md);
}

.home .vcv-about-home__portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.home .vcv-about-home__content {
  text-align: left;
}

.home .vcv-about-home__content .vc-divider {
  margin-left: 0;
}

.home .vcv-about-home__credentials {
  color: var(--vcv-ink) !important;
  font-weight: 600;
}

.home .vcv-about-home__content > p:not(.vc-section-subtitle),
.home .vcv-region__intro > p:not(.vc-section-subtitle) {
  color: var(--vcv-ink-soft);
  line-height: 1.8;
}

.home .vcv-about-home__content .vcv-btn {
  margin-top: var(--vcv-space-3);
}

.home .vcv-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.home .vcv-feature {
  padding: 28px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--vcv-radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.home .vcv-feature svg {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  fill: none;
  stroke: #e2c98f;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home .vcv-feature h3 {
  min-height: 2.6em;
}

.home .vcv-owner-cta .vcv-actions {
  justify-content: center;
}

.home .vcv-map {
  max-width: 900px;
  margin: 32px auto 0;
  overflow: hidden;
  border-radius: var(--vcv-radius-lg);
  box-shadow: var(--vcv-shadow-sm);
}

.home .vcv-map iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* Movimento editorial: parallax leve no hero e revelação progressiva das seções. */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .home .vc-hero {
    background-position: center calc(50% + var(--vcv-parallax-y, 0px));
    background-size: auto calc(100% + 180px);
  }

  .home.vcv-motion-ready .vcv-reveal {
    opacity: 0;
    filter: blur(3px);
    transform: translate3d(0, 52px, 0) scale(0.985);
    transition: opacity 0.85s ease, filter 0.85s ease,
      transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .home.vcv-motion-ready .vcv-reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1023px) {
  .home #vcv-destaques-grid,
  .home .vc-destaques-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .vcv-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .vcv-condo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .vcv-about-home__layout {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 767px) {
  #masthead.site-header {
    position: sticky;
    z-index: 9997;
    top: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .admin-bar #masthead.site-header {
    top: 46px;
  }

  .home #masthead .site-branding {
    padding-block: 10px;
  }

  .home #masthead .custom-logo {
    max-height: 60px;
  }

  .home .vc-hero {
    min-height: 620px;
    padding: 48px 16px 56px;
  }

  .home .vcv-hero__content {
    text-align: center;
  }

  .home .vcv-actions {
    justify-content: center;
  }

  .home #vcv-destaques-grid,
  .home .vc-destaques-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home .vc-section {
    padding-inline: 16px;
  }

  .home .vc-cta-prop {
    padding: 40px 20px;
  }

  .home .vc-cta-prop .vc-btn,
  .home .vc-cta-prop .vc-whatsapp-cta {
    width: 100%;
    margin: 6px 0 !important;
  }

  .home .vcv-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .home .vcv-condo-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home .vcv-about-home__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .home .vcv-about-home__portrait {
    max-width: 360px;
    margin-inline: auto;
  }

  .home .vcv-about-home__content {
    text-align: center;
  }

  .home .vcv-about-home__content .vc-divider {
    margin-inline: auto;
  }

  .home .vcv-section {
    padding-block: 56px;
  }

  .home .vcv-back-to-top {
    left: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .vc-hero {
    --vcv-parallax-y: 0px !important;
  }

  .home *,
  .home *::before,
  .home *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
