/* ═══════════════════════════════════════════════════════════════════════════
   MUELLER — Base CSS
   Reset moderno, tipografia global, layout base e utilitários.
   ═══════════════════════════════════════════════════════════════════════════ */

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

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

section[id] {
  scroll-margin-top: calc(var(--header-height, 70px) + 16px);
  border-top: 1px solid rgba(0, 0, 0, 0.035);
}

#inicio {
  border-top: none;
}

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

/* ─── Imagens ─────────────────────────────────────────────────────────────── */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* ─── Formulários e interativos ───────────────────────────────────────────── */
input, button, textarea, select {
  font: inherit;
}

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

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

ul, ol {
  list-style: none;
}

/* ─── Tipografia ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: #000000;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); line-height: 1.18; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.25; }
h4 { font-size: clamp(var(--text-lg), 1.8vw, 1.25rem); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  line-height: var(--leading-loose);
  color: var(--color-text);
}

strong { font-weight: var(--weight-semibold); }

/* ─── Seleção de texto ────────────────────────────────────────────────────── */
::selection {
  background-color: var(--mueller-lime);
  color: #000000;
}

/* ─── Focus acessível ─────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--mueller-lime);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── Container ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

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

/* ─── Section base ────────────────────────────────────────────────────────── */
section {
  padding-block: var(--section-pad);
}

/* ─── Utilitários de texto ────────────────────────────────────────────────── */
.text-center   { text-align: center; }
.text-left     { text-align: left; }
.text-right    { text-align: right; }
.text-muted    { color: var(--color-text-muted); }
.text-accent   { color: var(--mueller-lime); }
.text-offwhite { color: var(--mueller-offwhite); }
.text-light    { color: var(--mueller-light); }

.font-display  { font-family: var(--font-display); }
.font-bold     { font-weight: var(--weight-bold); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-medium   { font-weight: var(--weight-medium); }

/* ─── Utilitários de layout ───────────────────────────────────────────────── */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4         { gap: var(--space-4); }
.gap-6         { gap: var(--space-6); }
.gap-8         { gap: var(--space-8); }

.grid-auto     { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }

/* ─── Seção header utilitário ─────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1F3C00;
  background: rgba(166, 226, 46, 0.18);
  border: 1px solid rgba(166, 226, 46, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mueller-lime);
  box-shadow: 0 0 6px rgba(166, 226, 46, 0.7);
  flex-shrink: 0;
}

.section-header {
  max-width: 720px;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-header .section-label {
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  color: #000000;
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: clamp(0.975rem, 1.1vw, 1.075rem);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ─── Divisor decorativo ──────────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--mueller-lime), var(--mueller-green));
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.divider.centered { margin-inline: auto; }

/* ─── Utilitário de scroll-padding para header fixo ──────────────────────── */
[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

/* ─── Visually hidden (acessibilidade) ───────────────────────────────────── */
.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;
}
