/* =============================================
   SPAR CORRETORA — style.css
   Autor: Linear Tech Soluções Digitais
   =============================================

   ÍNDICE
   1. RESET & VARIÁVEIS
   2. TIPOGRAFIA BASE
   3. LAYOUT UTILITÁRIOS
   4. HEADER / NAVBAR
   5. HERO
   6. TRUST BAR
   7. STATS
   8. PLANOS
   9. OPERADORAS
   10. COMO FUNCIONA
   11. CTA BAND
   12. INDICAÇÕES / CARROSSEL
   13. CONTATO
   14. FOOTER
   15. CHATBOT
   16. RESPONSIVIDADE
   ============================================= */


/* =============================================
   1. RESET & VARIÁVEIS
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:    #0F2451;
  --navy-d:  #091838;
  --navy-m:  #1a3a7a;
  --gold:    #99691D;
  --gold-l:  #e8b86d;
  --silver:  #F0F4F9;
  --silver-d:#DDE5F0;
  --white:   #FFFFFF;
  --text:    #1C2B4A;
  --muted:   #5A6A85;
  --green:   #25D366;
  --green-d: #128C7E;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(15,36,81,.10);
  --shadow-h:0 8px 40px rgba(15,36,81,.18);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.65; background: var(--white); }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; }


/* =============================================
   2. TIPOGRAFIA BASE
   ============================================= */
.section-eyebrow {
  display: block; text-align: center;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--gold); margin-bottom: .6rem;
}
section h2 { text-align: center; color: var(--navy); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem; }
.section-sub { text-align: center; color: var(--muted); font-size: .95rem; max-width: 520px; margin: 0 auto 2.2rem; }


/* =============================================
   3. LAYOUT UTILITÁRIOS
   ============================================= */
.container { width: 92%; max-width: 1100px; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 8px;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary  { background: var(--gold); color: var(--white); }
.btn-primary:hover  { background: var(--gold-l); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,147,58,.4); }
.btn-whatsapp { background: var(--green); color: var(--white); }
.btn-whatsapp:hover { background: var(--green-d); transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-cta-white { background: var(--white); color: var(--gold); font-weight: 700; }
.btn-cta-white:hover { background: var(--silver); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }


/* =============================================
   4. HEADER / NAVBAR
   ============================================= */
header {
  background: var(--white);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--silver-d);
  box-shadow: 0 2px 12px rgba(15,36,81,.07);
}
.cabecalho {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 0; gap: 1rem; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.logo img { height: 64px; width: auto; object-fit: contain; }
.logo-text  { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name  { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.logo-sub   { font-size: .72rem; font-weight: 500; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }

nav ul { display: flex; list-style: none; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
nav a  { color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
nav a:hover { color: var(--gold); }
.nav-cta { background: var(--navy); color: var(--white) !important; padding: .45rem 1.1rem; border-radius: 25px; font-size: .85rem !important; transition: background .2s !important; }
.nav-cta:hover { background: var(--navy-m) !important; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================
   5. HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--navy-d) 0%, var(--navy) 60%, var(--navy-m) 100%);
  color: var(--white); padding: 5rem 0 4.5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,147,58,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,147,58,.15); border: 1px solid rgba(201,147,58,.4);
  color: var(--gold-l); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .35rem .85rem; border-radius: 25px; margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.hero h1 span { color: var(--gold-l); }
.hero p  { font-size: 1.05rem; color: rgba(255,255,255,.82); max-width: 520px; margin-bottom: 1.8rem; }
.hero-btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-anos {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 100%);
  border-radius: 16px; padding: 2rem 1.8rem; text-align: center;
  box-shadow: 0 8px 32px rgba(201,147,58,.35); min-width: 150px; flex-shrink: 0;
}
.hero-anos .num   { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 700; color: var(--white); line-height: 1; }
.hero-anos .label { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.9); text-transform: uppercase; letter-spacing: .1em; margin-top: .3rem; }


/* =============================================
   6. TRUST BAR
   ============================================= */
.trust-bar { background: var(--silver); border-bottom: 1px solid var(--silver-d); padding: 1.4rem 0; }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.trust-item  { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 500; color: var(--muted); }
.trust-item span:first-child { font-size: 1.1rem; }
.trust-divider { width: 1px; height: 24px; background: var(--silver-d); }


/* =============================================
   7. STATS
   ============================================= */
.stats { padding: 3.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-card {
  text-align: center; padding: 2rem 1.2rem;
  background: var(--white); border: 1px solid var(--silver-d);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s;
}
.stat-card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--navy); }
.stat-num sup { font-size: 1.2rem; vertical-align: super; color: var(--gold); }
.stat-desc { font-size: .82rem; color: var(--muted); margin-top: .3rem; font-weight: 500; }


/* =============================================
   8. PLANOS
   ============================================= */
.planos { padding: 4rem 0; background: var(--silver); }
.planos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; align-items: stretch; }
.plano-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--silver-d); border-top: 4px solid transparent;
  overflow: hidden; box-shadow: var(--shadow); transition: all .25s;
  display: flex; flex-direction: column;
}
.plano-card:hover { box-shadow: var(--shadow-h); transform: translateY(-4px); border-color: var(--gold); border-top-color: var(--gold); }
.plano-header { padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid var(--silver); }
.plano-icon   { font-size: 2rem; margin-bottom: .6rem; display: block; }
.plano-header h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: .3rem; }
.plano-header p  { font-size: .85rem; color: var(--muted); }
.plano-body   { padding: 1.2rem 1.5rem 1.5rem; flex: 1; }
.plano-lista  { list-style: none; }
.plano-lista li { display: flex; align-items: flex-start; gap: .5rem; font-size: .88rem; padding: .4rem 0; border-bottom: 1px solid var(--silver); color: var(--text); }
.plano-lista li:last-child { border-bottom: none; }
.plano-lista li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: .05rem; }
.plano-cta {
  display: block; margin: 0 1.5rem 1.5rem; text-align: center;
  background: var(--gold); color: var(--white) !important;
  border: 2px solid var(--gold); border-radius: 8px;
  padding: .75rem 1rem; font-weight: 600; font-size: .9rem;
  text-decoration: none; transition: all .2s;
}
.plano-cta:hover { background: var(--gold-l); border-color: var(--gold-l); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(201,147,58,.35); }


/* =============================================
   9. OPERADORAS
   ============================================= */
.operadoras { padding: 3.5rem 0; }
.ops-grid {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; margin-top: 1rem;
}
.op-tag {
  background: var(--white); border: 1.5px solid var(--silver-d);
  padding: .6rem 1.3rem; border-radius: 8px;
  font-size: .88rem; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow); transition: all .2s;
}
.op-tag:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-h); }


/* =============================================
   10. COMO FUNCIONA
   ============================================= */
.como { padding: 4rem 0; background: var(--navy); color: var(--white); }
.como h2 { color: var(--white); }
.como .section-eyebrow { color: var(--gold-l); }
.planos .section-eyebrow, .contato .section-eyebrow { color: #8F631B; }
.como .section-sub { color: rgba(255,255,255,.7); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step {
  position: relative; padding: 1.8rem 1.5rem;
  background: rgba(255,255,255,.06); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block; font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--gold); font-weight: 700; margin-bottom: .7rem;
}
.step h3 { font-size: 1rem; color: var(--white); margin-bottom: .4rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.step p  { font-size: .85rem; color: rgba(255,255,255,.7); }


/* =============================================
   11. CTA BAND
   ============================================= */
.cta-band { padding: 4rem 0; text-align: center; background: linear-gradient(135deg, var(--gold) 0%, #B07D28 100%); }
.cta-band h2 { color: var(--white); margin-bottom: .7rem; }
.cta-band p  { color: rgba(255,255,255,.9); max-width: 500px; margin: 0 auto 1.8rem; }
.cta-btns    { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }


/* =============================================
   12. INDICAÇÕES / CARROSSEL
   ============================================= */
.indicacoes { padding: 4rem 0; background: var(--white); }
.carousel-wrap { position: relative; overflow: hidden; margin-top: 1rem; }
.carousel-track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); will-change: transform; }

.ind-card {
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--silver-d); border-top: 3px solid transparent;
  border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  gap: 0; transition: border-color .25s, box-shadow .25s, transform .25s;
  cursor: default; overflow: hidden; box-sizing: border-box;
}
.ind-card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); border-color: var(--gold); border-top-color: var(--gold); }

.ind-topo  { display: flex; align-items: center; justify-content: space-between; margin-bottom: .65rem; flex-shrink: 0; }
.ind-stars { color: var(--gold); font-size: .85rem; letter-spacing: .04em; }
.ind-tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .18rem .6rem; border-radius: 20px;
}
.ind-tag.pessoal { background: #dbeafe; color: #1e40af; }
.ind-tag.empresa  { background: #fef3c7; color: #92400e; }

.ind-texto {
  flex: 1; overflow: hidden;
  font-size: .85rem; color: var(--text); line-height: 1.55; font-style: italic;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5;
  margin-bottom: .8rem;
}
.ind-texto::before { content: '"'; font-size: 1.3rem; color: var(--gold); line-height: 0; vertical-align: -5px; margin-right: 2px; }

.ind-autor  { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.ind-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; font-family: 'Playfair Display', serif;
}
.ind-avatar.emp { background: var(--gold); }
.ind-nome   { font-size: .85rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
.ind-detalhe{ font-size: .75rem; color: var(--muted); }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: 1.5rem; }
.car-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--silver-d);
  background: var(--white); cursor: pointer; font-size: 1.1rem; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; box-shadow: var(--shadow);
}
.car-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.car-dots { display: flex; }
.car-dot  {
  width: 24px; height: 24px; padding: 0; background: transparent; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.car-dot::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--silver-d);
  transition: background .25s, transform .25s;
}
.car-dot.ativo::after { background: var(--navy); transform: scale(1.25); }


/* =============================================
   13. CONTATO
   ============================================= */
.contato { padding: 4rem 0; background: var(--silver); }
.contato-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.contato-card {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem;
  border: 1px solid var(--silver-d); box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: 1rem;
}
.contato-icon { font-size: 1.5rem; flex-shrink: 0; }
.contato-info h4 { font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: .2rem; }
.contato-info a, .contato-info p { font-size: .88rem; color: var(--muted); text-decoration: none; }
.contato-info a:hover { color: var(--gold); }

.contato-form-wrap {
  margin-top: 2rem; background: var(--white); border-radius: var(--radius);
  padding: 2rem; border: 1px solid var(--silver-d); box-shadow: var(--shadow);
}
.contato-form-wrap h3 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 1.3rem; margin-bottom: .3rem; }
.contato-form-wrap > p { color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--silver-d); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: .9rem; color: var(--text); background: var(--silver);
  transition: border-color .2s;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--navy); background: var(--white); }
.form-grid textarea { resize: vertical; min-height: 90px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }


/* =============================================
   14. FOOTER
   ============================================= */
footer { background: var(--navy-d); color: rgba(255,255,255,.6); padding: 2rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand img  { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .8; }
.footer-brand span { font-family: 'Playfair Display', serif; font-size: 1rem; color: rgba(255,255,255,.8); }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .8rem; text-decoration: none; }
.footer-links a:hover { color: var(--gold-l); }
.footer-copy { font-size: .78rem; text-align: center; margin-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; }


/* =============================================
   15. CHATBOT
   ============================================= */
.chat { position: fixed; bottom: 20px; right: 20px; z-index: 999; }
.chat-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green); color: var(--white); border: none;
  font-size: 24px; cursor: pointer;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center;
}
.chat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.55); }
.chat-janela {
  display: none; position: absolute; bottom: 72px; right: 0;
  width: 340px; max-height: 500px;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 8px 40px rgba(15,36,81,.2);
  flex-direction: column; overflow: hidden;
}
.chat-cab {
  background: var(--navy); color: var(--white);
  padding: .85rem 1.1rem; display: flex; justify-content: space-between; align-items: center;
}
.chat-cab-info { display: flex; align-items: center; gap: .7rem; }
.chat-avatar   { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.chat-nome   { font-size: .9rem; font-weight: 600; }
.chat-status { font-size: .72rem; color: var(--green); }
.chat-cab button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: rgba(255,255,255,.7); font-size: 20px; cursor: pointer; line-height: 1; }
.chat-msgs {
  flex: 1; padding: .9rem; overflow-y: auto;
  background: #f7f8fc; display: flex; flex-direction: column; gap: .5rem;
}
.msg { max-width: 84%; padding: .55rem .85rem; border-radius: 14px; font-size: .87rem; line-height: 1.45; }
.msg.bot  { background: var(--white); border: 1px solid var(--silver-d); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--text); }
.msg.user { background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; text-align: right; }
.chat-entrada { display: flex; padding: .65rem .7rem; border-top: 1px solid var(--silver-d); gap: .4rem; background: var(--white); }
.chat-entrada input {
  flex: 1; padding: .6rem .9rem; border: 1.5px solid var(--silver-d);
  border-radius: 22px; outline: none; font-size: .87rem; font-family: 'Inter', sans-serif;
  transition: border-color .2s;
}
.chat-entrada input:focus { border-color: var(--navy); }
.chat-entrada button {
  padding: .6rem 1rem; border: none; border-radius: 22px;
  background: var(--navy); color: var(--white); cursor: pointer;
  font-size: .85rem; font-weight: 600; transition: background .2s;
}
.chat-entrada button:hover { background: var(--navy-m); }


/* =============================================
   16. RESPONSIVIDADE
   ============================================= */
@media (max-width: 680px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-anos  { justify-self: start; }
  .trust-divider { display: none; }
  .footer-inner  { flex-direction: column; text-align: center; }
  .chat-janela   { width: calc(100vw - 40px); right: 0; }

  .nav-toggle { display: flex; }
  nav ul {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 1px solid var(--silver-d);
    box-shadow: var(--shadow-h);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s ease, opacity .2s ease;
  }
  nav ul.open { max-height: 320px; opacity: 1; }
  nav ul li { width: 100%; }
  nav ul a { display: block; padding: .9rem 1.2rem; }
  nav ul .nav-cta { display: block; margin: .6rem 1.2rem; text-align: center; border-radius: 8px; }
}
