/* =====================================================================
   LP — DIREITO IMOBILIÁRIO (templates/template-lp-imobiliario.php)
   Carregado só nesta página, por cima de theme.css (fonte Sora, marquee,
   rodapé e widget do WhatsApp vêm de lá). Todas as classes usam o prefixo
   .lpi- para não colidir com o resto do tema.

   Paleta: faixas alternadas dourado → off-white (pedido do cliente), com
   navy como cor de texto/contraste. Sobre o dourado, o texto é navy (e não
   branco como na LP de Revisão de Contratos): branco sobre #C2A46D fica
   abaixo do contraste mínimo de leitura; navy passa de 5:1.
   ===================================================================== */

:root {
  --lpi-gold: var(--gold);
  --lpi-gold-light: oklch(from var(--gold) calc(l + 0.12) calc(c * 0.7) h);
  --lpi-gold-dark: oklch(from var(--gold) calc(l - 0.07) c h);
  /* Dourado para TEXTO sobre off-white/branco (o dourado da marca fica
     claro demais para leitura em fundo claro). */
  --lpi-gold-deep: oklch(from var(--gold) calc(l - 0.22) c h);
  --lpi-cream: var(--gray);
  --lpi-navy: var(--navy);
  --lpi-navy-deep: var(--navy-graphite-2);
  --lpi-ink-soft: oklch(from var(--navy) l c h / 0.86);
  --lpi-ink-muted: oklch(from var(--navy) l c h / 0.68);
  --lpi-line: oklch(from var(--navy) l c h / 0.12);
  --lpi-green: #1A8A2E;

  --lpi-shadow: 0 1px 2px oklch(from var(--navy) l c h / 0.06), 0 14px 34px -16px oklch(from var(--navy) l c h / 0.3);
  --lpi-shadow-lg: 0 32px 64px -28px oklch(from var(--navy) l c h / 0.45);
  --lpi-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------------
   1. Faixas e estrutura
   --------------------------------------------------------------------- */
.lpi-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 9vw, 124px) 0;
}
.lpi-section > .container {
  position: relative;
  z-index: 1;
}

/* Dourado com dois brilhos suaves (claro no alto à direita, mais escuro
   embaixo à esquerda) e uma trama de pontos que some nas bordas. */
.lpi-band--gold {
  background:
    radial-gradient(900px 520px at 88% -8%, oklch(from var(--lpi-gold-light) l c h / 0.9), transparent 62%),
    radial-gradient(760px 480px at -6% 108%, oklch(from var(--lpi-gold-dark) l c h / 0.75), transparent 60%),
    var(--lpi-gold);
  color: var(--lpi-navy);
}
.lpi-band--gold::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 100% 0%, #000, transparent 70%), radial-gradient(ellipse 45% 55% at 0% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 60% at 100% 0%, #000, transparent 70%), radial-gradient(ellipse 45% 55% at 0% 100%, #000, transparent 70%);
}

.lpi-band--cream {
  background:
    radial-gradient(820px 480px at 0% 0%, #fff, transparent 65%),
    var(--lpi-cream);
  color: var(--lpi-navy);
}

/* ---------------------------------------------------------------------
   2. Tipografia e cabeçalhos de seção
   --------------------------------------------------------------------- */
.lpi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lpi-gold-deep);
}
/* Losango: eco do ✦ que separa as linhas no logo da marca. */
.lpi-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: currentColor;
  transform: rotate(45deg);
}
.lpi-band--gold .lpi-eyebrow { color: var(--lpi-navy); }

.lpi-title {
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--lpi-navy);
  text-wrap: balance;
}
.lpi-sub {
  margin-top: 16px;
  max-width: 60ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--lpi-ink-soft);
  text-wrap: pretty;
}

.lpi-head { margin-bottom: clamp(40px, 5vw, 64px); }
.lpi-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px 64px;
  align-items: end;
}
.lpi-head--split .lpi-sub { margin-top: 0; }
/* Cabeçalho com barra (Serviços): eyebrow sem losango, título com barra
   dourada à esquerda e texto ao lado com o fim em negrito. */
.lpi-head--bar { align-items: center; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
/* Textura de fundo da seção Serviços (cover, opacidade baixa). */
#servicos { position: relative; isolation: isolate; }
#servicos::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../images/0-geral/textura-servicos-lp-imobiliario-leve.webp') center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
/* Bordas escurecendo suavemente, sem gradiente no meio. */
#servicos::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, oklch(from var(--navy) l c h / 0.28) 0%, transparent 30%, transparent 70%, oklch(from var(--navy) l c h / 0.28) 100%),
    linear-gradient(90deg, oklch(from var(--navy) l c h / 0.2) 0%, transparent 24%, transparent 76%, oklch(from var(--navy) l c h / 0.2) 100%);
  pointer-events: none;
}
/* Linha separando o cabeçalho dos cards. */
.lpi-head--bar {
  padding-bottom: clamp(28px, 3.5vw, 40px);
  border-bottom: 1px solid var(--navy);
}
.lpi-head--bar .lpi-eyebrow { margin-bottom: 12px; color: var(--lpi-navy); }
.lpi-head--bar .lpi-eyebrow::before { display: none; }
.lpi-head--bar .lpi-title {
  padding-left: 18px;
  border-left: 4px solid var(--gold);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
}
.lpi-head--bar .lpi-sub strong { font-weight: 700; color: var(--lpi-navy); }

/* ---------------------------------------------------------------------
   3. Botões
   --------------------------------------------------------------------- */
.lpi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s var(--lpi-ease), color 0.3s var(--lpi-ease), border-color 0.3s var(--lpi-ease), box-shadow 0.3s var(--lpi-ease), transform 0.3s var(--lpi-ease);
}
.lpi-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s var(--lpi-ease);
}
.lpi-btn:hover { transform: translateY(-2px); }
.lpi-btn:active { transform: translateY(0) scale(0.98); }

/* WhatsApp: verde por padrão e navy no hover, igual ao resto do site. */
.lpi-btn--wpp {
  background: var(--lpi-green);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(26, 138, 46, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.lpi-btn--wpp:hover {
  background: var(--lpi-navy);
  color: #fff;
  box-shadow: 0 14px 30px -12px oklch(from var(--navy) l c h / 0.6);
}

/* Faixa marquee (estilo base em theme.css): losangos dourados. */
/* Faixa um pouco mais alta na LP. */
.lpi-marquee.marquee-strip { padding: 24px 0; }
.lpi-marquee .marquee-strip__dot {
  color: var(--lpi-gold);
  font-size: 9px;
}
/* Cabeçalho com barra sobre a banda dourada: barra, linha e texto navy. */
#situacao .lpi-head--bar .lpi-title { border-left-color: var(--lpi-navy); }
#situacao .lpi-head--bar .lpi-sub { color: var(--lpi-navy); }

/* ---------------------------------------------------------------------
   6. Serviços
   --------------------------------------------------------------------- */
.lpi-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.lpi-service {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 24px 26px;
  border: 1px solid oklch(from var(--navy) l c h / 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--lpi-shadow);
  transition: transform 0.45s var(--lpi-ease), box-shadow 0.45s var(--lpi-ease);
}
/* Barra navy → dourado que cresce no topo ao passar o mouse. */
.lpi-service::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lpi-navy), var(--lpi-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--lpi-ease);
}
.lpi-service::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  z-index: -1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, oklch(from var(--gold) l c h / 0.3), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--lpi-ease);
}
.lpi-service:hover {
  box-shadow: var(--lpi-shadow-lg);
  transform: translateY(-6px);
}
.lpi-service:hover::before { transform: scaleX(1); }
.lpi-service:hover::after { opacity: 1; }
.lpi-service__num {
  position: absolute;
  top: 24px;
  right: 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: oklch(from var(--navy) l c h / 0.3);
}
.lpi-service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--gold);
  color: #fff;
  transition: background 0.4s var(--lpi-ease), color 0.4s var(--lpi-ease), transform 0.4s var(--lpi-ease);
}
.lpi-service:hover .lpi-service__icon {
  background: var(--lpi-navy);
  color: #fff;
  transform: rotate(-6deg);
}
.lpi-service__title {
  margin-bottom: 10px;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--lpi-navy);
}
.lpi-service__text {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--lpi-ink-muted);
}

.lpi-ctabar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 64px;
  margin-top: 28px;
  padding: 22px 22px 22px 32px;
  border-radius: 22px;
  background: var(--lpi-navy);
  color: #fff;
  box-shadow: var(--lpi-shadow-lg);
}
.lpi-ctabar__text {
  display: flex;
  flex: 1 1 320px;
  min-width: 0;
  max-width: 680px;
  flex-direction: column;
  gap: 10px;
}
/* Texto quebra em linhas e o botão fica sempre à direita (no desktop). */
.lpi-ctabar > .lpi-btn { flex-shrink: 0; }
.lpi-ctabar__text strong { font-size: 18px; }
.lpi-ctabar__text span { font-size: 15px; color: rgba(255, 255, 255, 0.74); }

/* ---------------------------------------------------------------------
   12. Entrada em sequência dos cards (ativada pelo JS)
   --------------------------------------------------------------------- */
/* Usa a propriedade "translate" (e não "transform") para não brigar com o
   efeito de hover dos cards, que usa transform. */
.lpi-js [data-lpi-stagger]:not(.is-in) > * { opacity: 0; }
.lpi-js [data-lpi-stagger].is-in > * {
  animation: lpi-stagger-in 0.8s var(--lpi-ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes lpi-stagger-in {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lpi-js [data-lpi-stagger].is-in > * {
    animation: none !important;
  }
  .lpi-js [data-lpi-stagger] > * { opacity: 1 !important; }
  .lpi-btn:hover,
.lpi-service:hover { transform: none; }
}

/* ---------------------------------------------------------------------
   14. Responsivo
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .lpi-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .lpi-head--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .lpi-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {

  .lpi-ctabar .lpi-btn { width: 100%; }
  .lpi-btn { white-space: normal; text-align: center; }

  .lpi-services { grid-template-columns: minmax(0, 1fr); }
  .lpi-ctabar { padding: 22px; }
}

/* =====================================================================
   15. Hierarquia de fontes e botões no padrão do site
   Tamanhos da escala da marca (inst/typography.css) aplicados como nas
   outras páginas: H1 44px, H2 36px, H3 24px, título de card 18px, texto
   16px, texto de card 14px, rótulo 13px, botão 16px. No celular (≤640px),
   igual ao institucional: H1 32px, H2 26px, H3 20px, texto 15px, rótulo
   11px. Fonte: Sora (a mesma do site, herdada de theme.css).
   ===================================================================== */
:root {
  --lpi-fs-h1: 2.75rem;     /* 44px */
  --lpi-fs-h2: 2.25rem;     /* 36px */
  --lpi-fs-h3: 1.5rem;      /* 24px */
  --lpi-fs-card: 1.125rem;  /* 18px — títulos de card */
  --lpi-fs-lead: 1.125rem;  /* 18px — parágrafo de abertura do topo */
  --lpi-fs-body: 1rem;      /* 16px */
  --lpi-fs-small: 0.875rem; /* 14px — texto de card, selos */
  --lpi-fs-micro: 0.75rem;  /* 12px */
  --lpi-fs-eyebrow: 0.8125rem; /* 13px */
}
.lpi-title { font-size: var(--lpi-fs-h2); line-height: 1.15; letter-spacing: -0.01em; }

.lpi-service__title,
.lpi-ctabar__text strong { font-size: var(--lpi-fs-card); line-height: 1.3; }
.lpi-sub { font-size: var(--lpi-fs-body); line-height: 1.6; }

.lpi-service__text,
.lpi-ctabar__text span { font-size: var(--lpi-fs-small); }
.lpi-service__num { font-size: var(--lpi-fs-micro); }

.lpi-eyebrow { font-size: var(--lpi-fs-eyebrow); font-weight: 600; letter-spacing: 0.16em; }

/* Botões: WhatsApp verde com borda branca e navy no hover; secundário
   transparente com borda da cor do texto (igual a .btn--secondary). */
.lpi-btn {
  min-height: 0;
  padding: 13px 26px;
  gap: 8px;
  border-width: 1px;
  font-size: var(--lpi-fs-body);
  font-weight: 600;
  line-height: 1;
}
.lpi-btn:hover { transform: none; }
.lpi-btn:active { transform: scale(0.97); }
.lpi-btn--wpp {
  background: #1A8A2E;
  border-color: #fff;
  color: #fff;
  box-shadow: none;
}
.lpi-btn--wpp:hover {
  background: var(--lpi-navy);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(0, 21, 64, 0.45);
}
/* No card navy do CTA final, o hover navy sumia no fundo: vira dourado. */
.lpi-ctabar .lpi-btn--wpp:hover {
  color: #fff;
  background: var(--gold);
  border-color: #fff;
}

/* 8 serviços: 4 colunas → 2 → 1 (evita linha incompleta com 3 colunas). */
@media (max-width: 1100px) {
  .lpi-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root {
    --lpi-fs-h1: 2rem;        /* 32px */
    --lpi-fs-h2: 1.625rem;    /* 26px */
    --lpi-fs-h3: 1.25rem;     /* 20px */
    --lpi-fs-lead: 1rem;      /* 16px */
    --lpi-fs-body: 0.9375rem; /* 15px */
    --lpi-fs-eyebrow: 0.6875rem; /* 11px */
  }
  .lpi-btn { font-size: 1rem; }
  .lpi-services { grid-template-columns: minmax(0, 1fr); }
}

/* Hero: foto em cover, véu dourado na esquerda, 2 colunas 55/45 (a da
   direita vazia) e altura de quase uma tela no computador. */
.lpi-hero-topo { position: relative; }
.lpi-hero-topo__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.lpi-hero-topo__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, oklch(from var(--gold) l c h / 0.56) 0%, oklch(from var(--gold) l c h / 0.42) 36%, oklch(from var(--gold) l c h / 0.2) 56%, transparent 76%);
}
.lpi-hero-topo > .solucoes-hero__content { position: relative; z-index: 3; }
.lpi-hero-topo__split {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--space-8);
  align-items: center;
}
.lpi-hero-topo__split .solucoes-hero__title,
.lpi-hero-topo__split .solucoes-hero__text { max-width: 100%; }
.lpi-hero-topo__brand {
  display: flex;
  margin-bottom: var(--space-4);
}
.lpi-hero-topo__brand img { width: auto; height: 90px; }
/* Logo recolorida sobre a foto: a própria imagem vira máscara (mask-image)
   de camadas com cor chapada — monograma KF em dourado e nome/traço/
   subtítulo em branco. A <img> original fica invisível só para dar o
   tamanho e o texto alternativo. */
.lpi-hero-topo__logo { position: relative; display: inline-block; line-height: 0; }
.lpi-hero-topo__logo > img { opacity: 0; }
.lpi-hero-topo__logo-mono,
.lpi-hero-topo__logo-nome {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--lpi-logo) center / 100% 100% no-repeat;
          mask: var(--lpi-logo) center / 100% 100% no-repeat;
  pointer-events: none;
}
.lpi-hero-topo__logo-mono { background: var(--gold); clip-path: inset(0 76.5% 0 0); }
.lpi-hero-topo__logo-nome { background: #fff; clip-path: inset(0 0 0 23.5%); }
.lpi-hero-topo .solucoes-hero__title { font-size: clamp(2rem, 6vw, 2.875rem); line-height: 1.25; }
/* Padding em cima/embaixo do Hero acompanha a tela: ~74px no celular até
   ~125px em telas grandes. */
.lpi-hero-topo.solucoes-hero { padding: clamp(84px, 9vw, 140px) 0; }
@media (min-width: 861px) {
  .lpi-hero-topo.solucoes-hero {
    display: flex;
    align-items: center;
    /* Hero + faixa ocupam a tela inteira (faixa ~76px). */
    min-height: calc(100vh - 76px);
  }
  .lpi-hero-topo > .solucoes-hero__content { width: 100%; }
}
@media (max-width: 860px) {
  .lpi-hero-topo__split { grid-template-columns: 1fr; }
  .lpi-hero-topo__col--empty { display: none; }
  .lpi-hero-topo__brand { justify-content: center; }
  .lpi-hero-topo__brand img { height: 64px; }
  .lpi-hero-topo__veil { background: oklch(from var(--gold) l c h / 0.75); }
}

/* "Por Que Nos Escolher" — faixa dourada com foto (título, divisor com
   balança e texto centralizados) e 3 cards brancos avançando sobre o
   fundo creme abaixo. Os cards sobem por cima da faixa com margem
   negativa; o fundo da seção embaixo é o mesmo creme do Sobre. */
.lpi-porque {
  position: relative;
  padding-bottom: clamp(40px, 4.5vw, 64px);
  background: var(--gray);
}
.lpi-porque__band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(88px, 9.5vw, 128px) 0 clamp(270px, 27vw, 350px);
  color: #fff;
}
.lpi-porque__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Véu dourado sobre a foto + bordas levemente escurecidas. */
.lpi-porque__band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, oklch(from var(--navy) l c h / 0.18) 0%, transparent 30%, transparent 70%, oklch(from var(--navy) l c h / 0.12) 100%),
    linear-gradient(90deg, oklch(from var(--navy) l c h / 0.14) 0%, transparent 22%, transparent 78%, oklch(from var(--navy) l c h / 0.14) 100%),
    oklch(from #C2A46D l c h / 0.9);
  pointer-events: none;
}
.lpi-porque__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lpi-porque__title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.lpi-porque__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 620px);
  margin: 22px 0;
  color: #fff;
}
.lpi-porque__divider span {
  flex: 1;
  height: 1px;
  background: oklch(from #fff l c h / 0.85);
}
.lpi-porque__divider svg { flex-shrink: 0; }
/* Selo da balança no meio do divisor: círculo com anel duplo. */
.lpi-porque__seal {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: oklch(from var(--navy) l c h / 0.9);
  box-shadow: 0 0 0 6px oklch(from #fff l c h / 0.18);
  color: #fff;
}
.lpi-porque__text {
  max-width: 660px;
  font-size: var(--lpi-fs-lead, 18px);
  line-height: 1.6;
  color: #fff;
  text-wrap: pretty;
}

/* Cards: ícone em medalhão navy "pendurado" no topo, número grande
   vazado ao fundo, barra lateral navy → dourado e o card do meio um
   pouco mais alto para quebrar a linha reta. */
.lpi-porque__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  max-width: 1160px;
  margin: calc(-1 * clamp(210px, 21vw, 280px)) auto 0;
  padding-top: 52px;
}
.lpi-porque__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 88px 28px clamp(74px, 7vw, 92px);
  border: 1px solid oklch(from var(--navy) l c h / 0.1);
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 48px -26px oklch(from var(--navy) l c h / 0.5);
  transition: transform 0.45s var(--lpi-ease), box-shadow 0.45s var(--lpi-ease);
}
.lpi-porque__card:nth-child(2) { transform: translateY(-22px); }
/* Barra lateral navy → dourado. Ocupa o card inteiro com o mesmo
   arredondamento e é recortada numa faixa de 6px à esquerda: assim, no
   hover (faixa de cima a baixo), ela acompanha a curva dos cantos. */
.lpi-porque__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--navy), var(--gold));
  clip-path: inset(22px calc(100% - 6px) 22px 0 round 0 6px 6px 0);
  transition: clip-path 0.45s var(--lpi-ease);
  pointer-events: none;
}
.lpi-porque__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 60px -28px oklch(from var(--navy) l c h / 0.6);
}
.lpi-porque__card:nth-child(2):hover { transform: translateY(-30px); }
.lpi-porque__card:hover::before { clip-path: inset(0 calc(100% - 6px) 0 0 round 0); }
/* Medalhão do ícone, metade para fora do card. */
.lpi-porque__icon {
  position: absolute;
  top: -52px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 6px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), color-mix(in oklch, var(--navy), #000 25%));
  box-shadow: 0 0 0 1.5px var(--gold), 0 14px 28px -12px oklch(from var(--navy) l c h / 0.7);
  color: #fff;
  transform: translateX(-50%);
  transition: background 0.45s var(--lpi-ease), transform 0.45s var(--lpi-ease);
}
.lpi-porque__card:hover .lpi-porque__icon {
  background: linear-gradient(145deg, var(--gold), color-mix(in oklch, var(--gold), #000 18%));
  transform: translateX(-50%) rotate(-8deg);
}
.lpi-porque__card-title {
  position: relative;
  margin-bottom: 18px;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  text-wrap: balance;
}
/* Tracinho dourado sob o título. */
.lpi-porque__card-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 3px;
  background: var(--gold);
  transition: width 0.45s var(--lpi-ease);
}
.lpi-porque__card:hover .lpi-porque__card-title::after { width: 100px; }
.lpi-porque__card-text {
  position: relative;
  font-size: var(--lpi-fs-body, 16px);
  line-height: 1.6;
  color: var(--lpi-ink-soft);
  text-wrap: balance;
}
@media (max-width: 860px) {
  .lpi-porque__cards { grid-template-columns: minmax(0, 1fr); max-width: 460px; row-gap: 72px; }
  .lpi-porque__card:nth-child(2),
  .lpi-porque__card:nth-child(2):hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lpi-porque__card:hover,
  .lpi-porque__card:nth-child(2):hover { transform: none; }
  .lpi-porque__card:nth-child(2) { transform: translateY(-22px); }
}

/* Reveal de baixo para cima (lp-imobiliario.js → .lpi-rv / .is-in).
   Usa a propriedade "translate" (e não "transform") e animation (e não
   transition) para não brigar com os transforms/transitions de hover dos
   cards. */
.lpi-rv { opacity: 0; }
.lpi-rv.is-in { animation: lpi-rv-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--rv-d, 0s) both; }
@keyframes lpi-rv-in {
  from { opacity: 0; translate: 0 36px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lpi-rv { opacity: 1; }
  .lpi-rv.is-in { animation: none; }
}

/* Contato + mapa (componente do institucional): regras que no site
   institucional ficam em institucional.css / inst/colors.css, que a LP
   não carrega. O resto (form, select, mapa) já vem de theme.css. */
.contato-mapa-texture {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contato-mapa-texture::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background-image: url("../images/5-contato/textura-mesclada-lp-leve.webp") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
  opacity: 0.08 !important;
  pointer-events: none !important;
}
.contato-mapa-texture::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.19) 0%, transparent 22%, transparent 78%, rgba(0, 0, 0, 0.19) 100%) !important;
  pointer-events: none !important;
  opacity: 1 !important;
}
.contato-mapa-texture > .container {
  position: relative;
  z-index: 2;
}
.contato-mapa-texture .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.contato-mapa-texture .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.contato-mapa-texture .field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.contato-mapa-texture .form-card { padding: var(--space-4); }
.contato-mapa-texture .form-contato { gap: var(--space-3); }
.contato-mapa-texture .form-row { gap: var(--space-3); }
.contato-mapa-grid--light .form-recaptcha-note { color: var(--navy-950) !important; }
.contato-mapa-texture .mapa-wrapper { border-color: oklch(from var(--navy-950) l c h / 0.4) !important; }
.contato-mapa-texture .select-custom__trigger { min-height: 48px; }
/* Botão Enviar: no institucional .btn--primary é navy (institucional.css). */
.contato-mapa-texture .form-contato .btn--primary {
  background: var(--navy-950);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.contato-mapa-texture .form-contato .btn--primary:hover {
  background: color-mix(in oklch, var(--navy-950), #000 18%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 20px -6px rgba(0, 21, 64, 0.45);
}

/* "Quem Somos" copiado da Home institucional: .qs-section/.keren-band--cream
   já vêm de theme.css; aqui só as regras que no institucional ficam em
   institucional.css (não carregado na LP) — eyebrow com ponto e botão. */
@media (min-width: 961px) {
  #sobre.qs-section { padding: 80px 0; }
}
/* Fundo do Sobre igual ao de Serviços: textura a 8% + bordas escurecendo
   em navy. theme.css zera ::before/::after de .keren-band--cream com
   !important, por isso o !important aqui. */
#sobre.qs-section::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../images/0-geral/textura-servicos-lp-imobiliario-leve.webp') center / cover no-repeat !important;
  opacity: 0.08 !important;
  pointer-events: none;
}
#sobre.qs-section::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, oklch(from var(--navy) l c h / 0.28) 0%, transparent 30%, transparent 70%, oklch(from var(--navy) l c h / 0.28) 100%),
    linear-gradient(90deg, oklch(from var(--navy) l c h / 0.2) 0%, transparent 24%, transparent 76%, oklch(from var(--navy) l c h / 0.2) 100%) !important;
  opacity: 1 !important;
  pointer-events: none;
}
#sobre.qs-section > .container { position: relative; z-index: 1; }
/* Cards do "Por Que Nos Escolher" invadindo a Bio: a parte de baixo da
   seção deles fica transparente e o fundo da Bio (com textura) sobe
   360px por trás, sem mudar a posição do conteúdo da Bio. Só no desktop
   — no celular os cards empilhados são altos demais para isso. */
@media (min-width: 961px) {
  .lpi-porque { z-index: 2; background: transparent; }
  #sobre.qs-section {
    z-index: 1;
    margin-top: -360px;
    padding-top: calc(80px + 360px);
  }
}
#sobre .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
#sobre .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy-black);
  flex-shrink: 0;
}
#sobre .qs-content__cta.btn--whatsapp,
#sobre .qs-content__cta.btn--whatsapp:hover {
  padding: 13px 26px !important;
  gap: 8px;
  border-width: 1px !important;
  border-radius: var(--radius-pill) !important;
  transform: none !important;
}
#sobre .solucoes-hero__btn-icon { width: 18px; height: 18px; }
/* Hover dos botões de WhatsApp igual ao institucional: theme.css pinta o
   hover com var(--navy-950), que só é definida nas páginas institucionais
   (critical-institucional.php) — sem ela o fundo ficava transparente. */
:root { --navy-950: #1F355E; }
.lpi-hero-topo .solucoes-hero__btn.btn--whatsapp:hover { box-shadow: 0 8px 20px -6px rgba(0, 21, 64, 0.45); }

/* =====================================================================
   Mobile — mesma hierarquia de fontes da primeira LP (Revisão de
   Contratos, theme.css seções 12 e 12.5). Só telas ≤900px / ≤480px:
   Hero título 24px (19px ≤480), texto 16px (15px ≤480), selos 13px;
   título de seção 30px; rótulo 14px; texto de seção 16px; título de
   card 18px; texto de card 14px; faixa 18px de respiro (14px ≤480).
   ===================================================================== */
@media (max-width: 900px) {
  /* Hero */
  .lpi-hero-topo.solucoes-hero { padding: 70px 0; min-height: 0; }
  .lpi-hero-topo .solucoes-hero__title { font-size: 24px; line-height: 1.3; }
  .lpi-hero-topo .solucoes-hero__text { font-size: 16px; }
  .lpi-hero-topo__split { grid-template-columns: 1fr; }
  .lpi-hero-topo__col--empty { display: none; }
  .lpi-hero-topo__brand { justify-content: center; }
  .lpi-marquee.marquee-strip { padding: 18px 0; }

  /* Cabeçalhos de seção (Serviços) centralizados */
  .lpi-head--split,
  .lpi-head--bar { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .lpi-head--bar .lpi-title { padding-left: 0; border-left: 0; }
  .lpi-eyebrow { font-size: 14px; justify-content: center; }
  .lpi-title,
  .lpi-porque__title { font-size: 30px; line-height: 1.3; }
  .lpi-sub,
  .lpi-porque__text { font-size: 16px; }

  /* Cards de serviço centralizados */
  .lpi-service { text-align: center; }
  .lpi-service__icon { margin-left: auto; margin-right: auto; }
  .lpi-service__title,
  .lpi-porque__card-title { font-size: 18px; line-height: 1.3; }
  .lpi-service__text,
  .lpi-porque__card-text { font-size: 14px; }

  /* Faixa azul abaixo dos cards */
  .lpi-ctabar { flex-direction: column; align-items: stretch; text-align: center; }
  .lpi-ctabar__text { flex-basis: auto; max-width: none; }
  .lpi-ctabar__text strong { font-size: 18px; }
  .lpi-ctabar__text span { font-size: 14px; }
  .lpi-ctabar > .lpi-btn { width: 100%; justify-content: center; }

  /* Rótulos das seções copiadas do institucional */
  .contato-mapa-texture .eyebrow { font-size: 14px; }
  #sobre .eyebrow { font-size: 12px; }
}
@media (max-width: 480px) {
  .lpi-hero-topo.solucoes-hero { padding: 56px 0; }
  /* Mesmo espaço entre logo, título, texto, selos e botão. */
  .lpi-hero-topo__col:not(.lpi-hero-topo__col--empty) { display: flex; flex-direction: column; align-items: center; gap: 22px; }
  .lpi-hero-topo__col > * { margin-top: 0 !important; margin-bottom: 0 !important; }
  .lpi-hero-topo .solucoes-hero__title { font-size: 19px; }
  .lpi-hero-topo .solucoes-hero__text { font-size: 14px; }
  .lpi-hero-topo__brand img { height: 44px; }
  /* Selos menores, lado a lado numa linha só. */
  .lpi-hero-topo .qshero-badges { flex-wrap: nowrap; gap: 6px; }
  .lpi-hero-topo .qshero-badge { font-size: 10.5px; padding: 6px 8px; gap: 4px; white-space: nowrap; }
  .lpi-hero-topo .qshero-badge svg { width: 12px; height: 12px; flex-shrink: 0; }
  .lpi-marquee.marquee-strip { padding: 14px 0; }
}

/* Rodapé no celular (este CSS só carrega na LP, então não afeta o rodapé
   da primeira LP): menos respiro entre blocos, títulos menores e ícone
   em linha com o texto (o endereço quebrava com o ícone solto ao lado). */
@media (max-width: 560px) {
  .site-footer .footer-grid { gap: 36px; padding-top: 48px; padding-bottom: 36px; }
  .site-footer .footer-brand__logo { width: 200px; max-width: 70%; }
  .site-footer .footer-col-title { font-size: 20px; margin-bottom: 14px; }
  .site-footer .footer-links { gap: 12px; }
  .site-footer .footer-links a,
  .site-footer .footer-links span { font-size: 15px; }
  .site-footer .footer-contact-item { display: block; text-align: center; line-height: 1.5; }
  .site-footer .footer-contact-item svg { display: inline-block; margin-right: 6px; vertical-align: -2px; }
  .site-footer .footer-contact-item__text { display: inline; }
}