/* ═══════════════════════════════════════════════════════════════
   OCTOPILOT — Layout System
   Grid · Containers · Spacing · Section Structure
   ═══════════════════════════════════════════════════════════════ */

/* ── Page Shell ── */
.page-shell {
  position: relative;
  z-index: var(--z-content);
}

/* ── Content Container ── */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

.container--narrow {
  max-width: 960px;
}

.container--wide {
  max-width: 1600px;
}

/* ── Section Base ── */
.section {
  position: relative;
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.section--full {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section--flush {
  padding: 0;
}

/* ── Section Divider ── */
.section-divider {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
}

/* ── Section Header (reusable) ── */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-md);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  max-width: 16ch;
}

.section-header__subtitle {
  margin-top: var(--space-lg);
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.7;
}

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

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

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

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

.flex-wrap {
  flex-wrap: wrap;
}

.gap-xs  { gap: var(--space-xs); }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

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

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

/* ── Margin/Padding Utilities ── */
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
