@font-face {
  font-family: "Overpass";
  src: url(./fonts/Overpass/Overpass-VariableFont_wght.ttf) format("truetype");
}

@font-face {
  font-family: "Ubuntu";
  src: url(./fonts/Ubuntu/Ubuntu-Regular.ttf) format("truetype");
}

:root {
  /*Primary*/
  --red-500: hsl(356, 100%, 66%);
  --red-400: hsl(355, 100%, 74%);
  --blue-900: hsl(208, 49%, 24%);

  /*Neutral*/
  --white: hsl(0, 100%, 100%);
  --gray-600: hsl(207, 13%, 34%);
  --gray-900: hsl(240, 10%, 16%);

  /*Gradient*/
  /* Background gradient - intro/CTA mobile nav: */
  --orange-300: hsl(13, 100%, 72%);
  --red-550: hsl(353, 100%, 62%);

  /* Background gradient - body: */
  --purple-950: hsl(237, 17%, 21%);
  --purple-900: hsl(237, 23%, 31%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Overpass", sans-serif;
  font-size: 16px;
  line-height: 1.5rem;
  color: var(--gray-600);
  min-height: 100dvh;
}

:focus-visible {
  outline: 2px solid blue;
  outline-offset: 3px;
}

.navigation {
  display: none;
}

@media (min-width: 820px) {
  .header__inner,
  .footer__container {
    max-width: 1400px;
    margin-inline: auto;
  }
}

.header {
  background:
    url("./images/bg-pattern-intro-mobile.svg"),
    linear-gradient(150deg, var(--orange-300) 0%, var(--red-550) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position:
    top -250px right -600px,
    center;
  background-size: 1300px, cover;
  padding: 58px 34px;
  border-bottom-left-radius: 100px;

  position: relative;

  @media (min-width: 820px) {
    background:
      url("./images/bg-pattern-intro-desktop.svg"),
      linear-gradient(90deg, var(--orange-300) 0%, var(--red-550) 100%);
    background-repeat: no-repeat, no-repeat;
    background-position:
      top -1398px right -1400px,
      center;
    background-size: 3328px, cover;
    padding: 60px 128px;

    .logo__img {
      width: 110px;
    }

    .header__bar {
      display: none;
    }

    .navigation {
      display: flex;
      justify-content: space-between;
      /* padding: 0 100px; */
    }

    .navigation__logo-menu {
      display: flex;
      justify-content: start;
      gap: 60px;
    }

    .navigation__menu {
      list-style-type: none;
      display: flex;
      gap: 44px;
      margin-top: 20px;
    }

    .navigation__item-menu {
      position: relative;
    }

    .navigation__item {
      border: none;
      background-color: transparent;
      color: var(--white);
      font-family: "Ubuntu";
      font-size: 1rem;
    }

    .navigation__dropdown {
      list-style-type: none;
      background-color: var(--white);
      border-radius: 4px;
      padding: 30px 22px 24px 22px;
      margin-top: 22px;
      box-shadow: 7px 7px 14px 0px rgba(80, 79, 79, 0.3);
      position: absolute;
      line-height: 2rem;
      width: 180px;
      transition-property: opacity, display;
      transition-duration: 0.25s;
      transition-behavior: allow-discrete;
    }

    .navigation__link {
      text-decoration: none;
      color: var(--gray-900);
    }

    .navigation__session {
      display: flex;
      flex-wrap: nowrap;
      justify-content: right;
      align-items: center;
      text-align: center;
      gap: 5px;
    }
    .btn--primary,
    .btn--secondary {
      width: 140px;
    }

    .hero {
      height: 450px;
    }

    .hero__title {
      font-size: 3.9rem;
    }
  }
}

.header__bar {
  display: flex;
  justify-content: space-between;
  align-content: center;
  margin-bottom: 28px;
}

.logo {
  padding: 10px 0px 2px 0px;
  border-radius: 5px;
}

@media (hover: hover) {
  /* when hover is supported */

  .navigation__link:hover {
    font-weight: 800;
  }

  .navigation__item:hover {
    text-decoration: underline;
  }
}

.logo__img {
  width: 90px;
}

.header__menu {
  border: 0px;
  background: transparent;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 5px;
  border-radius: 5px;
}

@media (hover: hover) {
  /* when hover is supported */
  .header__menu:hover {
    border-color: var(--white);
  }
}

.dropdown {
  /* display: none; */
  background-color: var(--white);
  border-radius: 6px;
  padding: 16px;

  position: absolute;
  width: 82%;
  box-shadow: 14px 14px 20px 0px rgba(80, 79, 79, 0.3);
  transition-property: opacity, display;
  transition-duration: 0.25s;
  transition-behavior: allow-discrete;
}

.nav {
  text-align: center;
}

.nav__menu {
  list-style-type: none;
}

.nav__item {
  border: 0px;
  background-color: var(--white);
  font-family: "Overpass";
  font-size: 1.1rem;
  font-weight: 500;
  padding: 20px 10px;
}

@media (hover: hover) {
  .nav__item:hover,
  .nav__item:focus {
    color: var(--gray-600);
  }
}

.nav__item-arrow {
  transition: transform 0.3s;
}

.nav__dropdown {
  border-radius: 4px;
  padding: 0; /* 20px 5px; */
  background-color: rgb(238, 236, 236);

  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 2rem;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.25s ease-in-out,
    padding 0.25s ease-in-out;
}

.dd-active {
  max-height: 1000px;
  padding: 20px 5px;
}

.nav__dropdown > a {
  text-decoration: none;

  font-weight: 500;
  color: var(--gray-600);
}

.nav__session {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
  text-decoration: none;
  gap: 5px;
  border-top: 2px solid rgb(238, 236, 236);
  margin-top: 20px;
}

.nav__btn--primary {
  color: var(--gray-900);
  width: 50%;
  margin-top: 18px;
  margin-bottom: 8px;
}

.nav__btn--secondary {
  color: var(--white);
  background: linear-gradient(
    150deg,
    var(--orange-300) 0%,
    var(--red-550) 100%
  );
  width: 50%;
  margin-bottom: 14px;
}

.hero {
  color: var(--white);
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;

  height: 400px;
}

.hero__title {
  font-weight: 600;
  font-size: 2.14rem;
  line-height: 1.5;
}

.hero__subtitle {
  font-weight: 200;
  margin-top: 14px;
  font-size: 1.2rem;
}

.hero__actions {
  margin-top: 44px;

  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 16px;
}

.btn {
  font-family: "Ubuntu", Arial, Helvetica;
  font-weight: 800;
  border: 1px solid var(--white);
  border-radius: 34px;
  padding: 14px 18px;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--white);
  color: var(--red-400);
}

.btn--secondary {
  color: var(--white);
}

.btn--third {
  border: none;
  color: var(--white);
}

@media (hover: hover) {
  .btn--primary:hover {
    background-color: var(--red-400);
    color: var(--white);
    border: 1px solid transparent;
  }

  .btn--secondary:hover {
    background-color: var(--white);
    color: var(--red-400);
    border: 1px solid transparent;
  }
}

.main {
  padding: 80px 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;

  @media (min-width: 820px) {
    padding: 140px 0px;
    overflow: hidden;
  }
}

.section {
  margin-bottom: 10px;
  @media (min-width: 820px) {
    max-width: 1400px;
    margin-inline: auto;
    padding: 0px 130px;

    .section__title {
      font-size: 2.2rem;
      padding-bottom: 20px;
    }

    .section__container {
      display: flex;
    }

    .section__card {
      order: 1;
      text-align: left;
    }

    .card {
      width: 48%;
      padding: 32px 0;
    }

    .card__description {
      padding: 10px 0;
      font-size: 1.05rem;
      line-height: 1.8rem;
    }

    .section__picture {
      order: 2;
      position: relative;
    }

    .section__img--right {
      position: absolute;
      width: 900px;
      top: 48%;
      transform: translate(-56%, -50%);
    }

    .section__card--large {
      order: 2;
      height: 630px;
      width: 50%;
    }

    .card--large {
      width: 90%;
      margin-left: 60px;
    }

    .section__picture--left {
      order: 1;
      width: 50%;
    }

    .section__img--left {
      position: absolute;
      width: 900px;
      top: 58%;
      transform: translate(-70%, -64%);
      width: 1000px;
    }
  }

  @media (min-width: 820px) and (max-width: 1140px) {
    .section__img--right {
      width: 500px;
    }

    .section__img--left {
      width: 700px;
    }
  }
}

.section__title {
  font-size: 1.8rem;
  font-weight: 600;
  padding: 5px;
  margin-bottom: 20px;
  color: var(--blue-900);
}

.card {
  padding: 5px 30px;
}

.section__img {
  width: 376px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.card__title {
  font-size: 1.8rem;
  line-height: 2.3rem;
  color: var(--blue-900);
  font-weight: 500;
}

.card__description {
  margin: 16px 0px;
  padding: 10px;
  font-weight: 300;
  line-height: 1.8;
}

.section--dark {
  background-image:
    url("./images/bg-pattern-circles.svg"),
    linear-gradient(140deg, var(--purple-950) 0%, var(--purple-900) 100%);

  background-repeat: no-repeat, no-repeat;
  background-position:
    center -250px,
    center;
  background-size: 600px, cover;

  border-radius: 0px 110px 0px 110px;
  color: var(--white);
  position: relative;
  width: 100%;
  height: 600px;
  margin-top: 200px;

  @media (min-width: 820px) {
    background-image:
      url("./images/bg-pattern-circles.svg"),
      linear-gradient(90deg, var(--purple-950) 0%, var(--purple-900) 100%);

    background-position:
      bottom -110px left -232px,
      center;
    background-size: 1050px, cover;

    height: 436px;
    margin-bottom: 200px;

    .section__img--position {
      transform: translate(-102%, -16%);
      width: 600px;
    }

    .card--dark {
      top: 50%;
      left: 74%;
      transform: translate(-52%, -44%);
      width: 40%;
      text-align: left;
    }
  }

  @media (min-width: 820px) and (max-width: 1140px) {
    .section__img--position {
      width: 400px;
    }
  }
}

.card--dark {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.card__title--dark {
  color: var(--white);
  font-size: 2.4rem;
}

.section__img--position {
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.footer {
  font-family: "Overpass", sans-serif;
  background-color: var(--gray-900);
  border-radius: 0px 100px 0px 0px;
  display: flex;
  flex-direction: column;
  color: var(--white);
  padding: 80px 50px;
  text-align: center;

  @media (min-width: 820px) {
    padding: 80px 130px 24px;
    .logo {
      padding-top: 0;
    }
    .footer__container {
      display: flex;
      flex-direction: row;
      justify-content: space-evenly;
      width: 100%;
    }

    .footer__nav {
      display: flex;
      justify-content: space-around;
      width: 100%;
      margin-top: 0;
      text-align: left;
      gap: 30px;
      margin-top: 5px;
    }

    .footer__nav-title {
      margin-top: 0;
    }

    .footer__attribution {
      width: 100%;
    }
  }
}

.footer__nav {
  margin-top: 40px;
  margin-bottom: 20px;
}

.footer__nav-title {
  padding: 10px;
  margin-top: 20px;
  font-size: 1.1rem;
}

.footer__nav-list {
  list-style: none;
  padding: 10px;
  line-height: 2rem;
}

.footer__nav-item {
  font-weight: 100;
  font-size: 1.1rem;
}

.footer__nav-item > a {
  text-decoration: none;
  color: var(--white);
}

.footer__attribution > a {
  color: var(--red-500);
}

@media (hover: hover) {
  .footer__nav-item > a:hover {
    text-decoration: underline;
  }
}

/* Para JS */
.hidden {
  display: none;
  opacity: 0;
}

.upsidedown {
  transform: rotate(180deg);
}

@starting-style {
  .hidden {
    height: 0;
    opacity: 0;
  }
}
