/* rem and em NOT depend on html font-size in media qureies
 Instesd, 1rem = 1em = 16px  */

/* smaller desktops */
@media (max-width: 84em) {
  /* 1344/ 16  */
  .hero {
    max-width: 110rem;
  }

  .heading-primary {
    font-size: 4.4rem;
  }

  .my {
    font-size: 1.8rem;
  }
}

/* below 1200px landscape tablets */
@media (max-width: 75em) {
  html {
    /* 9/16  */
    font-size: 56.25%;
  }
  .my {
    font-size: 1.8rem;
  }

  .header {
    padding: 0 3.2rem;
  }
}

/* 940 tablates*/
@media (max-width: 59em) {
  html {
    /* 8px / 16 */
    font-size: 50%;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-image {
    display: none;
  }

  .logos {
    flex-wrap: wrap;
  }
  .heading-primary {
    font-size: 3.6rem;
  }
  .team {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-title {
    font-size: 1.8rem;
  }

  .feature-text {
    font-size: 1.4rem;
  }

  .hero-img {
    display: none;
  }

  .gallery {
    align-self: center;
  }

  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .section-testimonials {
    grid-template-columns: 1fr;
  }
  .main-nav {
    background-color: rgba(255, 255, 255, 0.97);
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;
    

    /* Hide navigation */
    /* Allows NO transitions at all */
    /* display: none; */

    /* 1) Hide it visually */
    opacity: 0;

    /* 2) Make it unaccessible to mouse and keyboard */
    pointer-events: none;

    /* 3) Hide it from screen readers */
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    /* z-index: 1000; */
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
    z-index: 700;
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }
}

/**************************/
/* BELOW 544px (Phones) */
/**************************/

@media (max-width: 34em) {
  .container {
    grid-template-columns: 1fr;
  }

  .section-testimonials {
    grid-template-columns: 1fr;
  }

  .team {
    grid-template-columns: 1fr;
  }

  .cta {
    grid-template-columns: 1fr;
  }

  .logos {
    flex-direction: column;
    justify-content: space-around;
    gap: 2rem;
  }
}

/*  */
/* -- FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98 */
