.header__navbar {
  height: 6.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.navbar__logo {
  width: 26.79%;
}

.navbar__logo:hover {
  opacity: 0.8;
}

.navbar__logo--desktop,
.navbar__logo--mobile {
  width: auto;
  max-width: 100%;
}

.navbar__logo--desktop {
  width: 100%;
}

.navbar__logo--mobile,
.navbar__toggle,
.navbar__toggle.active .fa-bars {
  display: none;
}

.navbar__menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar__menu li {
  font-weight: var(--font-semibold);
}

:root {
  --navbar-line-height: 0.125rem;
  --navbar-line-color: var(--almost-black);
  --navbar-line-duration: 0.5s;
}

.navbar__link {
  position: relative;
}

.navbar__link::after {
  content: "";
  position: absolute;
  width: 0;
  height: var(--navbar-line-height);
  background-color: var(--navbar-line-color);
  bottom: -0.3125rem;
  left: 0;
  transition: width var(--navbar-line-duration) ease;
}

.navbar__link:hover::after {
  animation: lineIn var(--navbar-line-duration) forwards;
}

.navbar__link:not(:hover)::after {
  animation: lineOut var(--navbar-line-duration) forwards;
}

@keyframes lineIn {
  0% {
    width: 0;
    left: 0;
  }
  100% {
    width: 100%;
    left: 0;
  }
}

@keyframes lineOut {
  0% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}

.navbar__wp {
  font-size: 1.5rem;
}

.navbar__wp--mobile {
  display: none;
}

.navbar__wp i:hover {
  color: var(--roxo);
}

/* .navbar__lang::before {
  content: "\f57d";
  font-family: var(--font-awesome);
  font-weight: var(--solid-weight);
  margin-right: 0.4375rem;
} */

.navbar__cta {
  font-weight: var(--font-bold);
  color: var(--roxo);
  padding: 0.625rem 1rem;
  border: 1px solid var(--roxo);
  border-radius: 0.3125rem;
  transition:
    background-color 0.3s ease-in-out,
    color 0.3s ease-in-out;
  margin-left: 2.8rem;
}

.navbar__cta:hover {
  background-color: var(--roxo);
  color: var(--almost-white);
}

.navbar__cta:focus {
  outline: 0.125rem solid var(--lilas);
  outline-offset: 0.125rem;
}

.header__hero {
  height: 31.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__text {
  width: 57.5%;
}

.hero__title {
  font-size: 2.875rem;
  font-weight: var(--font-medium);
  line-height: 2.5rem;
  margin-bottom: 1rem;
}

.hero__word {
  font-family: var(--calistoga);
  font-weight: var(--font-regular);
  color: var(--roxo);
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out forwards;
}

.hero__word:nth-child(1) {
  animation-delay: 0.2s;
}

.hero__word:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__description {
  font-size: 1.375rem;
  margin-bottom: 1.5625rem;
  line-height: 1.6875rem;
  text-align: justify;
}

.hero__cta {
  display: inline-block;
  text-transform: uppercase;
}

.hero__button {
  font-weight: var(--font-bold);
  padding: 0.625rem 1rem;
  border-radius: 0.3125rem;
  transition:
    background-color 0.3s ease-in-out,
    color 0.3s ease-in-out;
}

.hero__button:focus {
  outline: 0.125rem solid var(--lilas);
  outline-offset: 0.125rem;
}

.hero__button:nth-child(1) {
  margin-right: 1.25rem;
}

.hero__button:nth-child(1),
.hero__button:nth-child(2):hover {
  background-color: var(--roxo);
  border: 1px solid var(--roxo);
  color: var(--almost-white);
}

.hero__button:nth-child(1):hover,
.hero__button:nth-child(2) {
  background-color: var(--almost-white);
  border: 1px solid var(--almost-white);
  color: var(--roxo);
}

.hero__illustration {
  width: 40.6%;
  display: flex;
}

.hero__illustration img {
  max-width: 100%;
  height: auto;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .header__navbar {
    flex-direction: column;
    justify-content: space-around;
    height: 10rem;
    margin-bottom: 1.25rem;
  }

  .navbar__logo {
    width: 40%;
  }

  .header__hero {
    justify-content: space-around;
    height: auto;
    padding: 3rem 0;
  }

  .hero__text {
    width: 50%;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__description {
    font-size: 1.2rem;
  }

  .navbar__menu {
    font-size: 1.15rem;
  }

  .navbar__cta {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .navbar__logo {
    width: 40%;
  }

  .header__navbar {
    padding: 0 1.875rem;
  }

  .navbar__logo--desktop {
    display: none;
  }

  .navbar__logo--mobile {
    display: block;
    width: 100%;
    z-index: 1002;
    position: relative;
  }
  .menu-open {
    overflow: hidden;
  }
  .navbar__menu {
    display: none;
    position: fixed;
    gap: 2.5rem;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--almost-white);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .navbar__menu.active {
    display: flex;
    padding-top: 1.5rem;
  }

  .navbar__menu a {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    font-size: 1.3rem;
    text-decoration: none;
  }

  .navbar__link::after {
    display: none;
  }

  .navbar__wp {
    display: none;
  }

  .navbar__wp--mobile {
    display: block;
  }

  .navbar__toggle {
    display: block;
    position: relative;
    z-index: 1001;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.875rem;
    color: var(--almost-black);
    padding: 0.5rem;
  }

  .navbar__toggle.active .fa-times {
    display: inline-block;
  }

  .navbar__cta {
    width: 80%;
    max-width: 250px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    text-align: center;
    margin: 0 auto;
  }

  .header__hero {
    flex-direction: column;
    padding: 2rem;
    height: auto;
  }

  .hero__text {
    width: 100%;
    margin-bottom: 2rem;
    order: 2;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__description {
    font-size: 1rem;
  }

  .hero__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .hero__button {
    width: 80%;
    max-width: 15.625rem;
    padding: 1rem;
    font-size: 1rem;
    text-align: center;
  }

  .hero__button:nth-child(1) {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  .hero__illustration {
    width: 100%;
    order: 1;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .header__navbar {
    height: 8rem;
  }

  .navbar__menu.active {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 9rem 2rem 3rem;
    gap: 2rem;
    justify-content: center;
    align-items: center;
  }

  .navbar__logo {
    width: 30%;
  }

  .header__hero {
    flex-direction: row;
    gap: 2rem;
  }

  .hero__text,
  .hero__illustration {
    width: 50%;
  }
}
