/* ============================================================
   ECO — Reset & Base Styles
   ============================================================ */

/* ── BOX SIZING UNIVERSAL ────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── HTML & BODY ─────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--eco-gray-800);
  background-color: var(--eco-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── TIPOGRAFIA BASE ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
  color: var(--eco-gray-900);
}

p {
  line-height: var(--leading-relaxed);
  color: var(--eco-gray-700);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ── FOCO / ACESSIBILIDADE ───────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--eco-green);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── SCROLLBAR CUSTOMIZADA ───────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--eco-gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--eco-gray-400);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--eco-cyan);
}

/* ── SELECTION ───────────────────────────────────────────── */
::selection {
  background: rgba(10,185,230,0.15);
  color: var(--eco-navy-dark);
}

/* ── UTILITIES GERAIS ────────────────────────────────────── */
.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;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

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

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

/* ── SECTION BASE ────────────────────────────────────────── */
section {
  position: relative;
  width: 100%;
}

/* ── PREVENT OVERFLOW ────────────────────────────────────── */
.overflow-hidden { overflow: hidden; }
