/* 1rem = 1em = 16px */

/******************************/
/* BELOW 1360 DESKTOP MODE*/
/********************************/
@media (max-width: 85em) {
  .hero {
    max-width: 120rem;
  }

  .heading-primary {
    font-size: 4.4rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ****************************** */
/* BELLOW 1200PX  LANDSCAPE MODE*/
/* ********************************* */

@media (max-width: 75em) {
  /* 9/16px = 56.5% */
  html {
    font-size: 56.5%;
  }

  .heading-secondary {
    font-size: 3.6rem;
  }

  .heading-tertiary {
    font-size: 2.4rem;
  }

  .grid {
    display: grid;
    row-gap: 4.8rem;
    column-gap: 4rem;
  }

  .nav-heading {
    padding: 0 3.2rem;
  }

  .section-meal {
    padding-top: 5rem;
  }

  .testimonials-container {
    padding: 9.6rem 3.2rem;
  }
  .hero {
    gap: 4.6rem;
  }
}

/********************************/
/* BELOW 944px  TABLET*/
/********************************/

@media (max-width: 59em) {
  html {
    font-size: 50%;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 6.4rem;
  }

  .hero-img {
    width: 60%;
  }
  .hero-img-box,
  .hero-text-box {
    text-align: center;
  }

  .hero {
    padding: 0 8rem;
  }

  .delivered-meals {
    margin-top: 4rem;
  }

  .logos img {
    height: 2.7rem;
  }

  .step-number {
    font-size: 7.4rem;
  }

  .meal-content {
    padding: 2.4rem 3.2rem 3.2rem 3.2rem;
  }

  .section-testimonials {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(6, 1fr);
  }

  .sign-up {
    grid-template-columns: 3fr 2fr;
  }

  .cta-form {
    grid-template-columns: 1fr;
  }

  .btn--form {
    margin-top: 1.2rem;
  }

  /* MOBILE NAVIGATION */

  .btn-mobile-nav {
    display: block;
    z-index: 2;
  }

  .main-nav {
    position: absolute;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(10px);
    top: 0;
    right: 0;
    background-color: rgba(228, 226, 226, 0.9);
    width: 100%;
    height: 100vh;
    transform: translateX(100%);

    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.7s ease-in;

    /* hide navigation */
    /* does not allow for animation */
    /* display: none; */
    opacity: 0;

    /* make it unaccessible to mouse */
    pointer-events: none;

    /* hide from screen readers */
    visibility: hidden;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }

  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-open .btn-mobile-nav [name="close-outline"] {
    display: block;
  }
  .nav-open .btn-mobile-nav [name="menu-outline"] {
    display: none;
  }
}

/* SMALLER TABLET */
@media (max-width: 44rem) {
  .grid--col-3,
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .Diet {
    grid-column: 1/-1;
    justify-self: center;
  }

  .price-card-box-left {
    justify-self: center;
  }
  .price-card-box-right {
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 9rem;
  }
  .nav-col {
    grid-row: 1;
    grid-column: span 2;
  }
  .address-col,
  .footer-socials {
    grid-column: span 3;
  }
  .logos img {
    height: 2rem;
  }
  .address-col {
    justify-self: end;
  }
}

/* BELLOW 500px PHONES */

@media (max-width: 34em) {
  .price-card-box {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing {
    margin-top: 6rem;
  }

  .grid--col-3,
  .grid--col-2 {
    grid-template-columns: 1fr;
    padding: 0 4rem;
  }

  .section-hero {
    background-color: #fdf2e9;
    padding: 2.4rem 0 4.8rem 0;
  }
  .hero {
    padding: 0 3.2rem;
  }
  .logos img {
    height: 1.3rem;
  }

  .step-img-box:nth-child(2) {
    grid-row: 1;
  }

  .step-img-box:nth-child(6) {
    grid-row: 5;
  }
  .step-img-box {
    transform: translateY(2.4rem);
  }
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .testimonials,
  .features {
    grid-template-columns: 1fr;
  }

  .sign-up {
    grid-template-columns: 1fr;
  }
  .signup-img {
    grid-row: 1;
    height: 32rem;
  }
  .buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
  }
  .btn-- .sign-text-box {
    padding: 3.4rem 3.2rem;
  }
  .btn:link,
  .btn:visited {
    font-size: 1.7rem;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 9px;
    display: flex;
    font-weight: 600;
    transition: 0.3s;
    text-align: center;
  }
}
