/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  /* `hidden` transforma o body num container de rolagem (overflow-y vira auto)
     e atrapalha as medições do pin do GSAP. `clip` corta o transbordo lateral
     sem criar rolagem; a primeira linha é o fallback de navegadores antigos. */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

ul { list-style: none; }

/* Âncoras não ficam escondidas atrás do nav fixo */
section[id] { scroll-margin-top: var(--nav-h); }

/* ── Escala tipográfica ── */
.text-hero {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.text-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.text-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
}

.text-body  { font-family: var(--font-body); font-size: 1rem;   line-height: 1.6;  color: var(--ink); }
.text-muted { font-family: var(--font-body); font-size: 0.9rem; line-height: 1.55; color: var(--muted); }

.text-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Filete dourado que ancora o eyebrow — detalhe de acabamento */
.text-eyebrow::before {
  content: "";
  width: var(--sp-4);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  flex-shrink: 0;
}

/* ── Layout util ── */
.container {
  width: 100%;
  max-width: 1216px; /* 1152 de conteúdo + 2×32 de respiro */
  margin-inline: auto;
  padding-inline: var(--sp-3);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--sp-4); }
}

.section { padding-block: var(--sp-12); }

@media (min-width: 1280px) {
  .section { padding-block: var(--sp-16); }
}

/* ── Reflexo dourado que segue o mouse nos títulos display ──
   Ativado via html.shine-on (só desktop com hover e sem reduced-motion).
   Fora do raio do cursor o gradiente devolve a cor de tinta normal. */
html.shine-on .js-shine {
  background-image: radial-gradient(
    280px circle at var(--sx, -999px) var(--sy, -999px),
    var(--accent-hover) 0%,
    rgba(244, 239, 230, 0.98) 38%,
    var(--ink) 68%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Estado inicial das animações (GSAP assume a partir daqui) ── */
.anim-hidden { opacity: 0; transform: translateY(50px); }
.anim-hidden-left { opacity: 0; transform: translateX(-60px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-hidden, .anim-hidden-left { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Acessibilidade: foco visível global */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Leitores de tela */
.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;
}
