/* ==========================================================================
   Lighthouse mega navigation
   Rebuilt from nav.html.

   Everything is scoped to .lh-header so it cannot leak into the rest of the
   theme. No Bootstrap dependency - the handful of grid/navbar rules the
   original relied on are inlined below.

   Breakpoint: 992px desktop / 991.98px mobile.
   ========================================================================== */

.lh-header,
.lh-header *,
.lh-header *::before,
.lh-header *::after { box-sizing: border-box; }


/* --------------------------------------------------------------------------
   1. Header shell
   -------------------------------------------------------------------------- */

.lh-header {
  position: absolute;
  width: 100%;
  height: 70px;
  z-index: 1021;
  padding: 12px 5.5% 0;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  transition: background-color .2s linear;
}

.lh-header__inner {
  max-width: 1366px;
  margin: 0 auto;
  position: relative;
}

.lh-header .row {
  display: block;
  width: 100%;
  margin: 0;
}

/* Sticky variant - the default for this design. */
.lh-header.header-fixed {
  position: fixed;
  top: 0;
  background-color: #fff;
  border-bottom: 1px solid #e4e7eb;
  box-shadow: 3.716px 3.346px 40px 0 rgba(43, 43, 43, .1);
}

@media (max-width: 1280px) {
  .lh-header { width: 100%; padding-left: 4%; padding-right: 4%; }
}

@media (min-width: 1366px) {
  .lh-header { padding-left: 0; padding-right: 0; }
  .lh-header__inner { padding-left: 68px; padding-right: 68px; }
}


/* --------------------------------------------------------------------------
   2. Brand
   -------------------------------------------------------------------------- */

.lh-header .brand {
  position: absolute;
  top: -3px;
  height: 47px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.lh-header .brand img {
  width: 250px;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
  transition: width .3s ease;
}

.lh-header.is-scrolled .brand img { width: 200px; }

@media (max-width: 991.98px) {
  .lh-header .brand img,
  .lh-header.is-scrolled .brand img { width: 180px; }
}


/* --------------------------------------------------------------------------
   3. Nav container
   -------------------------------------------------------------------------- */

.lh-header .nav-main {
  width: calc(100% - 184px);   /* reserves room on the right for the CTA */
  display: flex;
  justify-content: flex-end;
}

.lh-header .nav-main .arrow { display: none; }

.lh-header .navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 0 7px 16px;
}

.lh-header .container-fluid {
  width: 100%;
  padding: 0;
  margin: 0 auto;
}

.lh-header .navbar-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-left: 0;
  margin: 0;
  list-style: none;
  font-weight: 400;
}

.lh-header .navbar-nav > li { margin-top: 4px; }

.lh-header .navbar-nav li {
  display: block;
  cursor: pointer;
  position: relative;
}

.lh-header .navbar-nav li > a,
.lh-header .navbar-nav li > span {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  padding-left: 15px;
  padding-right: 15px;
  color: #fff;
  text-decoration: none;
}

.lh-header .navbar-nav li > a svg,
.lh-header .navbar-nav li > span svg { transition: transform .5s ease; }

@media (max-width: 1040px) {
  .lh-header .navbar-nav li > a,
  .lh-header .navbar-nav li > span { padding-left: 10px; padding-right: 10px; }
}

@media (min-width: 992px) {
  .lh-header .navbar-nav > li:hover > a,
  .lh-header .navbar-nav > li:hover > span,
  .lh-header .navbar-nav > li:focus-within > a,
  .lh-header .navbar-nav > li:focus-within > span { opacity: .5; }

  .lh-header .navbar-nav > li.dropdown:hover > span,
  .lh-header .navbar-nav > li.dropdown.is-open > span { opacity: 1; }

  .lh-header .navbar-nav > li.dropdown:hover > span svg,
  .lh-header .navbar-nav > li.dropdown.is-open > span svg { transform: rotate(180deg); }
}

/* The theme injects sprite SVGs into menu titles via gg_icon_svg(). Those carry
   a viewBox but no width/height, so without this they render at the browser
   default (300x150). Excludes the caret, which is sized already. */
.lh-header .navbar-nav li > a svg:not(.lh-caret),
.lh-header .navbar-nav li > span svg:not(.lh-caret) {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 6px;
}

.lh-header .dropdown-menu-item-columns .title svg,
.lh-header .dropdown-menu-items-right .title svg {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 6px;
}

.lh-header .navbar-nav .dropdown { height: 55px; }

.lh-header .navbar-nav .dropdown > a svg,
.lh-header .navbar-nav .dropdown > span svg {
  vertical-align: bottom;
  margin-bottom: 7px;
  margin-left: 2.5px;
  overflow: hidden;
}


/* --------------------------------------------------------------------------
   4. Mega dropdown panel
   -------------------------------------------------------------------------- */

.lh-header .navbar-nav .dropdown .dropdown-menu {
  position: absolute;
  top: 47px;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-flow: row;
  min-width: 397px;
  padding-top: 17px;
  padding-bottom: 15px;
  font-size: 15.5px;
  font-weight: 600;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  transition: top .25s ease 0s, opacity .25s ease 0s;
}

@media (min-width: 992px) {
  .lh-header .navbar-nav .dropdown:hover > .dropdown-menu,
  .lh-header .navbar-nav .dropdown.is-open > .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    top: 35px;
  }
}

/* -- Left column ---------------------------------------------------------- */

.lh-header .dropdown-menu-left { min-width: 360px; }

.lh-header .dropdown-menu-items {
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  padding-bottom: 15px;
  list-style: none;
}

.lh-header .column-menu-items {
  width: 100%;
  min-width: 295px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lh-header .dropdown-menu-item-columns {
  display: flex;
  align-items: flex-start;
  min-width: 295px;
  font-size: 14.5px;
  font-weight: 600;
  color: #121212;
  background-color: #fff;
  padding: 17px 20px 13px;
  line-height: 14px;
  cursor: pointer;
  border-radius: 7px;
  transition: background-color .25s ease;
}

.lh-header .dropdown-menu-item-columns .icon {
  max-width: 35px;
  min-width: 35px;
  margin-right: 30px;
  margin-top: 2px;
  color: #3a4696;
}

.lh-header .dropdown-menu-item-columns .icon svg { width: 100%; height: auto; }

.lh-header .dropdown-menu-item-columns .title { line-height: 14px; }

.lh-header .dropdown-menu-item-columns .title a {
  color: #121212;
  text-decoration: none;
}

.lh-header .dropdown-menu-item-columns .desc {
  max-width: 200px;
  font-weight: 400;
  font-size: 13.33px;
  color: #82888c;
  line-height: 20px;
  margin-top: 7px;
}

.lh-header .dropdown-menu-item-columns .desc a { color: #82888c; text-decoration: none; }

@media (min-width: 992px) {
  .lh-header .dropdown-menu-item-columns.is-active,
  .lh-header .dropdown-menu-item-columns:hover { background-color: #f6f7f8; }
}

/* Featured promo block under the left column. */
.lh-header .dropdown-menu-featured-item {
  border-top: 1px solid #e2e9ee;
  margin-left: 0;
  padding: 15px 10px 0 15px;
}

.lh-header .dropdown-menu-featured-item .innerContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 10px 15px;
  border-radius: 7px;
}

.lh-header .dropdown-menu-featured-item .title {
  font-size: 12.67px;
  font-weight: 600;
  color: #121212;
}

.lh-header .dropdown-menu-featured-item .title img { max-width: 150px; height: auto; }

.lh-header .dropdown-menu-featured-item .desc {
  font-size: 12.67px;
  font-weight: 400;
  line-height: 20px;
  color: #82888c;
  padding-right: 15px;
}

.lh-header .dropdown-menu-featured-item .desc a { color: #82888c; text-decoration: none; }

.lh-header .dropdown-menu-featured-item .desc i { margin-right: 4px; }

.lh-header .dropdown-menu-featured-item .icon {
  max-width: 45px;
  min-width: 45px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #3a4696;
}

/* -- Right column --------------------------------------------------------- */

.lh-header .dropdown-menu-right {
  min-width: 220px;
  margin: -18px -2px -16px 0;
  padding: 17px 0 0 25px;
  background-color: #f6f7f8;
  color: #2b2b2b;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  cursor: auto;
  transition: all .3s ease;
}

.lh-header .dropdown-menu-items-right {
  padding: 0;
  margin: 0;
  list-style: none;
  display: none;
}

.lh-header .dropdown-menu-items-right.is-active { display: block; }

.lh-header .dropdown-menu-items-right > li {
  background-color: transparent;
  margin-left: 0;
  padding: 12px 0;
  font-size: 12.67px;
  font-weight: 400;
  line-height: 18px;
  color: #484a4f;
}

.lh-header .dropdown-menu-items-right > li a {
  color: #484a4f;
  text-decoration: none;
}

.lh-header .dropdown-menu-items-right > li:hover a { font-weight: 600; }

@media (min-width: 992px) {
  .lh-header .dropdown-menu-items-right:hover li:not(:hover) {
    opacity: .5;
    transition: opacity .25s;
  }
}


/* --------------------------------------------------------------------------
   5. Header actions - CTA, account, hamburger
   -------------------------------------------------------------------------- */

.lh-header .download-mobile {
  position: absolute;
  top: 4px;
  right: 0;
}

.lh-header .download-mobile a {
  display: block;
  margin-left: 15px;
  border: 1px solid #fff;
  font-size: 14px;
  padding: 6px 0;
  color: #fff;
  transition: all .25s ease-in-out;
  border-radius: 3px;
  font-weight: 500;
  width: 169px;
  height: 35px;
  line-height: 21px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.lh-header .download-mobile a:hover { color: #ecaa07; background-color: #fff; }

@media (max-width: 991.98px) {
  .lh-header .download-mobile { width: 130px; right: 50px; }
  .lh-header .download-mobile a { width: 130px; }
}

@media (min-width: 1366px) {
  .lh-header .download-mobile { right: 68px; }
}

.lh-header .login-btn {
  display: inline-block;
  padding-left: 15px;
  padding-right: 0;
  color: #fff;
}

.lh-header .signin_mobile { display: none; }

@media (max-width: 991.98px) {
  .lh-header .signin_mobile { display: block; }
  .lh-header .login-btn-item { display: none; }
}

.lh-header .menu-mobile-button {
  display: none;
  font-size: 30px;
  color: #fff;
  position: absolute;
  right: 0;
  top: 0;
}

@media (max-width: 991.98px) {
  .lh-header .menu-mobile-button { display: inline-block; }
}

/* Hamburger - the "collapse" animation, trimmed to what is actually used. */
.lh-header .hamburger {
  padding: 2px 0;
  display: inline-block;
  cursor: pointer;
  background: none;
  border: 0;
  transition-property: opacity, filter;
  transition-duration: .15s;
  transition-timing-function: linear;
}

.lh-header .hamburger:hover { opacity: .7; }

.lh-header .hamburger-box {
  width: 29px;
  height: 24px;
  display: inline-block;
  position: relative;
  padding-left: 13px;
  margin-bottom: 5px;
}

.lh-header .hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.lh-header .hamburger-inner,
.lh-header .hamburger-inner::before,
.lh-header .hamburger-inner::after {
  width: 17px;
  height: 2px;
  background-color: #fff;
  border-radius: 4px;
  position: absolute;
  transition-property: transform;
  transition-duration: .15s;
  transition-timing-function: ease;
}

.lh-header .hamburger-inner::before,
.lh-header .hamburger-inner::after { content: ""; display: block; }

.lh-header .hamburger-inner::before { top: -5px; }
.lh-header .hamburger-inner::after  { top: -10px; }

.lh-header .hamburger--collapse .hamburger-inner {
  top: auto;
  bottom: 0;
  transition-duration: .13s;
  transition-delay: .13s;
  transition-timing-function: cubic-bezier(.55, .055, .675, .19);
}

.lh-header .hamburger--collapse .hamburger-inner::after {
  top: -10px;
  transition: top .2s .2s cubic-bezier(.33333, .66667, .66667, 1), opacity .1s linear;
}

.lh-header .hamburger--collapse .hamburger-inner::before {
  transition: top .12s .2s cubic-bezier(.33333, .66667, .66667, 1),
              transform .13s cubic-bezier(.55, .055, .675, .19);
}

.lh-header .hamburger--collapse.is-active .hamburger-inner {
  transform: translate3d(0, -5px, 0) rotate(-45deg);
  transition-delay: .22s;
  transition-timing-function: cubic-bezier(.215, .61, .355, 1);
}

.lh-header .hamburger--collapse.is-active .hamburger-inner::after {
  top: 0;
  opacity: 0;
  transition: top .2s cubic-bezier(.33333, 0, .66667, .33333), opacity .1s .22s linear;
}

.lh-header .hamburger--collapse.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(-90deg);
  transition: top .1s .16s cubic-bezier(.33333, 0, .66667, .33333),
              transform .13s .25s cubic-bezier(.215, .61, .355, 1);
}


/* --------------------------------------------------------------------------
   6. White header variant
   -------------------------------------------------------------------------- */

.lh-header.header-white { background-color: #fff; }

.lh-header.header-white .navbar-nav > li > a,
.lh-header.header-white .navbar-nav > li > span { color: #121212; }

.lh-header.header-white .navbar-nav > li > a:hover,
.lh-header.header-white .navbar-nav > li > span:hover { color: #959595; }

.lh-header.header-white .navbar-nav > li > a svg polygon,
.lh-header.header-white .navbar-nav > li > span svg polygon { fill: #121212; }

.lh-header.header-white .login-btn { color: #121212; }

.lh-header.header-white .hamburger-inner,
.lh-header.header-white .hamburger-inner::before,
.lh-header.header-white .hamburger-inner::after { background-color: #000; }

/* Colour only. In nav.html the white variant also declared width:130px and
   40px side padding, but it lost on specificity to the base rule and never
   applied - applying it here would wrap "Get a quote" onto two lines. */
.lh-header.header-white .download-mobile a {
  transition: all .5s ease-in-out;
  font-weight: 900;
  background-color: #ecaa07;
  color: #3a4696;
  border: 1px solid #ecaa07;
  border-radius: 2px;
}

.lh-header.header-white .download-mobile a:hover {
  color: #121212;
  background-color: #fff;
}


/* --------------------------------------------------------------------------
   7. Mobile - under 992px
   -------------------------------------------------------------------------- */

/* Expand / collapse chevrons are desktop-hidden. */
.lh-header .dropdown .expand,
.lh-header .dropdown .collapse { display: none; }

@media (max-width: 991.98px) {

  .lh-header .nav-main {
    position: absolute;
    top: 40px;
    right: -2%;
    width: 345px;
    max-width: 400px;
    margin-top: 10px;
    padding-top: 12px;
    background-color: #fff;
    color: #000;
    border-radius: 5px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, .25);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity .25s ease-in-out, visibility .25s ease-in-out;
  }

  .lh-header .nav-main.is-open {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  /* Little pointer triangle up to the hamburger. */
  .lh-header .nav-main .arrow {
    display: inline;
    position: absolute;
    width: 0;
    height: 0;
    top: -9px;
    right: 1.5vw;
    margin-left: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
  }

  .lh-header .navbar {
    overflow: auto;
    max-height: calc(100vh - 70px);
    padding: 8px 21px 20px 19px;
  }

  .lh-header .navbar-nav { flex-direction: column; width: 100%; }

  .lh-header .navbar-nav > li {
    padding: 0;
    margin: 0 15px;
    height: auto;
    border-bottom: 1px solid #ced3d6;
  }

  .lh-header .navbar-nav > li:last-child { border-bottom: none; }

  .lh-header .navbar-nav li > a,
  .lh-header .navbar-nav li > span {
    text-transform: uppercase;
    line-height: 45px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    display: block;
    padding-left: 0;
  }

  .lh-header .navbar-nav li > a:hover,
  .lh-header .navbar-nav li > span:hover { opacity: .5; }

  .lh-header .navbar-nav .dropdown { height: auto; }
  .lh-header .navbar-nav .dropdown > span svg { display: none; }

  /* Panel becomes an in-flow accordion body. */
  .lh-header .navbar-nav .dropdown .dropdown-menu {
    position: relative;
    display: none;
    flex-flow: column;
    opacity: 1;
    pointer-events: auto;
    transition: none;
    top: 0;
    margin: 0 0 0 -1px;
    padding: 0 0 10px;
    min-width: 100%;
    border: 0;
    box-shadow: none;
  }

  .lh-header .navbar-nav .dropdown.is-open > .dropdown-menu { display: flex; }

  .lh-header .dropdown-menu-left,
  .lh-header .dropdown-menu-items,
  .lh-header .column-menu-items,
  .lh-header .dropdown-menu-item-columns { min-width: 100%; }

  .lh-header .dropdown-menu-items { flex-flow: column; padding-bottom: 0; }

  .lh-header .dropdown-menu-item-columns {
    padding: 12px 10px;
    margin: 0 10px 0 -10px;
    border-bottom: none;
    border-radius: 10px;
    font-size: 14px;
    line-height: 20px;
  }

  .lh-header .dropdown-menu-item-columns.is-active { background-color: #f6f7f8; }

  .lh-header .dropdown-menu-item-columns .icon { display: none; }

  .lh-header .dropdown-menu-item-columns .title { line-height: 20px; }

  .lh-header .dropdown-menu-item-columns .desc { font-size: 12px; line-height: 17px; }

  .lh-header .dropdown-menu-featured-item { display: none; }

  .lh-header .dropdown-menu-right {
    background-color: transparent;
    min-width: 100%;
    margin: 0;
    padding: 0 0 15px;
  }

  .lh-header .dropdown-menu-items-right > li {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #121212;
    padding: 12px 10px;
    margin: 0 10px 0 -10px;
    border-radius: 10px;
  }

  .lh-header .dropdown-menu-items-right > li a { font-size: 14px; font-weight: 600; color: #121212; }

  .lh-header .dropdown-menu-items-right > li:hover { background-color: #f6f7f8; }

  /* Accordion toggles. */
  .lh-header .dropdown .expand,
  .lh-header .dropdown .collapse {
    display: inline-block;
    position: absolute;
    top: 18px;
    right: 5px;
    width: 13px;
    height: 13px;
    transition: opacity .25s ease-in-out, transform .25s ease-in-out;
  }

  .lh-header .dropdown .expand { opacity: 1; transform: rotate(0); }
  .lh-header .dropdown .collapse { opacity: 0; transform: rotate(-90deg); }

  .lh-header .dropdown.is-open .expand { opacity: 0; transform: rotate(90deg); }
  .lh-header .dropdown.is-open .collapse { opacity: 1; transform: rotate(0); }

  .lh-header .dropdown .expand svg,
  .lh-header .dropdown .collapse svg { vertical-align: top; display: inline; }
}

@media (max-width: 767.98px) {
  .lh-header .nav-main { margin-top: 18px; }
}

@media (max-width: 400px) {
  .lh-header .nav-main { width: 100%; right: 0; border-radius: 0; }
}


/* --------------------------------------------------------------------------
   8. Spacer - the header is fixed, so push page content down.
   -------------------------------------------------------------------------- */

.lh-header-spacer { height: 82px; }
