.u-center-elements {
  @include flex(0, center, center);
}

.u-heading {
  @include flex(1.8rem, initial, center, column);

  margin: 8rem 0 7rem;

  &-2 {
    margin: 6rem 0 3rem;
  }

  &-3 {
    margin: 6rem 0 1.8rem;
  }

  @include respond(phablet) {
    padding: 0 3rem;
  }
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

.hidden-hard {
  display: none !important;
}

.blurred {
  filter: blur(16px);
}

.important {
  color: $color-primary-regular;
  font-weight: bold;
}

.bg-light {
  background-color: $color-white;

  & > * {
    color: $color-black;
  }
}

.u-heading-divider {
  position: relative;

  padding-left: 2rem;

  & > [class^='heading'] {
    display: inline-block;

    padding: 0 3rem;

    color: $color-primary-regular;

    background-image: unset;
    background-clip: unset;
    background-color: $color-grey-dark;
  }

  &__line {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;

    width: 100%;
    height: 2px;
    background-image: $color-gradient-regular;
  }
}

.u-gradient-overlay {
  &::after {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    content: '';
    background-image: $color-gradient-radial;
    opacity: 0.25;
  }
}

// MARGINS, PADDINGS and GAPS

@each $index, $space in $spacings {
  .mt-#{$index} {
    margin-top: $space !important;
  }

  .ms-#{$index} {
    margin-left: $space !important;
  }

  .me-#{$index} {
    margin-right: $space !important;
  }

  .mb-#{$index} {
    margin-bottom: $space !important;
  }

  .my-#{$index} {
    margin: $space 0 !important;
  }

  .mx-#{$index} {
    margin: 0 $space !important;
  }

  .pt-#{$index} {
    padding-top: $space !important;
  }

  .ps-#{$index} {
    padding-left: $space !important;
  }

  .pe-#{$index} {
    padding-right: $space !important;
  }

  .pb-#{$index} {
    padding-bottom: $space !important;
  }

  .py-#{$index} {
    padding: $space 0 !important;
  }

  .px-#{$index} {
    padding: 0 $space !important;
  }

  .g-#{$index} {
    gap: $space !important;
  }

  .p-#{$index} {
    padding: $space !important;
  }

  .m-#{$index} {
    margin: $space !important;
  }
}

.m-0 {
  margin: 0 !important;
}

.my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.mx-0 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.p-0 {
  padding: 0 !important;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

// FLEXBOX

.flex {
  display: flex;
  flex-flow: row wrap;
}

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

.justify-content-end {
  justify-content: flex-end;
}

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

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

// GRID

.grid {
  display: grid;
  grid-auto-rows: 1fr;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
}

// WIDTH / HEIGHT

@for $i from 1 through 20 {
  .w-#{$i * 5} {
    width: $i * 5%;
  }

  .h-#{$i * 5} {
    width: $i * 5%;
  }
}

// TEXT

.text-end {
  text-align: end !important;
}

.text-center {
  text-align: center !important;
}

.text-justify {
  text-align: justify !important;
}
