/* ════════════════════════════════════════════════════════════════
   FinVerde Consórcios — Estilo Premium (Fintech)
   ════════════════════════════════════════════════════════════════ */

:root {
  --stone:          #F7F5F1;
  --stone-dark:     #EAE6DC;
  --white:          #FFFFFF;
  --deep:           #091A12;   /* Quase preto, levemente esverdeado */
  --deep-2:         #122A1E;   /* Verde super escuro */
  --grove:          #215A40;   /* Verde institucional */
  --grove-light:    #4CAF79;   /* Verde vibrante para destaque */
  --gold:           #C18A26;   /* Dourado premium */
  --gold-light:     #E2B258;
  --text:           #1D1D1D;
  --text-muted:     #636661;
  --border:         rgba(0, 0, 0, 0.06);
  --border-light:   rgba(255, 255, 255, 0.1);
  
  --radius-pill:    4rem;
  --radius-xl:      2rem;
  --radius-lg:      1.5rem;
  --radius-sm:      0.75rem;

  --t-base:         0.3s ease;
  --nav-height:     80px;
}

/* ── 01. RESET GERAL ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; background: var(--stone); color: var(--text); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; outline: none; border: none; }

/* Tipografia */
.eyebrow { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grove); font-weight: 700; margin-bottom: 1rem; display: block; }
.eyebrow.dark { color: var(--grove-light); }
.title-lg { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; color: var(--deep); letter-spacing: -0.02em; }
.title-md { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; color: var(--deep); letter-spacing: -0.01em; }
em { font-style: italic; font-weight: 400; color: var(--gold); }
.text-dark { color: var(--white); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem 2rem; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: all var(--t-base); }
.btn-primary { background: var(--deep); color: var(--white); }
.btn-primary:hover { background: var(--grove); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(33, 90, 64, 0.2); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(193, 138, 38, 0.2); }
.btn-outline { border: 1px solid var(--border-light); color: var(--white); backdrop-filter: blur(5px); }
.btn-outline:hover { background: var(--white); color: var(--deep); }

/* ── 02. HEADER & NAV ── */
#mainNav { position: fixed; top: 0; width: 100%; z-index: 1000; transition: all var(--t-base); background: rgba(247, 245, 241, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1300px; margin: 0 auto; height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; padding: 0 5%; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--deep); }
.nav-logo-mark { background: var(--deep); color: var(--gold); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 1rem; }
.nav-logo-text em { color: var(--grove); display: block; font-size: 0.75rem; font-family: 'Lato', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; margin-top: -3px; }
.nav-links { display: flex; gap: 2rem; }
.nav-link { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); transition: color var(--t-base); }
.nav-link:hover { color: var(--deep); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-cta { background: var(--grove); color: var(--white); padding: 0.7rem 1.5rem; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 0.5rem; transition: var(--t-base); }
.nav-cta:hover { background: var(--deep); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: transparent; cursor: pointer; padding: 5px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--deep); transition: all 0.3s; }

/* Mobile Drawer */
.nav-mobile-drawer { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 999; opacity: 0; pointer-events: none; transition: opacity var(--t-base); }
.nav-mobile-drawer.open { opacity: 1; pointer-events: auto; }
.nav-mobile-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 85%; max-width: 320px; background: var(--white); padding: 6rem 2rem 2rem; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); display: flex; flex-direction: column; gap: 2rem; }
.nav-mobile-drawer.open .nav-mobile-panel { transform: translateX(0); }
.nav-mobile-links { display: flex; flex-direction: column; gap: 1.5rem; }
.nav-mobile-links a { font-size: 1.2rem; font-weight: 700; color: var(--deep); }
.nav-mobile-cta { background: var(--grove); color: var(--white); padding: 1rem; text-align: center; border-radius: var(--radius-sm); font-weight: 700; margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 0.5rem; }

/* ── 03. HERO & STATS (Sobrepostos) ── */
#hero { min-height: 90vh; background: var(--deep) radial-gradient(circle at top right, rgba(76, 175, 121, 0.15), transparent 50%); padding: calc(var(--nav-height) + 4rem) 5% 8rem; position: relative; }
.hero-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content { max-width: 600px; }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin: 1.5rem 0 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Card Flutuante */
.hero-visual { position: relative; }
.glass-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border-light); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius-xl); padding: 3rem; text-align: center; }
.glass-card-tag { display: inline-block; background: rgba(193, 138, 38, 0.2); color: var(--gold-light); padding: 0.5rem 1rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; }
.glass-card-value { font-size: 4rem; font-weight: 700; color: var(--white); font-family: 'Playfair Display', serif; line-height: 1; margin-bottom: 0.5rem; }
.glass-card-label { font-size: 0.9rem; color: rgba(255,255,255,0.5); }

/* Stats Bar - Quebrando a seção */
.stats-overlap { max-width: 1100px; margin: -4rem auto 4rem; position: relative; z-index: 10; background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.stat-box { display: flex; flex-direction: column; gap: 0.25rem; border-right: 1px solid var(--border); }
.stat-box:last-child { border-right: none; }
.stat-n { font-size: 1.8rem; font-weight: 700; color: var(--deep); }
.stat-l { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

/* ── 04. BENTO GRID (Serviços) ── */
.section { padding: 5rem 5%; }
.section-header { text-align: center; margin-bottom: 4rem; }
.bento-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; grid-auto-rows: minmax(280px, auto); }
.bento-item { background: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; border: 1px solid var(--border); display: flex; flex-direction: column; transition: all var(--t-base); overflow: hidden; position: relative; }
.bento-item:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.06); transform: translateY(-5px); }

/* Imóveis (Largo) */
.bento-large { grid-column: span 2; background: linear-gradient(135deg, var(--white) 0%, var(--stone-dark) 100%); }
.bento-icon { width: 50px; height: 50px; background: rgba(33, 90, 64, 0.1); color: var(--grove); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.bento-item h3 { font-size: 1.5rem; font-family: 'Playfair Display', serif; color: var(--deep); margin-bottom: 0.5rem; }
.bento-item p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; flex-grow: 1; }
.bento-link { font-size: 0.85rem; font-weight: 700; color: var(--grove); text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 0.5rem; margin-top: auto; }
.bento-link:hover { color: var(--deep); gap: 0.8rem; }

/* ── 05. LINHA DO TEMPO (Como Funciona) ── */
.timeline-section { background: var(--deep-2); color: var(--white); }
.timeline-container { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; position: relative; }
.timeline-container::before { content: ''; position: absolute; top: 30px; left: 10%; right: 10%; height: 1px; background: dashed 1px rgba(255,255,255,0.2); z-index: 1; }
.timeline-step { position: relative; z-index: 2; text-align: center; }
.step-number { width: 60px; height: 60px; background: var(--deep); border: 2px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: var(--gold); margin: 0 auto 1.5rem; box-shadow: 0 0 0 10px var(--deep-2); }
.step-title { font-size: 1.3rem; font-family: 'Playfair Display', serif; margin-bottom: 0.75rem; }
.step-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* ── 06. FOOTER & EXTRAS ── */
footer { background: var(--deep); color: rgba(255,255,255,0.6); padding: 5rem 5% 2rem; border-top: 1px solid var(--border-light); }
.footer-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--white); margin-bottom: 1rem; font-weight: 700; }
.footer-brand-desc { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; max-width: 300px; }
.footer-social { display: flex; gap: 1rem; }
.footer-social-link { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--white); transition: all var(--t-base); }
.footer-social-link:hover { background: var(--gold); transform: translateY(-3px); }
.footer-nav-title { font-size: 0.8rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { font-size: 0.9rem; transition: color var(--t-base); }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.8rem; }
.footer-selo { display: flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.05); padding: 0.5rem 1rem; border-radius: var(--radius-pill); }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); z-index: 999; transition: transform var(--t-base); }
.whatsapp-float:hover { transform: scale(1.1) rotate(-5deg); }

/* Form (Herdado do contato anterior mas ajustado pro grid novo) */
.form-wrap { background: var(--white); padding: 3rem; border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.form-input { width: 100%; padding: 1rem 1.25rem; background: var(--stone); border-radius: var(--radius-sm); font-size: 1rem; margin-top: 0.5rem; border: 1px solid transparent; transition: border var(--t-base); }
.form-input:focus { border-color: var(--grove); background: var(--white); }
.form-group { margin-bottom: 1.5rem; }
.form-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

/* ── 07. RESPONSIVIDADE ── */
@media (max-width: 1024px) {
  .hero-grid, .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-overlap { grid-template-columns: 1fr 1fr; margin-top: 2rem; }
  .stat-box { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
  .stat-box:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large { grid-column: span 1; }
  .timeline-container { grid-template-columns: 1fr; gap: 2rem; }
  .timeline-container::before { left: 30px; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline-step { display: flex; text-align: left; align-items: flex-start; gap: 1.5rem; }
  .step-number { margin: 0; flex-shrink: 0; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .title-lg { font-size: 2.5rem; }
  .stats-overlap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}