/* 1rem = 1em = 16px */

/***********************************/
/* BELOW 1344px (Smaller desktops) */
/***********************************/

@media (max-width: 84em) {
  .aboutImgs {
    display: flex;
    justify-content: center;
  }
  .aboutUsImgs {
    width: 25%;
  }
  .missionBox {
    width: 100rem;
  }
  .missionDesc {
    font-size: 2rem;
  }
  .boxServices {
    width: 110rem;
  }
}

/************************************/
/* BELOW 1200px (Landscape Tablets) */
/************************************/

@media (max-width: 75em) {
  html {
    /* 9px / 16px  */
    font-size: 56.25%;
  }
  .heroTitle {
    top: 13%;
  }
  .grid {
    column-gap: 4.8rem;
    row-gap: 6.4rem;
  }

  .headerSecondary {
    font-size: 3.6rem;
  }
  .formTitle {
    font-size: 3.6rem;
  }
  .boxAboutUs {
    max-width: 100rem;
  }
  .welcome {
    font-size: 3rem;
  }
  .aboutImgs {
    gap: 9.6rem;
  }
  .missionBox {
    width: 82%;
    padding: 2rem;
  }
  .mission {
    line-height: 1;
    padding-bottom: 1rem;
  }
  .boxServices {
    width: 100rem;
  }
  #servicesText {
    font-size: 80%;
  }
  .listText4 {
    font-size: 3rem;
  }
  .listItem {
    font-size: 1.8rem;
  }
  .additionalServicesImgs {
    gap: 1rem;
  }
  .sectionContact {
    min-width: 110rem;
    padding-bottom: 3.6rem;
  }
  .mainNavList {
    gap: 3.2rem;
  }
  .gridBox {
    align-items: center;
    padding: 1rem;
  }
}
/**************************/
/* BELOW 944px (Tablets) */
/**************************/

@media (max-width: 59em) {
  html {
    /* 8px / 16px = 0.5 = 50% */
    font-size: 50%;
  }
  .sectionAboutUs {
    padding: 5.6rem 0;
    background-size: contain;
  }
  .sectionHero {
    padding-top: 4.8rem;
    padding-bottom: 0rem;
  }
  .heroTitle {
    top: 8%;
  }
  .servicesDesc {
    font-size: 2.4rem;
  }
  .listServices {
    font-size: 1.8rem;
  }
  /* MOBILE NAVIGATION */
  .btnNav {
    display: block;
    z-index: 9999;
  }
  .aboutImgs {
    gap: 4.8rem;
  }
  .missionBox {
    padding: 2rem;
  }
  .boxServices {
    width: 86rem;
  }

  .sectionContact {
    min-width: 80rem;
    padding: 4.8rem 0;
  }
  .contactBox {
    padding: 4.8rem 0;
    width: 80rem;
    gap: 3.6rem;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-evenly;
    flex-wrap: wrap;
  }
  .gridBox {
    width: 40%;
  }
  .contactBox img {
    width: 100%;
  }

  .mainNav {
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    transform: translate(5%, -5%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;

    /* Hide navigation */

    /* Visually */
    opacity: 0;

    /*Unaccessible to mouse and keyboard */
    pointer-events: none;

    /*Hide it from screen readers */
    visibility: hidden;
  }
  .mainNav::before {
    content: "";
    display: block;
    position: absolute;
    margin: 6rem 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    opacity: 0.2;
    background-image: url(/img/Logo/Beo\ Clean\ 011.webp);
    background-size: cover;
    background-repeat: no-repeat;
  }

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

  .nav-open .iconMenu[name="close"] {
    display: block;
  }

  .nav-open .iconMenu[name="open"] {
    display: none;
  }

  .mainNavList {
    flex-direction: column;
    gap: 3.6rem;
  }

  .mainNavListAbout:link,
  .mainNavListServ:link,
  .mainNavListCont:link,
  .mainNavListAbout:visited,
  .mainNavListServ:visited,
  .mainNavListCont:visited {
    font-size: 2.4rem;
  }
  .mainNavListAbout:hover,
  .mainNavListServ:hover,
  .mainNavListCont:hover,
  .mainNavListAbout:active,
  .mainNavListServ:active,
  .mainNavListCont:active {
    font-size: 2.4rem;
  }
  .listItem {
    font-size: 1.5rem;
  }
  .additionalServicesImgs {
    gap: 0.3rem;
  }
  #servicesText {
    font-size: 80%;
  }
}

/*********************************/
/* BELOW 704px (Smaller tablets) */
/*********************************/

@media (max-width: 44em) {
  .sectionServices {
    padding: 4.8rem 0;
  }
  .boxServices {
    width: 70rem;
    margin: auto;
    text-align: center;
  }

  .listServices {
    display: flex;
    flex-direction: column;
    width: 60%;
    margin: auto;
  }
  .listText4 {
    font-size: 2.4rem;
  }
  .listItem {
    font-size: 200%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .additionalServicesText {
    gap: 6rem;
  }
  .additionalServicesBox {
    grid-template-columns: 1fr;
  }
  .additionalServicesImgs {
    gap: 0.6rem;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }
  .additionalServicesImg {
    width: 30%;
  }
  .servicesFooter {
    font-size: 200%;
  }

  #listIcon {
    display: none;
  }
  #servicesText {
    font-size: 120%;
  }
  .additionalServices {
    width: 80%;
  }
  .listImgs {
    width: 100%;
  }
  .cols2,
  .cols3 {
    grid-template-columns: 1fr;
  }

  .sticky .header {
    height: 5rem;
  }
  .iconMenu {
    width: 4rem;
    height: 4rem;
  }
  .navLogo {
    height: 4rem;
  }
  .welcome {
    padding: 3.6rem 0;
  }

  .sectionAboutUs {
    padding: 5.6rem 0;
    background-size: contain;
  }
  .boxAboutUs {
    width: 60rem;
  }
  .aboutImgs {
    padding: 0 2.8rem 2.8rem 2.8rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    height: 30rem;
  }
  .aboutUsImgs {
    width: 18rem;
  }
  .aboutUsDesc {
    font-size: 2rem;
    letter-spacing: 0.1rem;
    padding: 3.6rem 0 4.8rem;
  }
  .missionBox {
    width: 60rem;
    padding: 1.6rem;
  }
  .mission {
    font-size: 2.4rem;
  }
  .missionDesc {
    padding: 0;
  }

  .sectionContact {
    min-width: 50%;
  }
  .contactBox {
    width: 100%;
  }
  .gridBox {
    width: 48%;
  }
  .sectionForm {
    padding: 4.8rem 0;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .formImg {
    display: none;
  }
}

/**************************/
/*  BELOW 544px (Phones)  */
/**************************/

@media (max-width: 34em) {
  .aboutImgs {
    padding: 0 2.8rem 4.8rem 2.8rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
  }
  .additionalServicesImgs img:nth-child(2) {
    display: none;
  }
  .additionalServicesImgs img:nth-child(3) {
    display: none;
  }
  .additionalServicesImgs {
    grid-template-columns: repeat(2, 1fr);
  }
  .aboutUsImgs {
    width: 16rem;
  }
  .listServices {
    width: 100%;
  }
  .list {
    width: 70%;
  }
  .listItem {
    font-weight: 600;
    font-size: 160%;
  }
  .listText4 {
    font-size: 2.4rem;
    padding: 1.8rem;
  }
  .additionalServicesText {
    gap: 3.6rem;
  }
  .sectionAboutUs::before {
    display: none;
  }
  .boxServices {
    width: 100%;
  }
  .servicesDesc {
    font-size: 2rem;
  }
  .listServices {
    font-size: 1.6rem;
  }
  .listImgs {
    width: 100%;
  }
  .headerSecondary {
    font-size: 3rem;
  }
  .formTitle {
    font-size: 3rem;
  }
  .navLogo {
    height: 4rem;
  }
  .iconMenu {
    width: 3rem;
    height: 3rem;
  }
  .welcome {
    font-size: 2rem;
    padding: 3.6rem 2rem;
    font-weight: 800;
  }
  .boxAboutUs {
    width: 100%;
  }
  .aboutUsDesc {
    font-size: 1.6rem;
    letter-spacing: 0.1rem;
    line-height: 2rem;
    padding: 3.6rem 2rem 4.8rem;
  }
  .sectionHero {
    padding-bottom: 0rem;
  }
  .missionBox {
    width: 90%;
  }
  .mission {
    font-size: 2rem;
  }
  .missionDesc {
    font-size: 1.6rem;
  }

  .gridBox {
    font-size: 2rem;
  }
  .contactBox img {
    width: 75%;
  }
  .joinOurTeam {
    font-size: 2.4rem;
  }
  .copyright {
    font-size: 1.2rem;
  }
  .formTextbox {
    padding: 3.6rem 4.8rem 4.8rem 4.8rem;
  }
  .formLabels {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  .formFirstName,
  .formEmail,
  .formMsg,
  .formService,
  .formCity,
  .btnForm {
    grid-column: auto;
  }
  .btnForm {
    margin: auto;
  }
}

/*********************************/
/*  BELOW 432px (Narrow Phones)  */
/*********************************/
@media (max-width: 27em) {
  #mail {
    font-size: 1.6rem;
  }
  .aboutUsImgs {
    width: 12rem;
  }
  .contactBox img {
    width: 60%;
  }
  .form {
    width: 80%;
    margin: auto;
    text-align: center;
  }
  .formTextbox {
    padding: 2.4rem 3.6rem;
  }
  .formTitle {
    text-align: center;
  }
  .formFirstName,
  .formEmail,
  .formMsg,
  .formService,
  .formCity,
  .btnForm {
    width: 100%;
  }
  .btnForm {
    padding: 0.8rem 1.6rem;
  }
}

/* 
- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/
