:root {
  --bg-light: #f8f9fa;
  --bg-light-alt: rgba(214, 221, 228, 0.2);
  --bg-dark: #1f384a;
  --active: #7c7c7d;
  --header-light: #fafafa;
  --real-blue: #29abe2;
  --blue-2: rgb(52, 122, 155);
  --blue-2-alt: rgba(52, 122, 155, 0.5);
}
* {
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s;
}
p,
p>em,
div {
  font-family: "Raleway", sans-serif;
  line-height: 1.75rem;
}
html,
body {
  height: 100%;
}
body {
  background-color: var(--bg-light);
}
h1,
h2 {
  font-weight: 400;
}
video,
img {
  display: block;
}
.size-one-point-one {
    font-size: 1.1rem;
}
.size-point-nine {
    font-size: 0.9rem;
}
a {
  color: var(--blue-2);
}
a:hover {
  color: var(--blue-2-alt);
}
.container {
  min-height: 100vh;
}
.h-100vh {
  height: 100vh;
}
.h-50vh {
  height: 50vh;
}
.mt-8 {
  margin-top: 8rem;
}
.mt-5 {
  margin-top: 5rem;
}
.mt-16 {
  margin-top: 16rem;
}
.centered {
  display: flex;
  justify-content: center;
}
.centered-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flex-auto {
  flex: 1 0 100%;
}
.upper {
  text-transform: uppercase;
}
.supersize {
  font-size: 3rem;
}
.material-icons.blue {
  color: var(--blue-2);
}
.bg-alt {
  width: 100vw;
  background-color: var(--bg-light-alt);
}
.max-width-50 {
  max-width: 50rem;
}
/* NAVBAR */
nav.navbar {
  padding-top: 1rem;
}
.navbar-brand,
nav a {
  padding-left: 12px;
}
/* styles applied when scroll > height set in global.js */
nav.navbar.shrink {
  padding:  0;
}
nav.shrink a {
  padding: 0;
  font-size: 1rem;
}
nav.shrink .navbar-brand {
  transform: scale(0.8);
}

nav.shrink .navbar-toggle {
  padding: 4px 5px;
  margin: 8px 15px 8px 0;
}
/* end scroll styles */
.container-fluid {
  margin: 0;
  width: 100vw;
}
a.nav-link {
  text-transform: uppercase;
}
li.nav-item {
  border: 1px solid transparent;
}

li.nav-item:hover {
  border-bottom: 1px solid var(--active);
}
/*TODO: hamburger menu button active state outline */
/* END NAVBAR */

/* HERO */
.hero-wrapper {
  margin-top: 115px;
  background-color: #5977ad;
  display: block;
  width: 100%;
  height: calc(100vh - 115px);
}
.hero-wrapper>img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-wrapper::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: calc(100vh - 115px);
  background-image: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 30%,
    rgba(255, 255, 255, 0) 100%
  );
}
.hero-caption {
  height: 100%;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 91px;
  left: 1rem;
}
.hero-caption h1 {
  padding-top: 18rem;
  color: var(--header-light);
  font-size: 3rem;
  text-align: center;
}
/* END HERO */

/* FORM */
.form-wrapper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 8rem;
}
form {
  max-width: min(500px, 90vw);
  flex: 1 0 100%;
  background-color: --var(--bg-light);
  box-shadow: 2px 2px 10px 5px rgba(31, 56, 74, 0.2);
  padding: 2rem;
  border-radius: 0.5rem;
}
form:hover {
  box-shadow: 2px 2px 10px 8px rgba(31, 56, 74, 0.2);
}
.btn-dark-blue {
  border-color: var(--bg-dark) !important;
  color: var(--bg-dark) !important;
}
.btn-dark-blue:hover {
  background-color: var(--bg-dark) !important;
  color: var(--header-light) !important;
}
/* END FORM */

/* ARTICLE */
header {
  text-transform: uppercase;
}
header h5 {
  margin-bottom: 0;
}
h2.oversized {
  font-size: 3.5rem;
  font-weight: 400;
}
video.video {
  width: min(500px, 100%);
}
.flex {
  display: flex;
  justify-content: center;
}
.jordan {
  display: flex;
  justify-content: flex-end;
  z-index: 3;
}
.flex p {
  min-width: 300px;
}
.palm-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/palmtrees-grayscale-800W.jpeg);
  background-size: cover;
  opacity: 0.1;
  z-index: 1;
  transform: translateX(-40%);
}
.desert-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/desert-landscapte-grayscale-1920W.jpeg);
  background-size: cover;
  opacity: 0.1;
  z-index: -1;
}

.card {
  padding-top: 5rem;
  /* background: rgb(31,56,74);
    background: linear-gradient(90deg, var(--bg-dark) 0%, var(--bg-light) 50%); */
  border: unset;
  border-radius: unset;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.card .left {
  padding-left: 3rem;
}
.card p {
  line-height: 2rem;
}
p.right {
  margin-right: 3rem;
}
.card img {
  display: block;
  padding-top: 1rem;
}
.card.real {
    padding-bottom: 5rem;
  }
  .real-description {
      padding-top: 3rem;
  }
.video-wrapper {
  display: flex;
  justify-content: center;
}

/* END ARTICLE */

/* TESTIMONIALS */
.testimonials {
  padding: 5rem 0;
  position: relative;
}
.testimonial-header {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.testimonial-body {
  max-height: 225px;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 75%;
  max-width: 30rem;
  padding-top: 2rem;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
}
.testimonial-group {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 8rem;
}
.testimonial-wrapper {
  flex: auto;
  margin: 0 2rem;
  min-width: 300px;
  height: min(450px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testimonial-title {
  font-weight: bold;
  font-size: 1.2rem;
}
.testimonial-ratings {
  display: flex;
  flex-direction: column;
}
.rating {
  display: inline-flex;
  align-items: center;
}
.rating span {
  padding-right: 1rem;
}
.slider {
  margin-bottom: 2rem;
  position: relative;
}
.slider-dot-wrapper {
  display: flex;
  justify-content: center;
  margin: .5rem;
}
.slider-dot {
  margin: .25rem;
  color: #7c7c7d70;
  /* height: 1rem; width: .5rem;
  background-color: #7c7c7d70;
  border: transparent;
  border-radius: .5rem;
  margin: .3rem; */
}
.slider-dot.active{
  color: #7c7c7d;
}
.slider-navigation {
  color: var(--bg-dark);
  border-color: var(--bg-dark);
  font-size: 2rem;
  font-weight: 500;
  position: absolute;
  top: 50%;
  padding: .5rem;
  border-radius: .25rem;
}
#prev {
  left: 0;
  /* transform: translateX(-35%); */
}
#next {
  right: 0;
  /* transform: translateX(35%); */
}
.glide__arrow:hover {
  /*TODO: FIX HOVER */
}
.material-icons {
  justify-content: center;
}
/* END TESTIMONIALS */

/* RECENT SALES */
.recent-sales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  grid-gap: 2rem;
  margin: 0 2rem 5rem;
}
.recent-sale-wrapper {
  position: relative;
  margin: 0;
}
img.recent-sale-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  overflow: hidden;
}
figcaption {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: linear-gradient(
    0deg,
    rgba(0, 0, 0, .8) 0%,
    rgba(0, 0, 0, 0.5) 30%,
    rgba(255, 255, 255, 0) 100%
  );
  color: var(--bg-light);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
figcaption div {
  padding: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
}
.recent-sale-wrapper:hover figcaption {
 opacity: 1;
}

/* END RECENT SALES */
div > img.real-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
img.real-logo {
  max-width: 100%;
  object-fit: contain;
}

/* FOOTER */
footer {
  width: 100vw;
  padding: 0;
  background-color: var(--bg-dark);
  height: calc(100vh - 65px);
}
footer a,
footer,
i::before {
  color: #fff;
}
.footer-img-wrapper {
  padding: 6rem 0 3rem;
  max-height: 300px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
.footer-brand {
  max-height: 8rem;
}
#real_logo {
  max-height: 5rem;
}
.contact-block {
  margin-bottom: 3rem;
}
.contact-group {
  display: flex;
  justify-content: center;
}
.contact-item {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  padding-top: 1.5rem;
}
.contact-item.grid-left {
  justify-content: end;
  padding-right: 1rem;
}
.contact-item.grid-right {
  justify-content: start;
  padding-left: 1rem;
}

i.bi.oversized::before {
  transform: scale(1.5);
}
i.bi.oversized {
  padding-right: 2rem;
}
i.bi {
  padding-right: 0.5rem;
}
.footer-bottom {
  border-top: solid 1px rgba(255, 255, 255, 0.3);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2rem 4rem;
  height: min-content;
  position: relative
}
.copyright {
    font-size: 0.8rem;
    position: absolute;
    bottom: 2rem;
    right: 4rem;
}
.realtor-credentials {
    display: inline-flex;
    align-self: baseline;
  }
  .realtor-credentials > img {
    margin-right: 1rem;
  }

/* END FOOTER */

@media screen and (max-width: 991px) {
  nav.shrink a {
    padding: 8px;
    font-size: 1rem;
  }
  .jordan {
    justify-content: center;
  }
  .palm-bg::before {
    transform: none;
  }
  .card {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }
  .card .left {
    padding: 0 3rem;
  }
  .card .left:first-of-type {
    padding-top: 1.5rem;
  }
  .card p.right {
    margin: unset;
  }
  .card video {
    padding-top: 0rem;
    width: 100%;
  }
 
  .video-wrapper {
    display: flex;
    justify-content: center;
    padding: 3rem 3rem;
  }
  #left-arrow {
    transform: translateX(-60%);
  }
  #right-arrow {
    transform: translateX(60%);
  }
}

@media screen and (max-width: 767px) {
  .hero-caption h1 {
    font-size: 2.5rem;
  }
  h2.oversized {
    font-size: 2.5rem;
  }
  .testimonials {
    padding-bottom: 8rem;
  }
  .testimonial-body {
    width: 100%;
  }
  .slider-navigation {
    top: unset;
    margin: 2rem;
    width: 10rem;
  }
  .slider-dot {
    height: .9rem; width: .9rem;
  }
  footer {
    height: unset;
  }
  .footer-img-wrapper {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    padding-bottom: 0;
  }
  .footer-img-wrapper img {
    padding-bottom: 2rem;
  }
  .contact-group {
    flex-direction: column;
    align-items: center;
  }
  .icon-group {
    padding-top: 2rem;
  }
}

@media screen and (max-width: 575px) {
  article,
  .testimonials {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .rating {
    font-size: .9rem;
  }
  .card .left:first-of-type {
    padding-top: 0;
  }
  .slider-navigation {
    width: 6rem;
  }
  .recent-sales-grid {
    margin: 0 .5rem 5rem;
  }

  .footer-bottom {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-bottom: 1rem;
  }
  .footer-bottom span {
    padding-top: 3rem;
  }
  .copyright {
      position: relative;
      right: unset;
      bottom: unset;
    padding-top: 1rem;
  }
  .realtor-credentials {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    width: 100%;
    align-items: center;
  }
  .realtor-credentials img {
      margin-right: unset;
  }
}
.hidden {
  display: none;
}
.obscure {
  opacity: 0.5;
}

.loading-container {
  position: fixed;
  top: 45vh;
  left: 45vw;
  z-index: 9999;
}

.loading {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.loading div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid var(--blue-2);
  border-radius: 50%;
  animation: loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--blue-2) transparent transparent transparent;
}
.loading div:nth-child(1) {
  animation-delay: -0.45s;
}
.loading div:nth-child(2) {
  animation-delay: -0.3s;
}
.loading div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
