/* ESI — BPO Financeiro | Landing page premium */

:root {
  --navy-900: #001A3C;
  --navy-800: #06213f;
  --navy-700: #0B2A4A;
  --navy-600: #16355c;
  --gold: #C8963C;
  --gold-dark: #9A7028;
  --gold-light: #E4C989;
  --white: #FFFFFF;
  --gray-50: #F9F7F3;
  --gray-100: #F4F6F9;
  --gray-200: #E4E8ED;
  --gray-400: #8A9BB0;
  --gray-600: #4A5568;
  --gray-700: #2D3748;
  --whatsapp: #25D366;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 60px -20px rgba(0, 26, 60, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(0, 26, 60, 0.15);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 20px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.section-head {
  max-width: 720px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { margin-top: 16px; font-size: 1.06rem; color: var(--gray-600); }

section { padding: 96px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(154, 112, 40, 0.55);
}
.btn-primary:hover { box-shadow: 0 18px 36px -8px rgba(154, 112, 40, 0.65); }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--gray-200);
}
.btn-ghost:hover { border-color: var(--navy-900); background: var(--gray-100); }
.btn-on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-on-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(37, 211, 102, 0.55);
}
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--gray-200);
  padding: 12px 0;
  box-shadow: 0 8px 24px -18px rgba(0,26,60,0.35);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--navy-900);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--navy-900);
  position: relative;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 84vw);
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .main-nav[data-open="true"] { transform: translateX(0); }
  .main-nav a { color: var(--white); font-size: 1.1rem; }
  .main-nav .btn-primary { margin-top: 12px; }
  .header-actions .btn-primary.desktop-only { display: none; }
  .nav-toggle { display: flex; }
}
.mobile-only { display: none; }
@media (max-width: 900px) { .mobile-only { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 110px;
  background: radial-gradient(120% 140% at 85% -10%, var(--navy-600) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 60% at 70% 30%, black, transparent);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-light); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--gold-light); }
.hero p.lead {
  margin-top: 24px;
  font-size: 1.14rem;
  color: rgba(255,255,255,0.82);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 38px;
}
.hero-trust {
  margin-top: 44px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-trust div { font-size: 0.86rem; color: rgba(255,255,255,0.65); }
.hero-trust strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--white); font-weight: 700; }

/* Hero visual: cash-flow / indicators panel */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.chart-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  padding: clamp(20px, 4vw, 28px);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
}
.chart-card-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.chart-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--gold-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.chart-card-title { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--white); font-weight: 700; }
.chart-card-sub { font-size: 0.8rem; color: rgba(255,255,255,0.68); letter-spacing: 0.05em; text-transform: uppercase; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 20px; margin-top: 16px; }
.chart-legend span { font-size: 0.78rem; color: rgba(255,255,255,0.72); display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.gold { background: var(--gold); }
.dot.line { background: rgba(255,255,255,0.7); }

.chart-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.chart-stat { display: flex; flex-direction: column; gap: 4px; }
.chart-stat span { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.chart-stat strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--gold-light); font-weight: 700; }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
}

/* ---------- Pilares ---------- */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .pilares-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pilares-grid { grid-template-columns: 1fr; } }

.pilar-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color .3s var(--ease);
}
.pilar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--gold-light); }
.pilar-icon { margin-bottom: 20px; }
.pilar-icon,
.servico-card .ico,
.dif-item .ico {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
}
.pilar-icon svg,
.servico-card .ico svg,
.dif-item .ico svg { width: 22px; height: 22px; stroke: var(--gold-light); }
.pilar-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.pilar-card p { color: var(--gray-600); font-size: 0.96rem; }

/* ---------- Desafio ---------- */
.desafio { background: var(--navy-900); color: var(--white); }
.desafio .section-head h2 { color: var(--white); }
.desafio .section-head p { color: rgba(255,255,255,0.7); }
.desafio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
}
@media (max-width: 720px) { .desafio-grid { grid-template-columns: 1fr; } }
.desafio-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.desafio-item .mark {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  font-family: var(--font-display);
}
.desafio-item p { color: rgba(255,255,255,0.85); font-size: 1rem; }

/* ---------- Serviços ---------- */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .servicos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .servicos-grid { grid-template-columns: 1fr; } }
.servico-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.servico-card:hover { box-shadow: var(--shadow-card); border-color: var(--gold-light); }
.servico-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.servico-card p { color: var(--gray-600); font-size: 0.92rem; }

.servicos-note {
  margin-top: 36px;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: var(--gray-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--gray-600);
  font-size: 0.92rem;
}

/* ---------- Diferenciais ---------- */
.diferenciais { background: var(--gray-50); }
.dif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}
@media (max-width: 980px) { .dif-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .dif-grid { grid-template-columns: 1fr; } }
.dif-item { display: flex; gap: 14px; }
.dif-item h3 { font-size: 1rem; margin-bottom: 6px; }
.dif-item p { color: var(--gray-600); font-size: 0.9rem; }

/* ---------- Como funciona ---------- */
.etapas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: etapa;
  position: relative;
}
@media (max-width: 980px) { .etapas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .etapas { grid-template-columns: 1fr; } }
.etapa-card { position: relative; padding-top: 8px; }
.etapa-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.etapa-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.etapa-card p { color: var(--gray-600); font-size: 0.9rem; }

/* ---------- Diagnóstico destaque ---------- */
.diagnostico-cta {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.diagnostico-cta::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,60,0.25), transparent 70%);
  top: -160px; right: -120px;
}
@media (max-width: 900px) {
  .diagnostico-cta { grid-template-columns: 1fr; padding: 40px 28px; }
}
.diagnostico-cta h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.diagnostico-cta > div > p { margin-top: 18px; color: rgba(255,255,255,0.78); max-width: 52ch; }
.diagnostico-list { margin-top: 26px; display: grid; gap: 12px; }
.diagnostico-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,0.88); font-size: 0.95rem; }
.diagnostico-list svg { flex: none; width: 18px; height: 18px; stroke: var(--gold-light); margin-top: 2px; }
.diagnostico-cta .btn { margin-top: 30px; }
.diagnostico-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: 30px;
}
.diagnostico-panel ol { display: grid; gap: 18px; counter-reset: d; }
.diagnostico-panel li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 0.92rem; color: rgba(255,255,255,0.85);
}
.diagnostico-panel li b {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- Chamada final ---------- */
.cta-final {
  text-align: center;
  padding: 110px 0;
}
.cta-final h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 780px; margin: 0 auto; }
.cta-final-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px; height: 190px;
  background: var(--white);
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}
.footer-brand-plate img { width: 100%; height: 100%; object-fit: contain; }
.footer-tagline { font-size: 0.95rem; color: rgba(255,255,255,0.6); max-width: 30ch; }
.footer-legal-block { margin-top: 14px; display: grid; gap: 4px; }
.footer-legal-block p { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.footer-legal-block a { font-size: 0.82rem; color: rgba(255,255,255,0.55); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-block a:hover { color: var(--gold-light); }
@media (max-width: 560px) {
  .footer-brand { text-align: center; }
  .footer-brand-plate { width: 160px; height: 160px; padding: 15px; margin: 0 auto 20px; }
  .footer-legal-block { justify-items: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 14px; margin-top: 6px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--gold-light); }
.footer-social svg { width: 16px; height: 16px; stroke: var(--white); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
