/* ==========================================================================
   Reset Moderno — BarberSy
   Baseado no "Modern CSS Reset" por Andy Bell (piccalil.li).
   Remove inconsistências entre browsers sem apagar estilos úteis.
   ========================================================================== */

/* 1. Define box-sizing globalmente e herda nos filhos */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove margens e paddings padrão */
* {
  margin: 0;
  padding: 0;
}

/* 3. Evita overflow horizontal indesejado */
html {
  overflow-x: hidden;
  /* Scroll suave nativo para todas as âncoras (moderno, sem JS) */
  scroll-behavior: smooth;
}

/* Oculta a barra de rolagem (scrollbar) mantendo a rolagem ativa */
html, body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* 4. Respeita a preferência do sistema por menos movimento */
@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;
  }
}

/* 5. Body como bloco flexível para layouts de página inteira */
body {
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 6. Imagens e mídia responsivas por padrão */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Elementos de formulário herdam fonte do pai */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Remove estilo de lista apenas quando tem role="list" explícito */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* 9. Evita que textos longos quebrem o layout */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 10. Remove decoração de links por padrão */
a {
  text-decoration: none;
  color: inherit;
}

/* 11. Normaliza botões */
button {
  cursor: pointer;
  background: none;
  border: none;
}
