/* ============================================================
   LACMOO — reset.css
   Normalize moderno + base global + proteção de imagens
   ============================================================ */

/* ----------------------------------------------------------
   RESET MODERNO — Box model e base
---------------------------------------------------------- */

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

/* ----------------------------------------------------------
   HTML & BODY
---------------------------------------------------------- */

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-main);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------
   TIPOGRAFIA BASE
---------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-dark);
}

p {
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------
   LISTAS
---------------------------------------------------------- */

ul, ol {
  list-style: none;
}

/* ----------------------------------------------------------
   IMAGENS — proteção total contra arrastar/selecionar
   Importante para apresentações e demonstrações
---------------------------------------------------------- */

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

  /* Impede arrastar a imagem */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;

  /* Impede selecionar a imagem */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  /* Remove pointer padrão em imagens decorativas */
  pointer-events: none;
}

/* Imagens que precisam de clique (links, produtos) */
a img,
button img,
.img-clickable {
  pointer-events: auto;
  cursor: pointer;
}

/* ----------------------------------------------------------
   FORMULÁRIOS
---------------------------------------------------------- */

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent; /* remove flash azul no iOS/Android */
  touch-action: manipulation; /* remove delay de 300ms no tap mobile */
}

input,
textarea,
select {
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 0;
}

/* ----------------------------------------------------------
   TABELAS
---------------------------------------------------------- */

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* ----------------------------------------------------------
   MÍDIA
---------------------------------------------------------- */

video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* ----------------------------------------------------------
   SELEÇÃO DE TEXTO — cor da marca
---------------------------------------------------------- */

::selection {
  background-color: var(--color-bg-accent);
  color: var(--color-text-dark);
}

::-moz-selection {
  background-color: var(--color-bg-accent);
  color: var(--color-text-dark);
}

/* ----------------------------------------------------------
   SCROLLBAR CUSTOMIZADA — sutil e com a cor da marca
---------------------------------------------------------- */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

/* ----------------------------------------------------------
   REDUÇÃO DE MOVIMENTO — acessibilidade
---------------------------------------------------------- */

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