/* =========================================================
   ARTES VISUAIS — Base & Tipografia
   Reset leve, foco em tipografia Apple-style.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 60px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.003em;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body input,
body textarea,
body select,
body [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}
svg { display: block; }

i[data-lucide],
svg.lucide,
.lucide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  stroke-width: 1.75;
  flex-shrink: 0;
  line-height: 1;
}

i[data-lucide] svg,
svg.lucide {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  flex-shrink: 0;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}
a:hover { color: var(--ink); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  letter-spacing: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; font-family: var(--font-display); letter-spacing: -0.02em; }
p  { margin: 0; }

em { font-style: italic; color: var(--gold-deep); }

/* ====================================================
   TIPOGRAFIA BASE — hierarquia editorial
   ==================================================== */
.display {
  font-family: var(--font-display);
  font-size: var(--step-hero);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 300;
  color: var(--ink);
}

h1 { font-size: var(--step-3xl); line-height: 1.02; font-weight: 300; }
h2 { font-size: var(--step-2xl); line-height: 1.08; font-weight: 300; }
h3 { font-size: var(--step-xl);   line-height: 1.18; font-weight: 400; }
h4 { font-size: var(--step-lg);   line-height: 1.3;  font-weight: 500; font-family: var(--font-body); letter-spacing: -0.01em; }

.caption {
  font-family: var(--font-caption);
  font-size: var(--step-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-body);
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ====================================================
   BOTÕES — estilos base & variantes compactas
   ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.62em 1.25em;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: var(--radius-btn);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.42em 0.85em;
  font-size: 0.76rem;
}

.btn-primary {
  background: var(--graphite);
  color: var(--on-graphite);
  border: 1px solid var(--graphite);
}
.btn-primary:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #ffffff;
}

.btn-sage {
  background: var(--sage);
  color: var(--paper);
  border: 1px solid var(--sage);
}
.btn-sage:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
  background: var(--sage-mist);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  color: var(--ink);
}

.lead {
  font-size: var(--step-lg);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ====================================================
   LAYOUT — container e espaçamento de seção
   ==================================================== */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(var(--s-5), 7vw, var(--s-7));
  position: relative;
}

.section--tight { padding-block: var(--s-5); }

.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;
}

/* ====================================================
   HAIRLINE utilitário
   ==================================================== */
.hairline-top    { border-top:    1px solid var(--line); }
.hairline-bottom { border-bottom: 1px solid var(--line); }
.hairline        { border:        1px solid var(--line); }

/* ====================================================
   REVEAL on scroll (leve — sem animações excessivas)
   ==================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
