/* WorkMesh Layout — containers, grids, section spacing, and responsive utilities */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--wm-space-6);
  padding-right: var(--wm-space-6);
}

.section {
  padding-top: var(--wm-space-16);
  padding-bottom: var(--wm-space-16);
}

.section-sm {
  padding-top: var(--wm-space-12);
  padding-bottom: var(--wm-space-12);
}

.section-lg {
  padding-top: var(--wm-space-24);
  padding-bottom: var(--wm-space-24);
}

.section-alt {
  background: var(--wm-color-grey-50);
}

.section-dark {
  background: var(--wm-brand);
  color: var(--wm-color-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--wm-color-white);
}

.section-header {
  max-width: 768px;
  margin-bottom: var(--wm-space-12);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wm-accent);
  margin-bottom: var(--wm-space-3);
}

.section-title {
  font-size: 2rem;
  margin-bottom: var(--wm-space-4);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--wm-color-grey-600);
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark .section-subtitle {
  color: var(--wm-color-navy-200);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wm-space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wm-space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wm-space-6);
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 { gap: var(--wm-space-2); }
.gap-4 { gap: var(--wm-space-4); }
.gap-6 { gap: var(--wm-space-6); }
.gap-8 { gap: var(--wm-space-8); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--wm-color-white); }
.text-brand { color: var(--wm-brand); }
.text-accent { color: var(--wm-accent); }
.text-muted { color: var(--wm-color-grey-600); }

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}
