/* ═══════════════════════════════════════════════════════════════
   NIGHTFALL EXPRESS — Layout
   Containers, sections, grid, page structure.
   ═══════════════════════════════════════════════════════════════ */

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

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

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

/* ── Section ─────────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}

.section--sm {
  padding: var(--space-3xl) 0;
}

.section--dark {
  background: var(--color-bg-secondary);
}

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

/* ── Section label (eyebrow text) ────────────────────────────── */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-lg);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-amber);
  flex-shrink: 0;
}

/* ── Section heading block ───────────────────────────────────── */
.section-heading {
  margin-bottom: var(--space-2xl);
}
.section-heading h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}
.section-heading p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-style: italic;
  max-width: 560px;
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-2xl) 0;
}

/* ── Grid systems ─────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* ── Flex helpers ─────────────────────────────────────────────── */
.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-gap-md   { gap: var(--space-md); }
.flex-gap-lg   { gap: var(--space-lg); }

/* ── Page main wrapper ───────────────────────────────────────── */
.page-main {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ── Page hero (interior pages) ──────────────────────────────── */
.page-hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(112,144,176,0.05) 0%, transparent 70%),
    var(--color-bg-secondary);
}
.page-hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}
.page-hero p {
  font-size: var(--text-lg);
  font-style: italic;
  max-width: 560px;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-heading h2 { font-size: var(--text-2xl); }
  .page-hero h1 { font-size: var(--text-3xl); }
}

@media (max-width: 480px) {
  :root {
    --container-pad: var(--space-md);
    --section-pad:   var(--space-2xl);
  }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: var(--text-2xl); }
}
