/* ==========================================================================
   Willenberg Rocha — Design system (tokens + base)
   Cores derivadas do monograma (navy + dourado do logo) e das fotos (marfim).
   ========================================================================== */

:root {
  /* Cor */
  --navy-950: #0a0f1d;
  --navy-900: #0e1628;
  --navy-800: #152038;
  --navy-700: #1e2b47;
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #111726;
  --ink-soft: #4a5163;
  --gold: #b09a64;          /* dourado do logo */
  --gold-light: #cdb880;    /* dourado sobre fundo escuro (AA) */
  --gold-ink: #6f5b30;      /* dourado sobre fundo claro (AA) */
  --on-dark: #ece8df;
  --on-dark-soft: #a3a9b8;
  --line-dark: rgba(236, 232, 223, 0.14);
  --line-light: rgba(17, 23, 38, 0.14);

  /* Tipografia — Poppins (referência do cliente) */
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(1.95rem, 1.4rem + 2.2vw, 3.1rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.72rem;

  /* Espaço e grid */
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --section-y: clamp(88px, 11vw, 168px);
  --radius: 2px;
  --header-h: 76px;

  /* Movimento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.25s;
  --dur: 0.6s;
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--on-dark);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--gold); color: var(--navy-950); }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.on-light :focus-visible { outline-color: var(--gold-ink); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  padding: 12px 18px; background: var(--gold); color: var(--navy-950); font-weight: 500;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.on-dark { background: var(--navy-900); color: var(--on-dark); }
.on-darker { background: var(--navy-950); color: var(--on-dark); }
.on-light { background: var(--paper); color: var(--ink); }
.on-light-2 { background: var(--paper-2); color: var(--ink); }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-light);
}
.on-light .eyebrow, .on-light-2 .eyebrow { color: var(--gold-ink); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.h-display { font-size: var(--fs-display); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.25; }
.lead { font-size: var(--fs-lead); line-height: 1.65; font-weight: 300; }
.muted { color: var(--on-dark-soft); }
.on-light .muted, .on-light-2 .muted { color: var(--ink-soft); }
.small { font-size: var(--fs-small); }

.prose p + p { margin-top: 1.1em; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* Linhas de título com máscara (preenchidas pelo motion.js) */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; }

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