/* ============================================================
   NetAccess — Reset, tipografia e primitivas de layout
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;               /* rede de segurança anti-overflow */
}

img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p, li { overflow-wrap: anywhere; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; border-radius: 4px; }

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

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

.section { padding-block: clamp(48px, 7.5vw, 96px); }
.section--alt  { background: var(--bg-alt); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: var(--on-dark); }

.section__head {
  max-width: 660px;
  margin: 0 auto clamp(28px, 5vw, 52px);
  text-align: center;
}
.section__title { font-size: clamp(26px, 4.4vw, 40px); }
.section__subtitle {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.5;
}
.section--dark .section__subtitle { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.section--dark .eyebrow { color: #fff; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }

/* ---------- Utilitários ---------- */
.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;
}
.text-center { text-align: center; }
.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
