/* ==========================================================================
   Base - Reset e estilos globais
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--altura-header) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  color: var(--ox-text);
  background: var(--ox-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ox-graphite);
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: var(--font-size-base);
}

/* Foco visivel para acessibilidade */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--ox-info);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--largura-maxima);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.somente-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.somente-leitor--pular:focus {
  position: fixed;
  top: var(--spacing-md);
  left: var(--spacing-md);
  width: auto;
  height: auto;
  clip: auto;
  background: var(--ox-graphite);
  color: var(--ox-white);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  z-index: 999;
}

main {
  display: block;
  padding-top: var(--altura-header);
}

section {
  padding: var(--spacing-3xl) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--spacing-2xl) 0;
  }

  .container {
    padding: 0 var(--spacing-md);
  }
}
