/* ==========================================================================
  Home
  ========================================================================== */

/* General */

.c-hero--home .group-content h1 {
  font-size: 46px;
  line-height: 1;
}

.c-hero--home .group-content h1 em {
  font-family: var(--heading-font-family);
  font-size: 120px;
  font-weight: 600;
  line-height: 0.75;
  top: -20px;
}

@media (min-width: 992px) {
  .c-hero--home .group-content h1 {
    font-size: 80px;
  }
  .c-hero--home .group-content h1 em {
    font-size: 200px;
  }
}

.c-hero--home .group-content p {
  margin-bottom: 2rem;
}

/* Icon */

.c-hero--home .group-image {
  position: relative;
}

.c-hero--home .group-image::after {
  position: absolute;
  content: '';
  width: 250px;
  height: 250px;
  left: -100px;
  top: 85%;
  transform: translateY(-50%);
  background-image: url('/img/paperclip-blue.svg');
  background-size: 250px 250px;
  background-position: 100% 100%;
  background-repeat: no-repeat;
}

@media (min-width: 992px) {
  .c-hero--home .group-image::after {
    position: absolute;
    content: '';
    width: 500px;
    height: 500px;
    left: -200px;
    top: 85%;
    transform: translateY(-50%);
    background-image: url('/img/paperclip-blue.svg');
    background-size: 500px 500px;
    background-position: 100% 100%;
    background-repeat: no-repeat;
  }
}

/* Mobile: flexbox */

@media (max-width: 991.98px) {
  .l-fullwidth-left-side {
    display: flex;
    flex-direction: column-reverse;
  }
  .l-fullwidth-left-side .group-content {
    margin: 0 auto;
    width: 90%;
    max-width: var(--max-width);
    padding: var(--base-padding) 0;
  }
}

/* Desktop: fullwidth split with grid */

@media (min-width: 992px) {
  .l-fullwidth-left-side {
    display: grid;
    grid-template-columns: 
      minmax(var(--base-padding), 1fr)
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, calc(var(--max-width) / 2))
      minmax(var(--base-padding), 1fr);
  }
  .l-fullwidth-left-side .group-image {
    grid-column: 1 / 3;
  }
  .l-fullwidth-left-side .group-content {
    display: grid;
    align-content: center;
    justify-items: start;
    padding: 4rem 0 4rem 4rem;
  }
}

@media (min-width: 992px) {
  .l-fullwidth-left-side .group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Background */

@media (min-width: 992px) {
  .l-fullwidth-left-side .group-image {
    margin: 4rem 0;
  }

  .l-fullwidth-left-side .group-content {
    position: relative;
  }
  
  .l-fullwidth-left-side .group-content::after {
    z-index: -4;
    position: absolute;
    content: '';
    background-color: var(--light-grey);
    top: -150px;
    bottom: 0;
    left: -300px;
    right: -2000px;
    width: 100vw;
    height: 120%;
  }
}

/* ==========================================================================
  Services
  ========================================================================== */

/* Icon */

.c-hero--services .l-fullwidth-right-side {
  position: relative;
}

.c-hero--services .l-fullwidth-right-side::after {
  position: absolute;
  grid-column: 4 / 5;
  grid-row: 2;
  content: '';
  width: 125px;
  height: 125px;
  right: 125px;
  bottom: -50px;
  background-image: url('/img/building.svg');
  background-size: 125px 125px;
  background-position: 100% 100%;
  background-repeat: no-repeat;
}

@media (min-width: 992px) {
  .c-hero--services .l-fullwidth-right-side::after {
    width: 250px;
    height: 250px;
    right: 250px;
    bottom: -100px;
    background-size: 250px 250px;
  }
}

/* Mobile: flexbox */

@media (max-width: 991.98px) {
  .l-fullwidth-right-side {
    display: flex;
    flex-direction: column;
  }
  .l-fullwidth-right-side .group-content {
    margin: 0 auto;
    width: 90%;
    max-width: var(--max-width);
    padding: var(--base-padding) 0;
  }
}

/* Desktop: fullwidth split with grid */

@media (min-width: 992px) {
  .l-fullwidth-right-side {
    display: grid;
    grid-template-columns: 
      minmax(var(--base-padding), 1fr)
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, calc(var(--max-width) / 2))
      minmax(var(--base-padding), 1fr);
  }
  .l-fullwidth-right-side .group-image {
    grid-column: 3 / 5;
  }
  .l-fullwidth-right-side .group-content {
    display: grid;
    grid-column: 2;
    align-content: center;
    justify-items: start;
    padding: 4rem 4rem 4rem 0;
  }
}

@media (min-width: 992px) {
  .l-fullwidth-right-side .group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ==========================================================================
  Vacancy
  ========================================================================== */

/* Icon */

.c-hero--vacancy .group-image {
  position: relative;
}

.c-hero--vacancy .group-image::after {
  position: absolute;
  content: '';
  width: 250px;
  height: 250px;
  right: 100px;
  bottom: -100px;
  background-image: url('/img/suitcase.svg');
  background-size: 250px 250px;
  background-position: 100% 100%;
  background-repeat: no-repeat;
}

/* Flexbox */

.c-hero--vacancy .l-flex {
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .c-hero--vacancy .l-flex {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

/* Background */

@media (min-width: 992px) {
  .c-hero--vacancy .group-content {
    position: relative;
  }
  .c-hero--vacancy .group-content::after {
    position: absolute;
    content: '';
    left: 50%;
    top: 0;
    height: 100%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -2;
    background-color: var(--light-grey);
  }
}

@media (min-width: 992px) {
  .c-hero--vacancy .group-content {
    margin-top: 4rem;
    margin-bottom: 4rem;
  }
}


/* ==========================================================================
  Hero with background-image
  ========================================================================== */

.c-hero--with-background-image {
  background-size: cover;
  background-position: 50% 25%;
  background-repeat: no-repeat;
}

.c-hero--with-background-image .group-inner {
  color: white;
  max-width: 515px;
}

/* Icon */

@media (min-width: 997px) {
  .consultant .c-hero .l-container,
  .graduate .c-hero .l-container {
    position: relative;
  }
  .consultant .c-hero .l-container::after,
  .graduate .c-hero .l-container::after {
    position: absolute;
    content: '';
    right: 0;
    bottom: -155px;
    width: 375px;
    height: 375px;
    background-size: 375px 375px;
  }
  .consultant .c-hero .l-container::after { background-image: url('/img/developer--green.svg'); }
  .graduate .c-hero .l-container::after { background-image: url('/img/developer--yellow.svg'); }
}

/* ==========================================================================
  Contact
  ========================================================================== */

/* Content */

.c-hero--contact .group-content p {
  max-width: 520px;
}

/* Image grid */

.c-hero--contact .group-images .images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
}

.c-hero--contact .group-images .images .image:nth-child(1) {
  grid-area: 1 / 1 / 3 / 2;
}

@media (min-width: 992px) {
  .c-hero--contact .group-images .images .image:nth-child(1) {
    padding-left: 50px;
  } 
}

.c-hero--contact .group-images .images .image:nth-child(2) {
  grid-area: 1 / 2 / 2 / 3;
}

.c-hero--contact .group-images .images .image:nth-child(3) {
  grid-area: 2 / 2 / 3 / 3;
}

/* Flexbox */

.c-hero--contact .l-flex {
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .c-hero--contact {
    margin-top: 2rem;
  }
  .c-hero--contact .l-flex {
    flex-direction: row;
    gap: 3rem;
  }
  .c-hero--contact .l-flex .group-content {
    flex: 1;
  }
  .c-hero--contact .l-flex .group-images {
    flex: 1;
  }
}

@media (min-width: 1200px) {
  .c-hero--contact .l-flex .group-content {
    padding-top: 4rem;
  }
}
