/* ============================================
   ESTÚDIO LEPE — CSS Reset & Base
   ============================================ */

/* === RESET === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text-body);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* === IMAGENS === */
img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* === LINKS === */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

/* === LISTAS === */
ul, ol {
  list-style: none;
}

/* === HEADINGS === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-tight);
  color: var(--color-text-dark);
  font-weight: var(--fw-bold);
}

/* === BUTTONS === */
button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* === PARAGRAPHS === */
p {
  line-height: var(--lh-relaxed);
  color: var(--color-text-body);
}

/* === UTILIDADES BASE === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding) 0;
}

.section-title {
  font-size: var(--fs-h2);
  text-align: center;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-3xl);
}

/* === SKIP LINK (Acessibilidade) === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: var(--fw-semibold);
}

.skip-link:focus {
  top: 1rem;
}

/* === SELECTION === */
::selection {
  background: var(--color-primary);
  color: var(--color-text-light);
}

/* === SCROLLBAR (Webkit) === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* === FOCUS VISIBLE === */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* === MEDIA QUERIES HELPER === */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
}