/* Reset leve, tipografia e utilitários */

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

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

body {
  margin: 0;
  background: var(--ap-bg);
  color: var(--ap-text);
  font-family: var(--ap-font-body);
  font-size: var(--ap-fs-body);
  font-weight: 400;
  line-height: var(--ap-lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 var(--ap-space-4); }

/* Títulos: Cormorant Garamond 500 */
h1, h2, h3, h4,
.ap-h1, .ap-h2, .ap-h3 {
  margin: 0 0 var(--ap-space-4);
  font-family: var(--ap-font-display);
  font-weight: 500;
  color: var(--ap-heading);
  text-wrap: balance;
}

h1, .ap-h1 { font-size: var(--ap-fs-h1); line-height: var(--ap-lh-title); letter-spacing: var(--ap-ls-title); }
h2, .ap-h2 { font-size: var(--ap-fs-h2); line-height: var(--ap-lh-h2); }
h3, .ap-h3 { font-size: var(--ap-fs-h3); line-height: 1.15; }

em, .ap-quote { font-family: var(--ap-font-display); font-style: italic; }
strong, b { font-weight: 600; }

/* Eyebrow / subtítulo: Montserrat 500, caixa alta, +18% */
.ap-eyebrow {
  display: block;
  margin: 0 0 var(--ap-space-4);
  font-family: var(--ap-font-body);
  font-size: var(--ap-fs-eyebrow);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--ap-ls-eyebrow);
  text-transform: uppercase;
  color: var(--ap-verde-floresta);
}

.ap-caption { font-size: var(--ap-fs-small); line-height: 1.4; letter-spacing: .02em; }

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

.ap-section { padding-block: var(--ap-section-y); }
.ap-center { text-align: center; }

/* Fundos de seção — contraste conforme docs/IDENTIDADE-VISUAL.md §4 */
.ap-bg-creme    { background: var(--ap-creme-natural); color: var(--ap-carvao-natural); }
.ap-bg-verde,
.ap-bg-floresta { color: var(--ap-creme-natural); }
.ap-bg-verde    { background: var(--ap-verde-araucaria); }
.ap-bg-floresta { background: var(--ap-verde-floresta); }
.ap-bg-verde h1, .ap-bg-verde h2, .ap-bg-verde h3,
.ap-bg-floresta h1, .ap-bg-floresta h2, .ap-bg-floresta h3 { color: var(--ap-creme-natural); }
.ap-bg-verde .ap-eyebrow,
.ap-bg-floresta .ap-eyebrow { color: var(--ap-areia-serrana); }

/* Acessibilidade */
:focus-visible {
  outline: 2px solid var(--ap-verde-floresta);
  outline-offset: 3px;
}
.ap-bg-verde :focus-visible,
.ap-bg-floresta :focus-visible { outline-color: var(--ap-creme-natural); }

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

.ap-skip-link {
  position: absolute; left: var(--ap-space-4); top: -4rem; z-index: 1000;
  padding: var(--ap-space-3) var(--ap-space-5);
  background: var(--ap-verde-araucaria); color: var(--ap-creme-natural);
  text-decoration: none; font-weight: 600;
  transition: top var(--ap-dur) var(--ap-ease);
}
.ap-skip-link:focus { top: var(--ap-space-4); }

/* Símbolo e ícones */
.ap-symbol { width: 1.75rem; height: auto; }
.ap-icon { width: 2.5rem; height: 2.5rem; }

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