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

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

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

  .header-menu {
    gap: 3rem;
  }

  .logo-box {
    width: 300px;
  }

  .link-menu {
    font-size: 1.4rem;
  }
}

/**************************/
/* BELOW 944px (Tablets) */
/**************************/

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

  header {
    width: 100%;
    left: 0;
  }

  .side-bar-container {
    height: 15%;
    margin-top: 25rem;
    gap: 3rem;
  }

  .know-more {
    padding: 1rem 2rem;
  }

  .link-menu {
    font-size: 1.2rem;
  }
}

/**************************/
/* BELOW 704px (Smaller tablets) */
/**************************/

@media (max-width: 44em) {
  .grid-2-columns,
  .grid-3-columns {
    grid-template-columns: 1fr;
    row-gap: 4.8rem;
    justify-items: center;
  }

  .box-grafico {
    width: 100%;
    height: 80%;
    padding: 3.2rem;
  }

  .box-grafico:hover {
    height: 100%;
  }

  .box-grafico img {
    width: 40%;
    height: 40%;
  }

  .text-box {
    width: 60%;
    font-size: 1.6rem;
  }

  .section-contato {
    text-align: center;
  }

  .contact-list {
    flex-direction: column;
  }

  .contact-list li {
    font-size: 2.4rem;
  }

  .i {
    font-size: 96px;
  }

  form input,
  form textarea {
    width: 80%;
  }

  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    background: none;
  }

  .main-nav {
    background: rgba(0, 0, 0, 0.144);
    backdrop-filter: blur(5px);
    position: absolute;
    top: -100;
    right: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    transform: translateY(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);
    z-index: 1;
  }

  .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;
    color: black;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 2rem;
    padding: 1rem 2rem;
    color: white;
    background-color: #197a89;
    border: none;
    border-radius: 2px;
    width: 35rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav-link:hover {
    color: #f1f1f1;
  }

  .item-menu:hover {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
  }
}

/**************************/
/* BELOW 544px (Phones) */
/**************************/

@media (max-width: 34em) {
  .grid {
    row-gap: 4.8rem;
  }

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

  header {
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo {
    width: 70%;
    height: 80%;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 3.2rem;
    color: black;
    height: 35%;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 1.6rem;
    padding: 1rem 2rem;
  }

  .box-grafico,
  .text-box {
    width: 100%;
  }

  .contact-list li {
    font-size: 1.8rem;
  }

  .i {
    font-size: 64px;
  }

  form {
    padding: 1rem;
    width: 100%;
    gap: 3.2rem;
  }

  form input,
  form textarea,
  .submit {
    width: 100%;
  }

  footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  footer .container-mob {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  footer .margin-bottom {
    margin-top: 2rem;
  }

  footer ul li {
    display: flex;
    justify-content: center;
  }

  footer .copy {
    font-size: 1rem;
  }

  .h2 {
    font-size: 2.4rem;
  }

  .h3 {
    font-size: 2.4rem;
    margin: 3.2rem 0;
  }
}