/* Shared Gemstone header/navigation layer.
   The Venue-generated #cssmenu markup is used for both desktop and mobile. */

body {
  overflow-x: hidden;
}

body header,
body header *,
body header *::before,
body header *::after {
  box-sizing: border-box;
}

body #cssmenu ul,
body #cssmenu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

body #cssmenu ul ul {
  display: none;
}

body #cssmenu > ul > li.has-sub > a i.nav_plus,
body #cssmenu > ul > li > ul > li.has-sub > a i.nav_plus {
  float: right;
  display: inline-block;
}

body #cssmenu > ul > li.has-sub > a i.nav_minus,
body #cssmenu > ul > li > ul > li.has-sub > a i.nav_minus {
  float: right;
  display: none;
}

body #cssmenu > ul > li.has-sub.active > a i.nav_plus,
body #cssmenu > ul > li > ul > li.has-sub.active > a i.nav_plus {
  display: none;
}

body #cssmenu > ul > li.has-sub.active > a i.nav_minus,
body #cssmenu > ul > li > ul > li.has-sub.active > a i.nav_minus {
  display: inline-block;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

body header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;

  width: 100%;
  height: 68px;

  margin: 0;
  padding: 0;

  border: 0;

  background: #ffffff;

  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.1);
}


/* Old 40px black top strip removed completely */

body header::before {
  display: none !important;
  content: none !important;
}


/* =========================================================
   HEADER CONTENT
   ========================================================= */

body #header_content,
body.scroll #header_content {
  position: relative;
  top: 0;
  left: 0;

  width: 100%;
  max-width: 1180px;
  height: 68px;

  margin: 0 auto;
  padding: 0 26px;

  border: 0;

  background: transparent;
}


/* =========================================================
   LOGO
   ========================================================= */

body #header_content a.logo,
body #header_content a.logo.locked {
  position: absolute;
  z-index: 9;

  top: 5px;
  left: 26px;

  display: block;

  width: 145px;
  height: 58px;

  margin: 0;

  background-image: url("../images/Gemstone_Logo_Color.webp");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

body #header_content a.logo span {
  display: none;
}


/* =========================================================
   SOCIAL / PHONE BASE
   ========================================================= */

body #social_icons {
  position: absolute;
  z-index: 3;

  top: 0;
  right: 26px;
  left: auto;

  width: auto;
  height: 68px;

  margin: 0;

  color: #171a1b;

  font-family: "Arimo", Arial, sans-serif;

  line-height: 68px;

  text-align: right;
}

body #social_icons .call_today,
body #social_icons .phone {
  color: #171a1b;

  font-family: "Arimo", Arial, sans-serif;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0;

  line-height: 68px;
}

body #social_icons .phone:hover,
body #social_icons .phone:focus-visible {
  color: #67a9d2;
}


/* =========================================================
   REQUEST QUOTE BUTTON
   ========================================================= */

body .social_next {
  position: absolute;
  z-index: 5;

  top: 10px;
  right: 26px;

  width: auto;

  margin: 0;

  text-align: right;
}

body .social_next a.button {
  display: inline-flex;

  min-height: 47px;

  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 10px 20px;

  border: 2px solid transparent;
  border-radius: 0;

  background: #67a9d2;

  color: #ffffff !important;

  font-family: "Archivo Black", Impact, sans-serif;

  font-size: 11px;
  font-weight: 400;

  letter-spacing: 0.025em;

  line-height: 1.2;

  text-decoration: none;
  text-transform: uppercase;
}

body .social_next a.button:hover,
body .social_next a.button:focus-visible {
  border-color: #050505;

  background: #ffffff;

  color: #050505 !important;
}

body .social_next_2 {
  display: none;
}


/* =========================================================
   RESERVE SPACE FOR FIXED HEADER
   ========================================================= */

body header + div {
  padding-top: 68px;
}

body .hero-wrap {
  padding-top: 0;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1001px) {

  body #mobile_nav {
    display: none !important;
  }


  /* -------------------------------------------------------
     MAIN NAV
     ------------------------------------------------------- */

  body #cssmenu {
    position: absolute;
    z-index: 4;

    top: 50%;
    right: 350px;
    left: 188px;

    display: block !important;

    width: auto;
    height: 68px;

    margin: 0;
    padding: 0;

    background: transparent;

    transform: translateY(-50%);
  }


  /* -------------------------------------------------------
     PHONE
     ------------------------------------------------------- */

  body #social_icons {
    top: 10px;
    right: 210px;

    display: flex;

    width: auto;
    height: 47px;

    align-items: center;

    margin: 0;

    color: #171a1b;

    line-height: 1;

    transform: none;
  }

  body #social_icons > div {
    display: flex;

    height: 100%;

    align-items: center;
  }

  body #social_icons .call_today {
    display: none;
  }

  body #social_icons .phone {
    display: inline-flex;

    min-height: 47px;

    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border: 2px solid #67a9d2;

    background: #ffffff;

    color: #171a1b !important;

    font-family: "Archivo Black", Impact, sans-serif;

    font-size: 11px;
    font-weight: 400;

    letter-spacing: 0.025em;

    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;
  }

  body #social_icons .phone:hover,
  body #social_icons .phone:focus-visible {
    background: #67a9d2;

    color: #ffffff !important;

    text-decoration: none;
  }


  /* -------------------------------------------------------
     TOP LEVEL NAV
     ------------------------------------------------------- */

  body #cssmenu > ul {
    display: flex;

    width: 100%;
    height: 68px;

    align-items: center;
    justify-content: flex-end;

    margin: 0;
    padding: 0;

    gap: 3px;
  }

  body #cssmenu > ul > li {
    position: relative;

    display: block;

    float: none;

    width: auto;
    height: 68px;

    margin: 0;
    padding: 0;

    list-style: none;

    background: transparent;
  }

  body #cssmenu > ul > li > a {
    position: relative;

    display: flex;

    height: 68px;

    align-items: center;

    padding: 0 11px;

    background: transparent;

    color: #171a1b !important;

    font-family: "Arimo", Arial, sans-serif;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.035em;

    line-height: 1;

    text-decoration: none;
    text-transform: uppercase;

    white-space: nowrap;
  }

  body #cssmenu > ul > li > a > span {
    padding: 0;
  }


  /* -------------------------------------------------------
     ACTIVE / HOVER UNDERLINE
     ------------------------------------------------------- */

  body #cssmenu > ul > li > a::after {
    position: absolute;

    right: 11px;
    bottom: 10px;
    left: 11px;

    height: 3px;

    background: #67a9d2;

    content: "";

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.2s ease;
  }

  body #cssmenu > ul > li > a:hover,
  body #cssmenu > ul > li > a:focus-visible,
  body #cssmenu > ul > li > a.nav_active {
    background: transparent;

    color: #171a1b !important;
  }

  body #cssmenu > ul > li > a:hover::after,
  body #cssmenu > ul > li > a:focus-visible::after,
  body #cssmenu > ul > li > a.nav_active::after {
    transform: scaleX(1);
  }

  body #cssmenu li.dd.current,
  body #cssmenu > ul > li.active {
    background: transparent;
  }


  /* -------------------------------------------------------
     DROPDOWN
     ------------------------------------------------------- */

  body #cssmenu > ul > li > ul {
    position: absolute;

    top: 58px;
    left: 0;

    display: block;

    width: 275px;
    max-height: 70vh;

    margin: 0;
    padding: 8px 0;

    overflow-x: hidden;
    overflow-y: auto;

    background: #111111;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);

    color: #ffffff;

    opacity: 0;
    visibility: hidden;

    transform: translateY(7px);

    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0.18s ease;
  }

  body #cssmenu > ul > li:hover > ul,
  body #cssmenu > ul > li:focus-within > ul {
    opacity: 1;
    visibility: visible;

    transform: none;
  }

  body #cssmenu > ul > li > ul li {
    width: 100%;

    margin: 0;
    padding: 0;

    background: transparent;
  }

  body #cssmenu > ul > li > ul a {
    display: block;

    width: 100%;

    padding: 10px 18px;

    border-left: 3px solid transparent;

    background: transparent;

    color: #ffffff !important;

    font-family: "Arimo", Arial, sans-serif;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.35;

    text-decoration: none;
  }

  body #cssmenu > ul > li > ul a span {
    padding: 0;
  }

  body #cssmenu > ul > li > ul a:hover,
  body #cssmenu > ul > li > ul a:focus-visible,
  body #cssmenu > ul > li > ul a.nav_active {
    border-left-color: #67a9d2;

    background: #252525;

    color: #ffffff !important;
  }

}


/* =========================================================
   NARROW DESKTOP
   ========================================================= */

@media (max-width: 1120px) and (min-width: 1001px) {

  body #header_content a.logo,
  body #header_content a.logo.locked {
    width: 132px;
  }

  body #cssmenu {
    right: 350px;
    left: 168px;
  }

  body #cssmenu > ul > li > a {
    padding-right: 8px;
    padding-left: 8px;
  }

}


/* =========================================================
   TABLET / MOBILE HEADER
   ========================================================= */

@media (max-width: 1000px) {

  body header,
  body #header_content,
  body.scroll #header_content {
    height: 78px;
  }

  body #header_content,
  body.scroll #header_content {
    max-width: none;

    padding-right: 22px;
    padding-left: 22px;
  }


  /* -------------------------------------------------------
     MOBILE LOGO
     ------------------------------------------------------- */

  body #header_content a.logo,
  body #header_content a.logo.locked {
    position: absolute;

    top: 10px;
    right: auto;
    left: 22px;

    width: 128px;
    height: 56px;

    margin: 0;
  }


  /* -------------------------------------------------------
     REMOVE OLD BLACK-BAR PHONE AREA ON MOBILE
     ------------------------------------------------------- */

  body #social_icons {
    display: none !important;
  }

  body .social_next {
    display: none;
  }


  /* -------------------------------------------------------
     MOBILE MENU BUTTON
     ------------------------------------------------------- */

  body header #mobile_nav {
    position: absolute;
    z-index: 500;

    top: 17px;
    right: 22px;
    left: auto;

    display: block;

    width: 44px;
    height: 44px;

    margin: 0;
    padding: 0;

    background: #050505;
  }

  body .mobile-nav-toggle {
    position: absolute;

    top: 12px;
    right: 7px;

    width: 30px;
    height: 25px;

    padding: 0;
  }

  body .mobile-nav-toggle .top-bar,
  body .mobile-nav-toggle .middle-bar,
  body .mobile-nav-toggle .bottom-bar {
    position: absolute;

    width: 30px;
    height: 3px;

    background: #ffffff;
  }

  body .mobile-nav-toggle .top-bar {
    top: 0;
  }

  body .mobile-nav-toggle .top-bar,
  body .mobile-nav-toggle .bottom-bar {
    transition: transform 0.1s 0.1s ease-in-out;
  }

  body .mobile-nav-toggle .middle-bar {
    top: 7px;
    transition: opacity 0s 0.1s linear;
  }

  body .mobile-nav-toggle .bottom-bar {
    top: 14px;
  }

  body div.mobile-nav-toggle.open .top-bar,
  body div.mobile-nav-toggle.open .bottom-bar {
    top: 7px;

    background: #ffffff;
  }

  body div.mobile-nav-toggle.open .top-bar {
    transform: rotate(45deg);
  }

  body div.mobile-nav-toggle.open .middle-bar {
    background: #ffffff;
    opacity: 0;
  }

  body div.mobile-nav-toggle.open .bottom-bar {
    transform: rotate(-45deg);
  }


  /* -------------------------------------------------------
     MOBILE NAV PANEL
     ------------------------------------------------------- */

  body #cssmenu {
    position: fixed;
    z-index: 999;

    top: 78px;
    right: 0;
    left: 0;

    width: 100%;
    max-height: calc(100vh - 78px);

    margin: 0;

    padding: 15px 22px 25px;

    overflow-x: hidden;
    overflow-y: auto;

    background: #ffffff;

    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  }

  body #cssmenu > ul,
  body #cssmenu > ul > li {
    width: 100%;

    margin: 0;
    padding: 0;
  }

  body #cssmenu > ul > li,
  body #cssmenu > ul > li > a {
    background: #ffffff;
  }

  body #cssmenu > ul > li > a {
    display: block;

    width: 100%;

    padding: 13px 5px;

    color: #171a1b !important;

    font-family: "Arimo", Arial, sans-serif;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.25;
  }

  body #cssmenu > ul > li > a > span {
    padding: 0;
  }


  /* -------------------------------------------------------
     MOBILE SUBMENUS
     ------------------------------------------------------- */

  body #cssmenu > ul > li > ul {
    position: static;

    width: 100%;
    max-height: none;

    margin: 0;
    padding: 0;

    background: #f3f5f5;

    box-shadow: none;
  }

  body #cssmenu > ul > li > ul li {
    width: 100%;

    margin: 0;
    padding: 0;
  }

  body #cssmenu > ul > li > ul a {
    display: block;

    width: 100%;

    padding: 11px 15px 11px 25px;

    background: #f3f5f5;

    color: #171a1b !important;

    font-family: "Arimo", Arial, sans-serif;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.35;
  }

  body #cssmenu > ul > li > ul a span {
    padding: 0;
  }

  body #cssmenu > ul > li > ul ul a {
    padding-left: 40px;

    background: #e7eef1;

    color: #171a1b !important;
  }

  body #cssmenu a:hover,
  body #cssmenu a:focus-visible,
  body #cssmenu a.nav_active {
    background: #dbe8ee;

    color: #171a1b !important;
  }


  /* -------------------------------------------------------
     FIXED HEADER SPACING
     ------------------------------------------------------- */

  body header + div {
    padding-top: 78px;
  }

  body .hero-wrap {
    padding-top: 0;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 650px) {

  body #social_icons,
  body #social_icons .call_today {
    display: none !important;
  }

}
