@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body,
a {
  font-family: "Lexend", sans-serif;
  color: #121714;
}

.button_agendar {
  background-color: #14b866;
  text-align: center;
  font-weight: bold;
  border-radius: 8px;
  padding: 12px 16px;
  transition: 250ms ease-in-out;
}

svg.icon {
  height: 24px;
  aspect-ratio: 1;

  fill: #121714;
}

header {
  width: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  position: fixed;
  padding: 16px;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #e5e8eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  z-index: 10;

  & .logo-header {
    height: 40px;
    width: 136px;
  }

  & ul {
    display: flex;
    gap: 36px;
    list-style-type: none;

    & li a {
      font-size: 16px;
      font-weight: 500;
    }
  }
}

main {
  width: 100%;
  max-width: 1080px;
  margin: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  padding-top: 92px;
  gap: 32px;

  & .banner {
    width: 100%;
    aspect-ratio: 1.93;
    background: linear-gradient(to right, #00000010, #00000040),
      url("img-banner.jpg")
        0% 65% / cover no-repeat;
    border-radius: 8px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 16px;
    gap: 8px;

    & h1 {
      font-size: 36px;
      text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    & p {
      font-size: 18px;
      font-weight: 400;
      line-height: 24px;
      /* align-items: center; */
      padding: 0 32px;
      text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    & .button_agendar {
      background-color: #c4f7d8;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.27);
    }

    & a {
      margin-top: 28px;
    }
  }

  & .nutricionist {
    display: flex;
    flex-direction: column;
    /* padding: 16px 0; */
    gap: 24px;

    & h2 {
      /* font-weight: bold; */
      font-size: 22px;
      /* padding: 20px 0 12px; */
    }

    & .profile {
      display: flex;
      align-items: center;
      gap: 16px;

      & .m-info {
        display: none;
      }

      & img {
        height: 128px;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 50%;
      }

      & .text {
        flex: 1;

        & h3 {
          font-size: 22px;
        }

        & p {
          font-size: 16px;
          color: #638775;
        }
      }
    }
  }

  & .benefits {
    & h2 {
      font-size: 36px;
      letter-spacing: -1px;
      font-weight: 800;
      margin-bottom: 16px;
    }

    & .cards {
      display: flex;
      flex-wrap: wrap;
      margin-top: 40px;
      gap: 12px;

      & .card {
        border: 1px solid #dbe5e0;
        border-radius: 8px;
        padding: 16px;
        flex: 1 0 21%;
        transition: all 200ms ease-in-out;

        & img {
          width: 24px;
        }

        & h4 {
          margin-top: 12px;
        }

        & p {
          color: #638775;
          margin-top: 4px;
        }

        &:hover {
          transform: translateY(-5px);
          scale: 1.02;
          box-shadow: 0 10px 10px rgba(0, 0, 0, 0.27);
        }
      }

      &:hover > :not(:hover) {
        opacity: 0.4;
      }
    }
  }

  & .asks {
    text-align: center;

    & h2 {
      font-size: 28px;
      margin-bottom: 8px;
    }

    & p {
      font-size: 18px;
    }
  }

  & .online {
    /* height: 552px; */
    display: flex;
    padding: 32px 0;
    gap: 32px;

    & img {
      width: 400px;
      height: 472px;
      object-fit: cover;
      border-radius: 8px;
    }

    & .consulting {
      display: flex;
      flex-direction: column;
      /* justify-content: space-between; */
      flex: 1;
      gap: 8px;

      & h2 {
        font-size: 48px;
        font-weight: 800;
        margin-bottom: 8px;
      }

      & p {
        flex: 1;
      }

      & .button_agendar {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.27);
      }
    }
  }

  & .consultation {
    display: flex;
    flex-direction: column;
    gap: 12px;

    & h2 {
      font-size: 22px;
    }

    .subtop {
      margin-top: 8px;
    }

    & .args {
      display: flex;
      flex-direction: column;
      gap: 28px;
      padding: 14px 16px 14px 0;

      & .arguments {
        display: flex;
        align-items: center;
        gap: 15px;

        & span {
          display: flex;
          align-items: center;
          justify-content: center;
          padding: 12px;
          border-radius: 8px;
          background-color: #f0f5f2;

          
        }

        & div {
          & p {
            font-size: 14px;
            color: #638775;
          }
        }
      }
    }
  }
}

footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 7rem;
  background-color: #c4f7d8;
  /* background-color: #baf1d0; */
  text-align: center;
  justify-content: center;
  padding: 16px;
  gap: 16px;
  margin-top: 16px;

  & svg.icon {
    margin-right: 16px;
  }

  & .developer {
    color: #874caf;
    text-decoration: underline;
    transition: all 150ms ease-in-out;

    &:hover {
      opacity: 0.7;
    }
  }
}

@media screen and (max-width: 930px) {
  & .banner {
    & a.button_agendar {
      margin-bottom: 16px;
    }
  }

  & .online {
    /* height: 552px; */
    display: flex;
    padding: 2px 0;
    gap: 32px;
    width: 100%;
    aspect-ratio: 1.93;
    background: linear-gradient(to right, #00000010, #00000040),
      url("img-consult.png") 0% 30% / cover no-repeat;
    border-radius: 8px;
    color: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);

    & img {
      display: none;
    }

    & .consulting {
      padding: 88px;

      & h2.consult-onli {
        font-size: 36px;
        font-weight: 800;
        margin-bottom: 8px;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
      }

      & p {
        margin-bottom: 8px;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
      }

      & .button_agendar {
        background-color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
      }
    }
  }

  .invisible {
    display: none;
  }
}

@media screen and (max-width: 550px) {
  body {
    font-size: 14px;
  }

  header {
    font-size: 14px;
    /* padding: 12px 16px; */

    & .logo-header {
      height: 32px;
      width: 98px;
    }

    .button_agendar {
      padding: 8px 12px;
    }
  }

  main {
    padding-top: 76px;
    gap: 18px;

    & .banner {
      background: linear-gradient(to right, #00000010, #00000040),
        url("img-banner.jpg")
          50% 0% / cover no-repeat;
      padding: 24px 12px;
      gap: 12px;

      & h1 {
        font-size: 22px;
      }

      & p {
        font-size: 14px;
        line-height: 20px;
        padding: 0 12px;
      }

      & a {
        margin-top: 0;
      }
    }

    & .nutricionist {
      gap: 24px;

      & .profile {
        display: flex;
        flex-direction: column;
        gap: 8px;

        & .nutri {
          width: 100%;
          display: flex;
          align-items: center;
          gap: 16px;
        }

        & .info {
          display: none;
        }

        & .m-info {
          display: block;
        }

        & img {
          height: 102px;
        }

        & .text {
          & h3 {
            font-size: 16px;
          }

          & p {
            font-size: 14px;
            color: #638775;
          }
        }
      }
    }

    & .benefits {
      & h2 {
        font-size: 22px;
        letter-spacing: -1px;
        font-weight: 800;
        margin-bottom: 8px;
      }

      & p {
        font-size: 14px;
      }

      & .cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 16px;
        gap: 8px;

        & .card {
          padding: 12px;
          flex: 1 0 21%;

          & img {
            width: 24px;
          }

          & h4 {
            margin-top: 12px;
          }

          & p {
            color: #638775;
            margin-top: 4px;
          }

          &:hover {
            transform: translateY(0px);
            scale: 1;
            box-shadow: 0 10px 10px rgba(0, 0, 0, 0.27);
          }
        }
      }
    }

    & .asks {
      & h2 {
        font-size: 22px;
        margin-bottom: 8px;
      }

      & p {
        font-size: 16px;
      }
    }

    & .online {
      /* height: 552px; */
      display: inline;
      /* padding: 16px; */
      margin: auto;

      & .consulting {
        padding: 24px;
        flex: 0;
        gap: 8px;

        & h2.consult-onli {
          font-size: 22px;
          font-weight: 800;
          margin-bottom: 8px;
        }

        & p {
          flex: 1;
          font-size: 14px;
        }

        & .button_agendar {
          box-shadow: 0 2px 10px rgba(0, 0, 0, 0.27);
        }
      }
    }

    & .consultation {
      & .args {
        & .arguments {
          & span {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            border-radius: 8px;
            background-color: #f0f5f2;

            & img {
              width: 28px;
              height: 28px;
            }
          }

          & .small {
            font-size: 12px;
          }
        }
      }
    }
  }

  footer {
    height: 6.2rem;
    padding: 56px 16px;
    gap: 8px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .button_agendar:hover {
    background-color: #c4f7d8;
  }

  main {
    & .banner {
      & .button_agendar:hover {
        background-color: #ffffff;
        scale: 1.03;
      }
    }

    & .online {
      & .consulting {
        & .button_agendar:hover {
          background-color: #c4f7d8;
        }
      }
    }
  }
}
