/* ==========================================================================
   Layout — shared grid/section utilities used across multiple sections
   ========================================================================== */

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 62ch;
  margin-bottom: var(--space-2xl);
}

.section-head--split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
  gap: var(--space-lg);
}

/* Tighter gap to whatever follows — used ahead of the logo carousels,
   where the full section-head spacing read as an oversized gap before a
   comparatively small strip of logos. */
.section-head--tight {
  margin-bottom: var(--space-md);
}

.section-head__title {
  font-size: var(--text-h2);
}

.section-head__lead {
  font-size: var(--text-lead);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 52ch;
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  border: none;
}

/* ---- Section background/divider utilities for internal pages ----
   Sections default to the body's navy-950; opt into the raised navy-900
   surface or a top divider without repeating the same three lines of
   inline CSS on every section. */
.section--divider {
  border-top: 1px solid var(--border-subtle);
}

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

/* Subtle blue-tinted variant for sections that want to read as a distinct
   step in the scroll without breaking from the dark navy palette. */
.section--rich-blue {
  position: relative;
}

.section--rich-blue::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 15%, rgba(0, 87, 217, 0.24), transparent 55%);
  pointer-events: none;
}

.section--rich-blue > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
  }
}
