/************************
Below 1,296px (Smaller desktop);
***********************/
@media (max-width: 81em) {
  html {
    font-size: 50%;
  }
}

/************************
Below 1,008px (Landscape Tablet);
***********************/

@media (max-width: 63em) {
  .get,
  .about,
  .footer__items-box,
  .faqs-box,
  .cta {
    min-width: 100%;
    max-width: 100%;
  }
  .section {
    padding: 0px 2rem 0px 2rem;
  }
}

/************************
Below 800px (Tablet);
***********************/
@media (max-width: 50em) {
  .about {
    /* TRANSFRING BACKGROUND */
    background-image: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.2) 30%,
      rgba(145, 136, 136, 0.2) 80%,
      rgba(145, 136, 136, 0.4)
    );
    backdrop-filter: blur(var(--background-blur-m));
    box-shadow: var(--shadow-line-hover);
    border-radius: var(--radius-m);
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: center;
    align-items: center;
    .about__background {
      position: relative;
      display: flex;
      flex-direction: column;
      padding: 0;

      /* Resetting the background */
      background-image: none;
      backdrop-filter: initial;
      box-shadow: none;
      .about__content {
        padding-top: 6rem;
        grid-template-columns: 1fr;
        width: 100%;
        justify-items: center;
        align-items: center;

        .about__text-box {
          text-align: center;
          align-items: center;
          padding: 3rem;
          .heading-quaternary {
            font-size: var(--leading-m);
          }
          .about__description {
            font-size: 2.8rem;
          }
        }
      }
    }

    .about__img-box {
      position: relative;
      width: auto;
      height: 50rem;
    }
  }

  /* MOBILE MENU */
  .primary-nav {
    position: fixed;
    top: 4%;
    right: 5%;

    .primary-nav__items {
      position: fixed;
      padding-top: 3rem;
      gap: 4rem;
      padding: 5rem;
      top: 0;
      left: 0;
      width: 35%;
      height: 100vh;
      flex-direction: column;
      border-radius: 0;
      outline: 0;
      opacity: 0;
      pointer-events: none;
      visibility: hidden;
      transform: translateX(-100%);
      transition: all 0.3s ease-out;

      .primary-nav__link {
        font-size: 3rem;
      }
    }
  }

  .nav-open.primary-nav {
    .primary-nav__items {
      visibility: visible;
      opacity: 1;
      pointer-events: all;
      transform: translateX(0);
    }
  }
}

/************************
Below 576 (Smallet Tablet);
***********************/
@media (max-width: 36em) {
  .slider {
    .slider__btn {
      top: 100%;
    }

    .dots {
      display: none;
    }
  }

  .features__img-box {
    width: 4rem;
    height: 4rem;
    flex-wrap: wrap;
    align-content: center;
  }

  .faqs-box {
    & .faqs__question-box {
      &:nth-child(1) {
        flex-direction: column;
        align-items: start;
      }
    }
  }

  .form-overlay {
    .form {
      height: 98vh;
      width: 95%;
    }

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

/************************
Below 448 (Phone);
***********************/
@media (max-width: 28rem) {
  .heading-primary {
    /* font-size: var(--heading-h2); */
    font-size: 6.4rem;
  }

  .section-hero {
    .hero-text-box {
      margin-top: 4rem;
      .hero-description {
        font-size: var(--heading-h3);
      }
      .typing-text__box {
        font-size: var(--heading-h3);
      }
    }
  }

  .get {
    grid-template-columns: 1fr;
    .get__box {
      .get__img-box {
        .get__imb {
          width: 80%;
        }
      }

      .get__text-box {
        .heading-tertiary {
          font-size: var(--heading-h4);
        }
      }
    }
  }

  /* Buttons */
  .btn:link,
  .btn:visited {
    font-size: var(--body-l);
    text-align: center;

    .btn-secondary {
      padding: 0.8rem 2rem;
    }

    .btn-tertiary {
      padding: 0.8rem 2rem;
    }

    .btn--book-a-call {
      padding: 0.8rem 2rem;
    }
  }

  .faqs-box {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: start;
  }

  .footer {
    .footer__items-box {
      flex-direction: column;
      align-items: center;
      gap: 4.8rem;
      text-align: center;

      .footer__social {
        order: 1;
      }
    }
  }

  .slider {
    .slider__btn {
      top: 90%;
    }
    & .slider__slide {
      & .slider__info {
        span {
          font-size: 1.2rem !important;
        }
      }
    }
  }

  .cta {
    background-image: url(../img/cta-background-mobile.jpg);
  }
}

/************************
Below 368 (Smaller Screen Phone);
***********************/
@media (max-width: 23em) {
  html {
    font-size: 40%;
  }
}
