/* ============================================================
   BASE — reset enxuto + elementos globais + utilitários
   ============================================================ */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
}

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

img {
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--fw-semibold);
}

/* --- Foco visível e acessível --- */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Skip link (acessibilidade) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--c-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius) 0;
  font-weight: var(--fw-semibold);
}
.skip-link:focus {
  left: 0;
}

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-16);
}
.section--tight {
  padding-block: var(--space-10);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.section-head__title {
  font-size: var(--fs-2xl);
}
.section-head__subtitle {
  color: var(--c-text-muted);
  margin-top: var(--space-1);
  font-size: var(--fs-md);
}
.section-head__link {
  color: var(--c-primary);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.section-head__link:hover {
  text-decoration: underline;
}
/* Variante com títulos maiores */
.section-head--lg .section-head__title {
  font-size: var(--fs-4xl);
}
.section-head--lg .section-head__subtitle {
  font-size: var(--fs-lg);
  margin-top: var(--space-2);
}
.section-head__cta {
  padding: 14px 32px;
  font-size: var(--fs-md);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--c-primary);
}

/* --- Utilitários --- */
.muted {
  color: var(--c-text-muted);
}
.text-center {
  text-align: center;
}
.stack > * + * {
  margin-top: var(--space-4);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}

body.no-scroll {
  overflow: hidden;
}

.prose {
  max-width: 68ch;
}
.prose h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}
.prose h3 {
  font-size: var(--fs-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}
.prose p,
.prose li {
  color: var(--c-text-muted);
  margin-bottom: var(--space-3);
}
.prose ul {
  list-style: disc;
  padding-left: var(--space-6);
}
.prose a {
  color: var(--c-primary);
  text-decoration: underline;
}
