/* spacing
2/4/8/12/16/24/32/48/64/80/96/128*/
/* font-size
10/12/14/16/18/20/24/30/36/44/52/62/74/86/98*/

@media (max-width: 84em) {
  /* size: 1200px  1200px/15px*/
  /* rem===em  */
  /* 84*16=1344  smaller desktop*/
  .hero {
    max-width: 120rem;
  }
  .primary-heading {
    font-size: 4.4rem;
  }
  .testmonial-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*****************/
/* Landscape tablets*
1200px==1200/16=75em/
/*****************/
/* Now if we change the font size of default,
every value we define in html based on our defince 62.5%,
will reduce based on this value*/
@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }
  .header {
    padding: 0 3.2rem;
  }
  .hero {
    gap: 8rem;
  }
  .main-navigation-list {
    gap: 3.2rem;
  }
  .secondary-heading {
    font-size: 3.6rem;
  }
  .subheading {
    font-size: 3rem;
  }
  .teruary-heading {
    font-size: 2.4rem;
  }
  .grid {
    column-gap: 4.8rem;
    row-gap: 8rem;
  }
  .testmonials {
    row-gap: 6.4rem;
    column-gap: 1.2rem;
  }
  .testmonial-gallery {
    padding: 0 1.2rem 0 0;
  }
  .container-pricing {
    padding: 4.8rem 0;
  }
  .step-num {
    font-size: 6.4rem;
  }
  .testmonials {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 59em) {
  html {
    font-size: 50%;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-text-box,
  .hero-images {
    text-align: center;
  }
  .hero-images img {
    width: 60%;
  }
  .hero-text-box {
    padding: 0 8rem;
  }
  .customer {
    justify-content: center;
    margin-top: 3.2rem;
  }
  .hero {
    gap: 9.6rem;
  }
  .meal-content {
    padding: 3.2rem 0.4rem 3.2rem 1.2rem;
  }
  .grid {
    column-gap: 2.4rem;
  }
  .starter,
  .complete {
    padding: 3.2rem 1.6rem;
  }
  /* we can divide grids to get % value for width */
  /* 1fr + 2fr=total 3column mean to syntax: 
    first colum is 1/3 of total coulumn=33.33% and 2fr/3==66.66%;
    so to get 60% and 40% we make ::-webkit-input-placeholder
    grid like 5 colums so 
    grid-template-columns: 3/5 and 2/5; */
  .cta {
    grid-template-columns: 3fr 2fr;
  }
  .cta-form {
    grid-template-columns: 1fr;
  }
  .cta-form button {
    margin-top: 4.8rem;
  }
  .cta-text-box {
    color: #212529;
    padding: 6.2rem 2.4rem;
  }
  .grid--footer {
    column-gap: 2.4rem !important;
  }
  .main-navigation {
    background-color: #eee;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    /* hiding element without using disply:none */
    opacity: 0;
    /* when we use opactity to 0, but keyborad or mouse can click these elements, so to prevent these events we use */
    pointer-events: none;
    /* to avoid screen reader visibilty */
    visibility: hidden;
  }
  .main-navigation-list {
    align-items: center;
    flex-direction: column;
    gap: 4.6rem;
  }
  /* to make visible all item we set to hide */
  /* when there will be class .open-hide then this style will be applyed */
  .open-nav .main-navigation {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .main-navigation-link:link,
  .main-navigation-link:visited {
    font-size: 3.6rem;
  }
  .main-navigation-link:last-child:link,
  .main-navigation-link:last-child:visited {
    font-size: 3.6rem;
  }

  .open-nav .navigation-btn {
    display: block;
  }
  .open-nav .navigation-btn .fa-close {
    display: block;
  }
  .open-nav .navigation-btn .fa-bars {
    display: none;
  }
  .navigation-btn .fa-bars {
    display: block;
  }
}
/*****************/
/* mobile or  tablets*
950px==950/16=59em/
/*****************/
@media (max-width: 44em) {
  .testmonial {
    grid-template-columns: 1fr;
  }
  .testmonials {
    grid-template-columns: repeat(2, 1fr);
    gap: 4.8rem;
  }
  .testmonial-gallery {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.8rem;
    padding: 1.2rem;
  }
  .grid--three--col {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--four--col {
    grid-template-columns: repeat(2, 1fr);
  }
  .list.of.meal {
    grid-column: 1/-1;
    justify-self: center;
  }
  .secondary-heading {
    margin-bottom: 4.8rem;
  }
  .hero-description {
    padding-top: 2.4rem;
  }
  .teruary-heading {
    margin-top: 1rem;
  }
  .grid:not(:last-child) {
    margin-bottom: 2.4rem;
  }
  .pricing-plan {
    width: 100%;
  }
  .grid--footer {
    grid-template-columns: repeat(6, 1fr);
  }
  .logo-col,
  .adress {
    grid-column: span 3;
  }
  .nav-col {
    grid-row: 1;
    grid-column: span 2;
  }
}
/*****************/
/* Landscape tablets*
548px==548/16=34.25em/
/*****************/
@media (max-width: 34.25em) {
  .grid--two--col,
  .grid--three--col,
  .grid--four--col {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 0 0.8rem;
  }
  .hero-text-box {
    padding: 0 3.2rem;
  }
  .meals {
    padding: 0;
  }
  .customer {
    gap: 0.8rem;
    padding-top: 1.6rem;
  }
  .logos {
    gap: 1.6rem;
  }
  .secondary-heading {
    font-size: 2.4rem;
    letter-spacing: 1px;
    line-height: 1.2;
  }
  .subheading {
    font-size: 2rem;
  }
  .teruary-heading {
    font-size: 1.8rem;
  }
  .hero-images img {
    width: 100%;
  }
  .image-container:nth-child(2) {
    grid-row: 1;
  }
  .image-container:nth-child(6) {
    grid-row: 5;
  }
  .image-container {
    transform: translateY(3.2rem);
  }
  .testmonials {
    grid-template-columns: 1fr;
  }
  .testmonials,
  .testmonial-gallery {
    padding: 0 1.6rem;
  }
  .testmonial-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .container-pricing .secondary-heading {
    padding-bottom: 1.6rem;
    margin-bottom: 1.6rem;
  }
  .cta {
    grid-template-columns: 1fr;
  }
  .cta-image {
    height: 36rem;
    grid-row: 1;
  }
  .cta-text-box {
    padding: 2.4rem 1.6rem;
    margin-top: 2.4rem;
  }
  .cta-text-box .secondary-heading {
    margin-bottom: 1.6rem;
  }
  .grid--footer {
    padding: 1.6rem;
    column-gap: 0.8rem !important;
  }
  .hero {
    padding-top: 0;
  }
  .pricing-plan {
    width: 90%;
    justify-self: center;
  }
}
/*****************/
/* Landscape tablets*
950px==950/16=59em/
/*****************/
/* spacing
2/4/8/12/16/24/32/48/64/80/96/128*/
/* font-size
10/12/14/16/18/20/24/30/36/44/52/62/74/86/98*/
