/* ==========================================================================
   GEISI INTERIORES — Base: reset, tipografia, layout e utilidades
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--c-canvas);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, picture, video, svg { display: block; max-width: 100%; height: auto; }

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

button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }

:focus-visible {
  outline: 2px solid var(--c-gold-deep);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--c-gold); color: var(--c-ink); }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

/* Ênfase editorial: palavra em itálico serifado (padrão das referências) */
em, .em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
}

strong { font-weight: 600; }

p { text-wrap: pretty; }
p + p { margin-top: 1.1em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--c-ink-80);
}

/* Rótulo de seção — caixa alta espaçada com fio dourado */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-gold-deep);
  margin-bottom: var(--sp-5);
}
.eyebrow::before {
  content: "";
  width: clamp(28px, 4vw, 52px);
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: clamp(28px, 4vw, 52px);
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* Numerais editoriais 01 / 02 / 03 */
.numeral {
  font-family: var(--f-display);
  font-size: var(--fs-numeral);
  line-height: 1;
  color: var(--c-gold);
  font-style: italic;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 920px; }
.wrap--wide   { max-width: 1560px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-s); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* Temas de superfície */
.surface-warm { background: var(--c-canvas-warm); }
.surface-sand { background: var(--c-sand); }
.surface-dark {
  background: var(--c-ink);
  color: var(--c-bone);
}
.surface-dark h1, .surface-dark h2, .surface-dark h3, .surface-dark h4 { color: var(--c-bone); }
.surface-dark .lead { color: rgba(245, 245, 245, 0.74); }
.surface-dark .eyebrow { color: var(--c-gold); }

.measure { max-width: var(--maxw-text); }

/* Fio horizontal */
.rule { height: 1px; background: var(--c-line); border: 0; }
.surface-dark .rule { background: var(--c-line-light); }

/* ---------- Acessibilidade ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-bone);
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  transition: transform var(--t-fast) var(--e-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Animações de entrada ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity var(--t-slow) var(--e-out),
    transform var(--t-slow) var(--e-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="fade"] { transform: none; }
[data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
[data-reveal="right"] { transform: translate3d(32px, 0, 0); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Revelação de imagem: cortina que desliza */
.reveal-img {
  position: relative;
  overflow: hidden;
}
.reveal-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-canvas);
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 1.1s var(--e-inout);
}
.reveal-img.is-visible::after { transform: scaleY(0); }
.surface-dark .reveal-img::after { background: var(--c-ink); }

/* Parallax muito sutil (JS aplica --py) */
.parallax > * { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-img::after { display: none; }
}

/* ---------- Impressão ---------- */
@media print {
  .site-nav, .site-footer, .fab-whatsapp { display: none; }
  body { background: #fff; }
}
