/* rem and em do not depend on html font-size in media queries instead, 1em =1rem = 16px */

/* =================================== */
/* Below 1344px (small desktops) */
/* =================================== */

@media (max-width: 84em) {
  .hero {
    max-width: 130rem;
  }
}

/* =================================== */
/* Below 1200px (small desktops) */
/* =================================== */

@media (max-width: 75em) {
  html {
    /* changing the font to 9px instead of 10px. 9/16px =  */
    font-size: 56.25%;
  }

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

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

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

  .hero {
    gap: 4.8rem;
  }

  .main-nav-list {
    gap: 3.2rem;
  }
  .section-pricing {
    height: 175vh;
  }
}

/* =================================== */
/* Below 896px (small desktops) */
/* =================================== */

@media (max-width: 56em) {
  html {
    /* changing the font to 8px instead of 9px. 8/16px =  */
    font-size: 50%;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 0 8rem;
    gap: 6.4rem;
  }

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

  .hero-img {
    width: 60%;
  }

  .delivered-meals {
    justify-content: center;
  }

  .meal-content {
    padding: 2.4rem 2.4.2rem 3.2rem 2.4rem;
  }

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

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

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

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

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

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

  .main-nav.index--page {
    background-color: rgba(255, 255, 255, 0.97);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateX(100%);
  }

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

  .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;
  }

  main-nav-link.nav-cta,
  .main-nav-link.nav-cta {
    font-size: 3rem;
  }

  .cta-form-chkbx-options label:first-child {
    margin-right: 16rem;
  }

  .cta-form,
  .campaign-cta-form {
    grid-template-columns: 1fr;
  }
  .form--ele3 {
    grid-row: 1;
  }
  .btn--form-franch {
    grid-row: 4;
    grid-column: 1;
  }

  #campaign-cta-form > :nth-child(4) {
    grid-row: 4;
    grid-column: 1;
  }
  #campaign-cta-form > :nth-child(5) {
    grid-row: 5;
    grid-column: 1;
  }

  .loading {
    width: 3rem;
    margin-right: 2rem;
  }
}

.menusection-number {
  font-size: 7.4rem;
}

/* =================================== */
/* Below 752px (small desktops) */
/* =================================== */

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

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

  .princing-plan {
    width: 100%;
  }

  .customer-cta {
    align-items: flex-start;
  }

  .cust-cta {
    margin-top: 4.8rem;
  }

  .cta-close-div {
    top: 1.5%;
    right: 0%;
  }

  .cta-form-chkbx-options label:first-child {
    margin-right: 4rem;
  }

  .cta-close-div--franch {
    right: 15px;
  }
}
/* =================================== */
/* Below 640px (small desktops) */
/* =================================== */
@media (max-width: 40em) {
  .grid {
    row-gap: 4.8rem;
  }

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

  .hero {
    padding: 0 3.2rem;
  }

  .section-hero {
    padding: 2.4rem 0 6.4rem 0;
  }

  .btn,
  .btn:link,
  .btn:visited {
    padding: 2.4rem 1.6rem;
  }

  .hero-img {
    width: 80%;
  }

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

  .cta-img-box,
  .campaign-cta-img-box {
    height: 32rem;
    grid-row: 1;
    background-size: 100%;
    background-position-y: 32%;
  }

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

  .cust-cta-img-box {
    height: 32rem;
    grid-row: 1;
    background-size: 100%;
    background-position-y: 32%;
  }

  .cta-close-div {
    top: 1.5%;
    right: -1%;
  }

  .section-cta .franch-open {
    height: 250vh;
  }

  .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);
  }
  .sectionbox4 {
    transform: translateY(3.6rem);
  }

  .menu-section-box {
    justify-self: center;
  }
}
