/* icomoon icon font */
@font-face {
  font-family: 'icomoon';
  src: url('../fonts/icomoon.eot?86rdx2');
  src: url('../fonts/icomoon.eot?86rdx2#iefix') format('embedded-opentype'),
       url('../fonts/icomoon.ttf?86rdx2') format('truetype'),
       url('../fonts/icomoon.woff?86rdx2') format('woff'),
       url('../fonts/icomoon.svg?86rdx2#icomoon') format('svg');
  font-weight: 400;
  font-style: normal;
}

.ic {
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ic-fb:before       { content: "\e901"; }
.ic-instagram:before{ content: "\e903"; }
.ic-mail:before     { content: "\e904"; }

.ic-fb       { font-size: 1em;      position: relative; top: .11111em; }
.ic-instagram{ font-size: 1em;      position: relative; top: .16667em; }
.ic-mail     { font-size: .61111em; position: relative; top: 0; }

/* Bootstrap utilities used in the header */
.d-none                { display: none !important; }
.d-flex                { display: flex !important; }
.justify-content-center{ justify-content: center !important; }
.align-items-center    { align-items: center !important; }
.mt-3  { margin-top:    1em !important; }
.mx-0  { margin-right:  0   !important; margin-left: 0 !important; }
.mx-2  { margin-right:  .5em !important; margin-left: .5em !important; }
.pr-0  { padding-right: 0   !important; }

@media (min-width: 992px) {
  .d-lg-none        { display: none !important; }
  .d-lg-inline-flex { display: inline-flex !important; }
}

/* List resets */
.nav__list {
  list-style: none;
  list-style-position: inside;
  padding: 0;
  margin: 0;
}
.nav__list li { display: inline-block; }

/* Link icon */
.link--icon { position: relative; }
.link--icon .ic { margin-right: .22222em; }

/* text--white */
.text--white,
.header .nav__item a { color: #fff; }

/* ---- Header ---- */
.header {
  /* Match homepage's vw-based root font-size so all em values scale identically */
  font-size: .9375vw;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: all .3s cubic-bezier(.455,.03,.515,.955);
}
.header:before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 5.55556em;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOTIwIiBoZWlnaHQ9IjEwMCIgdmlld0JveD0iMCAwIDE5MjAgMTAwIj48cGF0aCBkPSJNMTE0OS4zIDcwYy0xMTYuOS4xLTEyNSAzMC0xODkuMyAzMHMtNzIuNC0yOS45LTE4OS4zLTMwSDBWMGgxOTIwdjcwaC03NzAuN3oiIGZpbGw9IiMwYjM0NzkiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==");
  background-position: bottom center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  pointer-events: all;
  opacity: 1;
  z-index: -1;
  transition: all .3s cubic-bezier(.455,.03,.515,.955);
}

.header__nav {
  height: 4.66667em;
  z-index: 10;
}

/* Logo */
.nav__logo {
  position: absolute;
  top: .72222em;
  left: 50%;
  transform-origin: center;
  transform: translateX(-50%);
  z-index: 1;
}
.nav__logo svg     { width: 5.33333em; height: 2.99em; }
.nav__logo #svgLogo path { fill: #fff !important; }

/* Nav lists (desktop) */
.nav__lists { width: 100%; }

.nav__list { position: absolute; }

.nav__list--left {
  left: calc(50% - 10em);
  transform: translate(-100%, 0);
}
.nav__list--right {
  left: calc(50% + 10em);
  transform: translate(0%, 0);
}

.nav__item {
  position: relative;
  text-align: center;
  margin: .55556em .55556em;
}
.nav__item a {
  display: block;
  padding: .61111em 1.11111em;
  color: #282d40;
  text-decoration: none;
  font-family: "Catamaran", sans-serif;
  font-weight: 300;
}
.nav__item:hover a { color: #00a7d6 !important; }
.nav__item.active a{ color: rgba(0,167,214,.5) !important; }

/* Hamburger toggle (hidden on desktop) */
.nav__toggle {
  display: none;
  text-transform: uppercase;
  user-select: none;
  position: absolute;
  right: 1em;
  top: 1em;
  z-index: 101;
  padding: 6px 8px 8px 19px;
  line-height: 1;
  background: none;
  border: none;
  color: #fff !important;
  transition: all .3s cubic-bezier(.455,.03,.515,.955);
  cursor: pointer;
  font-family: "Catamaran", sans-serif;
  font-weight: 600;
  font-size: .88889em;
}
.nav__toggle .nav__text { display: inline-block; }

.nav__hamburger,
.nav__hamburger:before,
.nav__hamburger:after {
  width: 14px;
  height: 2px;
  background-color: #fff;
  border-radius: 0;
  transition-property: background-color, transform;
  transition-duration: .3s;
}
.nav__toggle .nav__hamburger {
  position: absolute;
  top: 42%;
  left: 0;
  transform: translate(0, -50%);
  user-select: none;
}
.nav__toggle .nav__hamburger:before,
.nav__toggle .nav__hamburger:after {
  display: block;
  position: absolute;
  content: "";
}
.nav__toggle .nav__hamburger:before { top: -5px; }
.nav__toggle .nav__hamburger:after  { top:  5px; }

.nav__toggle.is-active { color: #fff; }
.nav__toggle.is-active .nav__hamburger { background-color: transparent; }
.nav__toggle.is-active .nav__hamburger:before,
.nav__toggle.is-active .nav__hamburger:after { background-color: #fff; }
.nav__toggle.is-active .nav__hamburger:before { transform: translateY(5px)  rotate(45deg); }
.nav__toggle.is-active .nav__hamburger:after  { transform: translateY(-5px) rotate(-45deg); }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .header      { font-size: 14px; }
  .header__nav { height: 5.35714em; }

  .nav__lists {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    background: #0b3479;
    max-height: 0;
    transition: all .3s cubic-bezier(.455,.03,.515,.955);
    display: inline-block;
    text-align: center;
    opacity: 0;
    padding: 0 .5em;
    pointer-events: none;
    z-index: -1;
    border-bottom: 1px solid rgba(255,255,255,.5);
  }

  .nav__list {
    position: static;
    display: flex;
    flex-direction: column;
    transform: translate(0, 0) !important;
  }
  .nav__list:last-child .nav__item:last-child { margin-top: 2em; }

  .nav__item        { margin: .25em 0; }
  .nav__item:after  { display: none; }

  .nav__toggle { display: block; }
  .nav__toggle.is-active + .nav__lists {
    opacity: 1;
    pointer-events: all;
    max-height: 100vh;
    padding: 6em .5em 2em;
  }
}

@media (max-width: 767.98px) {
  .header { font-size: 12px; }
}

@media (max-width: 575.98px) {
  .header__nav { height: 3.57143em; }
  .nav__logo     { top: .85714em; }
  .nav__logo svg { width: 4.64286em; height: 2.60286em; }
  .nav__toggle   { font-size: 18px; padding: 5px 8px 8px 20px; }
}

@media (orientation: landscape) and (max-width: 991px) {
  .nav__list   { display: inline-block; }
  .nav__item   { margin: .5em; }
  .nav__item a { font-size: 10px; padding: .5em; }
  .nav__toggle { font-size: 12px; padding: 7px 8px 8px 15px; }

  .nav__toggle .nav__hamburger,
  .nav__toggle .nav__hamburger:before,
  .nav__toggle .nav__hamburger:after {
    width: 10px;
    height: 1px;
    background-color: #0b3479;
  }
  .nav__toggle .nav__hamburger:before { top: -3px; }
  .nav__toggle .nav__hamburger:after  { top:  3px; }
  .nav__toggle.is-active .nav__hamburger { background-color: transparent; }
  .nav__toggle.is-active .nav__hamburger:before,
  .nav__toggle.is-active .nav__hamburger:after { background-color: #fff; }
  .nav__toggle.is-active .nav__hamburger:before { transform: translateY(3px)  rotate(45deg); }
  .nav__toggle.is-active .nav__hamburger:after  { transform: translateY(-3px) rotate(-45deg); }
}
