/* ============================================================
   reset.css — Modern CSS reset
   Baseado em Andy Bell + Josh Comeau (adaptado).
   ============================================================ */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

html:focus-within { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: var(--lh-normal, 1.5);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Remove list styles em listas com role */
ul[role="list"], ol[role="list"] { list-style: none; }

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

/* Tipografia herdada nos forms */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

/* Remove botão default visual */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Quebra de palavra para conteúdo longo */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Acomoda ID âncoras com header fixo */
:target { scroll-margin-top: calc(var(--header-h, 80px) + var(--sp-4, 1rem)); }

/* Links sem decoração default; cor herdada */
a {
  color: inherit;
  text-decoration: none;
}

/* Remove fieldset border default */
fieldset { border: 0; }

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

/* Hidden (atributo + utility) */
[hidden] { display: none !important; } /* sobrepõe display utility por convenção HTML */

/* Foco coerente */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-primary, #1C788C);
  outline-offset: 2px;
  border-radius: 2px;
}
