/* Homepage specific styling goes here. Excluded on all subpages */
/* For most builds, this stylesheet should be wiped and started fresh */

/* PRELOADER */
.preloader-outer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  width: 100%;
  height: 100vh;
  background-color: var(--color-white);
  transition: opacity 600ms ease-out;
}

.preloader-outer.active {
  visibility: visible !important;
}

.preloader-outer.preloader-remove {
  opacity: 0;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.preloader-inner p {
  margin-bottom: 15px;
}

.preloader-inner p:last-of-type {
  margin: 0;
}

.preloader-part {
  margin: 20px;
  display: none;
}

.preloader-part-left.active {
  display: block;
  -webkit-animation: fadeinright 800ms ease-out;
  animation: fadeInRight 800ms ease-out;
}

.preloader-part-right.active {
  display: block;
  -webkit-animation: fadeinleft 500ms ease-out;
  animation: fadeInLeft 500ms ease-out;
}

/* HERO */
.hero {
  margin-top: 30px;
  position: relative;
  text-align: center;
}

.hero-title {
  margin-bottom: 13px;
  font-size: 3.438rem;
  font-weight: 300;
  overflow: hidden;
  text-transform: uppercase;
  color: inherit;
  line-height: 0.95;
}

.hero-title strong {
  font-weight: 700;
}

.hero-title>span {
  display: inline-block;
  animation-delay: 500ms;
}

.hero-title>span span {
  display: inline-block;
  animation-delay: 1500ms;
}

.hero-content {
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  position: absolute;
  padding-bottom: 30px;
  color: var(--color-white);
}

.hero-content .button {
  min-height: 60px;
  letter-spacing: 0.094rem;
  animation-delay: 2000ms;
}

.hero-image {
  position: relative;
}

.hero-image:before,
.hero-image:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #072236 1.18%, rgba(27, 60, 83, 0) 30%);
  content: '';
}

.hero-image:after {
  top: auto;
  bottom: 0;
  background: linear-gradient(180deg, rgba(27, 60, 83, 0) 36.04%, #071621 55.28%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  .hero {
    margin-top: 0;
  }

  .hero-image:after {
    background: linear-gradient(180deg, rgba(27, 60, 83, 0) 59.18%, #071621 92.6%);
  }

  .hero-image img {
    min-height: 600px;
    object-position: top;
  }

  .hero-content {
    padding-bottom: 47px;
  }
}

@media screen and (min-width: 1025px) {
  .hero-title {
    margin-bottom: 21px;
    font-size: 4.688rem;
  }

  .hero {
    height: 100vh;
    overflow: hidden;
  }

  .hero .hero-image {
    height: 100%;
  }
}

@media screen and (min-width: 1200px) {
  .hero-title {
    font-size: 5.063rem;
  }
}

/* INTRO */
.intro {
  padding: 23px 0 26px;
  background-color: var(--color-gray);
}

.intro-left {
  margin-bottom: 25px;
  padding-bottom: 22px;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--color-secondary);
  border-bottom: 4px solid var(--color-brown);
}

.intro-right {
  color: var(--color-alternate);
}

.intro p:last-of-type {
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .intro {
    padding: 77px 0 88px;
  }

  .intro-holder {
    display: flex;
    flex-wrap: wrap;
  }

  .intro-left {
    margin-bottom: 0;
    padding: 0 40px 0 0;
    width: 39.5%;
    border-right: 4px solid var(--color-brown);
    border-bottom: 0;
    line-height: 1.6;
  }

  .intro-right {
    padding-left: 48px;
    width: 60.5%;
  }
}

/* LEGACY */
.legacy {
  margin-bottom: 40px;
  padding-top: 40px;
}

.legacy h2 {
  margin-bottom: 15px;
  font-size: 2.25rem;
  letter-spacing: -0.031rem;
}

.legacy-left {
  margin: 0 auto -26px auto;
  max-width: 237px;
}

.legacy-left img {
  display: block;
  max-width: 100%;
}

.legacy-right {
  position: relative;
  z-index: 1;
}

@media screen and (min-width: 768px) {
  .legacy {
    margin-bottom: 90px;
    padding-top: 65px;
  }

  .legacy h2 {
    margin-bottom: 33px;
    font-size: var(--font-size-h2);
  }

  .legacy-holder {
    display: flex;
  }

  .legacy-left {
    width: 42%;
    max-width: unset;
    margin: 0 35px 0 0;
    align-self: center;
  }

  .legacy-right {
    flex: 1;
    margin-top: 0;
  }
}

/* FEATURES */
.features {
  padding-top: 42px;
  padding-bottom: 47px;
  position: relative;
  color: var(--color-white);
  background-color: var(--color-blue-200);
  text-align: center;
}

.features .column {
  position: relative;
  z-index: 1;
}

.features-text {
  margin: 0 auto 40px;
  max-width: 825px;
}

.features h2 {
  margin-bottom: 17px;
  font-size: 2.25rem;
  color: inherit;
  text-transform: uppercase;
  letter-spacing: -0.044rem;
}

.features p {
  color: var(--color-gray-200);
}

.features p:last-of-type {
  margin-bottom: 0;
}

.features-column {
  margin-bottom: 50px;
  font-size: 1.063rem;
  font-weight: 600;
  line-height: 1.3;
}

.features-icon {
  margin-bottom: 17px;
  min-height: 73px;
  overflow: hidden;
}

.features-icon img {
  margin: 0 auto;
  display: block;
  max-width: 100%;
  animation-delay: 500ms;
}

.features-column p {
  color: inherit;
}

.features-bottom {
  margin: 0 auto;
  max-width: 650px;
}

.features-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
}

.features-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-column:nth-child(2) .features-icon img {
  animation-delay: 1000ms;
}

.features-column:nth-child(3) .features-icon img {
  animation-delay: 1500ms;
}

.features-column:nth-child(4) .features-icon img {
  animation-delay: 2000ms;
}

@media screen and (min-width: 768px) {
  .features {
    padding-top: 93px;
    padding-bottom: 105px;
  }

  .features-text {
    margin-bottom: 61px;
  }

  .features h2 {
    margin-bottom: 11px;
    font-size: var(--font-size-h2);
  }

  .features-holder {
    margin-bottom: 70px;
    display: grid;
    grid-template-columns: repeat(4, 4fr);
  }

  .features-column {
    margin-bottom: 0;
    padding: 1px 15px 10px;
    border-right: 1px solid var(--color-gray-200);
  }

  .features-column:last-of-type {
    border-right: 0;
  }

  .features-icon {
    margin-bottom: 27px;
  }
}

/* TESTIMONIAL */
.testimonials {
  padding-top: 33px;
  padding-bottom: 28px;
  position: relative;
  text-align: center;
  background-image: url('/wp-content/themes/paperstreet/images/testimonial-bg.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.testimonials .row {
  max-width: 824px;
}

.testimonials-text {
  margin: 0 auto 35px;
  max-width: 690px;
}

.testimonials h2 {
  margin-bottom: 18px;
  font-size: 2.25rem;
  letter-spacing: -0.031rem;
}

.testimonials p:last-of-type {
  margin-bottom: 0;
}

.testimonials-slider {
  padding: 42px 30px;
  position: relative;
  border-radius: 10px;
  background-color: var(--color-white);
  line-height: 1.7;
}

.testimonials-slider p {
  margin-bottom: 0px;
}

.testimonials-slider p.full-text {
  margin-bottom: 20px;
}

.testimonials .swiper-pagination {
  margin-top: 17px;
  position: unset;
}

.testimonial-text-wrap .testimonial-full {
  margin-bottom: 20px;
}

.testimonial-read-more {
  display: inline-block;
  margin-bottom: 20px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-primary, inherit);
  font-size: inherit;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-transform: none;
}

.testimonial-read-more:hover {
  opacity: 0.75;
}

@media screen and (min-width: 768px) {
  .testimonials {
    padding-top: 107px;
    padding-bottom: 80px;
  }

  .testimonials h2 {
    font-size: var(--font-size-h2);
  }

  .testimonials-text {
    margin-bottom: 28px;
  }

  .testimonials-slider {
    margin: 0 50px;
    padding: 60px 60px 55px;
  }

  /* .testimonials-slider p {
    margin-bottom: 30px;
  } */

  .testimonials .swiper-button-prev {
    left: -50px;
  }

  .testimonials .swiper-button-next {
    right: -50px;
  }

  .testimonials .swiper-pagination {
    margin-top: 34px;
  }
}

@media screen and (min-width: 1025px) {
  .testimonials-slider {
    margin: 0;
    padding: 72px 105px 55px;
    line-height: 1.7;
  }

  .testimonials .swiper-button-prev {
    left: -65px;
  }

  .testimonials .swiper-button-next {
    right: -65px;
  }
}

/* SINGLE-IMAGE */
.placement img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* SERVICES */
.services {
  padding-top: 37px;
  padding-bottom: 47px;
  position: relative;
  background-color: var(--color-gray);
  overflow: hidden;
}

.services:before {
  content: '';
  position: absolute;
  top: -11px;
  right: -29px;
  width: 168px;
  height: 168px;
  pointer-events: none;
  background-image: url('/wp-content/themes/paperstreet/images/elg-circle-logo.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.services h2 {
  margin-bottom: 10px;
  font-size: 2.25rem;
  letter-spacing: -0.031rem;
}

.services-holder {
  position: relative;
}

@media screen and (min-width: 768px) {
  .services {
    padding-top: 94px;
    padding-bottom: 110px;
  }

  .services h2 {
    font-size: var(--font-size-h2);
  }

  .services-holder {
    display: flex;
  }

  .services-left {
    padding-top: 11px;
    width: 39%;
  }

  .services-right {
    padding-left: 27px;
    width: 61%;
  }

  .services:before {
    top: auto;
    right: auto;
    bottom: -90px;
    left: -45px;
    width: 368px;
    height: 368px;
  }
}

@media screen and (min-width: 1200px) {
  .services:before {
    bottom: -104px;
    left: -66px;
    width: 568px;
    height: 568px;
  }
}

/* IMAGE-TEXT */
.info {
  padding-top: 37px;
  padding-bottom: 27px;
}

.info h4 {
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
  font-size: 1.125rem;
  text-align: center;
  color: var(--color-brown);
}

.info h2 {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  font-size: 2.25rem;
  text-align: center;
  letter-spacing: -0.038rem;
}

.info-holder {
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.info-holder:last-of-type {
  margin-bottom: 0;
}

.info-left {
  margin: 0 calc(var(--gutter-size) * -1) 23px;
}

.info-left img {
  display: block;
  width: 100%;
}

.info-right h3 {
  margin-bottom: 14px;
  font-weight: 600;
}

.info-right p:last-of-type {
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .info {
    margin: 0 calc(var(--gutter-size) * -1);
    padding-top: 92px;
    padding-bottom: 79px;
    position: relative;
  }

  .info:before,
  .info:after {
    position: absolute;
    top: 0;
    right: 60px;
    width: 5px;
    height: 0;
    opacity: 0.2;
    transition: 2.5s 1000ms;
    background-color: var(--color-brown);
    content: '';
    pointer-events: none;
  }

  .info:before {
    top: 250px;
    left: 60px;
    right: auto;
    transition: 2.5s 2000ms;
  }

  .info h4 {
    margin-bottom: 16px;
    font-size: var(--font-size-h4);
  }

  .info h2 {
    margin-bottom: 52px;
    font-size: 3.125rem;
  }

  .info.animated:after {
    height: 100%;
  }

  .info.animated:before {
    height: calc(100% - 25%);
  }

  .info-left {
    margin: 0;
    width: 50%;
    padding-right: 30px;
  }

  .info-left img {
    max-width: 100%;
    width: auto;
  }

  .info-right {
    padding-right: 30px;
    width: 50%;
  }

  .info-content {
    max-width: 440px;
  }

  .info-holder {
    margin-bottom: 58px;
    display: flex;
    flex-wrap: wrap;
  }

  .info-holder.is-alt {
    flex-direction: row-reverse;
  }

  .info-holder.is-alt .info-left {
    padding-right: 0;
    padding-left: 0;
  }

  .info-holder.is-alt .info-right {
    padding-right: 30px;
    padding-left: 30px;
  }

  .info-holder.is-alt .info-content {
    margin-left: auto;
  }
}

@media screen and (min-width: 1025px) {
  .info-right {
    padding-right: 0;
    padding-left: 41px;
  }

  .info-holder.is-alt .info-left {
    padding-left: 41px;
  }

  .info-holder.is-alt .info-right {
    padding-right: 30px;
    padding-left: 0;
  }
}

@media screen and (min-width: 1200px) {

  .info:before,
  .info:after {
    margin-left: 533px;
    left: 50%;
  }

  .info:before {
    margin-left: -539px;
    left: 50%;
  }
}

@media screen and (min-width: 1281px) {
  .info {
    margin: 0;
  }

  .info-content {
    max-width: 455px;
  }

  .info-holder.is-alt .info-right {
    padding-right: 41px;
  }
}

/* ACTION */
.action {
  padding-top: 42px;
  text-align: center;
  padding-bottom: 42px;
  color: var(--color-white);
  background-color: var(--color-secondary);
}

.action h3 {
  color: inherit;
  font-weight: 600;
  margin-bottom: 13px;
  text-transform: uppercase;
}

.action p:last-of-type {
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .action {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .action-text {
    margin: 0 auto;
    max-width: 926px;
  }
}