/* ============================================================
   layout.css — MOTM Layout Primitives
   Tokens consumed: --container-max, --container-pad,
   --space-24, --space-8, --space-6, --space-4,
   --clr-bg-card, --clr-border, --radius-lg
   ============================================================ */

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

/* ── Section ── */
.section {
  padding-block: var(--space-24);
}

.section--alt {
  background-color: var(--clr-bg-card);
}

.section--flush {
  padding-block: 0;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--clr-text-muted);
  margin-inline: auto;
}

/* ── Divider ── */
.section-divider {
  width: 64px;
  height: 3px;
  background-color: var(--clr-gold);
  margin: var(--space-4) auto var(--space-8);
  border: none;
}

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

.grid-2 {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.grid-3 {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.grid-4 {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr 1fr;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ── Text Alignment ── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ── Visibility Utilities ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Gap Utilities ── */
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* ── Margin Utilities ── */
.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-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); }

/* ── CTA Split (two-column card row) ── */
.cta-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* ── Two-column content + sidebar ── */
.content-aside {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}
