/**
 * CSS Reset - Infinity Construtora
 *
 * Normalize e reset básico para consistência entre navegadores
 */

/* ============================================
   BOX SIZING
   ============================================ */

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

/* ============================================
   RESET BÁSICO
   ============================================ */

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--gray-dark);
  background-color: var(--infinity-white);
  overflow-x: hidden;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--infinity-black);
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-color);
}

a:hover {
  color: var(--infinity-gold);
}

/* ============================================
   LISTAS
   ============================================ */

ul, ol {
  list-style: none;
}

/* ============================================
   IMAGENS E MÍDIA
   ============================================ */

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

img {
  border-style: none;
}

/* ============================================
   FORMULÁRIOS
   ============================================ */

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

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ============================================
   TABELAS
   ============================================ */

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* ============================================
   SELEÇÃO DE TEXTO
   ============================================ */

::selection {
  background-color: var(--infinity-gold);
  color: var(--infinity-black);
}

::-moz-selection {
  background-color: var(--infinity-gold);
  color: var(--infinity-black);
}

/* ============================================
   SCROLLBAR CUSTOMIZADA
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--gray-medium);
  border-radius: var(--border-radius-lg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--infinity-gold);
}

/* ============================================
   UTILITÁRIOS GERAIS
   ============================================ */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
