/**
 * @file
 * Homepage styles
 * Use in templates\node\node--homepage.html.twig
 *
 */


.homepage {

}
.homepage__header {
  padding-top: 2rem;
  background-color: var(--color-brand--light-orange-2);
  border-radius: 0px 40px 40px 40px;
  overflow: hidden;
  padding-bottom: 4rem;
}
.user-logged-in .homepage__header {
  border-radius: 0px 0px 40px 40px;
}
.homepage__header-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}
.homepage__header-content h1 {
  color: var(--color-neutral--dark-grey);
  font-weight: 800;
  line-height: 130%;
  margin: 1rem 0;
  font-size: 2rem;
}
.homepage__header-content h1 span {
  position: relative;
  z-index: 1;
}
.homepage__header-content h1 strong {
  color: var(--color-brand--dark-orange-2);
}
.homepage__header-content h1 strong::after {
  background-color: var(--color-neutral--white);
}
.homepage__header-content p {
  color: var(--color-neutral--dark-grey);
}
.homepage__header-image {
  position: relative;
  z-index: 1;
  margin: 0 -1rem;
}
.homepage__header-image > div {
  position: relative;
  z-index: 2;
}
.homepage__header-image img {
  position: relative;
  z-index: 2;
  margin: 0 0 0 auto;
}
.homepage__header-background {
  position: absolute;
  bottom: -20%;
  right: -80%;
  width: 648px;
  height: 574px;
  display: block;
  z-index: 1;
  background-image: url("../../images/hero/background.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-animation: rotating 30s linear infinite;
  -moz-animation: rotating 30s linear infinite;
  -ms-animation: rotating 30s linear infinite;
  -o-animation: rotating 30s linear infinite;
  animation: rotating 30s linear infinite;
}
@media all and (min-width: 450px) {
  .homepage__header-content h1 {
    font-size: var(--heading-size-l);
  }
}
@media all and (min-width: 500px) {
  .homepage__header {
    padding-top: 4rem;
  }
  .homepage__header-background {
    bottom: -35%;
    width: 810px;
    height: 717.5px;
  }
}
@media all and (min-width: 600px) {
  .homepage__header-background {
    bottom: -25%;
    right: -70%;
  }
}
@media all and (min-width: 650px) {
  .homepage__header-background {
    bottom: 25%;
    right: -65%;
  }
}
@media all and (min-width: 700px) {
  .homepage__header-background {

    right: -55%;
  }
}
@media all and (min-width: 750px) {
  .homepage__header-background {
    right: -50%;
  }

}
@media all and (min-width: 800px) {
  .homepage__header-background {

    right: -45%;
  }
}
@media all and (min-width: 850px) {
  .homepage__header {
    padding-bottom: 8rem;
  }
  .homepage__header-content {
    margin: 0;
    max-width: 750px;
  }
  .homepage__header-wrapper {
    display: grid;
    grid-template-columns: calc(60% - 1rem) 50%;
    gap: 2rem;
    align-items: center;
  }
  .homepage__header-background {
    width: 850px;
    height: 950px;
    bottom: -50%;
    right: -55%;
  }
}
@media all and (min-width: 1000px) {
  .homepage__header-image {
    margin: 0;
  }
  .homepage__header-content h1 {
    font-size: 2.813rem;
  }
  .homepage__header-content h1 strong::after {
    top: 50%;
  }
  .homepage__header-background {
    bottom: -45%;
    right: -70%;
  }
}
@media all and (min-width: 1200px) {
  .homepage__header-wrapper {
    grid-template-columns: calc(60% - 1rem) calc(50% - 1rem);
  }
  .homepage__header-background {
    width: 976.194px;
    height: 1098.218px;
    bottom: -55%;
    right: -80%;
  }
}
@media all and (min-width: 1440px) {
  .homepage__header-background {
    right: -50%;
  }
  .homepage__header-wrapper {
    grid-template-columns: calc(65% - 1rem) calc(50% - 1rem);
  }
}
@media all and (min-width: 1500px) {
  .homepage__header-background {
    bottom: -40%;
  }
}



/**
 * Background animation
 */

@-webkit-keyframes rotating /* Safari and Chrome */ {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
