/* rem and em do NOT depend on the HTML font-size in 
media queries! Instead 1 rem = 1 em = 16px */

/****************************************/
/* BELOW 1344PX (SMALLER DESKTOP) */
/**************************************/

@media (max-width: 84em) {
  .hero {
    max-width: 120rem;
  }

  .heading-primary {
    font-size: 4.4rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/****************************************/
/* BELOW 1200PX (LANDSCAPE TABLETS) */
/**************************************/

@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }

  .grid {
    column-gap: 4.8rem;
    row-gap: 6.4rem;
  }

  .heading-secondary {
    font-size: 3.6rem;
  }

  .heading-tertiary {
    font-size: 2.4rem;
  }

  .header {
    padding: 0 3.2rem;
  }

  .hero {
    gap: 4.8rem;
  }

  .testimonial-container {
    padding: 9.6rem 3.2rem;
  }
}

/****************************************/
/* BELOW 1012PX LANDSCAPE TABLETS) */
/**************************************/

@media (max-width: 64em) {
  html {
    font-size: 50%;
  }
}

/****************************************/
/* BELOW 944PX (TABLETS) */
/**************************************/

@media (max-width: 59em) {
  html {
    font-size: 44%;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 0 8rem;
    gap: 1.5rem;
    place-items: center;
    text-align: center;
  }

  .hero-text-box,
  .hero-image-box {
    width: 100%;
  }

  .hero-text-box {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .hero-image-box {
    text-align: center;
  }

  .hero-image {
    width: 40%;
  }

  .logo-header img {
    height: 3rem;
  }

  .step-number {
    font-size: 7.4rem;
  }

  .menu-content {
    padding: 2.4rem 3.2rem 3.2rem 3.2rem;
  }

  .cta {
    grid-template-rows: 3fr 2fr;
    width: 110rem;
    height: 68rem;
  }

  .cta-form {
    grid-template-columns: 1fr;
  }

  /*.cta-image-box {
    height: 24rem;
    grid-row: 1;
  } */

  .order {
    grid-template-columns: 3fr 2fr;
    width: 115rem;
    height: 90rem;
  }

  .btn--form {
    margin-top: 1.2rem;
  }

  /*mobile navigation*/
  .btn-mobile-nav {
    display: block;
  }

  .nav-links {
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100);

    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: all 0.5s ease-in;

    /*hide navigation
    display: none;*/

    /*hide it visuality*/
    opacity: 0;

    /*made it unaccessible to mouse and keyboard*/
    pointer-events: none;

    /*hide it from screen readers*/
    visibility: hidden;
  }

  .nav-open .nav-links {
    opacity: 0.8;
    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;
  }
  
  .nav-links{
    flex-direction: column;
    gap: 4.8rem;
  }

  .nav-links.show {
    display: flex;
  }



.menu {
  grid-template-columns: 3fr 1fr;
}

@media (max-width: 52em) {
  html {
    font-size: 40%;
  }

  .cta {
    width: 100%;
  }
}

/****************************************/
/* BELOW 704PX (TABLETS) */
/**************************************/

@media (max-width: 44em) {
  .grid--4-cols {
    grid-template-columns: repeat(3, 2fr);
  }

  .menu-content {
    place-content: center;
    justify-items: center;
  }
}

/****************************************/
/* BELOW 560PX (PHONES) */
/**************************************/

@media (max-width: 35em) {
  .grid--2-cols {
    grid-template-columns: 1fr;
  }

  .grid--4-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-hero {
    padding: 2.4rem 0 6.4rem 0;
  }

  /*.btn,
  .btn:link,
  .btn:visited {
    padding: 4.8rem 2.4rem;
  }*/

  .hero {
    padding: 0 3.2rem;
    gap: none;
  }

  .hero-text-box {
    max-width: 70rem;
  }

  .hero-description {
    font-size: 2.4rem;
    line-height: 1.6;
    margin-bottom: 3.2rem;
  }

  .hero-image {
    width: 80%;
  }

  .step-img-box:nth-child(2) {
    grid-row: 1;
  }

  .step-img-box:nth-child(6) {
    grid-row: 5;
  }

  .step-img-box:nth-child(10) {
    grid-row: 9;
  }

  .step-img-box {
    transform: translateY(1.8rem);
  }

  .cta {
    grid-template-columns: 1fr;
  }

  .tag--pineapple {
    display: flex;
  }
}

/****************************************/
/* BELOW 384PX (SMALL SCREEN PHONES) */
/**************************************/

@media (max-width: 24em) {
  .cta {
    grid-template-columns: 1fr;
    width: 45rem;
    height: 75rem;
  }

  .cta-form {
    grid-template-columns: 1fr;
  }

  .order {
    width: 55rem;
    height: 90rem;
  }
}

/* -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 */

/****************************************/
/* FIX SAFARI FLEXBOX */
/**************************************/

.no-flexbox-gap .main-nav-list li:not(:last-child) {
  margin-right: 4.4rem;
}

.no-flexbox-gap .list-item:not(:last-child) {
  margin-bottom: 1.6rem;
}

.no-flexbox-gap .list-icon.list-item:not(:last-child) {
  margin-right: 1.6rem;
}

.no-flexbox-gap .menu-attributes: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: 6rem;
}

.no-flexbox-gap .social-links li:not(:last-child) {
  margin-right: 2rem;
}

.no-flexbox-gap .footer-nav 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;
  }
}


/* Responsive Styles */
@media (max-width: 1012px) {
  .hero-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text,
  .hero-img {
    max-width: 90%;
  }

  .hero-img img {
    max-width: 300px;
  }
}