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

.container--narrow {
  max-width: var(--container-narrow);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* ─── Seções ───────────────────────────────────────────────────── */
.section {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.section--tight {
  padding-block: clamp(2rem, 4vw, 4rem);
}

.section--surface {
  background: var(--color-surface);
}

.section--brand {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  color: #fff;
}

.section--brand h1,
.section--brand h2,
.section--brand h3,
.section--brand p {
  color: #fff;
}

/* ─── Header de seção ──────────────────────────────────────────── */
.section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-head__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: var(--space-3);
}

.section-head__title {
  margin-bottom: var(--space-4);
}

.section-head__lead {
  font-size: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
  color: var(--color-ink-muted);
}

/* ─── Grids ────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 1024px) {
  .grid {
    gap: var(--space-8);
  }
}

/* ─── Flex utilities ───────────────────────────────────────────── */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ─── Text utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--color-ink-muted); }
.text-brand { color: var(--color-brand); }
.text-white { color: #fff; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ─── Spacing utilities ────────────────────────────────────────── */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* ─── Visibility ───────────────────────────────────────────────── */
.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;
}

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}
