*::before,
*::after,
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hidden {
  display: none;
}

.scroll-indicator {
  position: absolute;
  width: 2rem;
  height: 2rem;
  bottom: 5rem;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.hero::before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
  z-index: -1;
}

.hero {
  position: relative;
  background: url("./img/home-page.jpg") top center/cover no-repeat;
  background-attachment: fixed;
  color: white;
  height: 100vh;
  z-index: 1;
}

.header {
  position: fixed;
  width: 100%;
  padding: 2.5rem 5rem;
  transition: all 250ms ease-in-out;
  z-index: 2;
}

.header--sticky {
  padding: 1.5rem 4rem;
  color: #1f2937;
  background: #f3f4f6;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 60px;
}

.nav__logo img {
  width: 280px;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav__links {
  text-transform: uppercase;
}

.nav__item:not(:last-child) {
  margin-right: 30px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 5rem;
  height: 44rem;
}

.hero__title {
  max-width: 44rem;
  margin-bottom: 1.5rem;
  font-size: 3.4rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.hero__subtitle {
  max-width: 42rem;
  font-size: 1.8rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.about {
  color: black;
}

.about__row {
  display: flex;
  flex-direction: row-reverse;
}

.about__row--reverse {
  flex-direction: row;
}

.about__img-container {
  width: 100%;
  flex-basis: 50%;
}

.about__content {
  flex-basis: 50%;
  align-self: center;
  padding: 4rem;
}

.about__title {
  margin-bottom: 1rem;
}

.about__text {
  color: #6b7280;
}

.contact__container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 100vh;
}

.contact__image,
.contact__info {
  flex: 1 1 50%;
}

.contact__image {
  position: relative;
  z-index: 0;
  background: url("./img/contact-split.jpg") center center/cover no-repeat;
  background-attachment: fixed;
}

.contact__image .hero__title {
  margin-top: 250px;
  visibility: hidden;
}

.contact__image img {
  height: 100vh;
}

.contact__info {
  align-self: flex-start;
  padding: 10rem 6rem 2rem 6rem;
}

.contact__logo {
  padding: 1rem 0 1.5rem 0;
}

.contact__location {
  margin-bottom: 2rem;
}

.contact__location > h3,
p {
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #f3f4f6;
  padding: 2.5rem;
}

.contact__info-email,
.footer__credit {
  font-weight: 700;
}

@media screen and (min-width: 320px) and (max-width: 375px ) {
  img {
    height: auto;
  }

  .hero__content {
    height: 32rem;
  }
}

@media screen and (max-width: 640px) {
  .header {
    padding: 2.5rem 1.5rem;
  }

  .header--sticky {
    padding: 1.5rem;
  }

  .nav__logo {
    width: 155px;
  }

  .nav__logo img {
    position: unset;
    left: unset;
    transform: unset;
  }

  .nav__item:not(:last-child) {
    margin-right: 15px;
  }

  .hero,
  .contact__image {
    background-attachment: scroll;
  }

  .hero__content {
    padding: 2.5rem 1.5rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .about__row {
    flex-direction: column;
  }

  .about__content {
    padding: 2rem;
  }

  .footer {
    justify-content: center;
    line-height: 2;
  }
}

@media screen and (max-width: 850px) {
  .scroll-indicator {
    display: block;
  }

  .contact__image {
    height: 100vh;
  }

  .contact__info {
    padding: 4rem 2rem 2rem 4rem;
  }
}

@media screen and (min-width: 1921px) {
  .scroll-indicator {
    width: 3rem;
    height: 3rem;
  }

  .nav {
    height: 120px;
  }

  .nav__logo img {
    width: 480px;
  }

  .hero__content {
    height: 62rem;
  }

  .hero__title {
    max-width: 90rem;
    font-size: 7rem;
  }

  .hero__subtitle {
    max-width: 80rem;
    font-size: 3.6rem;
  }
}
