/* =========================================================
   BS Capital Invest PE — Landing Consórcio Imobiliário
   CSS próprio, mobile-first, otimizado para performance.
   Paleta: azul-marinho + grafite + branco + dourado discreto
   ========================================================= */

:root {
  --navy: #0f2740;
  --navy-800: #163353;
  --navy-700: #1d456d;
  --graphite: #2b3440;
  --gold: #c8a24b;
  --gold-dark: #a9853a;
  --ink: #182430;
  --muted: #5a6572;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-navy-soft: #eef2f7;
  --white: #ffffff;
  --success: #1f8a5b;
  --danger: #c0392b;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 64, .06), 0 2px 6px rgba(15, 39, 64, .06);
  --shadow-md: 0 10px 30px rgba(15, 39, 64, .10);
  --shadow-lg: 0 20px 50px rgba(15, 39, 64, .16);

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --container: 1140px;
}

/* ---------- Reset leve ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }
.center { text-align: center; }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-soft); }
.section-title { font-size: 1.6rem; color: var(--navy); letter-spacing: -.01em; }
.section-title.center { margin-left: auto; margin-right: auto; max-width: 720px; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 720px; }
.section-lead.center { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .6rem;
}
.eyebrow-center { display: block; text-align: center; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--navy); color: var(--gold);
  border-radius: 9px; font-weight: 800; font-size: .95rem;
  letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: .98rem; color: var(--navy); }
.brand-text small { font-size: .72rem; color: var(--gold-dark); font-weight: 700; letter-spacing: .1em; }

.main-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 40px; padding: 0 9px;
  background: transparent; border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile aberto */
.main-nav.open {
  display: flex; flex-direction: column;
  position: absolute; top: 62px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 8px 20px 16px; box-shadow: var(--shadow-md);
}
.main-nav.open a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.main-nav.open a:last-child { border-bottom: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(15, 39, 64, .90), rgba(15, 39, 64, .82)),
    url("images/hero-imovel.png") center/cover no-repeat;
  padding: 40px 0 48px;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.hero-copy .eyebrow { color: var(--gold); }
.hero h1 { font-size: 2rem; color: var(--white); letter-spacing: -.02em; }
.hero-sub { color: rgba(255, 255, 255, .88); font-size: 1.08rem; max-width: 560px; }

.hero-bullets { margin: 18px 0 22px; display: grid; gap: 10px; }
.hero-bullets li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, .92); }
.hero-bullets li::before {
  content: "\2713";
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-size: .72rem; font-weight: 800;
  display: grid; place-items: center;
}
.hero-trust { margin-top: 16px; font-size: .88rem; color: rgba(255, 255, 255, .78); }
.hero-trust span { color: var(--gold); letter-spacing: .1em; margin-right: 6px; }

/* ---------- Formulário ---------- */
.hero-form-wrap { scroll-margin-top: 80px; }
.sim-form {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .5);
}
.form-title { font-size: 1.3rem; color: var(--navy); margin-bottom: 2px; }
.form-desc { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--graphite); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; color: var(--ink);
  background: var(--white); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(29, 69, 109, .15);
}
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.error-msg { display: block; min-height: 0; font-size: .8rem; color: var(--danger); margin-top: 4px; }

.form-privacy { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }

.form-success {
  margin-top: 14px; padding: 16px;
  background: #eaf7f0; border: 1px solid #bfe6d2; border-radius: var(--radius-sm);
  display: flex; gap: 12px; align-items: flex-start;
}
.form-success p { margin: 0; color: #12603f; font-size: .92rem; font-weight: 600; }
.success-icon {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--success); color: #fff; display: grid; place-items: center; font-weight: 800;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; margin-top: 28px; }
.cards-3 { grid-template-columns: 1fr; }
.cards-4 { grid-template-columns: 1fr; }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card h3 { font-size: 1.05rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }

.card-icon, .card-badge { font-size: 1.7rem; display: block; margin-bottom: 10px; }
.card-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-navy-soft); font-size: 1.4rem;
}
.card-pain h3 { margin: 0; font-size: 1rem; }
.card-elevated:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-benefit { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; }
.card-benefit .check {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: var(--gold); display: grid; place-items: center;
  font-size: .78rem; font-weight: 800;
}
.card-benefit p { color: var(--ink); font-weight: 500; }

.disclaimer-inline {
  margin-top: 24px; font-size: .86rem; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; text-align: center;
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 18px; margin-top: 28px; grid-template-columns: 1fr; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px 20px; box-shadow: var(--shadow-sm);
  position: relative;
}
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-weight: 800; font-size: 1.1rem; margin-bottom: 12px;
}
.step h3 { font-size: 1.02rem; color: var(--navy); }
.step p { margin: 0; color: var(--muted); }

/* ---------- Autoridade ---------- */
.authority-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.authority-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: auto; }
.trust-list { display: grid; gap: 10px; margin-top: 14px; }
.trust-list li { position: relative; padding-left: 28px; font-weight: 600; color: var(--graphite); }
.trust-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-size: .7rem; font-weight: 800; display: grid; place-items: center;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  color: var(--white);
}
.cta-band-inner { padding: 52px 20px; text-align: center; }
.cta-band h2 { color: var(--white); font-size: 1.7rem; max-width: 760px; margin-inline: auto; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 620px; margin-inline: auto; margin-bottom: 22px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; display: grid; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 46px 16px 18px;
  font-weight: 600; color: var(--navy); position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold-dark); font-weight: 400; transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-body { padding: 0 18px 16px; }
.faq-body p { margin: 0; color: var(--muted); }

/* ---------- CTA final ---------- */
.section-final { background: var(--bg-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 44px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.brand-footer .brand-mark { background: var(--gold); color: var(--navy); }
.brand-footer .brand-text strong { color: var(--white); }
.brand-footer .brand-text small { color: var(--gold); }
.footer-about { margin-top: 12px; font-size: .92rem; max-width: 360px; }
.footer-links h3, .footer-legal h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255, 255, 255, .82); width: fit-content; }
.footer-links a:hover { color: var(--white); }
.footer-legal p { font-size: .86rem; margin: 0; }
.disclaimer {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .78rem; color: rgba(255, 255, 255, .6);
}
.copyright { font-size: .82rem; color: rgba(255, 255, 255, .6); margin: 8px 0 0; }

/* =========================================================
   Responsivo — Tablet / Desktop
   ========================================================= */
@media (min-width: 700px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 1.9rem; }
  .hero h1 { font-size: 2.4rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (min-width: 960px) {
  .section { padding: 76px 0; }
  .main-nav { display: flex; gap: 26px; }
  .main-nav a { font-weight: 600; color: var(--graphite); font-size: .95rem; transition: color .15s ease; }
  .main-nav a:hover { color: var(--navy); }
  .nav-toggle { display: none; }

  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
  .hero h1 { font-size: 2.9rem; }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .authority-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .cta-band h2 { font-size: 2rem; }
}

/* ---------- Animações leves (entrada) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
  .js .reveal.visible { opacity: 1; transform: none; }
}
