/* Conexão Franca — base compartilhada (tokens, reset, tipografia, botões, utilitários).
   NÃO redefinir estes tokens nos CSS das seções: use var(--...). */
:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #0d1b2a;
  --ink-2: #3b4756;
  --muted: #667085;
  --line: #e4e2da;
  --accent: #0b8f6a;
  --accent-ink: #06614a;
  --accent-soft: #dff3ec;
  --warm: #f2a33a;
  --warm-soft: #fdf0dc;
  --dark: #0d1b2a;
  --dark-2: #14283d;
  --dark-line: rgba(255, 255, 255, .12);
  --on-dark: #eef2f6;
  --on-dark-muted: #a9b6c4;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06), 0 2px 8px rgba(13, 27, 42, .05);
  --shadow-md: 0 8px 28px rgba(13, 27, 42, .10);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, .18);

  --container: 1160px;
  --gutter: 20px;
  --sec-y: clamp(64px, 9vw, 112px);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sec { padding-block: var(--sec-y); }
.sec--dark { background: var(--dark); color: var(--on-dark); }
.sec--white { background: var(--surface); }
.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; }

/* Cabeçalho de seção: "01 / Projetos" + título + lead */
.sec__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink);
}
.sec__eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.sec--dark .sec__eyebrow { color: var(--warm); }
.sec__title { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; margin-top: 14px; max-width: 20ch; text-wrap: balance; }
.sec__lead { margin-top: 16px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.sec--dark .sec__lead { color: var(--on-dark-muted); }
.destaque { color: var(--accent); }
.sec--dark .destaque { color: var(--warm); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(11, 143, 106, .28); }
.btn--primary:hover { background: var(--accent-ink); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--dark-2); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.sec--dark .btn--ghost { border-color: var(--dark-line); color: var(--on-dark); }
.sec--dark .btn--ghost:hover { background: #fff; color: var(--dark); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.chip--warm { background: var(--warm-soft); color: #8a5400; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }

/* Revelar ao rolar (main.js adiciona .is-in); sem JS tudo aparece */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
