/* ============================================
   ADFIB — Base / Reset / Layout primitives
   ============================================ */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--fg-body);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  text-wrap: pretty;
}

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--brand-hover); }

/* Headings — Inter, minimalista (pesos baixos) */
h1, h2, h3, h4, h5, h6, .display, .heading {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--fg);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h1, .h1 { font-size: var(--fs-4xl); font-weight: 300; letter-spacing: -0.035em; }
h2, .h2 { font-size: var(--fs-3xl); font-weight: 300; letter-spacing: -0.03em; }
h3, .h3 { font-size: var(--fs-2xl); font-weight: 400; line-height: var(--lh-snug); letter-spacing: -0.025em; }
h4, .h4 { font-size: var(--fs-xl);  font-weight: 500; line-height: var(--lh-snug); letter-spacing: var(--tracking-snug); }
h5, .h5 { font-size: var(--fs-lg);  font-weight: 500; line-height: var(--lh-snug); }
h6, .h6 { font-size: var(--fs-base); font-weight: 600; line-height: var(--lh-snug); letter-spacing: 0; text-transform: none; }

p { line-height: var(--lh-relaxed); }
p + p { margin-top: 1em; }

strong { font-weight: 600; color: var(--ink-800); }
em { font-style: italic; }

/* Listas básicas */
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.35em; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-2xl) 0;
}

/* ---------- LAYOUT PRIMITIVES ---------- */

.container {
  width: 100%;
  max-width: var(--container-default);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }
.container--full   { max-width: var(--container-full); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
.section--alt   { background: var(--bg-alt); }
.section--brand { background: var(--green-950); color: var(--cream-100); }
.section--brand h1, .section--brand h2, .section--brand h3 { color: var(--cream-50); }

/* Eyebrow / kicker — uppercase tiny label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
  opacity: 0.7;
}
.eyebrow--gold { color: var(--gold-600); }
.eyebrow--muted { color: var(--fg-muted); }
.eyebrow--center { justify-content: center; }
.eyebrow--no-bar::before { display: none; }

/* Lead paragraph */
.lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--stone-700);
  text-wrap: pretty;
}

/* Skip link — acessibilidade */
.skip-link {
  position: absolute;
  top: 0; left: 0;
  padding: 0.75rem 1rem;
  background: var(--green-700);
  color: var(--cream-50);
  font-weight: 600;
  font-size: var(--fs-sm);
  z-index: 9999;
  transform: translateY(-150%);
  transition: transform var(--transition-fast);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { transform: translateY(0); color: var(--cream-50); }

/* Visually hidden but available to screen readers */
.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;
}

/* Foco visível — sempre */
:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Selection */
::selection {
  background: var(--green-700);
  color: var(--cream-50);
}

/* Decoração — folha-laurel ornament (referência ao logo) */
.ornament {
  display: inline-block;
  width: 64px;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 12'><path d='M0 6 L64 6' stroke='%231F5F3F' stroke-width='1' opacity='0.4'/><circle cx='32' cy='6' r='2' fill='%23B0832E'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
