/* Condomínios na Praia — rodapé compartilhado */
footer .ftr-main {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 56px 44px 36px;
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}
footer .ftr-col { min-width: 0; text-align: left; }
footer .ftr-col:not(:first-child),
footer .ftr-col:not(:first-child) a,
footer .ftr-col:not(:first-child) .ftr-tit { text-align: left; }
footer .ftr-main > .ftr-col:first-child {
  max-width: 340px;
}
footer .ftr-logo.ftr-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  max-width: 100%;
  margin: 0 0 18px;
  color: #fff;
  text-align: left;
  line-height: 1;
  font-size: inherit;
}
footer .ftr-brand-lockup .hero-brand-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .3em;
  line-height: 1;
  color: #f3e3bb;
}
footer .ftr-brand-lockup .hero-brand-line {
  display: block;
  width: 25px;
  height: 1px;
  background: #d5aa57;
  flex: 0 0 auto;
}
footer .ftr-brand-lockup .hero-brand-name {
  font-family: 'Fraunces', serif;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .92;
  color: #fff;
  white-space: nowrap;
}
footer .ftr-brand-lockup .hero-brand-underline {
  width: 58%;
  height: 8px;
  margin: 6px 0 1px;
  border-bottom: 3px solid #5aa6c7;
  border-radius: 50%;
  transform: rotate(-1.5deg);
}
footer .ftr-brand-lockup .hero-brand-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.2;
  color: #f3d585;
  white-space: nowrap;
}
footer .ftr-tag {
  max-width: 340px;
}
footer .ftr-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
footer .ftr-links-grid a {
  text-decoration: none;
}
@media (max-width: 900px) {
  footer .ftr-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding: 48px 24px 28px;
  }
  footer .ftr-main > .ftr-col:first-child {
    grid-column: 1 / -1;
    max-width: none;
  }
}
@media (max-width: 600px) {
  footer .ftr-main {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 44px 26px 24px;
  }
  footer .ftr-main > .ftr-col:first-child {
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  footer .ftr-logo.ftr-brand-lockup {
    align-items: center;
    margin: 0 auto 18px;
    text-align: center;
  }
  footer .ftr-brand-lockup .hero-brand-name {
    font-size: clamp(38px, 12vw, 52px);
  }
  footer .ftr-tag {
    margin-left: auto;
    margin-right: auto;
  }
  footer .ftr-col:not(:first-child),
  footer .ftr-col:not(:first-child) a,
  footer .ftr-col:not(:first-child) .ftr-tit { text-align: left !important; }
  footer .ftr-links-grid { grid-template-columns: 1fr; gap: 4px; }
}
@media (min-width: 901px) {
  footer .ftr-main > .ftr-col:not(:first-child) { padding-top: 4px; }
}
@media (min-width: 901px) {
  /* Mantém a marca dentro da primeira coluna e evita invadir Navegar/Descobrir. */
  footer .ftr-logo.ftr-brand-lockup .hero-brand-name {
    width: 100%;
    font-size: 32px;
    max-width: 100%;
  }
}
/* Condomínios na Praia — acabamento editorial compartilhado do WhatsApp */
footer .ftr-wpp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 11px 16px;
  background: #fffdf8;
  color: #0d4b62;
  border: 1px solid rgba(217,168,63,.48);
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(4,30,42,.12);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
footer .ftr-wpp svg { color: #0c4a6e; }
footer .ftr-wpp:hover {
  background: #f7eedf;
  border-color: #d9a83f;
  transform: translateY(-1px);
}
.mob-footer-nav .wpp-btn { color: #25d366 !important; }
.mob-footer-nav .wpp-btn .mob-footer-ico {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.mob-footer-nav .wpp-btn .mob-footer-ico svg {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 28px;
}
.mob-footer-nav .wpp-btn .mob-footer-lbl {
  display: block;
  white-space: nowrap;
}
@media (max-width: 600px) {
  footer .ftr-wpp {
    width: 100%;
    padding: 10px 14px;
    border-radius: 9px;
  }
}

/* Lockup da marca contido no rodapé mobile, sem corte horizontal. */
@media (max-width: 600px) {
  footer .ftr-logo.ftr-brand-lockup {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  footer .ftr-brand-lockup .hero-brand-name {
    max-width: 100%;
    font-size: clamp(26px, 8.5vw, 42px);
    line-height: .96;
    letter-spacing: -.06em;
    white-space: nowrap;
    text-align: center;
  }
  footer .ftr-brand-lockup .hero-brand-kicker,
  footer .ftr-brand-lockup .hero-brand-tagline {
    max-width: 100%;
    text-align: center;
  }
}


/* Navegação móvel: contraste legível e foco visível em fundos claros */
.mob-footer-nav .mob-footer-btn {
  color: #456575;
}
.mob-footer-nav .mob-footer-btn.active,
.mob-footer-nav .mob-footer-btn:hover,
.mob-footer-nav .mob-footer-btn:focus-visible {
  color: #0c4a6e;
}
.mob-footer-nav .mob-footer-btn:focus-visible {
  outline: 2px solid #d5aa57;
  outline-offset: -2px;
}

/* WhatsApp do cabeçalho: contato visível sem competir com a navegação */
.desk-header .dh-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fffdf8;
  color: #0d4b62;
  border: 1px solid rgba(217,168,63,.48);
  padding: 8px 13px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(13,75,98,.10);
  font-size: 11px;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.desk-header .dh-cta svg { color: #25d366; }
.desk-header .dh-cta:hover {
  background: #f7eedf;
  border-color: #d9a83f;
  box-shadow: 0 6px 16px rgba(13,75,98,.14);
  transform: translateY(-1px);
}


/* Onda de transição do rodapé — componente único e contido */
footer.page-footer,
footer:not(.cond-footer) {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
footer.page-footer > .ftr-wave,
footer:not(.cond-footer) > .ftr-wave {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  line-height: 0;
  transform: translateY(-99%);
  pointer-events: none;
  overflow: hidden;
}
footer.page-footer > .ftr-wave svg,
footer:not(.cond-footer) > .ftr-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}
footer.page-footer > .ftr-main,
footer.page-footer > .ftr-bottom,
footer:not(.cond-footer) > .ftr-main,
footer:not(.cond-footer) > .ftr-bottom {
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  footer.page-footer > .ftr-wave,
  footer:not(.cond-footer) > .ftr-wave {
    height: 34px;
  }
}

/* Base estrutural usada pelos templates dinâmicos de imóvel. */
footer.page-footer {
  margin-top: 70px;
  padding: 0;
  color: #fff;
  background: linear-gradient(160deg, #0c4a6e, #0e7490);
  font-family: 'Outfit', Arial, sans-serif;
}
footer.page-footer .ftr-tit {
  margin-bottom: 16px;
  color: #f3d585;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
footer.page-footer .ftr-links-grid a {
  display: block;
  padding: 7px 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}
footer.page-footer .ftr-links-grid a:hover { color: #fff; }
footer.page-footer .ftr-bottom {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 20px 44px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  color: rgba(255,255,255,.62);
  font-size: 11px;
}
footer.page-footer .ftr-bottom-r {
  color: #f3d585;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mob-footer-nav {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 900;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: content-box;
  background: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 -2px 16px rgba(13,59,84,.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.mob-footer-items {
  display: flex;
  align-items: stretch;
  width: min(680px, 100%);
  height: 100%;
  margin: 0 auto;
}
.mob-footer-btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 6px 2px 4px;
  color: #456575;
  background: transparent;
  border: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.mob-footer-btn .mob-footer-ico { display: block; font-size: 20px; line-height: 1; }
@media (max-width: 768px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .mob-footer-nav { display: block; }
}
@media (max-width: 600px) {
  footer.page-footer .ftr-main {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 44px 26px 24px;
  }
  footer.page-footer .ftr-main > .ftr-col:first-child {
    grid-column: auto;
    max-width: none;
    padding-bottom: 28px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    text-align: center;
  }
  footer.page-footer .ftr-bottom {
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px 26px;
    text-align: center;
  }
}


/* Mesmo acabamento da home aplicado às páginas de imóveis. */
footer.page-footer {
  background: linear-gradient(160deg, #0c4a6e, #0e7490);
  border-top: 4px solid #b78442;
}
footer.page-footer > .ftr-wave { display: none !important; }
footer.page-footer > .ftr-main { padding-top: 54px; }


/* O tema de parceiro é injetado globalmente; o rodapé institucional da home tem prioridade. */
html.marcos-selbach footer.page-footer {
  background: linear-gradient(160deg, #0c4a6e, #0e7490) !important;
  border-top: 4px solid #b78442 !important;
  color: #fff !important;
}
html.marcos-selbach footer.page-footer .ftr-links-grid a {
  color: rgba(255,255,255,.78) !important;
}
html.marcos-selbach footer.page-footer .ftr-links-grid a:hover {
  color: #fff !important;
}
html.marcos-selbach footer.page-footer .ftr-bottom {
  color: rgba(255,255,255,.62) !important;
}
