/* ============================================
   LAYOUT — Containers, Grid, Spacing
   ============================================ */

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

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

.section-border {
  border-top: 1px solid var(--border-subtle);
}

/* Section header — centered variant */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.section-header p {
  margin-inline: auto;
}

/* Section header — left-aligned variant */
.section-header-left {
  margin-bottom: var(--space-2xl);
}

/* Common grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

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

/* Responsive */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-section: 5rem;
    --nav-height: 64px;
  }

  .container {
    padding-inline: var(--space-sm);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section-header {
    text-align: left;
  }
}
