@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&family=VT323&display=swap");
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit; }

html {
  box-sizing: border-box;
  font-size: 62.5%; }

body {
  font-family: "Poppins";
  color: #564c42;
  font-weight: 300;
  line-height: 1.6; }

.container {
  position: relative;
  display: grid;
  grid-template-rows: 60vh min-content min-content min-content min-content;
  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];
  justify-content: center; }

.heading-1, .heading-2, .heading-3, .heading-4 {
  font-weight: 600; }

.heading-1 {
  font-size: 6.5rem;
  line-height: 1; }

.heading-2 {
  font-size: 4rem;
  line-height: 1; }

.heading-3 {
  font-size: 3rem; }

.heading-4 {
  font-size: 2rem; }
  .heading-4--light {
    color: #fff; }
  .heading-4--dark {
    color: #514b43; }

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

header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: sticky;
  top: 0;
  width: 100%;
  background: #333;
  color: #eee;
  z-index: 9999; }
  @media screen and (max-width: 768px) {
    header {
      grid-template-columns: 1fr 1fr; } }

.burger {
  justify-self: start;
  align-self: center;
  font-size: 1.2em;
  cursor: pointer;
  z-index: 1;
  padding-left: 2rem;
  /* to show only on smaller screen, so hide it initially*/
  /*visibility: hidden;*/ }

.burger span {
  display: block;
  width: 3rem;
  height: 2px;
  background: #eee;
  margin-bottom: 6px;
  transition: all ease-in .1s; }

.logo {
  justify-self: center;
  align-self: center;
  padding-top: 1rem; }
  @media screen and (max-width: 768px) {
    .logo {
      justify-self: end;
      padding-right: 2rem; } }

.logo-top-triangle {
  clip-path: polygon(50% 0%, 0 51%, 100% 50%);
  padding-left: 4rem;
  padding-right: 4rem;
  padding-top: 1rem;
  background-color: #eee;
  border: 4px solid; }

.logo-heading {
  margin-top: -1.5rem;
  padding-bottom: 1.6rem;
  padding-left: 1rem;
  text-transform: uppercase;
  letter-spacing: .6rem; }

.logo-border-bottom {
  border-bottom: solid 4px;
  transform: translateY(-1.3rem); }

.header-contact-container {
  justify-self: end;
  align-self: stretch;
  display: flex;
  align-items: center;
  background-color: #67676763;
  /* #676767; */
  letter-spacing: 4px;
  padding-left: 2rem;
  padding-right: 2rem; }
  @media screen and (max-width: 768px) {
    .header-contact-container {
      grid-column: 1 / span 2;
      justify-self: center;
      margin: 0 auto; } }

.header-contact-text {
  padding-left: 2rem;
  flex-grow: 1;
  font-size: 2rem; }

.fa-icon {
  font-size: 1.8rem; }

nav {
  background: #222;
  position: absolute;
  top: 0px;
  left: -22rem;
  /* hide it initially */
  width: 22rem;
  height: 100vh;
  /*padding: 40px 30px;*/
  padding-top: 10rem;
  /* space so cross can appear */
  z-index: 0;
  transition: left ease-in .3s; }

nav ul {
  padding: 0; }

nav li {
  list-style-type: none; }

nav li a {
  color: #f9f7f6;
  /* #fff; */
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
  padding: 1.2rem 1rem;
  font-size: 1.5rem; }

nav li a:hover {
  background-color: #333; }

/* open left side nav */
nav.open {
  left: 0; }

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(1rem);
  margin-left: 12%; }

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-1rem);
  margin-left: 12%; }

.burger.open span:nth-child(2) {
  opacity: 0; }

@media (max-width: 764px) {
  /* display menu for smaller screens */
  /*.burger {
        visibility: visible;
    }*/ }

.hero {
  background-color: #aaa;
  grid-column: full-start / full-end;
  color: #e3e3e3;
  background-image: linear-gradient(rgba(57, 57, 57, 0.55), rgba(28, 27, 27, 0.92)), url(../img/house-6.jpg);
  background-size: cover;
  background-position: center;
  display: grid;
  grid-template-rows: 2fr 1fr 1fr 1fr;
  grid-template-columns: minmax(min-content, max-content);
  grid-row-gap: 4rem;
  justify-content: center; }
  .hero__main-heading {
    justify-self: center;
    align-self: self-end;
    letter-spacing: 0rem;
    font-size: 8rem;
    color: #fff; }
    @media only screen and (max-width: 50em) {
      .hero__main-heading {
        font-size: 5rem; } }
  .hero__btn {
    justify-self: center;
    align-self: self-end;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 4rem; }
    @media only screen and (max-width: 50em) {
      .hero__btn {
        grid-column-gap: 1.5rem; } }
    .hero__btn button {
      font-size: 2rem;
      background: transparent;
      color: #f9f7f6;
      border: 2px solid; }
      .hero__btn button:hover {
        border: 2px solid #222;
        box-shadow: 0 10px 6px -6px #777; }
      @media only screen and (max-width: 50em) {
        .hero__btn button {
          font-size: 1.5rem;
          padding: 2rem; } }
  .hero__service-text {
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    column-gap: 1.5rem;
    align-items: self-end;
    font-size: 2rem;
    color: #fff;
    filter: brightness(80%); }
    @media only screen and (max-width: 50em) {
      .hero__service-text {
        transform: translateY(3rem); } }
    .hero__service-text::before, .hero__service-text::after {
      content: "";
      height: 1px;
      display: block;
      background-color: currentColor;
      transform: translateY(-1.5rem); }
  .hero__service-area {
    transform: translateY(-65%);
    align-self: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 6rem; }
    .hero__service-area h3 {
      font-size: 4rem;
      filter: brightness(80%); }
      @media only screen and (max-width: 50em) {
        .hero__service-area h3 {
          font-size: 2rem; } }

.features {
  margin: 10rem 0;
  grid-column: center-start / center-end;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 4rem;
  column-gap: 6rem;
  justify-content: center;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  /*@media screen and (max-width:768px) {
        grid-template-columns: 1fr;
        grid-row-gap: 4rem;
        padding-left: 7rem;
        padding-right: 7rem;
    }*/ }

.feature {
  display: grid;
  grid-template-columns: min-content 1fr;
  grid-row-gap: 1.5rem;
  grid-column-gap: 2.5rem; }
  .feature__fa-icon {
    font-size: 3rem;
    transform: translateY(-0.8rem); }
  .feature__text {
    font-size: 1.7rem;
    grid-column: 1 / span 2; }

.about {
  background-color: #333;
  grid-column: full-start / full-end;
  display: grid;
  grid-template-columns: 1fr;
  padding: 6rem; }
  @media only screen and (max-width: 62.5em) {
    .about {
      grid-template-columns: 1fr; } }
  .about__text {
    color: #fff;
    justify-self: stretch; }
    .about__text p {
      font-size: 1.7rem;
      margin-bottom: 1.5rem; }
  .about__img {
    height: 100%;
    width: 100%; }

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

.home {
  background-color: #f5f5f5;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-row-gap: 3.5rem; }
  .home__img {
    grid-row: 1 / 2;
    width: 100%;
    grid-column: 1 / -1;
    z-index: 1; }
  .home__price {
    grid-row: 1 /2;
    grid-column: 1 / -1;
    justify-self: center;
    align-self: end;
    z-index: 3;
    width: 60%;
    padding: 1rem;
    text-align: center;
    font-family: "Josefin Sans", sans-serif;
    font-size: 1.8rem;
    letter-spacing: .2rem;
    font-weight: 600;
    background-color: #04162bc7;
    color: #fff;
    transform: translateY(50%); }
  .home__address {
    grid-column: 1 / -1;
    font-size: 1.6rem;
    justify-self: center;
    align-self: end;
    font-weight: 500;
    margin-top: 1.2rem;
    width: 80%;
    text-align: center;
    transform: translateY(40%); }
  .home__bedrooms, .home__bathrooms {
    display: flex;
    justify-self: center;
    align-items: center;
    font-size: 1.2rem; }
    .home__bedrooms p, .home__bathrooms p {
      font-weight: 400; }
  .home__fa-icon {
    font-size: 2.5rem;
    margin-right: .6rem; }
  .home__btn {
    grid-column: 1 / -1; }

.realtors {
  background-color: #333;
  color: #fff;
  grid-column: full-start / full-end;
  padding: 6rem;
  display: grid; }
  .realtors__list {
    padding-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    column-gap: 8rem;
    row-gap: 6rem; }
  .realtors__img {
    width: 100%;
    border-radius: 50%;
    display: block; }
  @media only screen and (max-width: 50em) {
    .realtors__details h4 {
      font-size: 1.5rem; } }
  .realtors__info {
    font-size: 1.5rem;
    color: #aaa; }
    @media only screen and (max-width: 50em) {
      .realtors__info {
        font-size: 1rem; } }

.realtor {
  display: grid;
  align-items: center;
  justify-items: center;
  row-gap: 2rem; }

.offices {
  grid-column: center-start / center-end;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 6rem;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  padding-top: 9rem;
  padding-bottom: 9rem; }

.office {
  display: grid;
  grid-template-columns: min-content 1fr;
  grid-row-gap: 1.5rem; }
  .office__icon {
    fill: #333;
    width: 4.5rem;
    height: 4.5rem;
    font-size: 3rem;
    grid-row: 1 / span 2;
    transform: translateY(-0.8rem); }
  .office__text {
    font-size: 1.7rem; }
    .office__text p {
      font-weight: 400; }

.office-contact {
  padding-top: 1rem;
  font-size: 1.5rem; }

.footer {
  padding: 3rem 0rem;
  display: grid;
  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];
  justify-content: center;
  background-color: #333;
  color: #fff; }
  .footer__container {
    grid-column: center-start / center-end;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 2rem;
    justify-items: center; }
    .footer__container--copyright {
      grid-column: 1 / -1;
      justify-self: center;
      font-size: 1.2rem;
      filter: brightness(70%); }
