/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:       #1a56db;
  --blue-dark:  #1245b8;
  --blue-light: #eff4ff;
  --slate-900:  #0f172a;
  --slate-700:  #334155;
  --slate-500:  #64748b;
  --slate-200:  #e2e8f0;
  --slate-100:  #f1f5f9;
  --white:      #ffffff;
  --green:      #16a34a;
  --radius:     12px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.10);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--slate-700); background: var(--white); line-height: 1.6; }

/* ── Utilities ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: var(--blue-light); padding: 4px 14px; border-radius: 999px; margin-bottom: 16px; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--slate-900); line-height: 1.2; }
.section-subtitle { margin-top: 12px; font-size: 1.05rem; color: var(--slate-500); max-width: 560px; }

/* ── Navbar ── */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--slate-200); transition: box-shadow .3s; }
#navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon { width: 36px; height: 36px; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.nav-logo-icon svg { width: 20px; height: 20px; fill: white; }
.nav-logo-text { font-size: 1.15rem; font-weight: 800; color: var(--slate-900); }
.nav-logo-text span { color: var(--blue); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--slate-700); transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { background: var(--blue); color: white !important; padding: 9px 22px; border-radius: 8px; font-weight: 600 !important; transition: background .2s !important; }
.nav-cta:hover { background: var(--blue-dark) !important; color: white !important; }
.nav-client { font-size: .88rem; font-weight: 600; color: var(--blue) !important; border: 1.5px solid var(--blue); padding: 7px 16px; border-radius: 8px; transition: background .2s, color .2s !important; }
.nav-client:hover { background: var(--blue); color: white !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--slate-700); border-radius: 2px; transition: .3s; }
.mobile-menu { display: none; flex-direction: column; gap: 0; background: white; border-top: 1px solid var(--slate-200); padding: 8px 0 16px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 24px; text-decoration: none; font-weight: 500; color: var(--slate-700); font-size: .95rem; }
.mobile-menu a:hover { color: var(--blue); background: var(--slate-100); }
@media (max-width: 768px) { .nav-links, .nav-cta { display: none; } .hamburger { display: flex; } }

/* ── Hero ── */
#hero { padding: 148px 0 100px; background: linear-gradient(160deg, var(--blue-light) 0%, var(--white) 55%); position: relative; overflow: hidden; }
#hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(26,86,219,.08) 0%, transparent 70%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-light); border: 1px solid rgba(26,86,219,.2); border-radius: 999px; padding: 6px 16px; font-size: .82rem; font-weight: 600; color: var(--blue); margin-bottom: 24px; }
.hero-badge span { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.hero-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: var(--slate-900); line-height: 1.15; margin-bottom: 20px; }
.hero-title .highlight { color: var(--blue); position: relative; }
.hero-desc { font-size: 1.05rem; color: var(--slate-500); margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: white; font-weight: 600; font-size: .95rem; padding: 13px 28px; border-radius: var(--radius); text-decoration: none; transition: background .2s, transform .15s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: white; color: var(--slate-700); font-weight: 600; font-size: .95rem; padding: 13px 28px; border-radius: var(--radius); text-decoration: none; border: 1.5px solid var(--slate-200); transition: border-color .2s, transform .15s; }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--slate-200); }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--slate-900); }
.stat-label { font-size: .82rem; color: var(--slate-500); margin-top: 2px; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-card-stack { position: relative; width: 100%; max-width: 420px; }
.dash-card { background: white; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 24px; border: 1px solid var(--slate-200); }
.dash-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-card-title { font-weight: 700; color: var(--slate-900); font-size: .9rem; }
.dash-badge { font-size: .72rem; font-weight: 700; background: #dcfce7; color: #16a34a; padding: 3px 10px; border-radius: 999px; }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; margin-bottom: 16px; }
.bar { flex: 1; border-radius: 6px 6px 0 0; background: var(--blue-light); transition: height .3s; }
.bar.active { background: var(--blue); }
.dash-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric { background: var(--slate-100); border-radius: 8px; padding: 12px; }
.metric-value { font-size: 1.2rem; font-weight: 800; color: var(--slate-900); }
.metric-label { font-size: .72rem; color: var(--slate-500); }
.floating-tag { position: absolute; background: white; border-radius: 10px; box-shadow: var(--shadow-md); padding: 10px 16px; font-size: .78rem; font-weight: 600; color: var(--slate-700); display: flex; align-items: center; gap: 8px; border: 1px solid var(--slate-200); }
.floating-tag.top-right { top: -20px; right: -20px; }
.floating-tag.bottom-left { bottom: -16px; left: -16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: #22c55e; }
.dot-blue { background: var(--blue); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 48px; } .hero-visual { display: none; } #hero { padding: 120px 0 80px; } }

/* ── Services ── */
#servicos { padding: 96px 0; background: var(--slate-100); }
.services-header { text-align: center; margin-bottom: 56px; }
.services-header .section-subtitle { margin: 12px auto 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.service-card { background: white; border-radius: var(--radius); padding: 32px; border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; cursor: default; text-decoration: none; display: block; color: inherit; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
a.service-card { cursor: pointer; }
a.service-card:hover { border-color: var(--blue); }
.service-card .service-link { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--blue); margin-top: 14px; }
.service-card .service-link svg { width: 14px; height: 14px; }
.service-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-icon svg { width: 26px; height: 26px; }
.service-name { font-size: 1.05rem; font-weight: 700; color: var(--slate-900); margin-bottom: 8px; }
.service-desc { font-size: .88rem; color: var(--slate-500); line-height: 1.7; }

/* ── Why Us ── */
#por-que-nos { padding: 96px 0; background: var(--white); }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-list { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.why-item { display: flex; gap: 16px; }
.why-icon { flex-shrink: 0; width: 42px; height: 42px; background: var(--blue-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.why-icon svg { width: 22px; height: 22px; }
.why-item h4 { font-weight: 700; color: var(--slate-900); margin-bottom: 4px; }
.why-item p { font-size: .88rem; color: var(--slate-500); }
.why-visual { background: var(--blue); border-radius: 20px; padding: 40px; color: white; }
.why-visual-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 24px; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.step:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: rgba(255,255,255,.25); }
.step-num { flex-shrink: 0; width: 32px; height: 32px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; }
.step h5 { font-weight: 700; margin-bottom: 4px; font-size: .9rem; }
.step p { font-size: .82rem; opacity: .75; }
@media (max-width: 900px) { .why-inner { grid-template-columns: 1fr; gap: 48px; } }

/* ── Contact ── */
#contato { padding: 96px 0; background: var(--slate-100); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info { padding-top: 8px; }
.contact-info .section-subtitle { margin-bottom: 36px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.contact-detail-icon { flex-shrink: 0; width: 40px; height: 40px; background: var(--blue-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.contact-detail-icon svg { width: 20px; height: 20px; }
.contact-detail h4 { font-size: .82rem; font-weight: 600; color: var(--slate-500); margin-bottom: 2px; }
.contact-detail p { font-size: .93rem; color: var(--slate-700); font-weight: 500; }
.contact-form-box { background: white; border-radius: 16px; padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--slate-200); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--slate-200); border-radius: 8px; font-family: inherit; font-size: .92rem; color: var(--slate-900); background: white; transition: border-color .2s, box-shadow .2s; outline: none; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }
.form-group textarea { min-height: 120px; }
.form-submit { width: 100%; background: var(--blue); color: white; font-family: inherit; font-size: 1rem; font-weight: 700; padding: 14px; border: none; border-radius: 10px; cursor: pointer; transition: background .2s, transform .15s; margin-top: 8px; }
.form-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }
.form-success { display: none; text-align: center; padding: 32px 0; }
.form-success .success-icon { width: 56px; height: 56px; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.form-success .success-icon svg { width: 28px; height: 28px; stroke: #16a34a; }
.form-success h3 { font-size: 1.2rem; font-weight: 700; color: var(--slate-900); margin-bottom: 8px; }
.form-success p { font-size: .88rem; color: var(--slate-500); }
@media (max-width: 768px) { .contact-inner { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .contact-form-box { padding: 28px; } }

/* ── Footer ── */
footer { background: var(--slate-900); color: white; padding: 56px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo-text { color: white; }
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.5); margin-top: 14px; line-height: 1.7; }
.footer-col h5 { font-size: .88rem; font-weight: 700; margin-bottom: 16px; color: rgba(255,255,255,.8); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .88rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-col ul a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.35); }
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }

/* ── Scroll animations ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
