@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

  :root {
    --header-height: 3.5rem;

    --black-color: hsl(220, 81%, 50%);
    --black-color-light: hsl(220, 100%, 61%);
    --black-color-lighten: hsl(220, 100%, 78%);
    --white-color: #FFF;
    --body-color: hsl(220, 100%, 97%);

    --body-font: "Montserrat", sans-serif;
    --normal-font-size: .938rem;

    --font-regular: 400;
    --font-semi-bold: 600;

    --z-tooltip: 10;
    --z-fixed: 100;
  }
  
  /*===============BASE=================*/

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
  }

  ul {
    list-style: none;
  }

  a {
    text-decoration: none;
  }

  .container {
    max-width: 1120px;
    margin-inline: 1.5rem;
  }

  .header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--black-color) 0%, var(--black-color-light) 50%, var(--black-color-lighten) 100%);
    box-shadow: 0 2px 16px hsl(220, 32%, 8%, .3);
    z-index: var(--z-fixed);
  }

  .nav {
    height: var(--header-height);
  }

  .nav__logo,
  .nav__burger,
  .nav__close {
    color: var(--white-color);
  }

  .nav__data {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-self: center;
  }

  .nav__logo {
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
    font-weight: var(--font-semi-bold);
  }

  .nav__img {
    width: 100%;
    height: 100%;
    padding: .5rem;
  }

  .nav__toggle {
    margin-top: .7rem;
    position: relative;
    width: 32px; height: 32px;
  }

  .nav__burger,
  .nav__close {
    position: absolute;
    width: max-content;
    height: max-content;
    inset: 0;
    margin: auto;
    font-size: 1.25rem;
    cursor: pointer;
    transition: opacity .1s, trasnform .4s;
  }
  
  .nav__close {
    opacity: 0;
  }

  @media screen and (max-width: 1118px) {


    main {
      margin-top: 3.5rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .card__content {
      grid-template-columns: repeat(1, 1fr);
    }

    .card {
      margin-bottom: 1.5rem;
    }

    .footer-contacts img {
      width: 50%;
      height: 40%;
      margin: 1.5rem;
    }

    
    .nav__menu {
      position: absolute;
      left: 0;
      top: 2.5rem;
      width: 100%;
      height: calc(100vh - 3.5rem);
      overflow: auto;
      pointer-events: none;
      opacity: 0;
      transition: top .4s, opacity .3s;
    }

    .nav__menu::-webkit-scrollbar {
      width: 0;
    }

    .nav__list {
      background-color: var(--black-color);
      padding-top: 1rem;
    }
  }

  .nav__link {
    color: var(--white-color);
    background-color: transparent;
    font-weight: var(--font-semi-bold);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color .3s;
  }

  .show-menu {
    opacity: 1;
    top: 3.5rem;
    pointer-events: initial;
  }
  
  .show-icon .nav__burger {
    opacity: 0;
    transform: rotate(90deg);
  }

  .show-icon .nav__close {
    opacity: 1;
    transform: rotate(90deg);
  }

  .dropdown__item {
    cursor: pointer;
  }

  .dropdown__arrow {
    font-size: 1.25rem;
    font-weight: initial;
    transition: transform .4s;
  }

  .dropdown__link {
    padding: 1.25rem 1.25rem 1.25rem 2.5rem;
    color: var(--white-color);
    background-color: var(--black-color-light);
    display: flex;
    align-items: center;
    column-gap: .5rem;
    font-weight: var(--font-semi-bold);
    transition: background-color .3s;
  }

  .dropdown__link:hover {
    background-color: var(--black-color);
  }

  .dropdown__menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-out;
  }

  .dropdown__item.open .dropdown__menu {
    max-height: 500px; /* ou um valor grande suficiente */
    transition: max-height .4s ease-in;
  }

  main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  main img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .card__content {
    display: grid;
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  .card {
    background-color: rgb(230, 230, 230);
    width: 350px;
    height: 450px;
    margin-left: 1rem;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, .3) 0px 18px 38px, rgba(0, 0, 0, .2) 10px 9px 20px, rgba(0, 0, 0, .3) 0px 20px 5px;
  }

  .card > h1 {
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: .2rem;
    margin-bottom: .3rem;
  }

  .card > img {
    width: 100%;
    height: 80%;
    background-color: rgb(192, 192, 192);
    object-fit: fill;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .card > button {
    width: 80%;
    margin-left: 10%;
    height: 10%;
    border-radius: 10px;
    border: none;
    background-color: var(--black-color);
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
  }

  .card > button:hover {
    background-color: var(--black-color-light);
    transition: .5s background-color;
  }

  /*==============FOOTER=================*/

  footer {
    width: 100%;
    color: var(--white-color);
  }
  
  .footer-content {
    background-color: var(--black-color-light);
    display: grid;
    text-align: center;
  }

  .footer-content p {
    margin-bottom: .5rem;
  }

  .footer-content div {
    margin-bottom: 2rem;
  }
  
  .footer-content h1 {
    margin-bottom: .75rem;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-top: .5rem;
  }

  
  .footer-social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1rem 50% 1rem;
  }
  
  .footer-social-media button {
    height: 3rem;
    width: 3rem;
    color: var(--black-color);
    border-radius: 50%;
    font-size: 20px;
    background-color: var(--white-color);
    border: 1px solid #000;
    cursor: pointer;
    border: 1px solid #0000008A;
  }
  
  .footer-center {
    width: 100%;
  }
  
  .copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--black-color);
    color: var(--white-color);
    font-size: .9rem;
    padding: 1.5rem;
    font-weight: 100;
  }


  @media screen and (max-width: 340px) {
    .container {
      margin-inline: 1rem;
    }

    .nav__link {
      padding-inline: 1rem;
    }
  }

  @media screen and (min-width: 1118px) {

    .footer-content {
      grid-template-columns: repeat(3, 1fr);
    }

    main {
      margin-top: 5.5rem;
    }

    .card__content {
      grid-template-columns: repeat(4, 1fr);
    }

    .footer-contacts img {
      width: 25%;
      height: 40%;
      margin: 1.5rem;
    }

    .container {
      margin-inline: auto;
    }

    .nav {
      height: calc(var(--header-height) + 2rem);
      display: flex;
      justify-content: space-between;
    }

    .nav__toggle {
      display: none;
    }

    .nav__list {
      height: 100%;
      display: flex;
      column-gap: 3rem;
    }

    .nav__link {
      height: 100%;
      padding: 0;
      justify-content: initial;
      column-gap: .25rem;
    }

    .nav__link:hover {
      background-color: transparent;
    }

    .dropdown__item {
      position: relative;
    }

    .dropdown__menu {
      max-height: initial;
      overflow: initial;
      position: absolute;
      left: 0;
      top: 6rem;
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s, top .3s;
    }

    .dropdown__link {
      padding-inline: 1rem 3.5rem;
    }

   .dropdown__item.open .dropdown__menu{
      opacity: 1;
      top: 5.5rem;
      pointer-events: initial;
      transition: top .3s;
    }

  }

  @media screen and (min-width: 1024px) {

    :root {
      --normal-font-size: 1rem;
    }
    
  }

  @media screen and (max-width: 426px) {
    .footer-content {
      grid-template-columns: repeat(1, 1fr);
    }
  }
  