@import "fonts/Barlow/index.css";
@import "css/general.css";

.section-wrapper {
  z-index: 1;
}

.header-wrapper,
.section-wrapper {
  max-width: 136rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.header-wrapper {
  padding: 0 8.4rem 0 10.8rem;
  display: flex;
  justify-content: space-between;
}

.brand {
  margin-right: 13.5rem;
  display: flex;
}

.brand img {
  width: 180px;
  height: auto;
}

.hidden-logo-text {
  text-indent: -9999px;
  position: absolute;
}

header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
}
header nav a {
  font-size: 1.7rem;
  margin-right: 1rem;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.5rem;
  border-bottom-color: transparent;
  transition: border-bottom-color 0.3s ease-out;
}

/* Links with underline effect */
header nav a {
  border-bottom: 2px solid transparent;
  transition: 0.3s ease-out;
}

header nav a:hover,
header nav a.active {
  border-bottom-color: var(--blue);
  padding-bottom: 0.5rem;
  color: var(--blue);
}

/*Mobile nav*/
.nav-links-burger {
  padding-top: 12rem;
  background-color: var(--gray);
  list-style: none;
  padding-right: 5rem;
  display: flex;
  height: 100vh;
  position: absolute;
  width: 27rem;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease-in;
  opacity: 0;
  z-index: 88;
}

#one {
  background-image: url(./images/instanto-globe-144-AA-web.gif);
  background-size: 940px;
  background-repeat: no-repeat;
  background-position: center;
  height: 100rem;
  margin-top: 12rem;
}

#one .section-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#one .section-wrapper h1 {
  position: absolute;
  left: 0;
  right: 0;
  padding: 0 2rem;
  z-index: 1;
}
#one .section-wrapper img {
  position: relative;
  z-index: 0;
}

.changing-heading {
  margin-top: auto;
  display: inline-block;
  color: var(--blue);
  font-size: 5.5rem;
  font-family: "Barlow-Bold", sans-serif;
  width: 16rem;
  text-align: left;
}

#two .section-wrapper h2 + p:first-of-type {
  max-width: 63rem;
  margin: 0 auto 12rem;
}

#two .section-wrapper h2 + p {
  max-width: 96rem;
  margin: 0 auto;
}
#two .section-wrapper .three-divs {
  max-width: 96rem;
  margin: 0 auto;
  margin-top: 14rem;
}
#two .section-wrapper .three-divs .three-divs--div {
  display: flex;
  align-items: center;
  margin-bottom: 14rem;
}

#two .section-wrapper .three-divs .three-divs--icon-wrapper {
  max-width: 144px;
  height: auto;
  width: 100%;
}

#two .section-wrapper .three-divs .three-divs--icon-wrapper + p {
  display: none;
  margin-left: 5rem;
  display: inline;
  text-align: left;
  max-width: 71rem;
}

#compliance {
  max-width: 96rem;
  margin: 0 auto;
}

.text-white {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
  text-decoration: none;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 5.7rem;
  margin-bottom: 4rem;
  font-family: "Barlow-SemiBold";
}
.text-white img {
  max-width: 34px;
}
.compliance {
  max-width: 187px;
  display: block;
  margin: 0 auto 6rem;
}

footer .section-wrapper {
  max-width: 130rem;
}
.black-logo {
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  display: block;
  margin-bottom: 3rem;
}
footer h2,
footer h2 a {
  color: var(--black);
  margin: 0;
  text-decoration: none;
}
footer p {
  color: var(--black);
  font-size: 1.8rem;
}

footer p:first-of-type {
  margin-top: 5rem;
}

.mobile-view {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-view {
    display: block;
  }
  /*start header menu*/
  body > header {
    height: 5.4rem;
    padding-top: 3em;
  }
  body > header nav a {
    font-size: 1.6rem;
  }
  .header-wrapper {
    padding: 0 1.4rem 0 2.9rem;
  }

  .brand {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin: 0;
  }
  .brand img {
    width: 14rem;
  }

  .nav-container {
    flex-direction: column;
    justify-content: center;
  }

  .nav-links-desktop {
    position: absolute;
    right: 0;
    height: 100vh;
    top: 0vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
    opacity: 0;
    z-index: 88;
  }

  .header-buttons {
    display: none;
  }

  .nav-links-burger {
    flex-direction: column;
    align-items: end;
  }

  .nav-links-burger li {
    opacity: 0;
    margin-bottom: 3rem;
    text-align: center;
  }

  .nav-links-burger li:has(.open-account) {
    margin-bottom: 3.2rem;
  }

  .nav-links-burger li a {
    margin-right: 0;
    font-size: 2rem;
  }

  .burger-wrapper-icon {
    display: flex;
    height: 5.9rem;
    width: 5.9rem;
    position: absolute;
    right: 0;
    top: 0;
    justify-content: center;
    align-items: center;
    z-index: 99;
    background-color: var(--gray);
  }

  .burger-wrapper-icon.open {
    background-color: var(--gray);
  }

  .burger {
    display: flex;
    z-index: 99;
    width: 2.4rem;
    height: 1.6rem;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .burger div {
    width: 100%;
    height: 1px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 10px;
  }

  .nav-active {
    transform: translateX(0%);
    opacity: 1;
  }

  @keyframes navLinkFade {
    from {
      opacity: 0;
      transform: translateX(50px);
    }

    to {
      opacity: 1;
      transform: translateX(0px);
    }
  }

  .burger.toggle {
    width: 26px;
    height: 26px;
    position: relative;
  }

  .burger.toggle:before {
    content: "";
    display: block;
    padding-top: 100%;
  }

  .toggle .line1,
  .toggle .line2 {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin-top: -2px;
    height: 1px;
    background-color: #fff;
    transform-origin: center;
  }

  .toggle .line1 {
    transform: rotate(45deg);
  }

  .toggle .line2 {
    transform: rotate(-45deg);
  }

  /*End header menu*/

  body > header nav a {
    padding: 0.3rem;
  }

  h1 {
    font-size: 4.4rem;
    line-height: 1.1;
  }
  .changing-heading {
    font-size: 4.4rem;
  }
  h2 {
    font-size: 3rem;
    line-height: 1.3;
  }

  p {
    line-height: 1.6;
    font-size: 1.6rem;
  }
  .changing-heading {
    width: auto;
  }

  #two .section-wrapper {
    padding-bottom: 7rem;
  }

  #two .section-wrapper .three-divs {
    margin-top: 7.6rem;
  }

  #two .section-wrapper .three-divs .three-divs--div {
    flex-direction: column;
    margin-bottom: 3rem;
  }
  #two .section-wrapper .three-divs .three-divs--icon-wrapper {
    margin-bottom: 2rem;
  }
  #two .section-wrapper .three-divs .three-divs--icon-wrapper + p {
    text-align: center;
    margin: 0;
  }
  .text-white {
    margin-bottom: 2rem;
  }

  footer {
    padding: 4rem;
  }
}
@media (max-width: 640px) {
  #one {
    background-size: 700px;
    background-position: center 8rem;
    height: 78rem;
  }
}
@media (max-width: 500px) {
  #one {
    background-image: url(./images/instanto-globe-144-AA-mob.gif);
    background-size: contain;
    background-position: center 15rem;
    height: 172vw;
    padding: 0;
  }
}

@media (max-width: 426px) {
  #one {
    background-position: center 16rem;
    height: 181vw;
  }
}
@media (max-width: 385px) {
  #one {
    background-position: center 19rem;
    height: 195vw;
  }
}
