/* =========================================
   RESPONSIVE DESIGN (HEADER)
========================================= */

/* Tablets and Mobile Layouts */
@media (max-width: 944px) {
  .header {
    padding: var(--spacing-16) var(--spacing-24);
  }

  /* Hide standard desktop navigation elements */
  .main-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  /* Show the hamburger menu icon */
  .mobile-nav-toggle {
    display: block;
  }

  .mobile-nav {
    position: absolute;
    width: 100%;
    height: 100dvh;
    top: 0;
    left: 0;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    translate: 100% 0;
    transition: all 0.3s ease-in-out;
    z-index: -1;
    visibility: visible;
  }

  .mobile-nav.active {
    translate: 0 0;
  }

  .mobile-nav .main-nav,
  .mobile-nav .header-cta {
    display: block;
  }

  .mobile-nav .nav-list {
    flex-direction: column;
    align-items: center;
    margin-bottom: 3.2rem;
  }

  .mobile-nav .nav-list a {
    font-size: 2.4rem;
  }

  .mobile-nav .btn-link {
    padding: 1.6rem 3.2rem;
  }
}

/* _______________________________ */
/* Below 1344px (Smaller desktops) */
/* _______________________________ */

@media (max-width: 84em) {
}

/* _______________________________ */
/* Below 1200px (Landscape Tablets) */
/* _______________________________ */

@media (max-width: 75em) {
  .services-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* _______________________________ */
/* Below 944px (Tablets) */
/* _______________________________ */

@media (max-width: 59em) {
  .hero__content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4.8rem;
    margin-bottom: 3.2rem;
  }

  .hero__text {
    justify-self: center;
    text-align: center;
  }

  .hero__img {
    width: 100%;
  }
  
  .resources-banner {
      display: grid !important;
      grid-template-areas: "a b"
      "c c";
      
      row-gap: 1.6rem;
  }
  
  .resources-banner .section-title-cont {
      grid-area: a;
  }
  
  .brands-container .resources-banner-description {
      grid-area: c;
  }
  
  .brands-container .resources-banner .contact-info a:link, .brands-container .resources-banner .contact-info a:visited {
      justify-content: flex-end;
  }
}

/* _______________________________ */
/* Below 704px (Smaller Tablets) */
/* _______________________________ */

@media (max-width: 44em) {
  .services-list {
    grid-template-columns: 1fr;
  }
  .big-service-list--item {
    grid-column: span 1;
  }
  
  .services .text-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3.2rem;
  }
  
  .services .sub-title {
      justify-content: center;
  }
}

/* _______________________________ */
/* Below 544px (Phones) */
/* _______________________________ */

@media (max-width: 34em) {
  .hero .trust-badges {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero .trust-badges .notice {
      width: 40%;
  }

  .metric {
    width: 100%;
  }

  .hero .trust-metrics {
    flex-direction: column;
    width: fit-content;
    margin: 0 auto;
  }

  .big-service-list--item .services-list--item-features-list {
    grid-template-columns: 1fr;
  }

  .big-service-list--item .control {
    flex-direction: column;
    gap: 1.6rem;
  }
}
