/* ==========================================================================
   JV LIGHT ILUMINAÇÕES - MODERN CSS RESET & ACCESSIBILITY BASE (AUDITADO)
   ========================================================================== */

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

/* Prevenção de scroll horizontal e ajuste de navegação por âncora */
html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* Compensação perfeita para o header fixo */
  -webkit-text-size-adjust: 100%;
  background-color: var(--color-black);
  color: var(--color-text);
  overflow-x: hidden;
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-black);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Imagens e mídias otimizadas */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Reset de elementos de formulário e botões */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

/* Listas */
ul,
ol {
  list-style: none;
}

/* Headings reset */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--lh-heading);
  color: var(--color-text);
}

/* ------------------------------------------------------------------------
   ACESSIBILIDADE, TECLADO (:focus-visible) E SKIP LINK
   ------------------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.btn-primary:focus-visible,
.tech-badge:focus-visible {
  border-radius: var(--radius-full);
}

/* Skip link acessível para usuários de leitor de tela / navegação por teclado */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--color-cyan);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  box-shadow: var(--glow-cyan-md);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 1rem;
}

/* Esconder elementos visualmente mantendo leitura para Screen Readers */
.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;
}

/* ------------------------------------------------------------------------
   PREFERS-REDUCED-MOTION
   ------------------------------------------------------------------------ */
@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;
  }
}
