/* ==========================================================================
   GuiaNF Editorial — Base
   Tokens, reset, tipografia, utilitários e animações.
   Extraído de app/globals.css (Next.js) para o tema WordPress.
   ========================================================================== */

/* --- Design Tokens (Variáveis CSS) --- */
:root {
  --content-width: 1380px;
  --content-axis: calc(var(--content-width) - 48px);
  --content-gutter: 48px;

  /* Paleta Principal */
  --ink: #072533;
  --ink-deep: #051d28;
  --petrol: #0b3b49;
  --petrol-dark: #073341;
  --teal: #0f8b89;
  --teal-light: #159f9d;
  --aqua: #22b8a5;
  --aqua-soft: #e2f5f1;
  --coral: #f06152;
  --coral-soft: #ffede8;
  --orange: #e57d38;
  --orange-soft: #ffefe3;

  /* Neutros */
  --paper: #f9f8f4;
  --surface: #ffffff;
  --muted: #425c66;
  --muted-light: #627b85;
  --line: #d6e2e1;

  /* Sombras */
  --shadow-sm: 0 4px 14px rgba(11, 45, 61, 0.05);
  --shadow: 0 16px 40px rgba(11, 45, 61, 0.08);
  --shadow-lg: 0 24px 56px rgba(11, 45, 61, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Utilitários --- */
.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--petrol);
  color: white;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Animações --- */
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: scale(0.98) translateX(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Focus Visible (Acessibilidade) --- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--aqua) !important;
  outline-offset: 3px !important;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
