/**********************/
/* BELOW 1344px */
/**********************/

@media (max-width: 84em) {
  .hero__container {
    max-width: 120rem;
  }

  .photo__gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
    padding: 1.6rem;
  }
}

/* Below 1200px (Landscape tablets)*/

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

  .heading--secondary {
    font-size: 3.6rem;
  }

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

  .grid {
    column-gap: 4.8rem;
    row-gap: 6.4rem;
  }

  .header {
    padding: 0 3.2rem;
  }

  .hero__container {
    gap: 4.8rem;
  }

  .header__nav__list {
    gap: 1.6rem;
  }

  .testimonials__container {
    padding: 9.6rem 4.8rem;
  }

  .features {
    margin-bottom: 0rem;
  }
}

/* Below 962px => For Tablets*/

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

  /* Hamburger Menu */

  .btn-mobile-nav {
    display: block;
  }

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

  .header__nav {
    background: rgba(255, 255, 255, 0.95);
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 0%;
    left: 0%;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-100%);
    transition: all 0.3s ease-in-out;
  }

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

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

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

  .header__nav__list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .header__nav__link:link,
  .header__nav__link:visited {
    font-size: 5.2rem;
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 4.8rem 9.6rem;
    row-gap: 6.4rem;
  }

  .hero__image {
    width: 80%;
  }

  .hero__deliveries {
    margin-top: 3.6rem;
    justify-content: center;
  }

  .featuredin__logo {
    height: 2.4rem;
  }

  .step__stepnumber {
    font-size: 7.4rem;
  }

  .step__description {
    font-size: 1.8rem;
  }

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

  .photo__gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing__plan {
    padding: 3.6rem 2.4rem;
  }

  .pricing__plan__detail {
    font-size: 1.5rem;
  }

  .cta {
    grid-template-columns: 5fr 3.5fr;
  }

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

  .btn--form {
    margin-top: 2.4rem;
  }
}

/* Below 704px => For smaller tablets*/

@media (max-width: 45em) {
  .hero__image {
    width: 80%;
  }

  .featuredin__logo {
    height: 2rem;
  }

  .grid--3--cols,
  .grid--4--cols {
    grid-template-columns: 1fr 1fr;
  }

  .meal__diets {
    text-align: center;
    grid-column: 1/ -1;
    justify-self: center;
  }

  .heading--secondary {
    margin-bottom: 4.8rem;
  }

  .pricing__plan {
    width: 100%;
  }

  .grid--footer {
    grid-template-columns: repeat(6, 1fr);
  }

  .footer__nav__col {
    grid-row: 1;
    grid-column: span 2;
    margin-bottom: 3.2rem;
  }

  .footer__logo__col,
  .footer__address__col {
    grid-row: 2;
  }

  .footer__logo__col {
    grid-column: span 3;
  }

  .footer__address__col {
    grid-column: span 3;
    text-align: center;
  }
}

/* Below 524px => For smaller phones*/

@media (max-width: 35em) {
  .grid {
    row-gap: 4.8rem;
  }

  .grid--2--cols,
  .grid--3--cols,
  .grid--4--cols {
    grid-template-columns: 1fr;
  }
  .hero__container {
    padding: 4.8rem 2.4rem;
  }

  .hero__image {
    width: 100%;
  }

  .hero--btn--cta {
    margin-bottom: 2.4rem;
  }
  .section__featuredin {
    margin-bottom: 4.8rem;
  }

  .hero__deliveries {
    width: 100%;
  }

  .featuredin__logo {
    height: 1.4rem;
  }

  .steps :nth-child(2) .step__imgbox {
    grid-row: 2;
  }

  .meal {
    width: 60%;
    justify-self: center;
  }

  .photo__gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing__plan {
    width: 80%;
    justify-self: center;
  }

  .cta {
    grid-template-rows: 1fr 1fr;
  }

  .cta__imgbox {
    grid-row: 1;
    grid-column: span 2;
  }
  .cta__textbox {
    grid-row: 2;
    grid-column: span 2;
  }
}

/* *** Font-Size *** (https://type-scale.com/ => Major Third)

8 / 10 / 12 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98;

*** Spacing-System ***
 
2  / 4  / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128 */
