/* =========================================================
   Landing page /imoveis — Corretora Zeni Lima
   Usa as variáveis de /assets/style.css
   ========================================================= */

body.lp { padding-bottom: 76px; } /* espaço da barra fixa no celular */
@media (min-width: 900px) { body.lp { padding-bottom: 0; } }

/* Topo mínimo (sem menu) */
.lp-top { background: var(--ivory); border-bottom: 1px solid var(--line); }
.lp-top .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.lp-logo { height: 40px; width: auto; display: block; }
.lp-top .btn { min-height: 42px; padding: 8px 14px; font-size: 0.86rem; }
@media (max-width: 420px) { .lp-logo { height: 31px; } .lp-top .btn span { display: none; } }

/* Hero */
.lp-hero { background: var(--brown); color: var(--on-dark); position: relative; overflow: hidden; }
.lp-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border: 1px solid var(--line-dark); border-radius: 50%; pointer-events: none;
}
.lp-hero-grid {
  position: relative; z-index: 1; display: grid; gap: 26px; padding-top: 34px; padding-bottom: 48px;
  grid-template-areas: "title" "form" "checks";
}
.lp-hero .eyebrow { color: var(--champagne); }
.lp-hero .eyebrow::before { background: var(--champagne); }
.lp-hero h1 { color: var(--on-dark); font-size: clamp(2rem, 7.6vw, 3.3rem); margin-bottom: 14px; }
.lp-hero h1 em { font-style: italic; color: var(--champagne); }
.lp-hero .lead { color: var(--on-dark-muted); font-size: 1.05rem; margin: 0; max-width: 34em; }
.lp-title { grid-area: title; }
.lp-checks { grid-area: checks; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark); font-size: 1rem; }
.lp-checks li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
  background: var(--champagne); color: var(--brown);
}
.lp-form-wrap { grid-area: form; }
@media (min-width: 960px) {
  .lp-hero-grid {
    grid-template-columns: 1.1fr 0.9fr; grid-template-rows: auto 1fr; grid-template-areas: "title form" "checks form";
    gap: 30px 64px; padding-top: 64px; padding-bottom: 72px; align-items: start;
  }
  .lp-checks { align-self: start; }
}

/* Cartão do formulário */
.lp-card { background: var(--paper); color: var(--ink); border-radius: 6px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.45); overflow: hidden; }
.lp-card-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--ivory); }
.lp-card-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.lp-card-head strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.12rem; color: var(--brown); line-height: 1.2; }
.lp-card-head span { font-size: 0.8rem; color: var(--muted); }
#lead-form, .lp-success { padding: 20px; }
.lp-form-title { font-family: var(--serif); font-size: 1.3rem; color: var(--brown); margin: 0 0 14px; line-height: 1.2; }
.field { margin-bottom: 14px; }
.field label, .field .label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #b9b3a6; border-radius: var(--radius); appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a2c1d' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.field input:focus, .field select:focus { border-color: var(--brown); outline: 2px solid rgba(74,44,29,.18); outline-offset: 0; }
.field .invalid, .field input.invalid, .field select.invalid { border-color: #a12a1f; background-color: #fff7f5; }
.radios { display: flex; gap: 8px; }
.radios label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  border: 1px solid #b9b3a6; border-radius: var(--radius); background: #fff; font-weight: 600; font-size: 0.92rem; cursor: pointer; margin: 0;
}
.radios input { accent-color: var(--brown); margin: 0; }
.radios label:has(input:checked) { border-color: var(--brown); background: #f6ece1; color: var(--brown); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brown); flex: none; }
.consent.invalid { color: #a12a1f; }
.err { display: none; color: #a12a1f; font-size: 0.8rem; font-weight: 600; margin-top: 5px; }
.err.show { display: block; }
#lead-form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.lp-success { text-align: center; }
.lp-success .ok { width: 56px; height: 56px; margin: 6px auto 12px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; font-size: 1.6rem; }
.lp-success h3 { margin-bottom: 6px; }
.lp-success p { color: var(--muted); font-size: 0.95rem; }

/* Faixa de confiança */
.lp-trust { background: var(--brown-ink); color: var(--on-dark); }
.lp-trust .container { display: grid; grid-template-columns: 1fr 1fr; }
.lp-trust div { padding: 18px 12px; border-bottom: 1px solid var(--line-dark); }
.lp-trust div:nth-child(odd) { border-right: 1px solid var(--line-dark); padding-left: 0; }
.lp-trust div:nth-child(n+3) { border-bottom: 0; }
.lp-trust b { display: block; font-family: var(--serif); font-weight: 400; color: var(--champagne); font-size: 1.12rem; line-height: 1.2; overflow-wrap: anywhere; }
.lp-trust span { font-size: 0.78rem; color: var(--on-dark-muted); }
@media (min-width: 900px) {
  .lp-trust .container { grid-template-columns: repeat(4, 1fr); }
  .lp-trust div { border-bottom: 0; border-right: 1px solid var(--line-dark); padding: 24px 22px; }
  .lp-trust div:nth-child(odd) { padding-left: 22px; }
  .lp-trust div:first-child { padding-left: 0; }
  .lp-trust div:last-child { border-right: 0; }
}

/* Seções da LP */
.lp-section { padding: 64px 0; }
.lp-sand { background: var(--sand); }
.lp-center { text-align: center; margin-left: auto; margin-right: auto; }
.lp-center .eyebrow { justify-content: center; }
.lp-cta-row { margin-top: 30px; display: flex; justify-content: center; }
.lp-cta-row .btn { width: 100%; max-width: 360px; }

/* Aluguel × imóvel próprio */
.lp-compare { display: grid; gap: 16px; }
.lp-compare > div { padding: 24px 22px; border-radius: var(--radius); }
.lp-compare h3 { font-size: 1.25rem; margin-bottom: 14px; }
.lp-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-compare li { display: flex; gap: 10px; align-items: flex-start; }
.lp-compare .bad { background: var(--paper); border: 1px solid var(--line); }
.lp-compare .bad h3 { color: var(--muted); }
.lp-compare .bad li::before { content: "✕"; color: #8a3a2c; font-weight: 700; flex: none; }
.lp-compare .good { background: var(--brown); color: var(--on-dark); }
.lp-compare .good h3 { color: var(--champagne); }
.lp-compare .good li::before { content: "✓"; color: var(--champagne); font-weight: 700; flex: none; }
@media (min-width: 760px) { .lp-compare { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* Opções */
.lp-options { display: grid; gap: 22px; }
.lp-option { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.lp-option figure { margin: 0; position: relative; }
.lp-option img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tag-ilustrativa {
  position: absolute; left: 10px; bottom: 10px; background: rgba(47, 27, 18, .82); color: #fff;
  font-size: 0.68rem; font-weight: 600; letter-spacing: .06em; padding: 4px 8px; border-radius: 2px;
}
.lp-option-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.lp-option-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.lp-option-body .btn { width: 100%; }
@media (min-width: 860px) { .lp-options { grid-template-columns: repeat(3, 1fr); } }

/* Benefícios */
.lp-benefits { display: grid; gap: 0; border-top: 1px solid var(--line); }
.lp-benefit { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; }
.lp-benefit .num { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-text); grid-row: span 2; line-height: 1.1; font-weight: 300; }
.lp-benefit h3 { font-size: 1.12rem; margin: 0 0 4px; }
.lp-benefit p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 760px) { .lp-benefits { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1040px) { .lp-benefits { grid-template-columns: repeat(3, 1fr); } }

/* Passos */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: p; }
.lp-steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.lp-steps li::before { counter-increment: p; content: "0" counter(p); display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.lp-steps h3 { font-size: 1.15rem; margin-bottom: 4px; }
.lp-steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 760px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }

/* Quem vai te atender */
.lp-about { display: grid; gap: 32px; align-items: center; }
.lp-about figure { margin: 0; max-width: 420px; }
.lp-about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.lp-about .badge { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border: 1px solid var(--gold); color: var(--gold-text); font-size: 0.8rem; font-weight: 700; letter-spacing: .08em; border-radius: 2px; }
@media (min-width: 860px) { .lp-about { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }

/* Depoimentos (seção comentada no HTML) */
.lp-testimonials { display: grid; gap: 18px; }
.lp-testimonials blockquote { margin: 0; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 20px; border-radius: var(--radius); font-family: var(--serif); font-size: 1.08rem; }
.lp-testimonials cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: 0.84rem; color: var(--muted); }
@media (min-width: 860px) { .lp-testimonials { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.lp-faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--serif); font-size: 1.12rem; color: var(--brown); line-height: 1.35;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--sans); font-size: 1.5rem; color: var(--gold-text); font-weight: 400; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 0 0 20px; color: var(--muted); }

/* CTA final */
.lp-final { background: var(--brown); color: var(--on-dark); padding: 64px 0; text-align: center; }
.lp-final h2 { color: var(--on-dark); }
.lp-final p { color: var(--on-dark-muted); max-width: 36em; margin: 0 auto 26px; }
.lp-final .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lp-final .actions .btn { flex: 1 1 240px; max-width: 320px; }

/* Rodapé da LP */
.lp-footer .disclaimer { font-size: 0.8rem; color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); padding-top: 18px; margin: 0 0 14px; }
.lp-footer .footer-links { border-top: 0; padding-top: 0; }

/* Barra fixa no celular */
.lp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(249, 239, 229, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.25);
}
.lp-sticky .btn { min-height: 48px; padding: 10px 12px; font-size: 0.92rem; }
@media (min-width: 900px) { .lp-sticky { display: none; } }
