/* ============================================================
   EXATA INTELIGÊNCIA CONTÁBIL — Design System
   Paleta: tons de "tinta de balanço" + verde-cédula
   Tipografia: Space Grotesk (display) / Inter (texto) / IBM Plex Mono (dados)
   ============================================================ */

:root {
  /* Cor — extraída diretamente da marca (azul-marinho + verde-limão do check) */
  --ink: #2c2c54;
  --ink-soft: #4a4a76;
  --paper: #f7f8f4;
  --paper-alt: #ffffff;
  --accent: #9bcc3f;       /* verde da marca — uso decorativo (preenchimentos, linhas, ícones) */
  --accent-deep: #4f7a1a;  /* verde com contraste acessível — uso em texto e botões */
  --accent-darker: #3c5e14;
  --accent-soft: #eef6dc;
  --line: #dde1d6;
  --muted: #65657f;

  /* Tipografia */
  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --container: 1140px;
  --radius: 2px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 46ch;
}

/* Eyebrow / label técnico, estilo cabeçalho de extrato */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--accent-deep);
  display: inline-block;
}

/* ---------- Layout utils ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--alt { background: var(--paper-alt); }

.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

.grid {
  display: grid;
  gap: var(--gap);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--2 > .ledger-card { order: 2; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--whats { background: var(--accent-deep); color: #fff; }
.btn--whats:hover { background: var(--accent-darker); transform: translateY(-1px); }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 246, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.logo small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.logo-mark { object-fit: contain; flex-shrink: 0; }

.nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--paper-alt);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 320px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--line);
  }
  .nav .btn--whats.nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* Cartão "ledger" — elemento de assinatura visual */
.ledger-card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0;
}
.ledger-card__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0.9rem 1.5rem 0.7rem;
}
.ledger-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.5rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateX(8px);
  animation: ledgerIn 0.5s ease forwards;
}
.ledger-row:nth-child(2) { animation-delay: 0.15s; }
.ledger-row:nth-child(3) { animation-delay: 0.3s; }
.ledger-row:nth-child(4) { animation-delay: 0.45s; }
.ledger-row:nth-child(5) { animation-delay: 0.6s; }
@keyframes ledgerIn { to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .ledger-row { opacity: 1; transform: none; animation: none; }
}

.ledger-row__index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-deep);
  width: 1.6em;
}
.ledger-row__label { flex: 1; font-size: 0.95rem; color: var(--ink); }
.ledger-row__bar {
  height: 4px;
  background: var(--accent-soft);
  border-radius: 2px;
  flex: 0 0 64px;
  position: relative;
  overflow: hidden;
}
.ledger-row__bar::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  width: var(--fill, 60%);
}
.ledger-card__foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---------- Cards de valor ---------- */
.value-card {
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}
.value-card .eyebrow { color: var(--muted); }
.value-card .eyebrow::before { background: var(--muted); }

/* ---------- Processo (sequência real) ---------- */
.process { position: relative; }
.process-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.process-step:first-child { border-top: none; }
.process-step__num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-deep);
}

/* ---------- Service cards ---------- */
.service-card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 1.75rem;
  border-radius: var(--radius);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card .eyebrow { font-size: 0.68rem; }
.service-card a.more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-deep);
  padding-top: 1rem;
}
.service-card a.more:hover { text-decoration: underline; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-banner h2 { color: var(--paper); margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-banner p { color: #c9d6d0; margin: 0.4rem 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-grid a:hover { color: var(--accent-deep); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Formulário (Contato) ---------- */
.form-grid { display: grid; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- Mapa ---------- */
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Contato info list ---------- */
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .eyebrow { margin: 0; min-width: 7.5rem; }

/* ---------- Animações de entrada ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Página interna: hero secundário ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero .lede { max-width: 60ch; }
