/* ============================================================
   BASE — Reset, Tipografia, Utilitários
   ============================================================ */

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

html {
  font-size: var(--size-body);
  scroll-behavior: auto; /* Lenis cuida do scroll */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--weight-regular);
  font-size: var(--size-body);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  /* cursor: none só quando cursor customizado estiver ativo (JS adiciona .custom-cursor) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cursor customizado ativo apenas quando JS confirmar */
body.custom-cursor {
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body.custom-cursor { cursor: auto; }
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol { list-style: none; }

/* --- Tipografia --- */
.eyebrow {
  font-size: var(--size-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-4);
}

h1, .h1 {
  font-size: var(--size-h1);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

h2, .h2 {
  font-size: var(--size-h2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
}

h3, .h3 {
  font-size: var(--size-h3);
  font-weight: var(--weight-demibold);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  font-size: var(--size-body);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

p strong {
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

/* --- Grid e Container --- */
.container {
  width: 100%;
  max-width: var(--grid-max);
  margin-inline: auto;
  padding-inline: var(--grid-pad);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gutter);
}

/* Utilitários de coluna */
.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* --- Seções --- */
section {
  position: relative;
}

.section-pad {
  padding-block: var(--space-11);
}

.section-pad-sm {
  padding-block: var(--space-9);
}

@media (max-width: 768px) {
  .section-pad    { padding-block: var(--space-8); }   /* 140px → 64px */
  .section-pad-sm { padding-block: var(--space-6); }   /* 80px  → 32px */
}

.divider {
  height: 1px;
  background-color: var(--color-line);
}

/* --- Focus visible para acessibilidade --- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* --- Texto utilitários --- */
.text-gold   { color: var(--color-gold); }
.text-muted  { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* --- Imagens em P&B --- */
.img-bw {
  filter: grayscale(100%);
  transition: filter var(--dur-slow) var(--ease-out);
}

.img-bw:hover {
  filter: grayscale(0%);
}

/* --- Visibilidade --- */
.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;
}

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

/* --- Responsividade base --- */
@media (max-width: 768px) {
  :root {
    --space-11: 80px;
    --space-10: 80px;
  }

  body {
    cursor: auto;
  }

  .grid-12 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-12 {
    grid-template-columns: 1fr;
  }
}
