/* ==========================================================
   Economatos — tokens
   ========================================================== */
:root {
  --ink: #0f241b;
  --pine: #14382b;
  --pine-2: #1d4a39;
  --pine-soft: #dce5dc;
  --paper: #f2f4ee;
  --card: #ffffff;
  --line: #d9dfd3;
  --brass: #a87b2f;
  --brass-dark: #8c6420;
  --brass-bright: #d9a94e;
  --chart-grid: #e2e7dc;
  --chart-axis: #b9c2b2;

  --font-display: "Petrona", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --container: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 14px;
}

/* ==========================================================
   Botões
   ========================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-solid {
  background: var(--pine);
  color: #fff;
}
.btn-solid:hover { background: var(--pine-2); }

.btn-ghost {
  border-color: var(--pine);
  color: var(--pine);
}
.btn-ghost:hover { background: rgba(20, 56, 43, 0.07); }

.btn-brass {
  background: var(--brass);
  color: #fff;
}
.btn-brass:hover { background: var(--brass-dark); }

.btn-small { padding: 9px 18px; font-size: 0.875rem; }

/* ==========================================================
   Topbar
   ========================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--pine);
}

.brand-mark { width: 26px; height: 19px; color: var(--brass); }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.85;
}
.nav a:hover { opacity: 1; color: var(--pine); }

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

/* ==========================================================
   Hero
   ========================================================== */
.hero { padding: 72px 0 56px; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.1rem);
  color: var(--pine);
}

.hero-sub {
  margin-top: 22px;
  max-width: 34em;
  font-size: 1.125rem;
  color: #33443c;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: #5a6a61;
}
.hero-note a { color: var(--pine); font-weight: 500; }

.hero-chart { min-width: 0; }
.hero-chart svg { width: 100%; height: auto; display: block; }

.chart-label {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: #5a6a61;
}
.chart-label-brass { fill: var(--brass-dark); }

/* animação: linha se desenha ao carregar */
.chart-line {
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: draw 1.9s cubic-bezier(0.6, 0, 0.3, 1) 0.35s forwards;
}
.chart-dot {
  opacity: 0;
  animation: appear 0.4s ease 2.1s forwards;
}
.chart-goal {
  stroke-dashoffset: 470;
  animation: draw 1.2s ease 0.2s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chart-line, .chart-goal { animation: none; stroke-dashoffset: 0; }
  .chart-dot { animation: none; opacity: 1; }
}

/* ==========================================================
   Ticker de indicadores
   ========================================================== */
.ticker {
  background: var(--pine);
  color: #e8eee7;
  padding: 18px 0;
}

.ticker-inner {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 36px;
  font-family: var(--font-mono);
}

.ticker-title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.ticker-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
}

.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ticker-item dt {
  font-size: 0.78rem;
  opacity: 0.75;
}

.ticker-item dd {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.ticker-source {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0.6;
}

/* ==========================================================
   Seções
   ========================================================== */
.section { padding: 88px 0; }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--pine);
}

.section-intro {
  margin-top: 18px;
  font-size: 1.0625rem;
  color: #33443c;
}

/* --- cards (empresas) --- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.card h3 { color: var(--pine); margin-bottom: 10px; }
.card p { font-size: 0.9688rem; color: #3c4c44; }

/* --- seção escura (pessoas) --- */
.section-dark {
  background: var(--pine);
  color: #e8eee7;
}

.section-dark .eyebrow { color: var(--brass-bright); }
.section-dark h2 { color: #fff; }
.section-dark .section-intro { color: #c4d1c5; }

.list-services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}

.list-services li {
  padding: 26px 0;
  border-top: 1px solid rgba(232, 238, 231, 0.18);
}

.list-services h3 { color: #fff; margin-bottom: 8px; }
.list-services p { font-size: 0.9688rem; color: #c4d1c5; }

/* --- método (etapas) --- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: none;
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brass-dark);
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  line-height: 31px;
  text-align: center;
  margin-bottom: 16px;
}

.step h3 { color: var(--pine); margin-bottom: 8px; }
.step p { font-size: 0.9375rem; color: #3c4c44; }

/* --- quem faz --- */
.section-quem { padding-top: 0; }

.quem-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 88px;
}

.quem-foto svg,
.quem-foto img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.quem-copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--pine);
  margin-bottom: 18px;
}

.quem-copy p { max-width: 38em; color: #33443c; }
.quem-copy p + p { margin-top: 14px; }

.link-arrow {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--brass-dark);
  text-decoration: none;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* --- CTA final --- */
.section-cta {
  background: var(--pine);
  color: #e8eee7;
  text-align: center;
}

.cta-inner { max-width: 620px; }

.section-cta h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: #fff;
}

.section-cta p {
  margin: 18px 0 30px;
  color: #c4d1c5;
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  background: var(--ink);
  color: #aebbaf;
  padding: 44px 0;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e8eee7;
}

.footer-contato { font-style: normal; line-height: 1.7; }
.footer a { color: #d7e0d5; }

.footer-legal { margin-left: auto; opacity: 0.7; }

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-chart { max-width: 480px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quem-inner { grid-template-columns: 1fr; gap: 32px; }
  .quem-foto { max-width: 240px; }
  .ticker-source { margin-left: 0; flex-basis: 100%; }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .nav a:first-child { border-top: none; }
  .nav-toggle { display: flex; }
  .topbar-inner .btn-small { margin-left: auto; white-space: nowrap; }
  .topbar-inner { gap: 12px; }
}

@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
  .list-services { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 48px 0 40px; }
}
