/* Global tokens and primitives. Section builders read from here but do not edit it. */
:root {
  /* Brand palette — the only colors allowed on the page */
  --branco: #FFFFFF;
  --creme: #FBF1E6;
  --creme-quente: #F6E6D3;
  --areia: #F3DFC8;
  --caramelo-claro: #EBD3BA;
  --caramelo: #B9773A;
  --caramelo-escuro: #9C6331;
  --caramelo-profundo: #8A5526;
  --grafite: #2A2A2E;
  --grafite-claro: #62626A;
  --cinza-claro: #ECECEC;

  --font: 'Lexend', system-ui, sans-serif;

  /* Layout */
  --container: 1296px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(72px, 10vw, 140px);
  --radius: 12px;
  --radius-lg: 20px;

  /* Type scale */
  --fs-display: clamp(44px, 7.2vw, 104px);
  --fs-h1: clamp(36px, 5vw, 64px);
  --fs-h2: clamp(30px, 3.6vw, 48px);
  --fs-h3: clamp(20px, 1.8vw, 26px);
  --fs-lead: clamp(17px, 1.4vw, 20px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-eyebrow: 13px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.6;
  color: var(--grafite);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--caramelo-escuro);
}

/* Buttons: primary = caramelo pill, ghost = outlined pill */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 500 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--caramelo-profundo); color: var(--branco); }
.btn--primary:hover { background: var(--grafite); }
.btn--ghost { border-color: currentColor; color: var(--grafite); background: transparent; }
.btn--ghost:hover { background: var(--grafite); border-color: var(--grafite); color: var(--branco); }
.btn:active { transform: scale(.98); }

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

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

/* Scroll reveal: add .reveal to an element; main.js toggles .is-in when it
   enters the viewport. Use --reveal-delay for staggering. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--reveal-delay, 0s), transform .8s var(--ease) var(--reveal-delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
