/* ==========================================================
   BASE  ·  reset, tipografia, acessibilidade, botões
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
summary { cursor: pointer; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 2.6; }

/* Acessibilidade */
.skip-link {
  position: fixed; left: 1rem; top: calc(.75rem + env(safe-area-inset-top, 0px)); z-index: 200;
  padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--clay-700); color: #fff; font-weight: 600;
  transform: translateY(-250%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 3px solid var(--clay-700); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: #fff; }

/* Layout utilitário */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { --container: 880px; }
.section { padding-block: var(--section-y); }

/* Tipografia */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-h2);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--clay-600);
}
.h2--xl { font-size: var(--step-h2xl); color: #fff; line-height: 1.02; }
.eyebrow {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }

.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); display: grid; justify-items: center; gap: .5rem; }
.section-head__sub { font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-top: .35rem; }
.section-head__sub--plain { font-size: var(--step-1); letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.section-head--light .h2 { color: #fff; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .75rem 1.9rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(143, 72, 36, .7); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: var(--brand); border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--brand-hover); }

/* Entrada do hero (única animação orquestrada) */
.reveal { animation: rise .8s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

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