/*
Base settings:
- body takes at least the full viewport height
- the font is Lato
- the bg color is the Pearl blue
- the container takes the full width until reaching 1440px, where the content becomes centered
*/
:root {
  --pearl-blue: #1f5b7a;
  --pearl-light-blue: #009add;
  --pearl-pink: #ff3278;
  --pearl-orange: #f37b00;
  --pearl-purple: #a551ba;
  --pearl-green: #0fa884;
  --pearl-pistachio: #77bc42;
}

body {
  font-family: "Lato", sans-serif;
  min-height: 100vh;
  padding: 0;
}

.container-fluid {
  padding: 0;
}

@media (min-width: 1536px) {
  .container-fluid {
    width: 1440px;
    margin-right: auto;
    margin-left: auto;
  }
}

.main-content {
  background-color: #f9fbff;
  padding-left: 48px;
  padding-right: 48px;
}

@media (max-width: 576px) {
  .main-content {
    padding-left: 24px;
    padding-right: 24px;
  }
}

a:hover,
a:focus,
a {
  color: #0ba884;
  text-decoration: underline;
}

/* reusable btn styles */
a.btn {
  text-decoration: none;
}

.btn-rounded {
  border-radius: 24px;
  padding: 10px 40px;
  font-size: 16px;
  font-weight: 600;
}

.btn-pearl-blue:hover,
.btn-pearl-blue:focus,
.btn-pearl-blue {
  display: block;
  width: 100%;
  padding: 10px 18px;
  border: none;
  border-radius: 24px;
  color: white;
  background-color: #1c4c75;
  font-size: 16px;
}

.btn-outline-pearl-blue:hover,
.btn-outline-pearl-blue:focus,
.btn-outline-pearl-blue {
  border: 2px solid #0b3860;
  color: #0b3860;
}

.btn-outline-pearl-green:hover,
.btn-outline-pearl-green:focus,
.btn-outline-pearl-green {
  border: 2px solid #00b07e;
  color: #00b07e;
}

.btn-outline-white:hover,
.btn-outline-white:focus,
.btn-outline-white {
  border: 2px solid white;
  color: white;
}

/* reusable card element */
.rounded-card {
  background-color: white;
  border-radius: 40px 0 40px 0;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 5px 10px 0 rgba(0, 0, 0, 0.05);
  padding: 40px 32px;
  z-index: 1;
  position: relative;
}

.rounded-card .card-title {
  font-size: 27px;
  color: #0b3860;
  font-weight: bold;
  margin-bottom: 24px;
}

.rounded-card .card-content {
  font-size: 16px;
}

/* pearl partners section styles */
.pearl-partners-section {
  padding: 80px 32px;
  position: relative;
}

.pearl-partners-section .bg-home-img {
  position: absolute;
  bottom: 0;
  left: -48px;
  width: 100%;
  max-width: 750px;
}

.pearl-partners {
  max-width: 1440px;
  margin: 0 auto;
}

.pearl-partners .title {
  font-size: 23px;
  color: #0b3860;
  text-align: center;
  margin-bottom: 44px;
  z-index: 1;
  position: relative;
}

.pearl-partners .logos {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  position: relative;
}

.pearl-partners .logos .logo {
  width: 18%;
  text-align: center;
}

.pearl-partners .logos .logo img {
  max-height: 70px;
  max-width: 100%;
  filter: grayscale(100%);
}

.pearl-partners .logos .logo img:hover {
  filter: grayscale(0%);
}

@media (max-width: 767px) {
  .pearl-partners .logos {
    flex-direction: column;
  }

  .pearl-partners .logos .logo {
    width: 100%;
    margin-bottom: 20px;
  }

  .pearl-partners .logos .logo img {
    max-width: 180px;
  }
}

.pearl-added-value {
  position: relative;
  margin-left: -48px;
  margin-right: -48px;
}

@media (max-width: 576px) {
  .pearl-added-value {
    margin-left: -24px;
    margin-right: -24px;
  }
}

.pearl-added-value .house-imgs {
  position: absolute;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  background-color: #f5f6f8;
}

.pearl-added-value .house-imgs img {
  height: 100%;
}

.pearl-added-value .text {
  position: relative;
  color: #006088;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  padding: 66px 48px;
  width: 70%;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .pearl-added-value .text {
    width: 100%;
  }
}

/* styles for main section with page info to the left and a pic to the right */
.page-info-with-pic {
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  z-index: 1;
  position: relative;
}

.page-info-with-pic .page-pic {
  min-height: 500px;
  background-position: center center;
  background-size: cover;
  border-radius: 80px 0 80px 0;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 5px 10px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 992px) {
  .page-info-with-pic {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-info-with-pic .page-info {
    width: 60%;
    padding-right: 40px;
  }

  .page-info-with-pic .page-pic {
    width: 40%;
  }
}

.page-info .supertitle {
  font-size: 1.25rem;
  font-weight: bold;
  color: #098367;
  margin-bottom: 16px;
}

.page-info .title {
  font-size: 3rem;
  font-weight: bold;
  color: #0b3860;
  margin-top: 0;
  margin-bottom: 32px;
}

.page-info .subtitle {
  font-size: 1.5rem;
  color: #0b3860;
  margin-bottom: 48px;
}

/* search input styles */
.search-form {
  position: relative;
}

.search-form .fa-search {
  position: absolute;
  color: #0ba884;
  font-size: 32px;
  top: calc(50% - 16px);
  right: 32px;
  cursor: pointer;
}

.search-form input {
  width: 100%;
  height: 80px;
  border: none;
  border-radius: 40px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 5px 10px 0 rgba(0, 0, 0, 0.05);
  font-size: 20px;
  padding: 24px 70px 24px 32px;
  color: black;
}

.search-form input:focus {
  outline: none;
}

.search-form.no-search-results input {
  border: 2px solid #ff0000;
}

/* layout for buttons in modal when the modal footer is not included */
.modal-buttons {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}

.modal-buttons button {
  flex: 1 1 50%;
}

@media (max-width: 767px) {
  .modal-buttons {
    flex-flow: row wrap;
  }

  .modal-buttons button {
    flex: 1 1 auto;
    margin-bottom: 16px;
  }
}
