/* 1200px */

/* GENERAL*/

@media (max-width: 70em) {
  .hero-content h2 {
    position: absolute;
    top: 20%;
    left: 35%;
  }

  .hero-content p {
    position: absolute;
    top: 40%;
    left: 30%;
  }

  .for-sale::before {
    content: 'for sale';
    position: absolute;
    top: 3%;
    right: -7%;
    transform: rotate(45deg);
    padding: 0.8rem 3rem;
    background-color: #ffbe80;
    text-transform: uppercase;
  }

  .for-rent::before {
    content: 'for rent';
    position: absolute;
    top: 3%;
    right: -7%;
    transform: rotate(45deg);
    padding: 0.8rem 3rem;
    background-color: #ffbe80;
    text-transform: uppercase;
  }

  .icon-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2.4rem;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1065px */

@media (max-width: 66em) {
  .header {
    position: relative;
  }

  .hero-content p {
    position: absolute;
    top: 43%;
    left: 30%;
  }

  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease-in;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    overflow-x: hidden;
  }

  /* mobile nav */

  .nav-links {
    font-size: 4.4rem;
    flex-direction: column;
    gap: 4rem;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open {
    z-index: 9999;
  }

  .nav-open .icon-mobile-nav[name='close-outline'] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name='menu-outline'] {
    display: none;
  }
}

/* 1000px */

@media (max-width: 63em) {
  /* STICKY NAV  */

  .sticky .header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    bottom: 0;
    height: 8rem;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.05);
    z-index: 999;
    transition: all 0.1s;
  }

  .sticky .hero-section {
    margin-top: 9.6rem;
  }

  .hero-content p {
    position: absolute;
    top: 43%;
    left: 30%;
  }

  .for-sale::before {
    content: 'for sale';
    position: absolute;
    top: 3%;
    right: -7%;
    transform: rotate(45deg);
    padding: 0.8rem 3.2rem;
  }
  .for-rent::before {
    content: 'for rent';
    position: absolute;
    top: 3%;
    right: -7%;
    transform: rotate(45deg);
    padding: 0.8rem 3.2rem;
  }
}

/* 950px */

@media (max-width: 60em) {
  .hero-content p {
    position: absolute;
    top: 43%;
    left: 30%;
  }

  .card {
    flex-direction: column;
    align-items: center;
  }

  .for-sale::before {
    content: 'for sale';
    position: absolute;
    top: 4%;
    right: -10%;
    transform: rotate(45deg);
    padding: 0.8rem 4rem;
  }

  .for-rent::before {
    content: 'for rent';
    position: absolute;
    top: 4%;
    right: -10%;
    transform: rotate(45deg);
    padding: 0.8rem 4rem;
  }

  .grid-container {
    padding-bottom: 6.4rem;
  }

  .recent-features {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .icon-container {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

/* 830px */

@media (max-width: 52em) {
  html {
    font-size: 56%;
  }

  .hero-content p {
    position: absolute;
    top: 42%;
    left: 28%;
  }

  .offer-features {
    text-align: center;
  }

  .offer-features p {
    text-align: left;
  }

  .offers {
    grid-template-columns: 1fr;
  }
}

/* 780px */

@media (max-width: 48em) {
  .nav-links {
    font-size: 6.4rem;
  }
  .hero-content h2 {
    position: absolute;
    top: 20%;
    left: 30%;
  }

  .hero-content p {
    position: absolute;
    top: 43%;
    left: 25%;
  }

  .for-sale::before {
    content: 'for sale';
    top: 4%;
    right: -12%;
  }

  .for-rent::before {
    content: 'for rent';
    top: 4%;
    right: -12%;
  }

  .cleaning-section h3 {
    font-size: 2.6rem;
  }

  .cleaning-section span {
    font-size: 3.4rem;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr;
    gap: 4.8rem;
  }

  .footer-logo {
    width: 60%;
  }
}

/* 730px */

@media (max-width: 46em) {
  .recent-features {
    justify-content: flex-end;
  }

  .cleaning-section h3 {
    font-size: 2.4rem;
  }

  .cleaning-section span {
    font-size: 3.2rem;
  }

  .cleaning-services {
    flex-direction: column;
    gap: 1.4rem;
    align-items: center;
    justify-content: center;
  }
}

/* 685px */

@media (max-width: 42em) {
  .hero-content h2 {
    position: absolute;
    top: 20%;
    left: 30%;
  }

  .hero-content p {
    position: absolute;
    top: 40%;
    left: 22%;
  }

  .for-sale::before {
    content: 'for sale';
    position: absolute;
    top: 4%;
    right: -14%;
    transform: rotate(45deg);
    padding: 0.8rem 4rem;
  }

  .for-rent::before {
    content: 'for rent';
    position: absolute;
    top: 4%;
    right: -14%;
    transform: rotate(45deg);
    padding: 0.8rem 4rem;
  }

  .recent-features {
    justify-content: flex-end;
  }

  .icon-container {
    align-items: center;
    gap: 1rem;
    padding-left: 0.6rem;
  }

  .cleaning-section h3 {
    font-size: 2.2rem;
    line-height: 1.6;
  }

  .cleaning-section span {
    font-size: 2.8rem;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr;
    gap: 4.8rem;
  }
}

/* 630px */

@media (max-width: 40em) {
  .hero-section {
    height: 80vh;
  }
  .hero-content h2 {
    font-size: 4rem;
    position: absolute;
    top: 20%;
    left: 32%;
  }

  .hero-content span {
    font-size: 4.4rem;
  }

  .hero-content p {
    font-size: 3rem;
    position: absolute;
    top: 38%;
    left: 25%;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: absolute;
    top: -25%;
    left: 0;
    width: 100%;
    height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease-in;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-links {
    gap: 2rem;
  }

  .recent-features {
    justify-content: flex-end;
  }

  .icon-container {
    align-items: center;
    gap: 0.8rem;
    padding-left: 0.2rem;
  }

  .contact-info {
    width: 20rem;
  }

  .sell-property {
    height: 85vh;
  }

  .cleaning-section p {
    font-size: 2.4rem;
  }

  .contact-text {
    margin-bottom: 2.6rem;
  }

  .contact-card {
    gap: 8rem;
  }

  .cleaning-icon {
    color: #e68327;
    height: 3rem;
    width: 3rem;
  }
}

/* 550px */

@media (max-width: 35em) {
  .grid-container {
    grid-template-columns: 1fr;
  }

  .recent-features {
    justify-content: flex-start;
  }

  .icon-container {
    align-items: center;
    gap: 1.8rem;
  }

  .for-sale::before {
    content: 'for sale';
    position: absolute;
    top: 3%;
    right: -8%;
    transform: rotate(45deg);
    padding: 0.8rem 4rem;
  }

  .for-rent::before {
    content: 'for rent';
    position: absolute;
    top: 3%;
    right: -8%;
    transform: rotate(45deg);
    padding: 0.8rem 4rem;
  }
}

/* 445px */

@media (max-width: 35em) {
  .hero-content h2 {
    font-size: 3.6rem;
    position: absolute;
    top: 20%;
    left: 30%;
  }
  .hero-content span {
    font-size: 4rem;
  }

  .hero-content p {
    text-align: center;
    font-size: 2.6rem;
    position: absolute;
    top: 38%;
    left: 18%;
  }

  .for-sale::before {
    content: 'for sale';
    position: absolute;
    top: 4%;
    right: -9%;
  }

  .for-rent::before {
    content: 'for rent';
    position: absolute;
    top: 4%;
    right: -9%;
  }

  .sell-property h3 {
    line-height: 1.6;
  }

  .grid-2-cols {
    column-gap: 5.4rem;
  }

  .cleaning-section h3 {
    font-size: 2rem;
  }

  .cleaning-section span {
    font-size: 2.6rem;
  }

  .cleaning-icon {
    color: #e68327;
    height: 3rem;
    width: 3rem;
  }

  .footer-grid {
    justify-content: center;
  }

  .footer-logo {
    width: 50%;
  }
}

/* 416px */

@media (max-width: 26em) {
  .hero-content h2 {
    font-size: 3.6rem;
    position: absolute;
    top: 20%;
    left: 22%;
  }
  .hero-content span {
    font-size: 4rem;
  }

  .hero-content p {
    text-align: center;
    font-size: 2.6rem;
    position: absolute;
    top: 36%;
    left: 10%;
  }

  .contact-info {
    width: 16rem;
  }

  .grid-2-cols {
    column-gap: 4.8rem;
  }

  .for-sale::before {
    content: 'for sale';
    position: absolute;
    top: 4%;
    right: -10%;
  }

  .for-rent::before {
    content: 'for rent';
    position: absolute;
    top: 4%;
    right: -10%;
  }
}

/* PROPERTIES */

@media (max-width: 63em) {
  .grid-3-cols {
    column-gap: 0rem;
  }
}

@media (max-width: 60em) {
  .grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2rem;
    column-gap: 3rem;
  }
}

@media (max-width: 40em) {
  .grid-3-cols {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 4rem;
  }

  .search-btn {
    font-size: 2rem;
  }

  .page-box ul {
    gap: 2rem;
  }
}

/* PROPERTIES & CONTACT*/

/* 1050px */

@media (max-width: 66em) {
  .hero-header::after {
    top: 35%;
    left: 15%;
  }
}

/* 900px */

@media (max-width: 56em) {
  .hero-header::after {
    top: 35%;
    left: 12%;
  }
}

/* 700px */

@media (max-width: 44em) {
  .hero-header::after {
    top: 35%;
    left: 5%;
    font-size: 4.8rem;
  }
}

/* 600px */

@media (max-width: 38em) {
  .hero-header::after {
    top: 35%;
    left: 10%;
    line-height: 1.3;
  }
}

/* 500px */

@media (max-width: 34em) {
  .hero-header::after {
    top: 35%;
    left: 5%;
  }

  .discover-section,
  .connect-section {
    height: 50vh;
  }
}

/* CONTACT */

/* 650px */

@media (max-width: 41em) {
  .contact-header {
    font-size: 2.8rem;
  }

  .card-container {
    gap: 1.8rem;
  }

  .contact-card {
    gap: 1.4rem;
    line-height: 1.4;
    width: 75%;
  }

  .contact-location {
    text-align: center;
  }
}

/* 550px */

@media (max-width: 35em) {
  .hero-header::after {
    top: 30%;
    left: 10%;
    line-height: 1.3;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    row-gap: 3.4rem;
  }

  .faq-header {
    line-height: 1.2;
  }

  .accordion {
    width: 50rem;
  }

  .text {
    line-height: 1.4;
  }
}

/* 450px */

@media (max-width: 29em) {
  .accordion {
    width: 40rem;
  }
}

/* ABOUT US */

/* 800px */
@media (max-width: 50em) {
  .about__content {
    grid-template-columns: 1fr;
  }

  .about__content-text:last-child {
    grid-row: 3/4;
  }

  /* 600px */
  .about__content-img > img {
    max-width: 80%;
  }

  /* 500px */
  @media (max-width: 31.25em) {
    .about__header {
      line-height: 1.2;
    }
    .about__content-text {
      font-size: 1.8rem;
    }
  }
}

/* TESTIMONIAL SECTION */
/* 950px */
@media (max-width: 59.37em) {
  .testimonial::before {
    left: -14%;
    top: -7%;
  }
}

/* 700px */
@media (max-width: 40.62em) {
  .testimonial::before {
    left: -18%;
    top: -6%;
  }

  .slider__btn {
    top: 30%;
  }

  .testimonial__header {
    font-size: 2.2rem;
  }

  .testimonial__text {
    font-size: 1.8rem;
  }
}

/* 500px */
@media (max-width: 31.25em) {
  .testimonial::before {
    left: -24%;
    top: -4%;
  }

  .slider__btn-right {
    right: 8%;
  }
  .slider__btn-left {
    left: 8%;
  }
}

/* 400px */

@media (max-width: 25em) {
  .testimonial::before {
    left: -28%;
  }

  .dots {
    bottom: 10%;
  }
}
