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

html {
  font-size: 62.5%;
  font-family: "Nunito", sans-serif;
  color: #6D5D4B;
  font-weight: 300;
  line-height: 1.6;
  user-select: none;
}
@media only screen and (max-width: 75em) {
  html {
    font-size: 50%;
  }
}

.container {
  display: grid;
  grid-template-rows: 80vh min-content 40vw repeat(3, min-content);
  grid-template-columns: [sidebar-start] 8rem [sidebar-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: 8rem 80vh min-content 40vw repeat(3, min-content);
    grid-template-columns: [sidebar-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: 50em) {
  .container {
    grid-template-rows: 8rem calc(100vh - 8rem) 30vh minmax(50vh, min-content) minmax(40vw, min-content) repeat(3, min-content);
    grid-template-columns: [sidebar-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: 37.5em) {
  .container {
    grid-template-rows: 8rem calc(100vh - 8rem) 30vh minmax(50vh, min-content) minmax(40vw, min-content) 40vh repeat(3, min-content);
    grid-template-columns: [sidebar-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];
  }
}

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

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

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

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

.heading-4 {
  font-size: 1.9rem;
}
.heading-4--light {
  color: #f9f7f6;
}
.heading-4--dark {
  color: #54483A;
}

.btn {
  background-color: #c69963;
  color: white;
  border: none;
  border-radius: 0;
  font-size: 1.5rem;
  font-family: "Josefin Sans", sans-serif;
  text-transform: uppercase;
  padding: 1.8rem 3rem;
  transition: all 0.2s;
  cursor: pointer;
}
.btn:hover {
  background-color: #B28451;
}

.sidebar {
  background-color: #c69963;
  grid-column: sidebar-start/sidebar-end;
  grid-row: 1/-1;
  display: flex;
  justify-content: center;
}
@media only screen and (max-width: 62.5em) {
  .sidebar {
    grid-row: 1/2;
  }
}

.sidebar__btn {
  margin-top: 4rem;
  height: 0.3rem;
  width: 4rem;
  background-color: white;
  position: relative;
  opacity: 1;
  transition: all 0.2s;
}
.sidebar__btn::before {
  transition: all 0.2s;
  opacity: 1;
  width: 4rem;
  content: "";
  height: 0.3rem;
  background-color: white;
  position: absolute;
  transform: translateY(-300%);
}
.sidebar__btn::after {
  transition: all 0.2s;
  width: 4rem;
  content: "";
  height: 0.3rem;
  background-color: white;
  position: absolute;
  transform: translateY(300%);
}

.btn-container {
  height: 7rem;
}

.btn-container:hover .sidebar__btn {
  transform: rotate(45deg);
}
.btn-container:hover .sidebar__btn::after {
  transform: rotate(-90deg);
}
.btn-container:hover .sidebar__btn::before {
  opacity: 0;
}

.header {
  background-color: #54483A;
  justify-self: center;
  grid-column: full-start/col-end 6;
  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;
  display: grid;
  grid-template-rows: 1fr min-content minmax(6rem, min-content) 1fr;
  grid-template-columns: minmax(min-content, max-content);
  grid-row-gap: 4rem;
  padding: 8rem;
  padding-top: 4rem;
  width: 100%;
}
@media only screen and (max-width: 62.5em) {
  .header {
    grid-row: 2/3;
    grid-column: full-start/col-end 6;
  }
}
@media only screen and (max-width: 50em) {
  .header {
    grid-row: 2/3;
    grid-column: 1/-1;
  }
}
.header__logo {
  height: 3rem;
  justify-self: center;
}
.header__seenon-text {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  align-items: center;
  grid-gap: 1rem;
  color: #aaa;
  font-size: 1.6rem;
}
.header__seenon-text::after, .header__seenon-text::before {
  content: "";
  height: 1px;
  display: block;
  background-color: currentColor;
}
.header__seenon-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 3rem;
  justify-items: center;
  align-items: center;
}
.header__seenon-logos img {
  max-height: 2.5rem;
  max-width: 100%;
  filter: brightness(70%);
}
.header .btn {
  align-self: flex-start;
  justify-self: start;
}

.realators {
  background-color: #101d2c;
  grid-column: col-start 7/full-end;
  display: grid;
  grid-template-columns: 1fr;
  padding: 12rem;
  justify-items: center;
  align-items: center;
  justify-content: center;
}
.realators h4 {
  text-transform: uppercase !important;
  word-break: keep-all;
  color: #c69963;
}
@media only screen and (max-width: 37.5em) {
  .realators h4 {
    margin-right: 1rem;
  }
}
@media only screen and (max-width: 62.5em) {
  .realators {
    grid-column: col-start 7/full-end;
  }
}
@media only screen and (max-width: 50em) {
  .realators {
    grid-row: 3/4;
    grid-column: 1/-1;
    display: flex;
    justify-content: space-around;
  }
}
.realators .realator {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}
.realators .realator h3 {
  color: white;
  font-size: 2.6rem;
}
@media only screen and (max-width: 37.5em) {
  .realators .realator h3 {
    font-size: 2rem;
  }
}
@media only screen and (max-width: 50em) {
  .realators .realator {
    display: flex;
    flex-direction: column;
  }
}
@media only screen and (max-width: 37.5em) {
  .realators .realator {
    margin: 0 1rem;
  }
}
.realators .realator__photo {
  width: 8rem;
  border-radius: 50%;
}
@media only screen and (max-width: 37.5em) {
  .realators .realator__photo {
    width: 6rem;
  }
}
.realators .realator__data {
  color: white;
  text-transform: uppercase;
}
.realators .realator__housesold {
  color: #aaa;
  font-size: 1.1rem;
  font-weight: 900;
}

.features {
  margin: 15rem 0;
  grid-column: center-start/center-end;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 6rem;
}
@media only screen and (max-width: 62.5em) {
  .features {
    grid-row: 3/4;
  }
}
@media only screen and (max-width: 50em) {
  .features {
    grid-row: 4/5;
    margin-bottom: 10rem;
  }
}

.feature {
  display: grid;
  grid-template-columns: min-content 1fr;
  grid-column-gap: 2.5rem;
  grid-row-gap: 1rem;
  align-content: start;
  transition: all 0.5s;
  padding: 1rem;
  border-radius: 1rem;
}
.feature:hover {
  transform: translateY(-2rem);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.4);
}
.feature__icon {
  width: 4.5rem;
  height: 4.5rem;
  fill: #c69963;
  grid-row: 1/span 2;
}
.feature__text {
  font-size: 1.7rem;
}
.story__pictures {
  background-color: #c69963;
  grid-column: full-start/col-start 5;
  grid-row-start: 3;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  align-items: center;
  background-blend-mode: multiply;
  background-image: linear-gradient(#c69963, #c69963), url(../img/back.jpg);
  background-size: cover;
}
@media only screen and (max-width: 62.5em) {
  .story__pictures {
    grid-row: 4/5;
  }
}
@media only screen and (max-width: 50em) {
  .story__pictures {
    grid-row: 5/6;
  }
}
@media only screen and (max-width: 37.5em) {
  .story__pictures {
    grid-row: 6/7;
    grid-column: 1/-1;
  }
}
.story__img {
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}
.story__img--1 {
  width: 100%;
  grid-column: 2/6;
  grid-row: 2/6;
}
@media only screen and (max-width: 37.5em) {
  .story__img--1 {
    grid-column: 1/6;
    align-self: center;
    justify-self: end;
    width: 95%;
    height: 85%;
  }
}
.story__img--2 {
  width: 115%;
  z-index: 10;
  grid-area: 4/4/6/7;
}
@media only screen and (max-width: 37.5em) {
  .story__img--2 {
    width: 90%;
    height: 50%;
    grid-area: 2/4/6/7;
  }
}
.story__content {
  background-color: #f9f7f6;
  grid-column: col-end 4/full-end;
  padding: 6rem 8vw;
  display: grid;
  align-content: center;
  justify-items: start;
}
@media only screen and (max-width: 62.5em) {
  .story__content {
    grid-row: 4/5;
  }
}
@media only screen and (max-width: 50em) {
  .story__content {
    grid-row: 5/6;
  }
}
@media only screen and (max-width: 37.5em) {
  .story__content {
    grid-row: 5/6;
    grid-column: 1/-1;
  }
}
.story__text {
  font-size: 1.5rem;
  font-style: italic;
}

.homes {
  padding: 5rem 5rem;
  grid-column: center-start/center-end;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 7rem;
}
@media only screen and (max-width: 62.5em) {
  .homes {
    grid-row: 5/6;
  }
}
@media only screen and (max-width: 50em) {
  .homes {
    grid-row: 6/7;
  }
}
@media only screen and (max-width: 37.5em) {
  .homes {
    grid-row: 7/8;
  }
}

.home {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-color: #f9f7f6;
  grid-row-gap: 3.5rem;
}
.home__img {
  width: 100%;
  grid-column: 1/3;
  grid-row: 1/2;
}
.home__icon {
  grid-column: 2/3;
  grid-row: 1/2;
  height: 2.5rem;
  width: 2.5rem;
  fill: #c69963;
  justify-self: end;
  margin: 1rem;
  transition: all 0.2s;
}
.home__icon:hover {
  fill: rgb(217, 217, 217);
}
.home__name {
  grid-column: 1/3;
  grid-row: 1/2;
  width: 100%;
  text-align: center;
  padding: 1.25rem;
  font-size: 1.6rem;
  font-family: "Josefin Sans", sans-serif;
  color: white;
  background-color: #101d2c;
  width: 80%;
  justify-self: center;
  align-self: flex-end;
  font-weight: 400;
  transform: translateY(50%);
}
.home__location, .home__rooms {
  margin-top: 2.5rem;
}
.home__location, .home__rooms, .home__area, .home__price {
  font-size: 120%;
  display: flex;
  margin: 1rem 2rem;
}
.home__location svg, .home__rooms svg, .home__area svg, .home__price svg {
  fill: #c69963;
  height: 2rem;
  width: 2rem;
  margin-right: 1rem;
}
.home button {
  width: 100%;
  grid-column: 1/3;
  justify-self: center;
  margin-top: 1rem;
}

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

.footer {
  background-color: #101d2c;
  grid-column: full-start/full-end;
  padding: 8rem;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  gap: 1rem;
  align-items: center;
}
.footer__item {
  display: block;
  font-size: 1.3rem;
  color: #f9f7f6;
  text-align: center;
}
.footer__item .footer__link:visited, .footer__item .footer__link:link {
  padding: 1.5rem;
  font-weight: 400;
  font-family: "Josefin Sans", sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
  width: 100%;
  height: 100%;
  display: block;
  transition: all 0.2s;
  cursor: pointer;
}
.footer__item .footer__link:hover, .footer__item .footer__link:active {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-0.5rem);
}
.footer__legal {
  width: 70%;
  text-align: center;
  margin: 0 auto;
  margin-top: 6rem;
  font-size: 1.3rem;
  color: #aaa;
}

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

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

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

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