/* In media queries 1rem = 1em = 16px */

/* ---Less than 1344px (Smaller Laptop) ------- */

@media (max-width: 84em) {
  .hero {
    max-width: 120rem;
  }

  .primery-heading {
    font-size: 4.4rem;
  }

  .btn-margin {
    margin-right: 1rem;
  }

  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------- */

/* ---Less than 1200px (Landscap Tablet) ------ */
@media (max-width: 75em) {
  html {
    /* 9px */
    font-size: 56.25%;
  }

  .header {
    padding: 0 3.2rem;
  }

  .hero {
    gap: 4.8rem;
  }

  .secondery-heading {
    font-size: 3.2rem;
  }

  .tertiery-heading {
    font-size: 2.8rem;
  }

  .btn:link,
  .btn:visited {
    font-size: 1.8rem;
  }

  .grid {
    gap: 4.8rem;
  }

  .grid:not(:last-child) {
    margin-bottom: 4.8rem;
  }

  .sections-testimonial {
    padding: 0 3.2rem;
  }

  footer {
    padding-top: 9.8rem;
  }

  .section-cta {
    margin-bottom: 3.2rem;
  }
}
/* -------------------------------------------- */

/* ----------Below 944px (For Tablet)---------- */
@media (max-width: 59em) {
  html {
    font-size: 50%;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 4.8rem 8rem;
  }

  .hero-img {
    width: 60%;
  }

  .dilivered {
    margin-top: 3.2rem;
    justify-content: center;
    margin-bottom: 8rem;
  }

  .feature-box img {
    height: 2.4rem;
  }

  .meals-details {
    margin: 3.2rem;
    margin-top: 2.8rem;
  }

  .sections-testimonial {
    grid-template-columns: 1fr;
    gap: 4.8rem;
  }

  .gallery-container {
    grid-template-columns: repeat(6, 1fr);
  }

  .cta {
    grid-template-columns: 3fr 2fr;
  }

  .cta-form {
    grid-template-columns: 1fr;
  }

  /* Mobile Navigations */
  .mobile-nav {
    display: block;
  }

  .close {
    display: none;
  }

  .header {
    position: relative;
  }

  .header-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.418);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease-in-out;
    transform: translateX(100%);
    backdrop-filter: blur(10px);
    /* display: none; */

    /* 1) Hide the content */
    opacity: 0;

    /* 2) Hide the pointer */
    pointer-events: none;

    /* 3) Turn off visibility */
    visibility: hidden;
  }

  .nav-ul {
    display: flex;
    flex-direction: column;
    gap: 4.8rem;
  }

  .nav-list:link {
    font-size: 3.2rem;
  }

  .heder-open .header-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0%);
  }

  .heder-open .close {
    display: block;
  }

  .heder-open .open {
    display: none;
  }
}

/* ------------------------------------- */

/* ----- Less than 704px (Smaler Laptop)-- */
@media (max-width: 44em) {
  .grid-3-cols,
  .grid-4-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    margin-bottom: 4.8rem;
  }

  .meals-list {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .price-box {
    width: 100%;
  }

  .grid-footer {
    grid-template-columns: repeat(6, 1fr);
  }

  .nav {
    grid-row: 1;
    grid-column: span 2;
    margin-bottom: 3.2rem;
  }

  .logo,
  .address {
    grid-row: 2;
    grid-column: span 3;
  }
}
/* ----------------------------------------- */

/* ---- Less than 544px(Mobile) ------------- */
@media (max-width: 34em) {
  html {
    font-size: 43%;
  }
  .grid-2-cols,
  .grid-3-cols,
  .grid-4-cols {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.2rem;
    gap: 3.2rem;
  }

  .hero-img {
    width: 80%;
  }

  .feature-box img {
    height: 1.3rem;
  }

  .container .how-img-box:nth-child(2) {
    grid-row: 1;
  }

  .how-img-box {
    transform: translateY(2.4rem);
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .gallery-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0;
  }

  .cta {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .cta-img-box {
    height: 36rem;
    grid-row: 1;
  }

  .cta-text-box {
    padding: 2.4rem;
  }
}
/* ------------------------------------------ */
