/* 1 */
/* 1344px and below smaller desktop */
@media (max-width: 84em) {
  .image-data-image {
    width: 4rem;
  }
  .circle-outer {
    height: 30rem;
    width: 30rem;
  }
  .circle-inner {
    height: 20rem;
    width: 20rem;
  }
  .how-it-works-screen {
    height: 35rem;
  }
  .heading-secondary {
    font-size: 4.2rem;
  }
}

/* 2 */
/* 1200px and below: landscape tablet*/
@media (max-width: 75em) {
  html {
    /* 1rem = 8px */
    font-size: 50%;
  }
  .heading-primary {
    font-size: 5rem;
  }
  .grid {
    gap: 1rem;
  }
  .grid--testimonial {
    display: grid;
    column-gap: 3rem;
    align-items: flex-start;
  }
  .pricing-feature {
    margin: 0 1rem;
  }
  .cta-section-left {
    padding: 4rem;
  }
  .container-hero .hero-main,
  .recipes .cards,
  .footer .container {
    column-gap: 4rem;
  }
}

/* 3 */
/* 936px and below: big tablet*/
@media (max-width: 58.5em) {
  html {
    /* 1rem = 10px */
    font-size: 62.5%;
  }
  .heading-secondary {
    font-size: 4rem;
    line-height: 1.1;
  }
  .container {
    padding: 3rem 6rem;
  }
  .grid {
    gap: 4rem;
  }
  .btn-mobile-nav {
    display: block;
  }
  .header-nav {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;

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

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transform: translateX(100%);
  }
  .nav-open .header-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
  .nav-open .icon-mobile-nav[name='close-outline'] {
    display: block;
  }
  .nav-open .icon-mobile-nav[name='menu-outline'] {
    display: none;
  }
  .nav-open .header-nav-link:link,
  .header-nav-link:visited {
    font-size: 3rem;
  }
  .header-nav-list {
    flex-direction: column;
    gap: 4rem;
  }

  .hero-text {
    text-align: center;
  }
  .hero-img {
    width: 80%;
    justify-self: center;
  }
  .image-data {
    justify-content: center;
  }
  .learn-more,
  .image-data,
  .heading-secondary {
    margin-bottom: 4rem;
  }
  .featured-in {
    flex-wrap: wrap;
    row-gap: 2rem;
  }
  .heading-testimonial {
    grid-column: 1;
  }
  .featured-in-logo {
    width: 15rem;
    margin-right: 1rem;
  }
  .steps {
    gap: 1rem;
  }
  .step-reverse {
    display: flex;
    flex-direction: column-reverse;
  }
  .number {
    font-size: 6rem;
  }

  .card-2,
  .card-3,
  .starter,
  .complete {
    justify-self: center;
  }
  .gallery {
    row-gap: 1rem;
    column-gap: 1rem;
  }

  .starter {
    margin-right: 0;
  }
  .complete {
    margin-left: 0;
  }
  .container-hero .hero-main,
  .steps,
  .cards,
  .grid--testimonial,
  .pricing .container {
    grid-template-columns: 1fr;
  }
  .heading-testimonial {
    grid-column: 1/3;
  }
  .gallery {
    padding: 0 5rem;
  }
  .cta-section {
    flex-direction: column;
    margin: 0 5rem;
  }
  .prices {
    padding: 0 4rem;
  }
  .pricing-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5rem;
    margin-bottom: 3rem;
  }
  .pricing-desc {
    text-align: center;
  }
  .cta-section {
    flex-direction: column-reverse;
  }
  .cta-section-right {
    flex-basis: 35rem;
  }
  .footer .container {
    padding: 6rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  }
  .footer .nav-link {
    grid-column: span 2;
  }
  .footer .logo {
    grid-row: 2;
    grid-column: span 3;
  }
  .footer .address {
    grid-row: 2;
    grid-column: 4/-1;
  }
}

/* 4 */
/* 600px and below: small tablet */
@media (max-width: 37.5em) {
  html {
    /* 1rem = 9px */
    font-size: 56.25%;
  }
  .heading-primary {
    font-size: 4.2rem;
  }
  .container {
    padding: 3rem 3rem;
  }
  .image-data {
    flex-direction: column;
    gap: 0.5rem;
  }
  .grid-2-columns.form {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
}

/* 5 */
/* 496px and below: phone */
@media (max-width: 31em) {
  .container-hero {
    padding: 0 3rem;
  }
  .btn-white {
    margin-top: 2rem;
    margin-left: 0;
  }
  .hero-img {
    width: 100%;
    margin-left: 0;
  }
  .number {
    margin-bottom: 2rem;
  }
  .testimonials .container {
    margin-bottom: 4rem;
  }
  .grid--testimonial {
    gap: 2rem;
  }
  .heading-testimonial {
    grid-column: 1;
  }
  .heading-testimonial .heading-secondary,
  .pricing .heading-secondary {
    margin-bottom: 0;
  }
  .testimonial-box {
    grid-template-columns: 1fr;
  }
  .gallery,
  .pricing-feature {
    padding: 0;
  }
  a.btn.btn--full.pricing {
    margin: 3rem 0 0;
  }
  .cta-section {
    margin: 0;
  }
  .cta-section-left,
  .footer .container {
    padding: 2rem;
  }
}
