/* ============================================================
   MÍDIA 43 — Base Styles: Reset + Typography + Globals
   ============================================================ */

/* --- Modern CSS Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* --- Semantic Elements --- */
img, video, svg {
  display: block;
  max-width: 100%;
}

ul, ol { list-style: none; }

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

p { max-width: 65ch; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
}

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

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

/* --- Text Utilities --- */
.text-accent   { color: var(--color-accent); }
.text-muted    { color: var(--color-text-muted); }
.text-secondary{ color: var(--color-text-secondary); }

/* --- Section Spacing --- */
.section {
  padding-block: var(--space-20);
}

.section--lg {
  padding-block: var(--space-24);
}

/* --- Section Header --- */
.section__header {
  margin-bottom: var(--space-12);
  text-align: center;
}

.section__label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section__title {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
  font-weight: var(--font-weight-black);
  color: var(--color-text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section__subtitle {
  margin-top: var(--space-4);
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 52ch;
  margin-inline: auto;
  line-height: var(--line-height-relaxed);
}

/* --- Divider accent --- */
.accent-line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  margin-inline: auto;
  margin-top: var(--space-5);
}
