/* ***********  REUSABLE COMPONENTS *********** */

/***************************/
/* BELOW 1344px (Smaller Laptops) */
/***************************/

@media (max-width: 84em) {
  .heading-primary {
    font-size: 4.4rem;
  }

  .content-container {
    max-width: 120rem;
    padding: 0 3.2rem;
  }

  .section-who-grid .content p {
    font-size: 2rem;
  }

  .section-who-grid .content p span {
    font-size: 2.4rem;
  }
}

/***************************/
/* BELOW 1200px (Landscape Tablets) */
/***************************/

@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }

  /* SECTION DOWN'S SYNDROME WIDTH (modified) */
  .section-down-pics .content-container {
    width: 80%;
  }
  .grid {
    column-gap: 4.8rem;
    row-gap: 4.8rem;
  }

  .grid-pattern--1 {
    column-gap: 6.4rem;
  }

  .grid-pattern--2 {
    column-gap: 8rem;
  }

  .features-container {
    column-gap: 4.8rem;
  }

  .section-who-grid .content p {
    font-size: 2rem;
  }

  /* SECTION Experienced modified */
  .experienced-container {
    width: 60%;
  }
}

/***************************/
/* BELOW 960px (Tablets) */
/***************************/

@media (max-width: 60em) {
  html {
    font-size: 50%;
  }

  .content-container {
    padding: 0;
  }

  /* MOBILE NAVIGATION */

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

  .main-nav {
    background-color: rgba(255, 255, 255, 0.97);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);

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

    /* Hide Navigation */
    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;
    font-size: 4rem;
  }

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

  .main-nav-link.nav-cta:link,
  .main-nav-link.nav-cta:visited {
    font-size: 2.4rem;
  }

  /* SECTION HERO (Gallery modified) */
  .gallery {
    width: 85%;
    gap: 2.4rem;
  }

  /* SECTION Products */
  .product-cards-container {
    width: 80%;
  }
  .product-details ol {
    /* height: 50rem; */
  }

  /* SECTION Experienced modified */
  .experienced-container {
    width: 70%;
  }

  .content-container {
    max-width: 90rem;
  }

  /* SECTION DOWN'S SYNDROME WIDTH (modified) */
  .section-down-pics .content-container {
    width: 90%;
  }
  .section-down-pics .content-container::before {
    left: 5%;
  }
  .section-down-pics .content-container::after {
    right: 5%;
  }

  /* SECTION Distribution */
  .distribution-container {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer .grid {
    padding: 3.2rem 0;
    row-gap: 3rem;
  }

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

  .footer .footer-nav-list {
    justify-self: center;
  }

  .footer .copyright {
    grid-row: 2;
  }

  .footer-nav-link:link,
  .footer-nav-link:visited {
    padding: 0.4rem 0.8rem;
  }

  .footer .content-container .copyright {
    justify-self: center;
  }
}

/***************************/
/* BELOW 768px (Smaller Tablets)*/
/***************************/

@media (max-width: 48em) {
  html {
    font-size: 40.625%;
  }

  .content-container {
    padding: 0 3.2rem;
  }

  .section-who-grid .content p {
    font-size: 1.8rem;
  }

  /* SECTION HERO - (Gallery modified) */
  .gallery {
    width: 90%;
  }

  /* SECTION Products */
  .product-cards-container {
    width: 100%;
    gap: 4.8rem;
  }

  /* SECTION DOWN'S SYNDROME WIDTH (modified) */
  .section-down-pics .content-container {
    width: 100%;
  }

  /* SECTION Experienced modified */
  .experienced-container {
    width: 80%;
  }

  .footer-nav-link:link,
  .footer-nav-link:visited {
    padding: 0.4rem 0.8rem;
  }

  .footer .content-container .copyright {
    justify-self: center;
  }
}

/***************************/
/* BELOW 640px */
/***************************/
@media (max-width: 40em) {
  /* SECTION Products */
  .product-cards-container {
    grid-template-columns: 1fr;
    width: 60%;
    align-items: center;
    justify-content: center;
  }

  .product-card .product-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .product-details ol {
    height: auto;
  }

  /* SECTION DOWN PICS modified */
  .section-down-pics p {
    width: 100%;
  }

  .section-down-pics .content-container::before {
    padding-bottom: 27%;
    left: 30%;
    transform: translate(-70%, -70%);
    opacity: 0.1;
  }

  .section-down-pics .content-container::after {
    /* top: 25%; */
    width: 29%;
    padding-bottom: 29%;
    right: 30%;
    transform: translate(70%, -65%);
    opacity: 0.1;
  }

  .down-pics-container {
    width: 100%;
    column-gap: 2.4rem;
  }
}

/***************************/
/* BELOW 528px (Mobiles)*/
/***************************/

@media (max-width: 33em) {
  /* General Customization */
  .margin-on-small-screens {
    margin-bottom: 7.4rem;
  }

  .section-how .grid {
    row-gap: 2.4rem;
  }

  .section-wt-is-piece h2,
  .section-features h2,
  .section-who h2,
  .section-experienced h2,
  .section-featured-in h2 {
    font-size: 3.2rem;
    text-align: center;
  }

  .section-features .feature h3 {
    font-size: 2.6rem;
  }

  .section-features .feature p,
  .section-who-grid .content p {
    font-size: 2rem;
    padding-top: 1.6rem;
  }

  .section-who-grid .content p span {
    font-size: 2.4rem;
  }

  .section-who-grid .content--right {
    padding-top: 0;
  }

  .break-line::before {
    display: none;
  }
  /************/

  .section-wt-is-piece p {
    font-size: 2rem;
  }

  .section-who-grid .content p {
    font-size: 1.8rem;
  }

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

  .heading-primary {
    font-size: 3rem;
    width: 80%;
    margin: 0 auto;
    margin-bottom: 6.4rem;
  }

  .slider__btn {
    height: 4rem;
    width: 4rem;
  }

  /* SECTION What is piece modified */
  .section-wt-is-piece .content-container .grid-pattern--1 {
    grid-template-columns: 1fr;
    row-gap: 4.8rem;
  }

  .section-wt-is-piece .content-container .grid-pattern--1 .left {
    grid-row: 2;
  }

  .section-wt-is-piece .content-container .grid-pattern--1 .left img {
    max-width: 50%;

    transform: scale(0.95);
  }

  .section-wt-is-piece .grid-pattern--1 .left::before {
    width: 70%;
    padding-bottom: 76%;
  }

  .section-wt-is-piece .grid-pattern--1 .left::after {
    width: 60%;
    padding-bottom: 66%;
  }

  /* SECTION HOW WE DO IT */
  .section-how .grid--2-cols {
    grid-template-columns: 1fr;
  }

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

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

  /* SECTION Features modified */
  .section-features .grid-pattern--2 {
    grid-template-columns: 1fr;
    row-gap: 4.8rem;
  }

  .section-features .grid-pattern--2 .right {
    display: flex;
    justify-content: center;
  }

  .section-features .grid-pattern--2 .right img {
    width: 60%;
    transform: scale(1);
  }

  /* SECTION Who We Are modified */
  .span-2,
  .span-5 {
    grid-column: 1/-1;
  }

  .section-who-grid {
    row-gap: 2.4rem;
  }

  .section-who-grid img {
    max-width: 40%;
    justify-self: start;
  }

  /* SECTION Experienced modified */
  .experienced-container {
    width: 90%;
  }

  /* SECTION Distribution */
  .distribution-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* SECTION Featured in modified */

  .featured-in-container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.6rem;
    row-gap: 1.6rem;
  }

  .featured-in-logo img {
    max-height: 100%;
    max-width: 100%;
    padding: 1.2rem 4.8rem;
  }

  /* JOIN BUTTON */
  .btn.join-btn {
    justify-self: center;
    font-size: 1.6rem;
    padding: 1.8rem 3.2rem;
  }

  /* SECTION Contact modified */
  .section-contact {
    background: linear-gradient(#eff9f1 50%, #2b561f 50%);
  }

  .content-container.contact-container {
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
  }

  .section-contact .left {
    text-align: center;
    padding: 0 0 4.8rem 0;
  }

  .section-contact .right {
    padding: 4.8rem 0 0 0;
  }

  .address span,
  .call-us span,
  .email-address span {
    font-size: 1.8rem;
  }

  .cta-form {
    margin: 0 auto;
    grid-template-columns: 0.7fr;
    justify-content: center;
    align-items: center;
  }

  .cta-form input {
    font-size: 1.6rem;
  }

  .btn.join-btn {
    justify-self: center;
    font-size: 1.6rem;
    padding: 1.8rem 3.2rem;
  }

  .contact-info {
    justify-content: center;
    align-items: center;
  }

  .contact-info span {
    text-align: center;
  }

  .address-info p,
  .call-us-info p,
  .email-address-info p {
    text-align: center;
    padding-top: 0.8rem;
  }
}

/***************************/
/* BELOW 528px (Mobiles)*/
/***************************/

@media (max-width: 30em) {
  /* HERO SECTION (Gallery modified) */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    width: 80%;
  }

  /* SECTION Products */
  .product-cards-container {
    width: 70%;
  }

  /* SECTION DOWN PICS modified */
  .down-pics-container {
    grid-template-columns: 1fr;
    width: 50%;
    row-gap: 2.4rem;
  }

  .section-down-pics .content-container::before {
    width: 30%;
    padding-bottom: 30%;
    top: 25%;
    left: 50%;
    transform: translate(-100%, -50%) rotate(0);
  }

  .section-down-pics .content-container::after {
    width: 35%;
    padding-bottom: 35%;
    top: 15%;
    left: 50%;
    transform: rotate(0);
  }

  /* SECTION EXPERIENCED */
  .features-container {
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    align-items: center;
  }

  .experienced-container {
    grid-template-columns: 1fr;
    width: 50%;
  }

  .footer .grid {
    row-gap: 3rem;
  }

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

  .footer .footer-nav-list {
    justify-self: center;
  }

  .footer .copyright {
    grid-row: 2;
  }
}

@media (max-width: 25em) {
  .heading-primary {
    font-size: 2.4rem;
  }

  /* SECTION Products */
  .product-cards-container {
    width: 75%;
  }

  .hero-btns-container .btn {
    font-size: 1.6rem;
    padding: 1.6rem 2.4rem;
    font-weight: 600;
  }

  /* SECTION DOWN PICS modified */
  .section-down-pics .content-container::before {
    top: 30%;
  }
  .section-down-pics .content-container::after {
    top: 22%;
  }
}
