/* ==========================================================================
   Reset & Base — Barbearia Sr. & Sra. Carvalho
   Baseado em modern-normalize + ajustes para tema escuro
   ========================================================================== */

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

/* Remover margens padrão */
body,
h1, h2, h3, h4, h5, h6,
p, blockquote, dl, dd,
ul, ol,
figure,
fieldset,
form {
  margin: 0;
}

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

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Listas sem estilo padrão */
ul, ol {
  list-style: none;
  padding: 0;
}

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

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

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

/* Formulários */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

/* Botões */
button {
  cursor: pointer;
}

/* Tabelas */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Elementos ocultos acessivelmente */
.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;
}

/* Foco visível global */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Seleção de texto */
::selection {
  background-color: var(--accent-bg);
  color: var(--text);
}

/* Scrollbar sutil (WebKit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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