/* ============================================================
   RESET CSS — LIRIOS PRATAS
   Reset moderno + Normalize seletivo + acessibilidade de foco
   ============================================================ */

/* --- Box-sizing universal --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --- Scroll suave e base tipográfica --- */
html {
  scroll-behavior: smooth;
  font-size: 100%; /* 1rem = 16px por padrão do browser */
  -webkit-text-size-adjust: 100%; /* evita zoom automático em iOS */
  tab-size: 4;
}

/* --- Reset de margem e padding global --- */
body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol, li,
figure, figcaption,
blockquote,
dl, dd,
fieldset,
legend,
pre {
  margin: 0;
  padding: 0;
}

/* --- Font-smoothing e base de cor --- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}

/* --- Normalização de elementos de seção HTML5 --- */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

/* --- Listas sem marcadores --- */
ul,
ol {
  list-style: none;
}

/* --- Links sem decoração por padrão --- */
a {
  text-decoration: none;
  color: inherit;
  background-color: transparent; /* remove highlight antigo no IE */
}

/* --- Imagens responsivas e sem border (modo quirks antigo) --- */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

/* --- Remove outline padrão — foco acessível via :focus-visible --- */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2.5px solid var(--color-pink-dark, #e891c0);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Botão sem estilo nativo --- */
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* --- Inputs herdam tipografia --- */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* --- Remove resize horizontal de textareas --- */
textarea {
  resize: vertical;
}

/* --- Remove spinner nativo de number input --- */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* --- Remove estilo nativo do search input --- */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* --- Normaliza fieldset e legend --- */
fieldset {
  border: 0;
}

legend {
  display: table;
  max-width: 100%;
  white-space: normal;
}

/* --- Tabelas sem espaçamento padrão --- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* --- Remove itálico padrão de address e cite --- */
address,
cite {
  font-style: normal;
}

/* --- Remove bold padrão de strong e b (deixamos para o design system) --- */
strong,
b {
  font-weight: 700;
}

/* --- Marca de texto sem fundo amarelo padrão --- */
::-moz-selection {
  background: var(--color-pink-light, #fdd5ea);
  color: var(--color-wine-dark, #4d0a1e);
}

::selection {
  background: var(--color-pink-light, #fdd5ea);
  color: var(--color-wine-dark, #4d0a1e);
}

/* --- Esconde elementos com hidden --- */
[hidden] {
  display: none !important;
}
