/* ============================================================
   O TERRENO — Landing Page Incorporadores
   Complementa style.css (variáveis, botões, formulários, FAQ)
   ============================================================ */

/* ── Header da LP: wordmark OTERRENO branco (sem glow) ─────
   Escopo .lp-body: vale SO na LP. O site principal mantem a logo OTR original. */
.lp-body #header .header-logo img { height: 64px; filter: brightness(0); }   /* ao rolar (header branco): escura */
.lp-body #header.header--top .header-logo img { filter: brightness(1); }     /* sobre o hero: branca */
@media (max-width: 768px) {
  .lp-body #header .header-logo img { height: 40px; }
}

/* ── Hero ────────────────────────────────────────────────── */
.lp-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 180px 0 var(--s8);
  position: relative;
  overflow: hidden;
  background-color: #0C2118;
}

/* Imagem em preto e branco, com os mesmos véus escuros do hero principal */
.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.52), rgba(0,0,0,0.52)),
    linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 55%),
    linear-gradient(to right, rgba(0,0,0,0.35) 0%, transparent 55%),
    url('../assets/img/o_terreno_hero.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Monocromático com temperatura verde — elegância do P&B com a assinatura da marca */
  filter: grayscale(1) sepia(0.25) hue-rotate(100deg);
}

.lp-hero .container {
  position: relative;
  z-index: 1;
}

.lp-hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.lp-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: var(--s4);
  text-wrap: balance;
}

/* Destaque suave atrás das letras — mesmo efeito do hero principal */
.lp-h1-bg {
  background: rgba(255,255,255,0.07);
  padding: 4px 14px;
  border-radius: 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lp-hero-sub {
  color: var(--white);
  max-width: 640px;
  margin: 0 auto var(--s4);
  text-wrap: pretty;
}

/* Chips de produto */
.lp-hero-products {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s5);
}
.lp-hero-products li {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 8px 18px;
  white-space: nowrap;
}

.lp-hero-ctas {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}

.lp-hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--s6);
  flex-wrap: wrap;
  padding-top: var(--s4);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.lp-hero-stats li {
  font-size: 0.9375rem;
  color: var(--white);
}
.lp-hero-stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--white);
}

/* ── Botão sólido da LP (verde, sem animação) ────────────── */
.lp-btn-solid {
  background: var(--green-700);
  color: var(--white);
}
.lp-btn-solid:hover,
.lp-btn-solid:focus-visible { background: var(--green-600); color: var(--white); }
.lp-btn-solid:active        { background: var(--green-800); }

/* No hero (fundo escuro), botão claro para contraste */
.lp-hero .lp-btn-solid {
  background: var(--white);
  color: var(--green-900);
}
.lp-hero .lp-btn-solid:hover,
.lp-hero .lp-btn-solid:focus-visible { background: var(--green-100); color: var(--green-900); }

/* ── Seções ──────────────────────────────────────────────── */
.lp-section { padding: var(--s9) 0; }
.lp-section--alt  { background: var(--gray-50); }
.lp-section--dark { background: var(--green-900); }
.lp-section--dark p { color: var(--white); }

.lp-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--s7);
}
.lp-section-header--wide { max-width: 900px; }
.lp-section-header h2 { text-wrap: balance; }
.lp-section-header p { margin-top: var(--s2); color: var(--gray-500); }
.lp-section--dark .lp-section-header p { color: var(--white); }

/* ── Trust strip (garantias do formulário) ──────────────── */
.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  margin-bottom: var(--s4);
}
.lp-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-700);
}
.lp-trust li::before {
  content: "✓";
  color: var(--green-500);
  font-weight: 800;
}

/* ── Cards de dados da região ────────────────────────────── */
.lp-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}
.lp-data-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--s4);
}
.lp-data-card .lp-data-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-accent);
  margin-bottom: var(--s2);
}
.lp-data-card h3 {
  color: var(--white);
  font-size: 1.0625rem;
  margin-bottom: var(--s1);
}
.lp-data-card p { font-size: 0.9375rem; line-height: 1.65; }

/* ── Notícias (prova social) ─────────────────────────────── */
.lp-news { margin-top: var(--s6); }

.lp-news-label {
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: var(--s4);
}

.lp-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  max-width: 980px;
  margin: 0 auto;
}

.lp-news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lp-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.lp-news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lp-news-body {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s3) var(--s4) var(--s4);
}
.lp-news-source {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
}
.lp-news-card h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--black);
}
.lp-section--dark .lp-news-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-500);
}
.lp-news-link {
  margin-top: var(--s1);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green-700);
}

/* ── Bloco "de fora do estado" ───────────────────────────── */
.lp-fora-estado {
  margin-top: var(--s6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  background: rgba(82,183,136,0.08);
  border: 1px solid rgba(82,183,136,0.25);
  border-left: 3px solid var(--green-accent);
  border-radius: var(--radius-lg);
  padding: var(--s5);
}
.lp-fora-estado h3 { color: var(--white); margin-bottom: var(--s2); }
.lp-fora-estado-text { max-width: 720px; }
.lp-fora-estado .btn { flex-shrink: 0; }

/* ── Casos (prova de resultado) ──────────────────────────── */
.lp-casos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
  max-width: 1000px;
  margin: 0 auto;
}
.lp-caso {
  flex: 1 1 280px;
  max-width: 320px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--green-accent);
  border-radius: var(--radius-lg);
  padding: var(--s4);
}
.lp-caso-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: var(--s2);
}
.lp-caso h3 {
  color: var(--white);
  font-size: 1.125rem;
  line-height: 1.35;
  margin-bottom: var(--s1);
}
.lp-caso-detail {
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: var(--s2);
}
.lp-caso-buyer {
  color: var(--white);
  font-size: 0.875rem;
  padding-top: var(--s2);
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* Variante clara dos casos (usada no site principal) */
.lp-casos--light .lp-caso {
  background: var(--white);
  border-color: var(--gray-100);
  border-left-color: var(--green-500);
  box-shadow: var(--shadow-sm);
}
.lp-casos--light .lp-caso-tag { color: var(--green-600); }
.lp-casos--light .lp-caso h3 { color: var(--black); }
.lp-casos--light .lp-caso-detail { color: var(--gray-700); }
.lp-casos--light .lp-caso-buyer { color: var(--gray-500); border-top-color: var(--gray-100); }

/* ── Entregas ────────────────────────────────────────────── */
.lp-entregas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.lp-entrega {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--s4);
}
.lp-entrega h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--s1);
  padding-left: var(--s2);
  border-left: 3px solid var(--green-500);
}
.lp-entrega p { font-size: 0.9375rem; line-height: 1.7; color: var(--gray-500); }

/* ── Passos ──────────────────────────────────────────────── */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.lp-step { text-align: center; }
.lp-step-num {
  width: 52px; height: 52px;
  margin: 0 auto var(--s3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  background: var(--green-700);
  border-radius: 50%;
}
.lp-step h3 { font-size: 1.125rem; margin-bottom: var(--s2); }
.lp-step p  { font-size: 0.9375rem; color: var(--gray-500); }

/* ── CTA final ───────────────────────────────────────────── */
.lp-final-cta {
  background: var(--green-900);
  text-align: center;
  padding: var(--s9) 0;
}
.lp-final-cta h2 { color: var(--white); margin-bottom: var(--s2); }
.lp-final-cta p {
  color: var(--white);
  max-width: 880px;
  margin: 0 auto var(--s5);
}
.lp-final-cta .lp-btn-solid {
  background: var(--white);
  color: var(--green-900);
}
.lp-final-cta .lp-btn-solid:hover,
.lp-final-cta .lp-btn-solid:focus-visible { background: var(--green-100); color: var(--green-900); }

/* ── Footer mínimo ───────────────────────────────────────── */
.lp-footer {
  background: var(--black);
  padding: var(--s6) 0;
}
.lp-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  text-align: center;
}
.lp-footer img { width: 150px; height: auto; }
.lp-footer p, .lp-footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}
.lp-footer a { color: rgba(255,255,255,0.75); }
.lp-footer a:hover { color: var(--white); }
.lp-footer-links { display: flex; gap: var(--s3); font-size: 0.8125rem; }

/* ── Barra fixa de CTA (mobile) ──────────────────────────── */
.lp-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  gap: var(--s1);
  padding: 10px var(--s2);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.lp-sticky-cta .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
}
.lp-sticky-cta .btn-whatsapp { flex: 0 0 auto; }

/* ── Voltar ao topo (desktop) ────────────────────────────── */
.lp-back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1050;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-700);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
}
.lp-back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lp-back-top:hover,
.lp-back-top:focus-visible { background: var(--green-600); }

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lp-data-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-entregas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .lp-hero { min-height: auto; padding: 150px 0 var(--s7); }
  .lp-news-grid { grid-template-columns: 1fr; }
  .lp-caso { max-width: none; }
  .lp-hero-stats { gap: var(--s4); }
  .lp-section { padding: var(--s7) 0; }
  .lp-data-grid { grid-template-columns: 1fr; }
  .lp-entregas-grid { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: 1fr; gap: var(--s6); }
  .lp-fora-estado { flex-direction: column; align-items: flex-start; }

  .lp-sticky-cta { display: flex; }
  .lp-body { padding-bottom: 76px; } /* espaço para a barra fixa */
  .lp-hero-ctas .btn { width: 100%; justify-content: center; }
  .lp-back-top { display: none; } /* mobile usa a barra fixa de CTA */
}
