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

/**************************/
/* BELOW 1344px (Smaller desktops) */
/**************************/
@media (max-width: 84em) {
  html {
    /* 9px / 16px  */
    font-size: 56.25%;
  }

  .main-nav-list {
    gap: 3.8rem;
  }

  .container {
    max-width: 110rem;
  }

  .step-img {
    width: 65%;
  }

  .photosynthesis-list {
    font-size: 1.6rem;
    font-weight: 500;
    column-gap: 2rem;
    row-gap: 3.6rem;
  }

  .photosynthesis-list span {
    margin-left: 0.8rem;
  }

  .become-desc {
    padding: 0 2rem;
  }
}

/**************************/
/* BELOW 1200px (Landscape Tablets) */
/**************************/
@media (max-width: 75em) {
  html {
    font-size: 50%;
  }

  .hero-header {
    font-size: 6.8rem;
  }

  .step-img {
    width: 70%;
  }

  .soil-card {
    max-width: 90rem;
  }

  .become-cards {
    gap: 10rem;
    margin: 0 2.4rem;
  }

  .sponsor-subheading,
  .become-subheading {
    margin-bottom: 6.4rem;
  }

  .testimonials-subheading {
    margin-bottom: 4.4rem;
  }

  .photosynthesis-list {
    font-size: 1.6rem;
  }

  .testimonials-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 4.4rem;
  }

  .testimonial {
    padding: 3.6rem;
    margin: 3.6rem 3.6rem;
  }

  .testimonial-img {
    width: 13rem;
    height: 13rem;
  }

  .testimonial-text {
    font-size: 2.4rem;
    line-height: 1.4;
  }

  .testimonial-author {
    font-size: 2.4rem;
  }
}

/**************************/
/* BELOW 950px (Tablets) */
/**************************/
@media (max-width: 60em) {
  html {
    font-size: 47%;
  }

  .hero-header {
    font-size: 6.4rem;
  }

  .hero-subheading {
    font-size: 2.2rem;
  }

  .container {
    max-width: 95rem;
  }

  .step-img {
    width: 75%;
  }

  .step-number {
    font-size: 7.6rem;
  }

  .step-heading {
    font-size: 4rem;
    margin-bottom: 2.4rem;
  }

  .step-description {
    font-size: 2.6rem;
  }

  .about-container {
    grid-template-columns: 3fr 2.1fr;
  }

  .about-us-text {
    font-size: 2.9rem;
  }

  .about-subheading,
  .process-subheading,
  .testimonials-subheading,
  .sponsor-subheading,
  .soil.subheading,
  .become-subheading {
    font-size: 4rem;
  }

  .become-desc {
    font-size: 2rem;
  }

  .photosynthesis-list {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 1.6rem;
    font-size: 2rem;
    line-height: 1.4;
  }

  .flibbity-desc {
    font-size: 2rem;
    line-height: 1.6;
  }

  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(5px);
    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.5s ease-in;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

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

/**************************/
/* BELOW 750px (Smaller tablets) */
/**************************/
@media (max-width: 47em) {
  html {
    font-size: 42%;
  }

  p {
    font-size: 2.2rem;
  }

  .container {
    max-width: 85rem;
  }

  .hero-img {
    width: 90%;
  }

  .about-container {
    grid-template-columns: 3fr 2.5fr;
  }

  .join-the-cause {
    margin-bottom: 1.4rem;
  }

  .carbon-neutral {
    font-size: 7.6rem;
  }

  .testimonials-container {
    margin-top: -2.4rem;
    padding: 0rem 0rem;
    gap: 3.6rem;
  }

  .section-about {
    padding-bottom: 7.6rem;
  }

  .section-about,
  .section-process,
  .section-testimonials,
  .section-sponsor,
  .section-become {
    padding: 6.4rem 0;
  }

  .about-subheading,
  .process-subheading,
  .testimonials-subheading,
  .sponsor-subheading,
  .become-subheading {
    font-size: 3.6rem;
    margin-bottom: 6.4rem;
  }

  .soil-subheading {
    font-size: 2.6rem;
  }

  .soil-card {
    grid-template-columns: 1fr;
  }

  .soil-img-box {
    padding: 0.8rem;
  }

  .soil-img {
    width: 50%;
  }
}

/**************************/
/* BELOW 560px (Phones) */
/**************************/
@media (max-width: 35em) {
  .about-container {
    grid-template-columns: 1fr;
  }

  .logo {
    height: 3.4rem;
  }

  .hero-header {
    font-size: 5.4rem;
  }

  .hero-btn {
    text-align: center;
  }

  .hands-img {
    width: 75%;
  }

  .about-subheading,
  .process-subheading,
  .testimonials-subheading,
  .sponsor-subheading,
  .become-subheading {
    margin-bottom: 4.8rem;
  }

  .we-are-plants {
    display: block;
    font-size: 3.6rem;
  }

  .about-subheading {
    line-height: 1.4;
  }

  .carbon-neutral {
    font-size: 5rem;
  }

  .steps {
    grid-template-columns: 1fr;
    row-gap: 6.4rem;
  }

  .step-img {
    width: 60%;
    row-gap: 3.6rem;
  }

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

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

  .step-img-box {
    transform: translateY(4.4rem);
  }

  .step-number,
  .step-heading,
  .step-description {
    text-align: center;
  }

  .step-number {
    margin-bottom: 0rem;
  }

  .soil-desc {
    font-size: 2.6rem;
    line-height: 1.4;
  }

  .soil-text {
    padding: 1.6rem 0;
  }

  .testimonials-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonial-text {
    font-size: 2.6rem;
  }

  .testimonial-author {
    font-size: 2.8rem;
  }

  .become-cards {
    grid-template-columns: 1fr;
    margin: 0 3.6rem;
  }

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

  .become-desc {
    line-height: 1.4;
    font-size: 2.4rem;
  }

  .photosynthesis-list {
    font-size: 2.4rem;
    line-height: 1.5;
  }

  .flibbity-desc {
    font-size: 2.4rem;
  }

  .testimonial {
    padding: 2rem;
  }
}
