/*  */
/************************/
/* screen size 1344px (for smaller desktop screen */
/************************/
@media (max-width: 84em) {
  /****************/
  /* NAVIGATION SECTION */
  /****************/
  .main-nav-list {
    gap: 3.2rem;
  }

  /************************/
  /* HERO SECTION */
  /************************/
  .hero {
    max-width: 120rem;
  }

  .heading-primary {
    font-size: 4.4rem;
  }
  /************************/
  /* TESTIMONIAL SECTION */
  /************************/

  /* .testimonial-container {
    grid-template-columns: 1fr;
  } */

  .testimonials {
    padding: 9.6rem 4.8rem;
  }

  /********************************/
  /* TESTIMONIAL GALLERY SECTION */
  /********************************/
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

/************************/
/* screen size 1200px (for tablet landscape screen */
/************************/
@media (max-width: 75em) {
  /* html font size
    9px / 16px * 100 = 56.25% */
  html {
    font-size: 56.25%;
  }

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

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

  .hero {
    gap: 3.2rem;
  }

  .delivered-text {
    font-size: 1.6rem;
    font-weight: 500;
  }

  .grid {
    gap: 3.2rem;
  }

  .delivered-imgs img {
    width: 3.6rem;
    height: 3.6rem;
  }
}

/************************/
/* screen size 960px (for tablet portrait screen */
/************************/
@media (max-width: 60em) {
  /* html font size
    8px / 16px * 100 = 56.25% */
  html {
    font-size: 50%;
  }

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

  .hero-text,
  .hero-img-box {
    text-align: center;
  }

  .hero-img {
    width: 60%;
  }

  .delivered-meal {
    margin-top: 4.8rem;
    justify-content: center;
  }
  .logos {
    height: 2.4rem;
  }

  .section-testimonial {
    grid-template-columns: 1fr;
  }

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

  .lists {
    font-size: 1.6rem;
    font-weight: 400;
  }

  .cta {
    grid-template-columns: 3fr 2fr;
  }

  .cta-form {
    grid-template-columns: 1fr;
  }

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

  /* MOBILE VERSION */

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

  .btn--nav-icon[name="close"] {
    display: none;
  }

  .nav--open .btn--nav-icon[name="menu"] {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    transform: translateX(100%);
    background-color: #fff;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;

    /* Hide visually */
    opacity: 0;

    /* make it unaccessible to mouse */
    pointer-events: none;

    /* 3) Hide it from screen readers */
    visibility: hidden;
    transition: all 0.5s ease-in;
  }

  .main-nav-list {
    flex-direction: column;
    align-items: center;
    gap: 4.8rem;

    /* justify-content: center; */
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3.2rem;
  }

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

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

  .nav--open .btn--nav-icon[name="menu"] {
    display: none;
  }
}

@media (max-width: 47em) {
  .grid--3-cols,
  .grid--4-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .diet {
    grid-column: 1/-1;
    justify-self: center;
  }

  .pricing-plan {
    width: 100%;
  }

  .features {
    margin-bottom: 1.2rem;
    margin-top: 1.2rem;
  }

  .features-container {
    margin-top: 6.4rem;
  }

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

  .contact--col {
    grid-column: span 3;
  }

  .link-col {
    grid-row: 1;
    grid-column: span 2;
    margin-bottom: 4.8rem;
  }

  .cta {
    margin-top: 3.2rem;
    margin-bottom: 3.2rem;
  }

  .section-hero {
    padding-top: 4.8rem;
  }
}

/************************/
/* screen size 576px (for phone screen */
/************************/
@media (max-width: 36em) {
  .btn:link,
  .btn:visited {
    padding: 2.4rem 1.2rem;
    font-weight: 500;
    font-size: 2rem;
    /* margin-bottom: 3.2rem;
    justify-self: center; */
    /* width: 100%; */
  }

  .hero-text-description {
    margin-bottom: 4.8rem;
  }

  .delivered-meal {
    /* flex-direction: column; */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 3.2rem;
  }

  .delivered-text {
    font-size: 1.8rem;
  }

  .hero-img {
    width: 80%;
  }

  .heading-featured-in {
    margin-top: 4.8rem;
    /* padding-top: 0; */
  }

  .logos {
    height: 1.6rem;
    gap: 2.4rem;
    justify-content: center;
  }

  .heading-secondary {
    line-height: 4.4rem;
  }

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

  .step--img-box:nth-child(2) {
    grid-row: 1;
  }

  .step--img-box:nth-child(6) {
    grid-row: 5;
  }

  .step--img-box {
    margin-top: 3.2rem;
  }

  .section-meals {
    padding-top: 4.8rem;
  }

  .recipe-link-container {
    margin-top: 2.4rem;
  }

  .testimonial-container {
    grid-template-columns: 1fr;
    margin-bottom: 1.6rem;
  }

  .section-testimonial {
    gap: 3.2rem;
  }

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

  .plan-details {
    grid-template-columns: 1fr;
  }

  .pricing-plan-info {
    justify-self: center;
  }

  .features-container {
    margin-bottom: 2.4rem;
  }

  .section-pricing {
    margin-bottom: 2.4rem;
  }

  .features {
    margin-bottom: 4.8rem;
  }

  .section-cta {
    margin-bottom: 2.4rem;
    padding-bottom: 2.4rem;
  }

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

  .cta-img-box {
    height: 50rem;
    grid-row: 1;
  }
}

/**************************/
/* Fixing Safari flexbox gap */
/**************************/

.no-flexbox-gap .main-nav-list li:not(:last-child) {
  margin-right: 4.8rem;
}

.no-flexbox-gap .list:not(:last-child) {
  margin-bottom: 1.6rem;
}

.no-flexbox-gap .diet-icon:not(:last-child) {
  margin-right: 1.6rem;
}

.no-flexbox-gap .delivered-meal {
  margin-right: 1.6rem;
}

.no-flexbox-gap .meal-attribute:not(:last-child) {
  margin-bottom: 2rem;
}

.no-flexbox-gap .meal-icon {
  margin-right: 1.6rem;
}

.no-flexbox-gap .footer-row div:not(:last-child) {
  margin-right: 6.4rem;
}

.no-flexbox-gap .social-links li:not(:last-child) {
  margin-right: 2.4rem;
}

.no-flexbox-gap .footer-list li:not(:last-child) {
  margin-bottom: 2.4rem;
}

@media (max-width: 75em) {
  .no-flexbox-gap .main-nav-list li:not(:last-child) {
    margin-right: 3.2rem;
  }
}

@media (max-width: 59em) {
  .no-flexbox-gap .main-nav-list li:not(:last-child) {
    margin-right: 0;
    margin-bottom: 4.8rem;
  }
}

/*
- 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
       */
