.mb-sm {
  margin-bottom: 2rem;
}

.mb-md {
  margin-bottom: 3rem;
}

.mb-bg {
  margin-bottom: 4rem;
}

.mg-hg {
  margin-bottom: 8rem;
}

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

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 62.5%;
}
@media only screen and (max-width: 75em) {
  html {
    font-size: 50%;
  }
}

body {
  font-family: "Nunito", sans-serif;
  color: #6d5d4b;
  font-weight: 300;
  line-height: 1.6;
}

.container {
  display: grid;
  grid-template-rows: 80vh -webkit-min-content 40vw repeat(3, -webkit-min-content);
  grid-template-rows: 80vh min-content 40vw repeat(3, min-content);
  grid-template-columns:
    [side-start] 8rem [side-end full-start] minmax(6rem, 1fr)
    [center-start] repeat(
      8,
      [col-start] minmax(-webkit-min-content, 14rem) [col-end]
    )
    [center-end] minmax(6rem, 1fr) [full-end];
  grid-template-columns:
    [side-start] 8rem [side-end full-start] minmax(6rem, 1fr)
    [center-start] repeat(
      8,
      [col-start] minmax(min-content, 14rem) [col-end]
    ) [center-end] minmax(6rem, 1fr)
    [full-end];
}
@media only screen and (max-width: 62.5em) {
  .container {
    grid-template-rows: 6rem 80vh -webkit-min-content 40vw repeat(3, -webkit-min-content);
    grid-template-rows: 6rem 80vh min-content 40vw repeat(3, min-content);
    grid-template-columns:
      [full-start] minmax(6rem, 1fr) [center-start] repeat(
        8,
        [col-start] minmax(-webkit-min-content, 14rem) [col-end]
      )
      [center-end] minmax(6rem, 1fr) [full-end];
    grid-template-columns:
      [full-start] minmax(6rem, 1fr) [center-start] repeat(
        8,
        [col-start] minmax(min-content, 14rem) [col-end]
      )
      [center-end] minmax(6rem, 1fr) [full-end];
  }
}
@media only screen and (max-width: 50em) {
  .container {
    grid-template-rows: 6rem calc(100vh - 6rem);
    grid-template-columns:
      [full-start] minmax(6rem, 1fr) [center-start] repeat(
        8,
        [col-start] minmax(-webkit-min-content, 14rem) [col-end]
      )
      [center-end] minmax(6rem, 1fr) [full-end];
    grid-template-columns:
      [full-start] minmax(6rem, 1fr) [center-start] repeat(
        8,
        [col-start] minmax(min-content, 14rem) [col-end]
      )
      [center-end] minmax(6rem, 1fr) [full-end];
  }
}

.heading-1,
.heading-2,
.heading-3,
.heading-4 {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 400;
}

.heading-1 {
  font-size: 4.5rem;
  color: #f9f7f6;
  line-height: 1;
}

.heading-2 {
  color: #54483a;
  font-size: 4rem;
  font-style: italic;
  line-height: 1;
}

.heading-2--light {
  color: #f9f7f6;
}

.heading-2--dark {
  color: #54483a;
}

.heading-3 {
  color: #c69963;
  text-transform: uppercase;
  font-size: 1.6rem;
}

.heading-4 {
  font-size: 1.9rem;
}

.heading-4--light {
  color: #f9f7f6;
}

.heading-4--dark {
  color: #54483a;
}

.btn {
  background-color: #c69963;
  color: #fff;
  border: none;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  padding: 1.8rem 3rem;
  cursor: pointer;
  -ms-flex-item-align: start;
  align-self: start;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #b28451;
}

.sidebar {
  background-color: #c69963;
  grid-row: 1 / -1;
  grid-column: side-start / side-end;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding-top: 4rem;
}
@media only screen and (max-width: 62.5em) {
  .sidebar {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 0;
    padding-right: 3rem;
  }
}

.nav-btn {
  border: none;
  border-radius: none;
  background-color: white;
  height: 0.2rem;
  width: 4.5rem;
}

.nav-btn::before,
.nav-btn::after {
  content: "";
  display: block;
  height: 0.2rem;
  width: 4.5rem;
  background-color: #fff;
}

.nav-btn::before {
  -webkit-transform: translateY(-1.5rem);
  transform: translateY(-1.5rem);
}
@media only screen and (max-width: 62.5em) {
  .nav-btn::before {
    -webkit-transform: translateY(-1rem);
    transform: translateY(-1rem);
  }
}
.nav-btn::after {
  -webkit-transform: translateY(1.3rem);
  transform: translateY(1.3rem);
}
@media only screen and (max-width: 62.5em) {
  .nav-btn::after {
    -webkit-transform: translateY(0.8rem);
    transform: translateY(0.8rem);
  }
}

.header {
  background-image: -webkit-gradient(
      linear,
      left top,
      left bottom,
      from(rgba(16, 29, 44, 0.93)),
      to(rgba(16, 29, 44, 0.93))
    ),
    url(../img/hero.jpeg);
  background-image: linear-gradient(
      rgba(16, 29, 44, 0.93),
      rgba(16, 29, 44, 0.93)
    ),
    url(../img/hero.jpeg);
  background-size: cover;
  background-position: center;
  padding: 8rem;
  padding-top: 4rem;
  grid-column: full-start / col-end 6;
  display: grid;
  grid-template-rows: 1fr -webkit-min-content minmax(6rem, -webkit-min-content) 1fr repeat(
      2,
      -webkit-min-content
    );
  grid-template-rows: 1fr min-content minmax(6rem, min-content) 1fr repeat(
      2,
      min-content
    );
  grid-template-columns: minmax(-webkit-min-content, -webkit-max-content);
  grid-template-columns: minmax(min-content, max-content);
  grid-gap: 1.5rem;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
@media only screen and (max-width: 50em) {
  .header {
    grid-column: 1 / -1;
  }
}
@media only screen and (max-width: 37.5em) {
  .header {
    padding: 5rem;
  }
}
.header__logo {
  height: 3rem;
  justify-self: center;
}
.header__btn {
  justify-self: start;
}
.header__seenon-text {
  color: #aaa;
  font-size: 1.6rem;
  display: grid;
  grid-template-columns: 1fr -webkit-max-content 1fr;
  grid-template-columns: 1fr max-content 1fr;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  grid-column-gap: 1.5rem;
}
.header__seenon-text::before,
.header__seenon-text::after {
  content: "";
  display: block;
  background-color: currentColor;
  height: 1px;
}
.header__seenon-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 3rem;
  justify-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.header__seenon-logos img {
  max-width: 100%;
  max-height: 2.5rem;
  -webkit-filter: brightness(70%);
  filter: brightness(70%);
}

.realtors {
  background-color: #101d2c;
  grid-column: col-start 7 / full-end;
  display: grid;
  -ms-flex-line-pack: center;
  align-content: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  grid-row-gap: 2rem;
  justify-items: center;
}
@media only screen and (max-width: 50em) {
  .realtors {
    padding: 4rem;
    grid-column: 1 / -1;
  }
}
.realtors__list {
  display: grid;
  grid-template-columns: -webkit-min-content -webkit-max-content;
  grid-template-columns: min-content max-content;
  grid-column-gap: 2rem;
  grid-row-gap: 5vh;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
@media only screen and (max-width: 50em) {
  .realtors__list {
    grid-template-columns: repeat(3, -webkit-min-content -webkit-max-content);
    grid-template-columns: repeat(3, min-content max-content);
  }
}
@media only screen and (max-width: 37.5em) {
  .realtors__list {
    grid-template-columns: -webkit-min-content -webkit-max-content;
    grid-template-columns: min-content max-content;
  }
}
.realtors__img {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  display: block;
}
.realtors__sold {
  text-transform: uppercase;
  color: #aaa;
  margin-top: 3px;
}

.features {
  margin: 15rem 0;
  grid-column: center-start / center-end;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  grid-gap: 6rem;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: start;
}

.feature {
  display: grid;
  grid-template-columns: -webkit-min-content 1fr;
  grid-template-columns: min-content 1fr;
  grid-row-gap: 1.5rem;
  grid-column-gap: 2.5rem;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.feature__icon {
  height: 4.5rem;
  width: 4.5rem;
  fill: #c69963;
  -webkit-transform: translateY(-0.2rem);
  transform: translateY(-0.2rem);
}
.feature__text {
  font-size: 1.7rem;
  grid-column: 2 / -1;
}

.story__photo {
  background-image: -webkit-gradient(
      linear,
      left top,
      left bottom,
      from(rgba(198, 153, 99, 0.5)),
      to(rgba(198, 153, 99, 0.5))
    ),
    url(../img/back.jpg);
  background-image: linear-gradient(
      rgba(198, 153, 99, 0.5),
      rgba(198, 153, 99, 0.5)
    ),
    url(../img/back.jpg);
  background-size: cover;
  grid-column: full-start / col-end 4;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
@media only screen and (max-width: 50em) {
  .story__photo {
    grid-column: 1 / -1;
    padding: 5rem;
  }
}
@media only screen and (max-width: 25em) {
  .story__photo {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
    padding: 5rem 5rem 2rem 5rem;
  }
}

.story__img--1 {
  width: 100%;
  -webkit-box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.1);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.1);
  grid-row: 2 / 6;
  grid-column: 2 / 6;
}
@media only screen and (max-width: 50em) {
  .story__img--1 {
    grid-column: 1 / 5;
    grid-row: 1 / -1;
  }
}
@media only screen and (max-width: 25em) {
  .story__img--1 {
    grid-row: 1 / 5;
    grid-column: 1 / -1;
  }
}

.story__img--2 {
  width: 115%;
  -webkit-box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
  grid-row: 4 / 6;
  grid-column: 4 / 7;
  z-index: 2;
}
@media only screen and (max-width: 50em) {
  .story__img--2 {
    grid-row: 1 / -1;
    width: 100%;
  }
}
@media only screen and (max-width: 25em) {
  .story__img--2 {
    grid-row: 4 / 7;
    grid-column: 2 / -1;
  }
}

.story__content {
  padding: 6rem 8vw;
  background-color: #f9f7f6;
  grid-column: col-start 5 / full-end;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
@media only screen and (max-width: 50em) {
  .story__content {
    grid-column: 1 / -1;
    grid-row: 5 / 6;
  }
}

.story__text {
  font-size: 1.5rem;
  font-style: italic;
}

.homes {
  margin: 15rem 0;
  grid-column: center-start / center-end;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  grid-gap: 7rem;
}

.home {
  background-color: #f9f7f6;
  font-size: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 3.5rem;
  grid-row-gap: 3.5rem;
}
@media only screen and (max-width: 25em) {
  .home {
    grid-column-gap: 0;
  }
}
.home__img {
  width: 100%;
  grid-column: 1 / -1;
  grid-row: 1 / 2;
}
.home__like {
  width: 2.5rem;
  height: 2.5rem;
  fill: #c69963;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  justify-self: end;
  margin: 1rem;
}
.home__name {
  padding: 1.25rem;
  width: 80%;
  background-color: #101d2c;
  color: #fff;
  text-align: center;
  font-size: 1.6rem;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 400;
  grid-column: 1 / -1;
  grid-row: 1 / 2;
  justify-self: center;
  -ms-flex-item-align: end;
  align-self: end;
  -webkit-transform: translateY(50%);
  transform: translateY(50%);
}
.home__location,
.home__rooms {
  margin-top: 2.5rem;
}
.home__location,
.home__rooms,
.home__area,
.home__price {
  margin-left: 2rem;
  font-size: 1.5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.home__location svg,
.home__rooms svg,
.home__area svg,
.home__price svg {
  height: 2rem;
  width: 2rem;
  fill: #c69963;
  margin-right: 1rem;
}
.home__btn {
  grid-column: 1 / -1;
}

.gallery {
  background-color: #f9f7f6;
  grid-column: full-start / full-end;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(7, 5vw);
  grid-gap: 1.5rem;
  padding: 1.5rem;
}
.gallery__item--1 {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}
.gallery__item--2 {
  grid-column: 3 / span 3;
  grid-row: 1 / span 3;
}
.gallery__item--3 {
  grid-column: 6 / 7;
  grid-row: 1 / span 2;
}
.gallery__item--4 {
  grid-column: 7 / -1;
  grid-row: 1 / span 2;
}
.gallery__item--5 {
  grid-column: 1 / span 2;
  grid-row: 3 / span 3;
}
.gallery__item--6 {
  grid-column: 3 / span 2;
  grid-row: 4 / span 2;
}
.gallery__item--7 {
  grid-column: 5 / 6;
  grid-row: 4 / 5;
}
.gallery__item--8 {
  grid-column: 6 / span 2;
  grid-row: 3 / span 2;
}
.gallery__item--9 {
  grid-column: 8 / -1;
  grid-row: 3 / span 3;
}
.gallery__item--10 {
  grid-column: 1 / 2;
  grid-row: 6 / span 2;
}
.gallery__item--11 {
  grid-column: 2 / span 2;
  grid-row: 6 / span 2;
}
.gallery__item--12 {
  grid-column: 4 / 5;
  grid-row: 6 / span 2;
}
.gallery__item--13 {
  grid-column: 5 / span 3;
  grid-row: 5 / span 3;
}
.gallery__item--14 {
  grid-column: 8 / -1;
  grid-row: 6 / -1;
}
.gallery__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

.footer {
  background-color: #101d2c;
  padding: 10rem;
  grid-column: full-start / full-end;
}
.footer__copyright {
  font-size: 1.4rem;
  color: #aaa;
  text-align: center;
  margin-top: 6rem;
}

.nav {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  grid-gap: 2rem;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.nav__link:link,
.nav__link:visited {
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Josefin Sans", sans-serif;
  padding: 1.5rem;
  display: block;
  text-align: center;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.nav__link:hover,
.nav__link:active {
  background-color: rgba(255, 255, 255, 0.05);
  -webkit-transform: translateY(-0.3rem);
  transform: translateY(-0.3rem);
}
