/*
  BOOT.CSS — Hospital do Cerrado
  Reset + estilos base de elementos HTML "puros" (sem classe).
  Carregar sempre DEPOIS de tokens.css e ANTES de components.css.
  Não colocar aqui nada de componente (.btn, .card etc.) — isso vai em components.css.
*/

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

* {
  margin: 0;
}

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

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

body {
  min-height: 100svh;
  font-family: var(--fonte-corpo);
  font-size: var(--texto-corpo);
  font-weight: var(--peso-regular);
  line-height: 1.6;
  color: var(--cor-texto-principal);
  background-color: var(--cor-branco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fonte-titulo);
  color: var(--cor-neutro-900);
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: var(--texto-h1); font-weight: var(--peso-extrabold); }
h2 { font-size: var(--texto-h2); font-weight: var(--peso-bold); }
h3 { font-size: var(--texto-h3); font-weight: var(--peso-bold); }
h4 { font-size: var(--texto-h4); font-weight: var(--peso-semibold); }
h5, h6 { font-size: var(--texto-h4); font-weight: var(--peso-semibold); }

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
  padding: 0;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

table {
  border-collapse: collapse;
}

/* O atributo hidden precisa vencer display:flex/grid de componentes
   (usado pelos filtros de lista para esconder itens) */
[hidden] {
  display: none !important;
}

/* ---------- Acessibilidade ---------- */
:focus-visible {
  outline: 2px solid var(--cor-laranja);
  outline-offset: 2px;
  border-radius: var(--raio-sm);
}

::selection {
  background-color: var(--cor-amarelo);
  color: var(--cor-neutro-900);
}

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

.skip-link {
  position: absolute;
  left: var(--espaco-4);
  top: -100px;
  z-index: 100;
  background: var(--cor-neutro-900);
  color: var(--cor-branco);
  padding: var(--espaco-3) var(--espaco-5);
  border-radius: var(--raio-sm);
  transition: top var(--transicao-padrao);
}

.skip-link:focus {
  top: var(--espaco-4);
}

/* ---------- Layout base ---------- */
.container {
  width: 100%;
  max-width: var(--largura-container);
  margin-inline: auto;
  padding-inline: var(--padding-container);
}

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--espaco-2);
  font-family: var(--fonte-corpo);
  font-size: var(--texto-eyebrow);
  font-weight: var(--peso-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cor-laranja-texto);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--cor-laranja);
}

.text-display {
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-extrabold);
  font-size: var(--texto-display);
  line-height: 1.1;
}

.text-lead {
  font-size: var(--texto-lead);
  color: var(--cor-texto-secundario);
}

.text-small {
  font-size: var(--texto-pequeno);
}

.text-caption {
  font-size: var(--texto-caption);
  color: var(--cor-texto-terciario);
}

/* Mantém junto um trecho que não pode quebrar no meio (CEP, CNPJ, telefone) */
.sem-quebra {
  white-space: nowrap;
}

.text-secundario {
  color: var(--cor-texto-secundario);
}

/* ---------- Espaçamento utilitário (evita style="" no HTML) ---------- */
.mt-5 { margin-top: var(--espaco-5); }
.mb-5 { margin-bottom: var(--espaco-5); }
.mb-6 { margin-bottom: var(--espaco-6); }
