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

*, a {
  -webkit-tap-highlight-color: transparent !important;
}

body, html {
  font-family: "Montserrat", serif;
  font-style: normal;
  font-weight: 300;
  font-size: 20px;
}

@media screen and (max-width: 980px) {
  body, html {
    font-size: 18px;
  }
}

@media screen and (max-width: 767px) {
  body, html {
    font-size: 16px;
  }
}

a {
  text-decoration: none;
}

a, div {
  -webkit-tap-highlight-color: transparent;
}

a[href^="tel"] {
  color: inherit;
}

h2 {
  font-family: "Roboto Serif", serif;
  font-style: normal;
  font-weight: 400;
  font-size: 3.89rem;
  line-height: 4.5rem;
  color: #2E2826;
}

h3 {
  font-family: "Roboto Serif", serif;
  font-style: normal;
  font-weight: 400;
  font-size: 3.35rem;
  line-height: 3.8rem;
  color: #2E2826;
}

p {
  text-align: left;
  font-family: "Montserrat", serif;
  font-style: normal;
  font-weight: 300;
  color: #2E2826;
  font-size: 1rem;
  line-height: 1.8rem;
}

.container {
  width: calc(100% - 5rem);
  max-width: 1800px;
  margin: 0 auto;
}

.container-inner {
  width: calc(100% - 5rem);
  max-width: 1640px;
  margin: 0 auto;
}

/***** TEXT ANIMATION *****/
.split {
  overflow: hidden;
}

/***** HERO *****/
.inner .top-space {
  height: 170px;
}

.inner header {
  background: #fff;
}

.inner .s1 {
  position: relative;
  height: 595px;
}

.inner .s1 .container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.inner .s1 h1 {
  font-family: "Roboto Serif", serif;
  font-style: normal;
  font-weight: 400;
  font-weight: 200;
  font-size: 5rem;
  line-height: 5.6rem;
  color: #fff;
}

.inner .s1 .hero-knot {
  width: 40vw;
  height: 55vh;
  background: url(/i/bot-knot-hero-2.png) no-repeat center/contain;
  position: absolute;
  bottom: -40vh;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.inner .s1.--active .hero-knot {
  opacity: 1;
  transition: opacity .25s ease .5s;
}

#team #container .s1 {
  background: url(/i/team-hero-parallax.jpg) no-repeat center/cover fixed;
}

#better-way #container .s1 {
  background: url(/i/a-better-way-hero.jpg) no-repeat center/cover fixed;
}

#our-approach #container .s1 {
  background: url(/i/our-approach-hero-parallax.jpg) no-repeat center/cover fixed;
}

#contact #container .s1 {
  background: url(/i/contact-us-hero.jpg) no-repeat center/cover fixed;
}

#human-capital #container .s1 {
  background: url(/i/human-capital-hero.jpg) no-repeat center/cover fixed;
}

#resource-library #container .s1 {
  background: url(/i/resource-library-hero.jpg) no-repeat center/cover fixed;
}

/***** FORM *****/
form input, form textarea {
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

form input:focus, form textarea:focus, form button:focus, form select:focus {
  outline: none;
}

/***** HEADER *****/
header {
  width: 100%;
  position: fixed;
  background-color: transparent;
  transition: background-color .3s ease;
  z-index: 101;
}

header .top {
  z-index: 1;
  position: relative;
  transition: background-color .3s ease;
}

header .top .secTopNav {
  list-style: none;
  display: -webkit-flexbox;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  position: relative;
  gap: 2.7rem;
  padding: 1.27rem 0;
  border-bottom: solid 1px rgba(126, 133, 139, 0.5);
  transition: padding .3s ease;
}

header .top .secTopNav a {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #7E858B;
  transition: color .3s ease;
}

header .top .secTopNav a:hover {
  color: #2E2826;
}

header .top .secTopNav .selNav a {
  color: #a5bfd3;
}

header .bottom {
  z-index: 1;
  position: relative;
}

header .bottom .container {
  display: -webkit-flexbox;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 1.27rem 0;
  transition: padding .3s ease;
}

header .bottom .logo {
  display: block;
  width: 320px;
  height: 66px;
  background: url(/i/JFG_logo.png) no-repeat center/contain;
  transition: width .3s ease;
}

header .bottom .menu_container {
  display: -webkit-flexbox;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

header .bottom .menu_container span {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-transform: uppercase;
  color: #2E2826;
  transition: color .3s ease;
}

header .bottom .menu_container #menu_btn {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  width: 54px;
  height: 54px;
  background: url(/i/svg/menu-icon.svg) no-repeat center/contain;
  cursor: pointer;
}

header nav {
  opacity: 0;
  visibility: hidden;
  width: 0;
  height: 0;
  min-height: -webkit-fill-available;
  position: fixed;
  top: 0;
  left: 0;
  background: #5C676F;
  transition: opacity .3s ease;
}

header nav .topNav {
  width: calc(100% - 2rem);
  max-width: 1600px;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  top: 55%;
  list-style: none;
}

header nav .topNav a {
  display: inline-block;
  font-family: "Roboto Serif", serif;
  font-style: normal;
  font-weight: 400;
  font-size: 2.23rem;
  line-height: 3rem;
  color: #fff;
  padding-bottom: 3rem;
  transition: opacity .5s ease;
}

header nav .topNav .mobile {
  display: none;
}

header nav .topNav .selNav a {
  color: #a5bfd3;
}

header nav .mark {
  width: 100%;
  max-width: 680px;
  display: block;
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  right: 8%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

header nav .mark.active {
  opacity: 1;
  visibility: visible;
}

header.scroll:not(.active) {
  background: #fff;
}

header.scroll:not(.active) .top .secTopNav {
  padding: 0.9rem 0;
}

header.scroll:not(.active) .bottom .logo {
  width: 260px;
}

header.scroll:not(.active) .bottom .container {
  padding: 0.9rem 0;
}

/****** HEADER ACTIVE ******/
header.active .top {
  background-color: #7E858B;
}

header.active .top .secTopNav a {
  color: #fff;
}

header.active .bottom .logo {
  background-image: url(/i/svg/JFG_logo_wh.svg);
}

header.active .bottom .menu_container span {
  color: #fff;
}

header.active .bottom .menu_container #menu_btn {
  background-image: url(/i/svg/menu-close-icon.svg);
}

header.active nav {
  opacity: 1;
  visibility: visible;
  width: 100%;
  height: 100vh;
}

/***** FOOTER *****/
footer {
  padding: 8.3rem 0 3.05rem 0;
  background: #5C676F;
  position: relative;
  z-index: 11;
}

footer p, footer a, footer h4 {
  color: #fff;
}

footer .top {
  display: -webkit-flexbox;
  display: -ms-flexbox;
  display: flex;
  gap: 2rem;
  border-bottom: solid 1px #A4A9AC;
  padding-bottom: 2rem;
  margin-bottom: 4rem;
}

footer .top .logo {
  display: block;
  width: 130px;
  min-width: 130px;
  height: 130px;
  background: url(/i/svg/knot-footer.svg) no-repeat center/cover;
}

footer .top .nav {
  width: 60%;
  max-width: 1000px;
  border-right: solid 1px #A4A9AC;
}

footer .top .nav ul {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
  display: -webkit-flexbox;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

footer .top .nav ul li {
  width: 50%;
}

footer .top .nav ul li a {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3.2px;
  margin-bottom: 1.94rem;
  transition: color .3s ease;
}

footer .top .nav ul li a:hover {
  color: #fff;
}

footer .top .location {
  width: 40%;
}

footer .top .location > div {
  max-width: 370px;
  margin: 0 auto;
}

footer .top .location h4 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3.2px;
  margin-bottom: 1.33rem;
}

footer .top .location a {
  font-weight: 500;
  line-height: 1.4rem;
  transition: color .3s ease;
}

footer .top .location a:hover {
  color: #fff;
}

footer .bottom {
  max-width: 811px;
  margin: 0 auto;
}

footer .bottom p {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  text-align: center;
}

footer .bottom p:first-of-type {
  margin-bottom: 1rem;
}

.shade {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 101;
}

.crs-modal {
  display: none;
  width: calc(100% - 2rem);
  max-width: 700px;
  height: 500px;
  position: fixed;
  z-index: 101;
  background: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2rem;
}

.crs-modal > div {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

.crs-modal a {
  display: inline-block;
  text-align: center;
  font-size: 2rem;
  line-height: 2.5rem;
  margin-bottom: 1rem;
  color: #2E2826;
  transition: opacity .3s ease;
  padding-right: 30px;
  background: url(/i/svg/play-btn-icon-cl.svg) 100% 54%/8px no-repeat;
}

.crs-modal a:last-of-type {
  margin-bottom: 0;
}

.crs-modal a:hover {
  opacity: 0.7;
}

.crs-modal .close {
  font-size: 1.5rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
  cursor: pointer;
  color: #2E2826;
}

/***** MEDIA *****/
@media screen and (max-width: 1100px) {
  h2 {
    font-size: 2.7rem;
    line-height: 3.5rem;
  }
  .inner .s1 {
    background-attachment: scroll !important;
  }
  .container, .container-inner {
    width: calc(100% - 2rem);
  }
  header .top .secTopNav {
    gap: 2rem;
  }
  header .bottom .logo {
    width: 280px;
  }
  header nav .mark {
    max-width: 550px;
    right: 1rem;
  }
  footer .top {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
  }
  footer .top .location {
    width: auto;
  }
  footer .top .location > div {
    max-width: none;
  }
  footer .top .nav {
    display: none;
  }
  .crs-modal {
    max-width: 600px;
    height: 400px;
  }
}

@media screen and (max-width: 980px) {
  header nav .mark {
    max-width: 400px;
  }
}

@media screen and (max-width: 850px) {
  header .top {
    display: none;
  }
  header .bottom .container {
    padding: 1rem 0;
    border-bottom: solid 1px rgba(126, 133, 139, 0.5);
  }
  header .bottom .menu_container span {
    display: none;
  }
  header .bottom .menu_container #menu_btn {
    width: 43px;
    height: 43px;
  }
  header nav .topNav {
    top: 50%;
  }
  header nav .topNav a {
    font-size: 1.7rem;
    line-height: 2.5rem;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
  }
  header nav .topNav .mobile {
    display: block;
  }
  header nav .topNav .mobile a {
    display: inline-block;
    min-width: 115px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #fff;
    padding-bottom: 0;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: solid 1px rgba(126, 133, 139, 0.5);
    transition: opacity .5s ease;
  }
  header nav .topNav .mobile:last-of-type a {
    border: none;
  }
  header nav .topNav .selNav a {
    color: #a5bfd3;
  }
  header nav .mark {
    display: none;
  }
  .inner .top-space {
    height: 97px;
  }
  .inner .s1 {
    height: 500px;
  }
  .inner .s1 h1 {
    font-size: 4rem;
    line-height: 4.6rem;
  }
}

@media screen and (max-height: 500px) {
  header.active nav {
    height: auto;
    padding: 7rem 0;
  }
  header.active .topNav {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: flex;
    flex-wrap: wrap;
  }
  header.active .topNav li {
    width: 50%;
  }
  header.active .topNav a {
    font-size: 1.3rem;
    line-height: 2rem;
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 767px) {
  h2 {
    font-size: 2rem;
    line-height: 2.7rem;
  }
  h3 {
    font-size: 1.8rem;
    line-height: 2.4rem;
  }
  header .bottom .logo {
    width: 200px;
    height: 43px;
  }
  header.scroll:not(.active) .bottom .logo {
    width: 200px;
  }
  .inner .top-space {
    height: 76px;
  }
  .inner .s1 {
    height: 450px;
  }
  .inner .s1 h1 {
    font-size: 3rem;
    line-height: 3.6rem;
  }
  .inner .s1 .hero-knot {
    display: none;
  }
  footer {
    padding: 5rem 0 3rem 0;
  }
  footer .top .logo {
    width: 100px;
    height: 100px;
    min-width: 100px;
  }
  .crs-modal {
    height: 300px;
  }
  .crs-modal a {
    font-size: 1.5rem;
    line-height: 2rem;
    padding-right: 20px;
    background-size: 6px;
  }
  .crs-modal .close {
    top: 1rem;
    right: 1rem;
  }
}

@media screen and (max-height: 800px) and (min-width: 767px) {
  header.active nav .topNav {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
  }
  header.active nav .topNav li {
    width: 100%;
  }
  header.active nav .topNav a {
    font-size: calc(1rem + 2vh);
    line-height: 1.3em;
    padding-bottom: calc(.5em + 1vh);
    margin-bottom: 0;
  }
}
