/* ----------------------------------------------------------*/
/* General Styles
/* ----------------------------------------------------------*/

:root {
  --header-height: 5.375rem;
}

.header {
  transition: all 0.3s;
  background: white;
}

.header.header--v2 {
  height: var(--header-height);
  align-items: center;
  display: flex;
}

.header__inner {
  position: relative;
}

.header__menu {
  display: block;
  height: calc(100dvh - var(--header-height));
  left: -100%;
  overflow: auto;
  top: var(--header-height);
  transition: all 0.3s;
}

.header__menu.no-transition,
.header__menu__sticky-bar.no-transition {
  transition: none !important;
}

.header__menu a,
.header__menu button {
  -webkit-tap-highlight-color: transparent;
}

.header__menu-wrapper {
  width: 100%;
  background: white;
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  display: flex;
  -webkit-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
  left: -100dvw;
}

.menu-open .header__menu-wrapper {
  display: flex;
  left:0;
}

@media (min-width: 768px) {
  .menu-open .header__menu-wrapper {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 1.5rem;
  }
}

.header__menu__sticky-bar {
  display: grid;
  -webkit-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
  left: -100dvw;
  bottom: 0;
  background: white;
  padding: 1rem 1.5rem;
  position: fixed;
  gap: 0.5rem;
  width: 100%;
  z-index: 1000;
  grid-template-columns: repeat(2, auto) 3.5rem;
}
.header__menu__sticky-bar .button {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.menu-open .header__menu__sticky-bar {
  left:0;
}

.header__menu-list {
  flex-direction: column;
  width: 100%;
  margin: 0;
  display: none;
}

@media (max-width: 767px) {
  .header__menu-list.active {
    display: flex;
  }
}

/* @media (min-width: 768px) {
.header__menu-list {
display: none;
}
} */

.header__nav-item-list {
  margin: 0;
  gap: 1rem;
  display: flex;
  flex-direction: column;
}

.header__menu-list li {
  list-style: none;
}

.header__menu-button {
  align-items: center;
  background: transparent;
  border: none;
  color: var(--color-blue-500);
  cursor: pointer;
  display: flex;
  font-family: var(--font-family-heading);
  font-size: 22px;
  font-weight: var(--font-weight-light);
  justify-content: space-between;
  outline: none;
  padding: 1rem 1.5rem;
  text-decoration: none;
  width: 100%;
}

.header__menu-pane {
  display: none;
  padding: 0;
  width: 100%;
}

.header__menu-pane-content {
  overflow-y: auto;
  height: calc(100vh - 9.5rem);
  padding-bottom: 5rem;
}

@media (max-width: 767px) {
  .header__menu-pane-content {
    padding-bottom: 7.5rem;
  }
}

.header__menu-pane .nav__list-item p {
  margin: 0;
  color: var(--color-blue-500);
}

.header__menu-pane.active {
  display: block;
}

.header__menu-pane-inner {
  width: 100%;
}

/* @media all and (max-width: 767px) {
.menu-open .header__menu-list {
display: block;
}
} */

.header__menu-back-button {
  align-items: center;
  background: transparent;
  border: none;
  color: var(--color-blue-400);
  cursor: pointer;
  display: flex;
  font-weight: 500;
  gap: 1rem;
  outline: none;
  padding: 1.25rem 1.5rem;
  width: 100%;
}

.header__menu-back-button:hover {
  background: var(--color-grey-xlight);
}

@media (min-width: 768px) {
  .header__menu-back-button {
    display: none;
  }
}

.header__menu-sidebar {
  background-color: var(--color-white);
  padding: 0.75rem 0 0;
  width: 100%;
  display: none;
}

@media (min-width: 768px) {
  .header__menu-sidebar {
    display: block;
  }
}

.header__menu-sidebar__list {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.header__menu-sidebar__button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1rem 1.5rem;
  /* width: 100%; */
  color: var(--color-blue-500);
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
  position: relative;
}

.header__menu-sidebar__button .nav__underline {
  left: 1.5rem;
}

.header__menu-sidebar__button:hover .nav__underline,
.header__menu-sidebar__button.active .nav__underline {
  width: calc(100% - 3rem);
} 



/* ----------------------------------------------------------*/
/* CTA Card                                                  */
/* ----------------------------------------------------------*/
.cta-card {
  color: var(--black);
  border-radius: 0.5rem;
  background-color: var(--grey-xlight);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
  min-height: 520px;
  overflow: hidden;
}

.cta-card__headline {
  font-size: 2.25rem;
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-light);
}

.cta-card__headline--small {
  font-size: 22px;
}

.cta-card__actions {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  margin-top: auto;
}

.cta-card__actions .button--secondary {
  color: var(--white);
  width: auto;
  display: inline-block;
}

.cta-card__rich-text p {
  margin: 0;
}

.cta-card__rich-text p:empty {
  display: none;
}

.cta-card__label {
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%; /* 19.6px */
  letter-spacing: 0.42px;
}

.cta-card__title {
  color: var(--color-blue-500);
  font-size: 22px;
  line-height: 140%;
  letter-spacing: 0.66px;
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-light);
  display:block;
}

.cta-card__image {
  position: absolute;
  bottom: 0;
  left: 2.5rem;
  height: 16rem;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: calc(100% - 2rem);
}

.cta-card__link-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style-type: none;
  margin: 0;
}

.cta-card__link-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.cta-card__link-list li a {
  text-decoration: none;
  padding: 0;
  color: var(--color-blue-500);
}

.cta-card__link-list li a[href^="mailto:"] {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}
.cta-card__link-list li a[href^="mailto:"]:hover {
  text-decoration: none;
}


/* CTA Card: Demo (About)*/

.cta-card--demo {
  position: relative;
}

.cta-card--demo .cta-card__actions {
  margin-top: unset;
}

/* CTA Card: Stories*/

.cta-card--stories {
  position: relative;
  background-size: cover;
  background-position: center;
  justify-content: flex-end;
}

.cta-card--stories:before {
  content: "";
  background: linear-gradient(0deg, #033246 30.42%, rgba(3, 50, 70, 0) 68.2%);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
}

.cta-card--stories * {
  color: white;
  position: relative;
  z-index: 1;
}

.cta-card--stories .cta-card__actions {
  margin-top: unset;
}

.cta-card--stories .cta-card__actions .btn-arrow {
  color: white;
}

.cta-card--stories .cta-card__actions .btn-arrow svg path {
  fill: white;
}

/* CTA Card: Latest Blog*/

.cta-card--blog {
  background-color: var(--grey-xlight);
  background-image: url("https://8754174.fs1.hubspotusercontent-na1.net/hubfs/8754174/Vector%20(2).svg");
  background-repeat: no-repeat;
  background-size: 320px 320px;
  background-position: bottom right;
  padding: 2rem;
}

.cta-card--blog * {
  color: var(--black);
}

.cta-card--blog p {
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
}

.cta-card--blog .cta-card__title {
  font-style: italic;
  font-family: var(--font-family-heading);
}

/* CTA Card: Latest News*/

/* CTA Card: Buttons (2 row grid) */

.cta-card-grid {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  min-height: 520px;
}

.cta-card--schedule-demo {
  min-height: auto;
}

.cta-card--schedule-demo span {
  font-family: var(--font-family-body);
  font-size: 1.5rem;
  color: white;
}

.cta-card--schedule-demo {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.30) 100%), linear-gradient(0deg, #033246 30.42%, rgba(3, 50, 70, 0) 68.2%), url('https://8754174.fs1.hubspotusercontent-na1.net/hubfs/8754174/Header%20(Mega%20Menu)/schedule-demo-hero-bg.jpg') no-repeat;
  background-size: cover;
  border-radius: 4px;
}

.cta-card--contact {
  background-color: var(--grey-xlight);
  background-image: url("https://8754174.fs1.hubspotusercontent-na1.net/hubfs/8754174/Vector%20(2).svg");
  background-repeat: no-repeat;
  background-size: 140px 140px;
  background-position: bottom right;
  min-height: auto;
}

/* Button Arrow */

.btn-arrow {
  align-items: center;
  color: var(--grey-dark);
  display: flex;
  padding: 1rem 0;
  position: relative;
  text-decoration: none;
  font-weight: 500;
  gap: 0.5rem;
}

.btn-arrow svg {
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.btn-arrow path {
  fill: var(--grey-dark);
}

.btn-arrow:hover svg {
  transform: translateX(5px);
}


/* TODO: See if we can avoid this !important declaration, 
seems to be due to the resulting display state post a jQuery slide animation. */
.header .nav__list-lvl-2__wrapper {
  display: grid !important;
  grid-template-columns: 1fr max-content;
  gap: 3rem;
}

.header .nav__list-lvl-2__wrapper .links-wrapper ul {
  width: 100%;
  margin: 0;
  padding-left: 20px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.header .cta-wrapper {
  max-width: 472px;
  width: 100%;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.header .header__menu .cta-wrapper {
  padding: 1.25rem;
  max-width: none;
}

.header .cta-wrapper .button {
    padding: 1rem 1.25rem
}

@media all and (min-width: 769px) {
  .header .cta-wrapper .button {
    padding: 1rem 1.5rem
  }
}

@media (min-width: 900px) {
  .header .header__menu {
    display: none;
  }
}

.header .header__menu .nav__list {
  gap: 0;
}

.header__nav-item-list {
  list-style-type: none;
}

@media (min-width: 900px) {
  .header .header__menu .nav__list {
    gap: 1rem;
    display: none;
  }
}

.header .header__menu .nav__list .nav__list-item a {
  justify-content: space-between;
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: var(--font-size-large);
}

/* TODO: Clarify this selector, it's suggesting there is an anchor in an anchor which would be a problem */

.header__menu .nav__list .nav__list-item a:first-child a {
  border-top: 0;
}

.header__menu .nav__list--level-2 {
  border-top: 0;
  margin-bottom: 0.75rem;
}

.header__menu .nav__list--level-2 a {
  border-top: 0;
  font-size: var(--font-size-medium);
  font-weight: var(--font-weight-normal);
  padding: 0.75rem 0.7rem;
}

.header .header__logo-desktop {
  display: none;
}

.header .header__logo-mobile {
  display: block;
} 

@media (min-width: 900px) {
  .header .header__logo-desktop {
    display: block;
  }

  .header .header__logo-mobile {
    display: none;
  }
}

.nav__list {
  margin: 0;
}

.nav__list-item {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.nav__list-item.mobile-nav-item {
  padding: 0 1.25rem;
}

.nav__list-item.mobile-nav-item .content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Header Actions */
.header__actions {
  gap: 0;
}

.menu-open .header__actions {
  display: none;
}

@media (min-width: 900px) {
  .header__actions {
    display: flex;
  }
}

.header__actions a {
  font-size: var(--font-size-medium);
}

.header__actions a:first-of-type {
  padding-right: 2rem;
}

.nav__list a {
  padding: 0;
}

.nav__list-item a.nav__list-link-lvl-1 {
  padding: 0.75rem 1rem;
  position: relative;
  text-decoration: none;
}

.nav__list-item__description-desktop {
  display: none;
}

@media (min-width: 900px) {
  .nav__list-item__description-mobile {
    display: none;
  }

  .nav__list-item__description-desktop {
    display: block;
  }
}

.nav__underline {
  position: absolute;
  /* bottom: 3px; */
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: 2px;
  transition: width 0.3s ease-in-out;
  width: 0;
}

.nav__underline-stroke {
  width: 100%;
  height: 2px;
  background: transparent url('https://8754174.fs1.hubspotusercontent-na1.net/hubfs/8754174/Header%20(Mega%20Menu)/nav-underline-final@2x.png') repeat-x left center;
}

.nav__underline-stroke:after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent 80%, white);
}

.nav__list-item.active .nav__list-link-lvl-1 .nav__underline {
  width: 100%;
} 

@media (min-width: 900px) and (max-width: 1200px) {
  .nav__list-item a {
    font-size: var(--font-size-normal);
  }
}

@media (min-width: 900px) {
  .nav__list-item a.nav__list-link-lvl-1 {
    padding: 2rem 1rem;
  }
}

.nav__list-item .nav__list-item__children_arrow {
  display: flex;
  transform: rotate(0deg);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

/* Nav List (Level 2) */

.nav__list--level-2 .nav__list-item a {
  text-decoration: none;
}

.nav__list-item.nav__list-item__has_children .nav__list--level-2 {
  left: 50%;
  transform: translateX(0);
  border-radius: 12px;
  width: 100%;
  max-width: 79rem;
  overflow: hidden;
}

@media (min-width: 900px) {
  .nav__list-item.nav__list-item__has_children .nav__list--level-2 {
    transform: translateX(-50%);
  }
}

.nav__list-item.nav__list-item__has_children:hover .nav__list--level-2,
.nav__list-item.nav__list-item__has_children.active .nav__list--level-2{
  z-index: 1;
  visibility: visible;
  opacity: 1;
  width: 100%;
  position: absolute;
  top: 86px;
  -webkit-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

.nav__list-item.nav__list-item__has_children:hover
.nav__list-item__children_arrow {
  transform: rotate(0deg);
}

@media (min-width: 900px) {
  .nav__list-item.nav__list-item__has_children:hover
  .nav__list-item__children_arrow {
    transform: rotate(-180deg);
  }
}

.nav__list-item.nav__list-item__has_children.subnav_open
.nav__list-item__children_arrow {
  transform: rotate(0deg);
}

.nav__list-item .nav__list--level-2 {
  top: 5.5rem;
  margin: 0;
  min-width: 18rem;
  background-color: var(--color-white);
  position: static;
  visibility: visible;
  opacity: 1;
  z-index: 1;
  width: 100%;
  display: none;
  box-shadow: 0px 2px 6px 0px rgba(53, 64, 75, 0.15);
}

@media (min-width: 900px) {
  .nav__list-item .nav__list--level-2 {
    z-index: -1;
    position: absolute;
    visibility: hidden;
    opacity: 0;
    display: block;
    justify-content: space-between;
  }
}

.nav__list-item .nav__list--level-2 .nav__list-item {
  width: 100%;
  margin: 10px 0;
}

.nav__list-item a {
  text-decoration: none;
}

.nav__list--level-2 .nav__list-item a,
.header__menu-pane .nav__list-item a {
  --padding: 1.25rem 2rem 1.25rem 1.25rem;
  align-items: center;
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  padding: var(--padding);
  text-decoration: none;
  transition: all 0.3s;
  width: 100%;
  gap: 0.5rem;
}

.nav__list-item .nav__list--level-2 .nav__list-item a h4 {
  font-family: var(--font-family-heading);
  color: var(--grey-dark);
  font-size: 1.375rem;
  font-style: normal;
  font-weight: 100;
  line-height: 140%;
  letter-spacing: 0.066rem;
}

.nav__list-item .nav__list--level-2 .nav__list-item a p {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: var(--font-size-small);
  color: var(--primary-medium-color);
}

.nav__list-item .nav__list--level-2 .nav__list-item a .content {
  display: flex;
  flex-direction: column;
}

.nav__list-item .nav__list--level-2 .nav__list-item a:focus {
  box-shadow: 0 0 0 2px var(--color-blue-100);
  background-color: var(--primary-xlight-color);
  outline: none;
}

.nav__list-item .nav__list--level-2 .nav__list-item a .arrow {
  opacity: 0;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.nav__list--level-2 .nav__list-item a:hover,
.header__menu-pane .nav__list-item a:hover {
  background-color: var(--primary-xlight-color);
}

.nav__list-item .nav__list--level-2 .nav__list-item a:hover .arrow {
  transform: translateX(5px);
  opacity: 1;
}

.nav__list-item .nav__list--level-2 .nav__list-item a svg path {
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.nav__list-item .links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 3.5rem;
}

.nav__list-buttons {
  display: flex;
  gap: 2rem;
  padding-left: 2.5rem;
  margin-top: auto;
}


.nav__list-buttons .button {
  padding: 18px var(--button-padding-horizontal);
}

.nav__list-item .links-wrapper__inner {
  display: flex;
  align-items: flex-start;
}

.nav__list-item .nav__list-link-lvl-1 {
  color: var(--color-blue-500);
  font-size: var(--font-size-medium);
  gap: .5rem;
  background: none;
  border: none;
  padding: 0 1rem;
  height: var(--header-height);
  cursor: pointer;
  align-items: center;
  display: flex;
  position: relative;
  font-weight: var(--font-weight-bold);
}

.nav__list-item .nav__list-link-lvl-1:focus {
  outline:none;
}

.nav__list-item .btn-arrow:focus {
  outline:0;
}

@media (min-width: 900px) {
  .nav__list-item .nav__list--level-2 .nav__list-item a:hover {
    text-decoration: none;
  }
}

.nav__list-item__heading {
  font-family: var(--font-family-heading);
  font-size: 1.375rem;
  font-style: normal;
  font-weight: 100;
  line-height: 140%;
  letter-spacing: 0.066rem;
  color: var(--color-blue-500);
}

.nav__list-item h3 {
  font-family: var(--font-family-body);
}
.nav__list-item span.h3 {
  display:block;
  font-family: var(--font-family-body);
}

.nav_open .header__menu {
  left: 0;
}

.nav_open .header__menu-toggle svg:first-child {
  display: block;
}

.nav_open .header__menu-toggle svg:last-child {
  display: none;
}

/* Simple Header Enhancements - Add to your CSS */

/* Navigation underline animations */
.nav__underline {
  transition: width 0.3s ease;
}

.nav__list-item a.nav__list-link-lvl-1:hover .nav__underline {
  width: 100%;
}

/* Button animations */
.button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* .nav__list-item .button:hover {
 * 
  transform: translateY(-2px);
} */

/* Dropdown menu animations */
.nav__list-item__has_children .nav__list--level-2 {

}

/* Arrow animations */
.nav__list-item .arrow svg,
.btn-arrow svg {
  transition: transform 0.3s ease;
}

.nav__list-item a:hover .arrow svg,
.btn-arrow:hover svg {
  transform: translateX(5px);
}

/* Header menu toggle */
.header__menu-toggle svg {
  transition: opacity 0.2s ease;
}

/* Menu pane transitions */
.header__menu-pane {
  transition: opacity 0.2s ease;
}

.header__menu-pane.active {
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}gs