/************************************/
/* BELOW 1344 PX - smaller desktops  */
/************************************/

@media (max-width: 84em /* 1344 px */) {
  .hero {
    max-width: 125rem;
    padding: 0 3.2rem;
  }
}

/************************************/
/* BELOW 1200 & 1104 PX - landscape tablets  */
/************************************/

@media (max-width: 75em /* 1200 px */) {
  .review-form {
    max-width: 90%;
  }

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

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

  .waw-step {
    font-size: 6.2rem;
  }

  .waw-heading {
    font-size: 3rem;
    margin-bottom: 2.4rem;
  }
}

@media (max-width: 69em /* 1104 px */) {
  html {
    font-size: 56.25%; /* 9px -> 9:16 = 56.25% */
  }

  .testimonials {
    width: 90%;
    margin: 0 auto;
  }

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

  /* MOBILE NAVIGATION */

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

  .navbar {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.75s ease-out;

    /* HIDE NAV */
    /* display: none; */

    /* 1) Hide it visually */
    opacity: 0;

    /* 2) Make it unaccessible to mouse and keyboard */
    pointer-events: none;

    /* Hide it from screen readers */
    visibility: hidden;
  }

  .nav-open .navbar {
    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;
  }

  .nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

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

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

  .waw-text {
    font-size: 1.6rem;
    line-height: 1.7;
  }
}

/************************************/
/* BELOW 960 & 800 PX - portrait tablets  */
/************************************/

@media (max-width: 60em /* 960 px*/) {
  .hero {
    gap: 6.4rem;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
  }

  .hero-text-box {
    width: 80%;
    margin: 0 auto;
    text-align: center;
  }

  .hero-img-box {
    justify-self: center;
    width: 60%;
  }

  .grid {
    gap: 6.4rem 4rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
  }
}

@media (max-width: 50em /* 800px */) {
  html {
    font-size: 50%; /* 8px -> 8:16 = 50% */
  }

  .waw-step {
    font-size: 5.2rem;
  }

  .waw-heading {
    margin-bottom: 1.6rem;
  }

  .gallery-sweets {
    grid-template-columns: repeat(2, 1fr);
    gap: 4.8rem 4rem;
    width: 90%;
  }

  .form-parts {
    grid-template-columns: repeat(2, 1fr);
    /* grid-template-rows: repeat(3, 1fr); */
  }

  .email {
    grid-column: 1/-1;
  }

  .review-input {
    grid-column: 1/-1;
    grid-row: 3/4;
  }

  .btn--form {
    grid-column: 1/-1;
  }

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

  .waw-img-box {
    width: 70%;
    margin: 0 auto;
  }

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

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

  .waw-text-box {
    margin: auto 6.4rem 3.2rem;
  }

  .section-waw {
    padding: 6.4rem 0;
  }
}

/************************************/
/* BELOW 704 PX - smaller tablets  */
/************************************/

@media (max-width: 44em /* 704px  */) {
  .grid {
    gap: 4.8rem 4rem;
  }
}

/************************************/
/* BELOW 544 PX - phones tablets  */
/************************************/

@media (max-width: 34em /* 544 px */) {
  .hero-text-box {
    width: 100%;
  }

  .hero-img-box {
    width: 80%;
  }

  .main-title {
    font-size: 5.2rem;
    margin-bottom: 3.2rem;
  }

  .primary-heading {
    font-size: 4rem;
  }

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

  .waw-step {
    font-size: 5.2rem;
  }

  .waw-heading {
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
  }

  .grid {
    gap: 4rem 3.2rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    width: 80%;
  }

  .btn {
    padding: 1.6rem !important;
  }

  .gallery-salties {
    grid-template-columns: repeat(2, 1fr);
    gap: 4.8rem 4rem;
    width: 90%;
  }

  .waw-img-box {
    width: 80%;
  }

  .waw-text-box {
    margin: auto 3.2rem 4rem;
  }

  .footer-ul {
    flex-direction: column;
    text-align: center;
    gap: 2.4rem;
  }

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

@media (max-width: 25em /* 400 px */) {
  .main-title {
    font-size: 4.4rem;
    margin-bottom: 3.2rem;
  }

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

  .btns {
    display: flex;
    justify-content: center;
    width: 100%;
  }

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

  .email {
    display: none;
    grid-row: 3/4;
  }

  .review-input {
    grid-row: 4;
  }

  .btn,
  .btn:link,
  .btn:visited {
    font-size: 1.6rem;
  }
}
