@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Karla:wght@400;700&display=swap");

:root {
  --dark-violet: hsl(256, 26%, 20%);
  --grayish-blue: hsl(216, 30%, 68%);
  --very-dark-violet: hsl(270, 9%, 17%);
  --dark-grayish-violet: hsl(273, 4%, 51%);
  --very-light-gray: hsl(0, 0%, 98%);
  --karla: "Karla", sans-serif;
  --dm: "DM Serif Display", serif;
  --padding-container: 80px 0;
}

* {
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--karla);
}

.nav {
  background-color: white;
  height: 70px;
  --padding-container: 0;
}

.container {
  margin: 0 auto;
  padding: var(--padding-container);
  width: 90%;
  max-width: 1200px;
  overflow: hidden;
}

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

.nav__links {
  display: none;
}

.nav__icon,
.nav__img {
  display: block;
}

.hero {
  background-color: var(--dark-violet);
  /* padding: 0; */
  position: relative;
}

.hero__main {
  width: 100%;
  --padding-container: 0;
  position: relative;
}
.hero__background--mobile {
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
}

.hero__main::before {
  height: 820px;
  display: block;
  content: "";
  background-image: url("./images/image-intro-mobile.jpg");
  background-size: cover;
  background-position: center;
}

.hero__texts {
  margin: 0 auto;
  padding: 80px 0;
  width: 90%;
  color: white;
  text-align: center;
}

.hero__title {
  font-size: 2.5rem;
  font-family: var(--dm);
  letter-spacing: 3px;
}

.hero__paragraph {
  margin-top: 1rem;
  line-height: 1.5;
}

.cta {
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  display: inline-block;
  color: white;
  text-decoration: none;
  border: 1px solid;
  text-transform: uppercase;
}

.different {
  text-align: center;
}

.title--different {
  position: relative;
  padding-top: 10px;
}

.title--different::before {
  position: absolute;
  margin: 0 auto;
  top: -15px;
  left: 0;
  right: 0;
  width: 30%;
  height: 2px;
  content: "";
  background-color: var(--dark-grayish-violet);
}

.different__items {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.different__icon {
  margin: 0 auto;
  /* margin-bottom goes after margin: 0 auto for CSS not to reset it´s value */
  margin-bottom: 1.5rem;
  display: block;
}

.title {
  font-size: 2.1rem;
  font-family: var(--dm);
  letter-spacing: 2px;
}

.different__title {
  font-size: 1.5rem;
  font-family: var(--dm);
  letter-spacing: 2px;
}

.different__paragraph {
  margin-top: 1rem;
  color: var(--dark-grayish-violet);
  line-height: 1.5;
}

.find {
  position: relative;
  padding: 80px 0;
  --padding-container: 100px 40px;
}

.find__container {
  background-color: var(--dark-violet);
  color: white;
  text-align: center;
}

.footer {
  padding: 100px;
  position: relative;
  background-color: var(--very-light-gray);
}

.footer__brand {
  display: flex;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--dark-grayish-violet);
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__navigation {
  display: flex;
  gap: 3.5rem;
  flex-direction: column;
  align-items: center;
}

.footer__nav {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  text-align: center;
}

.footer__link {
  text-decoration: none;
  color: var(--dark-violet);
  font-weight: 700;
  text-transform: uppercase;
}

.footer__link--first {
  margin-bottom: 1rem;
  color: var(--dark-grayish-violet);
}

.hero::before {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 315px;
  left: 0;
  content: "";
  background-size: auto;
  background-position: left;
  background-repeat: no-repeat;
  background-image: url("./images/bg-pattern-intro-left-mobile.svg");
}

.hero::after {
  position: absolute;
  width: 105%;
  height: 95%;
  top: 740px;
  right: 0;
  content: "";
  background-image: url("./images/bg-pattern-intro-right-mobile.svg");
  background-size: auto;
  background-position: right;
  background-repeat: no-repeat;
}

.find__container::before {
  position: absolute;
  width: 100%;
  height: 90%;
  top: 5px;
  right: 30px;
  content: "";
  background-size: auto;
  background-position: right;
  background-repeat: no-repeat;
  background-image: url("./images/bg-pattern-how-we-work-mobile.svg");
}
.footer::before {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  content: "";
  background-repeat: no-repeat;
  background-size: auto;
  background-image: url("./images/bg-pattern-footer-mobile.svg");
}

@media (min-width: 768px) {
  .nav__links {
    display: block;
  }

  .nav__hamburger {
    display: none;
  }

  .nav__links {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .nav__link {
    text-decoration: none;
    color: var(--dark-grayish-violet);
  }

  .nav__link--cta {
    padding: 0.8rem 2rem;
    border: 1px solid;
    color: var(--dark-violet);
  }

  .hero {
    position: relative;
    background-image: linear-gradient(
      to bottom,
      var(--dark-violet) 80%,
      #fff 80%
    );
  }
  .hero__main {
    width: 90%;
    display: flex;
    --padding-container: 100px 0;
    justify-content: space10between;
    align-items: flex-start;
  }

  .hero__main::before {
    width: 48%;
    background-image: url("./images/image-intro-desktop.jpg");
    order: 1;
    height: 500px;
  }

  .hero::after {
    background-image: url("./images/bg-pattern-intro-right-desktop.svg");
    content: "";
    position: absolute;
    width: 105%;
    height: 95%;
    top: 0;
    right: -10;
    background-size: auto;
    background-position: right;
    background-repeat: no-repeat;
  }

  .hero__texts {
    position: relative;
    color: white;
    width: 50%;
    margin: 0;
    padding: 20px 0;
    text-align: left;
  }

  .hero__texts::before {
    content: "";
    position: absolute;
    width: 30%;
    height: 2px;
    top: 0;
    left: 0;
    background-color: var(--very-light-gray);
  }
  .hero__title {
    font-size: 3rem;
  }

  .different {
    text-align: left;
  }

  /* .title--different {
    position: relative;
    padding-top: 10px;
  } */

  .title--different::before {
    margin: 0;
  }

  .different__items {
    flex-direction: row;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
  }

  .different__item {
    flex: 1;
  }

  .different__icon {
    margin-left: 0;
  }

  .title {
    font-size: 2.1rem;
    font-family: var(--dm);
    letter-spacing: 2px;
  }

  .different__title {
    font-size: 1.5rem;
    font-family: var(--dm);
    letter-spacing: 2px;
  }

  .different__paragraph {
    color: var(--dark-grayish-violet);
    line-height: 1.5;
    margin-top: 1rem;
  }

  .hero::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 320px;
    left: 0;
    background-size: auto;
    background-position: left;
    background-repeat: no-repeat;
    background-image: url("./images/bg-pattern-intro-left-desktop.svg");
  }

  .find__container::before {
    content: "";
    position: absolute;
    width: 40%;
    height: 100%;
    top: 0;
    right: 0;
    background-size: cover;
    background-position: left;
    background-image: url("./images/bg-pattern-how-we-work-desktop.svg");
  }

  .find__container {
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer__brand {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* align-items: center;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--dark-grayish-violet);
    margin-bottom: 2.5rem; */
  }

  .footer__navigation {
    gap: 1.5rem;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer__nav {
    width: 20%;
    align-items: flex-start;
  }

  .footer {
    padding-top: 50px;
    position: relative;
  }

  .footer__container {
    width: 60%;
    margin: 0 auto;
  }

  .footer::before {
    position: absolute;
    width: 35%;
    height: 80%;
    top: 0;
    left: 0;
    content: "";
    background-repeat: no-repeat;
    background-image: url("./images/bg-pattern-footer-desktop.svg");
  }
}
