@import "./global.css";
@import "./property-card.css";

.welcomeTop {
  height: 580px;
  padding: 6.25rem 1.25rem;
  position: relative;
  background-color: rgba(37,37,37,0.15);
}

.welcomeTopBg {
  background-position: center;
  background-size: cover;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.welcomeTop .title {
  width: 300px;
  color: white;
  margin: 0;
  text-shadow: 0 2px 6px rgba(37,37,37,0.2);
}

.welcomeTop .title a {
  text-decoration: underline;
}

.welcomeTop .contactButton {
  margin-top: 2rem;
}

.welcomeProperties {
  background-color: #F6F6F6;
  padding: 2rem 1.25rem 4rem;
}

.welcomeProperties .title {
  font-size: 1.75rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.welcomePropertiesContainer {
  max-width: 1200px;
  margin: auto;
}

.welcomePropertiesList > .propertyCard {
  margin-bottom: 1.25rem;
}

.welcomePropertiesLink {
  text-align: center;
  margin-top: 2rem;
}

.welcomeBottom .agencyPicture {
  height: 255px;
  background-size: cover;
  background-position: center;
}

.welcomeBottom .title {
  font-size: 1.75rem;
  line-height: 1.6;
  font-weight: 600;
  margin: 0 0 1rem;
}

.welcomeBottom .agencyDescription {
  padding: 2rem 1.5rem;
}

@media screen and (min-width: 800px) {
  .welcomeTop {
    padding: 8.25rem 1.25rem;
  }

  .welcomeTopContent {
    max-width: 1200px;
    margin: auto;
  }

  .welcomeTop .title {
    max-width: 600px;
    width: 100%;
    font-size: 3.625rem;
    line-height: 1.2;
  }

  .welcomeProperties {
    padding-top: 4rem;
  }

  .welcomeProperties .title {
    font-size: 2.125rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .welcomeBottom {
    min-height: 564px;
    display: flex;
    flex-direction: row;
  }

  .welcomeBottom .agencyPicture {
    width: 50%;
    height: auto;
  }
      
  .welcomeBottom .agencyDescription {
    width: 50%;
    padding: 2rem 3.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .welcomeBottom .agencyDescription .title {
    font-size: 2.125rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .welcomeBottom .agencyDescription .description {
    font-size: 1rem;
    line-height: 2.125;
  }

  .welcomePropertiesLink {
    margin-top: 0;
  }

  .welcomePropertiesList {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1.25rem;
  }

  .welcomePropertiesList > .propertyCard {
    flex: calc(100% / 3);
    max-width: calc(100% / 3 - 2.5rem);
    margin: 0 1.25rem 2.5rem;
  }
}