/* ============================================
   NH INCOM — Layout
   Container, grid, section patterns
   Classic B2B Industrial
   ============================================ */

/* ── Base Typography ── */
body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text-900);
  background-color: var(--white);
}

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

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

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: var(--z-toast);
  padding: var(--space-sm) var(--space-md);
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
}

.skip-link:focus {
  top: var(--space-sm);
}

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

.section--sm {
  padding-block: var(--section-py-sm);
}

.section--navy {
  background-color: var(--navy-900);
  color: var(--white);
}

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

.section--blue-light {
  background-color: var(--blue-100);
}

.section--gold-light {
  background-color: var(--gold-100);
}

/* ── Section Header ── */
.section-header {
  max-width: 680px;
  margin-bottom: var(--space-2xl);
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy-700);
  margin-bottom: var(--space-sm);
}

.section--navy .section-eyebrow {
  color: var(--gold-400);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-sm);
}

.section-desc {
  font-size: var(--fs-body);
  color: var(--text-600);
  line-height: var(--lh-relaxed);
}

.section--navy .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

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

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

.grid--2-1 { grid-template-columns: 2fr 1fr; }
.grid--1-2 { grid-template-columns: 1fr 2fr; }
.grid--sidebar { grid-template-columns: 260px 1fr; }

/* ── Flex Utilities ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ── Text Utilities ── */
.text-center { text-align: center; }
.text-small { font-size: var(--fs-small); }
.text-muted { color: var(--text-600); }
.text-white { color: var(--white); }
.text-gold { color: var(--gold-400); }
.text-blue { color: var(--blue-600); }

/* ── Spacing Utilities ── */
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

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

/* ── Main content offset for sticky header ── */
main {
  min-height: calc(100vh - var(--header-height));
}
