/* =========================================================
   Sukanya Oosterse Massage Techniek
   Shared Layout
========================================================= */

/* ======================================================
   Containers
====================================================== */

.container {
  width: min(calc(100% - 40px), var(--container-width));
  margin-inline: auto;
}

.container--narrow {
  width: min(calc(100% - 40px), var(--container-narrow));
}

/* ======================================================
   Sections
====================================================== */

.section {
  width: 100%;
  padding-block: var(--space-2xl);
}

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

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

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

/* ======================================================
   Section headings
====================================================== */

.section-heading {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-label {
  color: var(--color-gold-dark);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-divider {
  display: block;
  width: 52px;
  height: 1px;
  margin-block: 28px;
  background-color: var(--color-gold);
}

.section-description {
  max-width: 620px;
  margin-inline: auto;
  color: var(--color-text);
  font-size: 0.75rem;
  line-height: 1.8;
  text-align: center;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

/* ======================================================
   Grids
====================================================== */

.card-grid {
  display: grid;
  width: 100%;
  gap: 24px;
}

.card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ======================================================
   Values grid
====================================================== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 60px;
}

/* ======================================================
   Full-width images
====================================================== */

.full-width-image {
  width: 100%;
  overflow: hidden;
}

.full-width-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======================================================
   Shared two-column layouts
====================================================== */

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}

.split-layout--reverse > :first-child {
  order: 2;
}

.split-layout--reverse > :last-child {
  order: 1;
}

/* ======================================================
   Tablet
====================================================== */

@media (max-width: 1023px) {
  .container {
    width: min(calc(100% - 40px), var(--container-width));
  }

  .card-grid--four,
  .card-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px 40px;
  }

  .split-layout {
    gap: 40px;
  }
}

/* ======================================================
   Mobile
====================================================== */

@media (max-width: 767px) {
  .container,
  .container--narrow {
    width: min(calc(100% - 32px), var(--container-width));
  }

  .section {
    padding-block: 72px;
  }

  .section-divider {
    margin-block: 24px;
  }

  .section-description {
    font-size: 0.72rem;
  }

  .section-action {
    margin-top: 48px;
  }

  .card-grid--four,
  .card-grid--three,
  .card-grid--two,
  .values-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .card-grid {
    gap: 22px;
  }

  .values-grid {
    gap: 54px;
  }

  .split-layout--reverse > :first-child,
  .split-layout--reverse > :last-child {
    order: initial;
  }
}