/* ==========================================================================
   Layout — Container, grid utilities, and dot-matrix background.
   ========================================================================== */

/* --- Container --- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

/* --- Section spacing --- */

.section {
  padding-block: var(--space-5xl);
  position: relative;
}

/* --- Dot-matrix background pattern --- */

.dot-matrix {
  position: relative;
}

.dot-matrix::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    var(--color-border) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.dot-matrix > * {
  position: relative;
  z-index: 1;
}

/* --- Grid lines (subtle vertical) --- */

.grid-lines {
  position: relative;
}

.grid-lines::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    var(--color-border) 0,
    var(--color-border) 1px,
    transparent 1px,
    transparent
  );
  background-size: calc(100% / 12) 100%;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* --- Three-column services grid --- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* --- Visually hidden (a11y) --- */

.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;
}
