/* Theme base styles */

/* External Dependencies */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,800&display=swap');

/* Tools
Any animations, or functions used throughout the project.
Note: _macros.css needs to be imported into each stylesheet where macros are used and not included here
*/

/* Generic
This is where reset, normalize & box-sizing styles go.
*/

*, *:before, *:after {
  box-sizing: border-box;
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * Add the correct box sizing in Firefox.
 */

hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Remove the inheritance of text transform in Edge and Firefox.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
 */

legend {
  padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Objects
Non-cosmetic design patterns including grid and layout classes)
*/



/* CSS variables */

:root {
  --column-gap: 2.13%;
  --column-width-multiplier: 8.333;
}

/* Mobile layout */

.row-fluid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}


  .row-fluid .span1,
  .row-fluid .span2,
  .row-fluid .span3,
  .row-fluid .span4,
  .row-fluid .span5,
  .row-fluid .span6,
  .row-fluid .span7,
  .row-fluid .span8,
  .row-fluid .span9,
  .row-fluid .span10,
  .row-fluid .span11,
  .row-fluid .span12{
  min-height: 1px;
  width: 100%;
}

/* Desktop layout */

@media (min-width: 768px) {
  .row-fluid {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  
    .row-fluid .span1 {
      width: calc(var(--column-width-multiplier) * 1% * 1 - var(--column-gap) * (11 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span2 {
      width: calc(var(--column-width-multiplier) * 1% * 2 - var(--column-gap) * (10 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span3 {
      width: calc(var(--column-width-multiplier) * 1% * 3 - var(--column-gap) * (9 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span4 {
      width: calc(var(--column-width-multiplier) * 1% * 4 - var(--column-gap) * (8 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span5 {
      width: calc(var(--column-width-multiplier) * 1% * 5 - var(--column-gap) * (7 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span6 {
      width: calc(var(--column-width-multiplier) * 1% * 6 - var(--column-gap) * (6 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span7 {
      width: calc(var(--column-width-multiplier) * 1% * 7 - var(--column-gap) * (5 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span8 {
      width: calc(var(--column-width-multiplier) * 1% * 8 - var(--column-gap) * (4 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span9 {
      width: calc(var(--column-width-multiplier) * 1% * 9 - var(--column-gap) * (3 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span10 {
      width: calc(var(--column-width-multiplier) * 1% * 10 - var(--column-gap) * (2 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span11 {
      width: calc(var(--column-width-multiplier) * 1% * 11 - var(--column-gap) * (1 * var(--column-width-multiplier) / 100));
    }
  
}
.content-wrapper {
  margin: 0 auto;
  padding: 0 1rem;
}

@media screen and (min-width: 1380px) {
  .content-wrapper {
    padding: 0;
  }
}

.dnd-section > .row-fluid {
  margin: 0 auto;
}

.dnd-section .dnd-column {
  padding: 0 1rem;
}

@media (max-width: 767px) {
  .dnd-section .dnd-column {
    padding: 0;
  }
}

/* Elements
Base HTML elements are styled in this section (<body>, <h1>, <a>, <p>, <button> etc.)
*/

/* Avenir LT Std - Custom Font */
@font-face {
  font-family: "Avenir LT Std";
  src:
    url("https://www.altametris.com/hubfs/Altametris-21/FONTS/AvenirLTStd-Roman.woff2")
      format("woff2"),
    url("https://www.altametris.com/hubfs/Altametris-21/FONTS/AvenirLTStd-Roman.woff")
      format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir LT Std";
  src:
    url("https://www.altametris.com/hubfs/Altametris-21/FONTS/AvenirLTStd-Black.woff2")
      format("woff2"),
    url("https://www.altametris.com/hubfs/Altametris-21/FONTS/AvenirLTStd-Black.woff")
      format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* The overflow-wrap is meant to prevent long/large words from breaking the mobile responsiveness of a page (e.g. horizontal scrolling). It is preferred to reduce font sizes on mobile to address this, with this CSS specifically helping with extreme scenarios where a reduction in font size is not possible. */

body {
  font-family: "Avenir LT Std", "Open Sans", sans-serif;
  line-height: 1.4;
  overflow-wrap: break-word;
  overflow-x: hidden;
  background-color: #fff;
  color: #212529;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Handles word breaking for a few specific languages which handle breaks in words differently. If your content is not translated into these languages, you can safely remove this.  */

html[lang^="ja"] body,
html[lang^="zh"] body,
html[lang^="ko"] body {
  line-break: strict;
  overflow-wrap: normal;
  word-break: break-all;
}

/* Paragraphs */

p {
  font-size: 1rem;
  margin: 0 0 1.4rem;
}

/* Anchors */

a {
  cursor: pointer;
}

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1.4rem;
}

/* Lists */

ul,
ol {
  margin: 0 0 1.4rem;
}

ul ul,
ol ul,
ul ol,
ol ol {
  margin: 0;
}

ul.no-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Code blocks */

pre {
  overflow: auto;
}

code {
  vertical-align: bottom;
}

/* Blockquotes */

blockquote {
  border-left: 2px solid;
  margin: 0 0 1.4rem;
  padding-left: 0.7rem;
}

/* Horizontal rules */

hr {
  border: none;
  border-bottom: 1px solid #ccc;
}

/* Image alt text */

img {
  font-size: 0.583rem;
  word-break: normal;
}
button,
.button,
.hs-button {
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: all 0.15s linear;
  white-space: normal;
}

button:disabled,
.button:disabled,
.hs-button:disabled {
  background-color: #d0d0d0;
  border-color: #d0d0d0;
  color: #e6e6e6;
}

/* No button */

.no-button,
.no-button:hover,
.no-button:focus,
.no-button:active {
  background: none;
  border: none;
  border-radius: 0;
  color: initial;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin-bottom: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
  transition: none;
}

/* CTA Button Styles (legacy from Altametris-2021) */
.cta {
  display: inline-block;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 0 0 1px transparent;
}

.cta:hover,
.cta:focus {
  transition: all 0.3s ease;
}

.cta:active {
  transition: all 0.3s ease;
}

.cta.primary {
  color: #fff;
  background: #0088ce;
}

.cta.primary:hover,
.cta.primary:focus {
  background: #006599;
}

.cta.primary:active {
  background: #00a8ff;
}

.cta.secondary {
  color: #0088ce;
  background: #fff;
  box-shadow: 0 0 0 1px #0088ce;
}

.cta.secondary:hover,
.cta.secondary:focus {
  box-shadow: 0 0 0 1px #00a8ff;
  color: #00a8ff;
}

.cta.secondary:active {
  box-shadow: 0 0 0 1px #006599;
  color: #006599;
}

.cta.big {
  border-radius: 1.5rem;
  padding: 0.75rem 1.5rem;
}

.cta.picto {
  position: relative;
  padding-left: 2.25rem;
}

.cta.email:before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("https://www.altametris.com/hubfs/Altametris-21/Pictos/email.png");
  background-size: contain;
  width: 1.2rem;
  height: 1.2rem;
}

.cta.picto-arrow {
  position: relative;
  padding-right: 2.25em;
}

.cta.arrow:after {
  content: "";
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("https://www.altametris.com/hubfs/Altametris-21/Pictos/icon-right.svg");
  background-size: contain;
  width: 1.2rem;
  height: 1.2rem;
}
/* Fields */

.hs-form-field {
  margin-bottom: 1.4rem;
}

/* Labels */

form label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

/* Form Title */
.form-title {
  margin-bottom: 0;
}

/* Help text */

form legend {
  font-size: 0.875rem;
}

/* Inputs */

form input[type=text],
form input[type=search],
form input[type=email],
form input[type=password],
form input[type=tel],
form input[type=number],
form input[type=file],
form select,
form textarea {
  display: inline-block;
  font-size: 0.875rem;
  padding: 0.7rem;
  width: 100%;
}

form textarea {
  resize: vertical;
}

form fieldset {
  max-width: 100% !important;
}

/* Inputs - checkbox/radio */

form .inputs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

form .inputs-list > li {
  display: block;
  margin: 0.7rem 0;
}

form .inputs-list input,
form .inputs-list span {
  vertical-align: middle;
}

form input[type=checkbox],
form input[type=radio] {
  cursor: pointer;
  margin-right: 0.35rem;
}

/* Inputs - date picker */

.hs-dateinput {
  position: relative;
}

.hs-dateinput:before {
  content:'\01F4C5';
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
}

.fn-date-picker .pika-table thead th {
  color: #FFF;
}

.fn-date-picker td.is-selected .pika-button {
  border-radius: 0;
  box-shadow: none;
}

.fn-date-picker td .pika-button:hover,
.fn-date-picker td .pika-button:focus {
  border-radius: 0 !important;
  color: #FFF;
}

/* Inputs - file picker */

form input[type=file] {
  background-color: transparent;
  border: initial;
  padding: initial;
}

/* Headings and text */

form .hs-richtext,
form .hs-richtext p {
  font-size: 0.875rem;
  margin: 0 0 1.4rem;
}

form .hs-richtext img {
  max-width: 100% !important;
}

/* GDPR */

.legal-consent-container .hs-form-booleancheckbox-display > span,
.legal-consent-container .hs-form-booleancheckbox-display > span p {
  margin-left: 1rem !important;
}

/* Validation */

.hs-form-required {
  color: #EF6B51;
}

.hs-input.invalid.error {
  border-color: #EF6B51;
}

.hs-error-msg {
  color: #EF6B51;
  margin-top: 0.35rem;
}

/* Submit button */

form input[type=submit],
form .hs-button {
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: all 0.15s linear;
  white-space: normal;
}

/* Captcha */

.grecaptcha-badge {
  margin: 0 auto;
}


  /* Search button input field and suggestions */
  .body-container-wrapper .hs-search-field__button {
    padding: 15px;
  }

  .body-container-wrapper .hs-search-field__bar--button-inline .hs-search-field__button {
    margin-left: 6px;
    margin-bottom: 0;
  }

  .body-container-wrapper .hs-search-field__button svg {
    height: 15px;
    fill: #fff;
  }

  .body-container-wrapper .hs-search-field__bar > form > .hs-search-field__input {
    padding: 10px;
  }

  .body-container-wrapper .hs-search-field__suggestions li a {
    color: #494A52;
    padding: 0.35rem 0.7rem;
    text-decoration: none;
    transition: background-color 0.3s;
  }

/* Table */

table {
  border-collapse: collapse;
  margin-bottom: 1.4rem;
  overflow-wrap: break-word;
}

/* Table cells */

td,
th {
  vertical-align: top;
}

/* Table header */

thead th {
  vertical-align: bottom;
}

/* Components
Specific pieces of UI that are stylized. Typically used for global partial styling
*/

/* ========================================
   Container System (Bootstrap Replacement)
   Lightweight, no framework bloat
   ======================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-old {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Responsive breakpoints */
@media (max-width: 1199px) {
  .container {
    max-width: 990px;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}
/* Header DND sections */

.header .dnd-section {
  padding: 0;
}

/* Header container */

.header__container {
  display: flex;
  justify-content: space-between;
}

.header__row-1 {
  padding-top: 1rem;
}

.header__row-1,
.header__row-2 {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

@media (max-width: 1150px) and (min-width: 767px) {
  .header__column {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .header__container {
    flex-direction: column;
    padding: 1rem 0 0;
  }

  .header__column {
    position: relative;
  }

  .header__row-1 {
    padding-top: 0;
  }

  .header__row-2 {
    justify-content: center;
    padding: 1.05rem;
  }
}

/* Navigation skipper */

.header__skip {
  height: 1px;
  left: -1000px;
  overflow: hidden;
  position: absolute;
  text-align: left;
  top: -1000px;
  width: 1px;
}

.header__skip:hover,
.header__skip:focus,
.header__skip:active {
  height: auto;
  left: 0;
  overflow: visible;
  top: 0;
  width: auto;
}

/* Logo */

.header__logo {
  align-items: center;
  display: flex;
  height: auto;
  margin-right: auto;
  max-width: 200px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .header__logo {
    margin: 0 auto;
    width: 100%;
  }
}

.header__logo img {
  max-width: 100%;
}

.header__logo .logo-company-name {
  font-size: 1.167rem;
  margin-top: 0.7rem;
}

.header__logo--main {
  padding-top: 1rem;
}

/* Search bar */

.header__search {
  padding: 0 1rem;
  width: auto;
}



  .hs-search-field__form {
    position: relative;
  }

  .header__search .hs-search-field__label {
    flex-basis: auto;
  }



.header__search .hs-search-field__input {
  
  height: 45px;
  padding: 0 0.7rem;
}



  .header__search .hs-search-field__button {
    padding: 0;
    fill: #000;
    background-color: transparent;
    border: none;
    padding: 10px;
    position: absolute;
    top: 0;
    right: 0;
  }

  .header__search .hs-search-field__button svg {
    height: 25px;
  }


.header__search .hs-search-field--open .hs-search-field__input {
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  max-width: 100%;
}

.header__search .hs-search-field--open .hs-search-field__suggestions {
  background-color: #FFF;
  border: 2px solid #D1D6DC;
  border-radius: 0 0 6px 6px;
  border-top-width: 1px;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.header__search .hs-search-field__suggestions li {
  border-top: 1px solid #D1D6DC;
  font-size: 0.875rem;
}

.header__search .hs-search-field__suggestions li a {
  color: #494A52;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.header__search .hs-search-field__suggestions #results-for {
  display: none;
}

@media (min-width: 767px) {
  .header__search form {
    align-items: center;
    display: flex;
    flex-direction: row;
  }

  .header__search label {
    margin: 0 1rem 0 0;
  }

  .header__search .hs-search-field__input {
    width: auto;
  }
}

@media (max-width: 767px) {
  .header__search {
    border-top: 2px solid #CED4DB;
    order: 1;
    padding: 1.05rem;
  }
}

/* Language switcher */

.header__language-switcher {
  cursor: pointer;
  padding-right: 1.4rem;
}

.header__language-switcher .lang_switcher_class {
  position: static;
}

.header__language-switcher .lang_list_class {
  border: 2px solid;
  border-radius: 3px;
  box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.2);
  display: block;
  left: calc(100% - 24px);
  opacity: 0;
  min-width: 100px;
  padding-top: 0;
  text-align: left;
  top: 100%;
  transition: opacity 0.3s;
  visibility: hidden;
}

.header__language-switcher:hover .lang_list_class,
.header__language-switcher:focus .lang_list_class {
  opacity: 1;
  transition: opacity 0.3s;
  visibility: visible;
}

.header__language-switcher .lang_list_class:before {
  left: 70%;
  top: -25px;
}

.header__language-switcher .lang_list_class:after {
  left: 70%;
  top: -22px;
}

.header__language-switcher .lang_list_class.first-active::after {
  top: -22px;
  transition: 0.3s;
}

.header__language-switcher .lang_list_class li {
  border: none;
  font-size: 18px;
  padding: 0.35rem 0.7rem;
}

.header__language-switcher .lang_list_class li:first-child {
  border-radius: 6px 6px 0 0;
  border-top: none;
}

.header__language-switcher .lang_list_class li:last-child {
  border-bottom: none;
  border-radius: 0 0 6px 6px;
}

.header__language-switcher .lang_list_class li:hover {
  transition: background-color 0.3s;
}

.header__language-switcher--label {
  display: flex;
  position: relative;
}

.header__language-switcher--label-current {
  align-items: center;
  display: flex;
  font-size: 0.75rem;
  margin-bottom: 0.175rem;
  margin-left: 0.7rem;
}

.header__language-switcher--label-current:after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #494A52;
  content: "";
  display: block;
  height: 0px;
  margin-left: 0.7rem;
  margin-top: 0.175rem;
  width: 0px;
}

@media (max-width: 767px) {
  .header__language-switcher {
    border-top: 2px solid #CED4DB;
    padding-left: 1.05rem;
    padding-right: 0;
  }

  .header__language-switcher .lang_list_class {
    border: none;
    box-shadow: unset;
    display: block;
    left: 30px;
    opacity: 1;
    padding: 0 1.05rem;
    top: 0;
    visibility: visible;
  }

  .header__language-switcher .lang_list_class li {
    background-color: inherit;
    font-size: 0.917rem;
  }

  .header__language-switcher--label-current {
    display: none;
  }

  .header__language-switcher .globe_class {
    background-image: none;
  }

  .header__language-switcher .lang_list_class li:hover{
    background-color: inherit;
  }

  .header__language-switcher .lang_list_class:before,
  .header__language-switcher .lang_list_class:after {
    content: none;
  }}

/* Navigation */

#nav-toggle {
  display: none;
}

/* Mobile toggles */

@media (max-width: 767px) {
  .header__navigation,
  .header__search,
  .header__language-switcher {
    display: none;
    width: 100%;
  }

  .header__navigation.open,
  .header__search.open,
  .header__language-switcher.open {
    background-color: #F8FAFC;
    display: block;
    left: 0;
    min-height: calc(100vh - 115px);
    position: absolute;
    right: 0;
    top: 75px;
    z-index: 2;
  }

  .header__navigation--toggle,
  .header__search--toggle,
  .header__language-switcher--toggle,
  .header__close--toggle {
    cursor: pointer;
    margin: 0 5vw;
    position: relative;
  }

  .header__navigation--toggle.hide,
  .header__search--toggle.hide,
  .header__language-switcher--toggle.hide {
    display: none;
  }

  .header__navigation--toggle.open,
  .header__search--toggle.open,
  .header__language-switcher--toggle.open {
    display: block;
    margin-left: 0;
    margin-right: auto;
  }

  .header__navigation--toggle:after,
  .header__search--toggle:after,
  .header__language-switcher--toggle:after {
    display: none;
    font-size: 1.083rem;
    font-weight: 600;
    position: absolute;
    left: 40px;
    text-transform: uppercase;
    top: -10px;
  }

  .header__navigation--toggle.open:after,
  .header__search--toggle.open:after,
  .header__language-switcher--toggle.open:after {
    display: block;
    word-break: normal;
  }

  .header__navigation--toggle {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAxOSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4gICAgICAgIDx0aXRsZT5oYW1idXJnZXI8L3RpdGxlPiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4gICAgPGcgaWQ9ImhhbWJ1cmdlciIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+ICAgICAgICA8ZyBpZD0iR3JvdXAiIHN0cm9rZT0iIzQ5NEE1MiIgc3Ryb2tlLXdpZHRoPSIzIj4gICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlIiB4PSIxLjUiIHk9IjEuNSIgd2lkdGg9IjIxIiBoZWlnaHQ9IjEiIHJ4PSIwLjUiPjwvcmVjdD4gICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHktNCIgeD0iMS41IiB5PSI5LjUiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxIiByeD0iMC41Ij48L3JlY3Q+ICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS1Db3B5LTUiIHg9IjEuNSIgeT0iMTcuNSIgd2lkdGg9IjIxIiBoZWlnaHQ9IjEiIHJ4PSIwLjUiPjwvcmVjdD4gICAgICAgIDwvZz4gICAgPC9nPjwvc3ZnPg==);
    background-size: cover;
    height: 25px;
    width: 25px;
  }

  .header__navigation--toggle:after {
    content: "Menu";
  }

  .header__language-switcher--toggle {
    background-image: url(//static.hsappstatic.net/cos-LanguageSwitcher/static-1.1/img/globe.png);
    background-size: cover;
    height: 25px;
    width: 25px;
  }

  .header__language-switcher--toggle:after {
    content: "Language";
  }

  .header__search--toggle {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4gICAgICAgIDx0aXRsZT5TZWFyY2g8L3RpdGxlPiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4gICAgPGRlZnM+ICAgICAgICA8cGF0aCBkPSJNOS4xMzg2MTUzNCwxNS44OTI1Njg1IEM1LjQxMzk1NzQyLDE1Ljg5MjU2ODUgMi4zODM4ODUyNywxMi44NjM0NDc1IDIuMzgzODg1MjcsOS4xMzkwMDM3NiBDMi4zODM4ODUyNyw1LjQxNDU2MDA1IDUuNDEzOTU3NDIsMi4zODM4ODUyNyA5LjEzODYxNTM0LDIuMzgzODg1MjcgQzEyLjg2MzI3MzMsMi4zODM4ODUyNyAxNS44OTI1Njg1LDUuNDE0NTYwMDUgMTUuODkyNTY4NSw5LjEzOTAwMzc2IEMxNS44OTI1Njg1LDEyLjg2MzQ0NzUgMTIuODYzMjczMywxNS44OTI1Njg1IDkuMTM4NjE1MzQsMTUuODkyNTY4NSBNOS4xMzg3NTI0NSwyLjQzMzYwODg3ZS0xMyBDMTQuMTc3OTk1NSwyLjQzMzYwODg3ZS0xMyAxOC4yNzY0NTM3LDQuMTAwMzI0NzEgMTguMjc2NDUzNyw5LjEzOTI3Nzk2IEMxOC4yNzY0NTM3LDExLjIyOTgyMTEgMTcuNTcxMDE2OSwxMy4xNTg0NDM0IDE2LjM4NTYzMTMsMTQuNjk5NjY5NiBMMjMuNjUwODg4MSwyMS45NjUyMjY2IEMyNC4xMTYzNzA2LDIyLjQzMDcwOTIgMjQuMTE2MzcwNiwyMy4xODU0MDU1IDIzLjY1MDg4ODEsMjMuNjUwODg4MSBDMjMuMTg1NDA1NSwyNC4xMTYzNzA2IDIyLjQzMDcwOTIsMjQuMTE2MzcwNiAyMS45NjUyMjY2LDIzLjY1MDg4ODEgTDE0LjY5OTgxMzMsMTYuMzg1NDcxMyBDMTMuMTU4NDQwNSwxNy41NzA5NTA5IDExLjIyOTU3MzgsMTguMjc2NDUzNyA5LjEzODc1MjQ1LDE4LjI3NjQ1MzcgQzQuMDk5NTA5MzgsMTguMjc2NDUzNyAtMy43MzAzNDkzNmUtMTQsMTQuMTc4MjMxMiAtMy43MzAzNDkzNmUtMTQsOS4xMzkyNzc5NiBDLTMuNzMwMzQ5MzZlLTE0LDQuMTAwMzI0NzEgNC4wOTk1MDkzOCwyLjQzMzYwODg3ZS0xMyA5LjEzODc1MjQ1LDIuNDMzNjA4ODdlLTEzIFoiIGlkPSJwYXRoLTEiPjwvcGF0aD4gICAgPC9kZWZzPiAgICA8ZyBpZD0iU2VhcmNoIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxtYXNrIGlkPSJtYXNrLTIiIGZpbGw9IndoaXRlIj4gICAgICAgICAgICA8dXNlIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPiAgICAgICAgPC9tYXNrPiAgICAgICAgPHVzZSBpZD0iSWNvbnMvQWN0aW9ucy9TZWFyY2giIGZpbGw9IiM0OTRBNTIiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPiAgICA8L2c+PC9zdmc+);
    background-size: cover;
    height: 25px;
    width: 25px;
  }

  .header__search--toggle:after {
    content: "Search";
  }

  .header__close--toggle {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjE5cHgiIHZpZXdCb3g9IjAgMCAyNCAxOSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4gICAgICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZyBpZD0iY2xvc2UiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9Ikdyb3VwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLjAwMDAwMCwgLTEuMDAwMDAwKSIgc3Ryb2tlPSIjNDk0QTUyIiBzdHJva2Utd2lkdGg9IjMiPiAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwLjAwMDAwMCwgMTAuNTAwMDAwKSByb3RhdGUoLTQ1LjAwMDAwMCkgdHJhbnNsYXRlKC0xMC4wMDAwMDAsIC0xMC41MDAwMDApICIgeD0iLTAuNSIgeT0iMTAuNSIgd2lkdGg9IjIxIiBoZWlnaHQ9IjEiIHJ4PSIwLjUiPjwvcmVjdD4gICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHktNSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAuMDAwMDAwLCAxMC41MDAwMDApIHJvdGF0ZSg0NS4wMDAwMDApIHRyYW5zbGF0ZSgtMTAuMDAwMDAwLCAtMTAuNTAwMDAwKSAiIHg9Ii0wLjUiIHk9IjEwLjUiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxIiByeD0iMC41Ij48L3JlY3Q+ICAgICAgICA8L2c+ICAgIDwvZz48L3N2Zz4=);
    background-repeat: no-repeat;
    background-size: 110%;
    display: none;
    height: 25px;
    margin-right: 0;
    width: 25px;
  }

  .header__close--toggle.show {
    display: block;
  }
}

/* ========================================
   Header Styles from Legacy (global-old.css)
   Required for newheader-section & megamenu
   ======================================== */

.need-megamenu {
  display: none;
}

/* Desktop/Mobile Section Toggles */
.desktop-section {
  display: block;
}

.mobile-section {
  display: none;
}

@media (max-width: 991px) {
  .desktop-section {
    display: none;
  }
  .mobile-section {
    display: block;
  }
}

/* Header Section */
.newheader-section {
  width: 100%;
  display: inline-block;
  vertical-align: top;
  padding: 30px 0 10px;
  position: relative;
}

body .newheader-section .container {
  position: unset;
}

.newheader-section .right-part {
  display: flex;
  align-items: center;
  flex: 1;
}

.newheader-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.newheader-section .right-part .language {
  width: 70px;
  float: left;
  text-align: center;
  padding-right: 7px;
}

.newheader-section .right-part .right-part__actions {
  align-items: center;
  display: flex;
  margin-left: auto;
}

.newheader-section .right-part .right-part__actions a.link.first {
  margin-right: 48px;
}

.newheader-section .right-part .cta.big.secondary {
  margin-left: 0;
}

.newheader-section .right-part .header-btn {
  margin-left: 16px;
}

.newheader-section .mainmenu {
  width: calc(100% - 290px);
  float: left;
  padding-right: 20px;
}

.newheader-section .hs-menu-wrapper > ul > li {
  line-height: normal;
}

.newheader-section .hs-menu-wrapper > ul > li > a {
  display: inline-block;
  color: #3c3732;
  font-weight: 800;
  font-size: 16px;
  line-height: 25px;
  max-width: 100%;
  white-space: inherit;
  transition: all 0.4s;
  padding: 0;
  text-transform: uppercase;
}

.newheader-section .hs-menu-wrapper > ul > li > a:hover {
  color: #0088ce;
}

.newheader-section .hs-menu-wrapper {
  line-height: normal;
}

.newheader-section .hs-menu-wrapper > ul > li {
  padding: 21px 15px 14px;
}

.newheader-section .hs-menu-wrapper > ul > li.hs-item-has-children > a {
  position: relative;
  padding-right: 20px;
}

.newheader-section .hs-menu-wrapper > ul > li.hs-item-has-children > a:before {
  content: "\f107";
  font-family: FontAwesome;
  position: absolute;
  left: auto;
  right: 0;
  top: 0;
  font-weight: 700;
  transition: all 0.3s;
}

.newheader-section .hs-menu-wrapper > ul > li.hs-item-has-children:hover > a:before {
  transform: rotate(180deg);
}

.newheader-section .hs-menu-wrapper > ul > li.hs-item-has-children:hover > a {
  color: #0088ce;
}

.newheader-section .right-part .header-btn a {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  background: #0088ce;
  border-radius: 20px;
  padding: 8px 25px 10px;
  vertical-align: initial;
  transition: all 0.5s;
}

.newheader-section .right-part .header-btn a i {
  font-size: 18px;
  position: relative;
  margin-left: 8px;
  transition: all 0.5s;
}

.newheader-section .right-part .header-btn a img {
  width: 22px;
  position: relative;
  margin-right: 3px;
  display: inline-block;
  transition: all 0.5s;
}

.newheader-section .right-part .header-btn a:hover {
  background: #3c3732;
}

.newheader-section .hs-menu-wrapper > ul > li.hs-item-has-children ul.hs-menu-children-wrapper {
  position: absolute;
  top: 100%;
  background: #fff;
  width: 230px;
  padding: 15px 0 19px 18px;
  transform: translateY(10px);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
}

.newheader-section
  .hs-menu-wrapper
  > ul
  > li.hs-item-has-children
  ul.hs-menu-children-wrapper
  li {
  border-left: 2px solid #0088ce;
  line-height: normal;
}

.newheader-section
  .hs-menu-wrapper
  > ul
  > li.hs-item-has-children
  ul.hs-menu-children-wrapper
  li
  a {
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: #3c3732;
  display: inline-block;
  width: 100%;
  padding: 5px 20px;
}

.newheader-section
  .hs-menu-wrapper
  > ul
  > li.hs-item-has-children
  ul.hs-menu-children-wrapper
  li
  a:hover {
  color: #0088ce;
}

.newheader-section
  .hs-menu-wrapper
  > ul
  > li.hs-item-has-children:hover
  ul.hs-menu-children-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

/* Megamenu */
.newheader-section .hs-menu-wrapper > ul > li:first-child {
  position: inherit;
}

.newheader-section .container {
  position: relative;
}

.newheader-section .hs-menu-wrapper > ul > li:first-child > ul.hs-menu-children-wrapper {
  width: 100%;
  padding: 30px 20px;
}

.newheader-section
  .hs-menu-wrapper
  > ul
  > li:first-child
  > ul
  > li.hs-menu-item.hs-menu-depth-2:first-child {
  display: none;
}

.newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu {
  width: 100%;
  display: inline-block;
  vertical-align: top;
}

.newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu .wrap {
  margin: 0;
  padding: 0 15px;
}

.newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu .box {
  width: calc(100% / 4 - 34px);
  display: inline-block;
  vertical-align: top;
  margin: 0 15px;
}

.newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu .box .box-menu {
  max-width: 260px;
  width: 100%;
}

.newheader-section
  .hs-menu-wrapper
  > ul
  > li:first-child
  > ul
  .need-megamenu
  .box
  .box-menu
  ul
  li {
  width: 100%;
  padding: 0 0 0 15px;
}

.newheader-section
  .hs-menu-wrapper
  > ul
  > li:first-child
  > ul
  .need-megamenu
  .box
  .box-menu
  ul
  li
  a {
  display: inline-block;
  color: #3c3732;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  text-transform: inherit;
  padding: 3px 0px 3px;
  white-space: inherit;
}

.newheader-section
  .hs-menu-wrapper
  > ul
  > li:first-child
  > ul
  .need-megamenu
  .box
  .box-menu
  ul
  li
  a:hover {
  color: #0088ce;
}

.newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu .box .top {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 0 20px;
}

.newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu .box .top a {
  display: flex;
  padding: 0;
  max-width: 220px;
  width: 100%;
  white-space: inherit;
  font-weight: 300;
  font-size: 16px;
  line-height: 22px;
  color: #0088ce;
  transition: all 0.4s;
}

.newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu .box .top a .icon {
  width: 48px;
  float: left;
}

.newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu .box .top a .text {
  width: calc(100% - 48px);
  float: left;
  padding-left: 14px;
}

.newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu .box .top a:hover {
  color: #3c3732;
}

.newheader-section .hs-menu-wrapper > ul > li:first-child > ul .you-need-menu {
  margin: 0;
  padding-left: 40px;
}

.newheader-section
  .hs-menu-wrapper
  > ul
  > li.hs-item-has-children:first-child:hover
  ul.hs-menu-children-wrapper {
  width: 100%;
  padding: 30px 0px;
}

.newheader-section
  .hs-menu-wrapper
  > ul
  > li.hs-item-has-children:first-child:hover
  ul.hs-menu-children-wrapper.result_hover:after {
  content: "";
  background-color: rgba(64, 167, 216, 0.8);
  width: 100%;
  height: 100vh;
  display: block;
  z-index: 1;
  position: absolute;
  top: auto;
  left: 0;
  margin-top: 30px;
}

/* Language Switcher */
.newheader-section .globe_class {
  background: none !important;
  width: auto;
  height: auto;
  position: relative;
  top: -3px;
}

.newheader-section .globe_class span.down-click {
  display: none;
}

.newheader-section .globe_class ul.lang_list_class {
  position: relative;
  top: 0;
  left: 0;
  transform: inherit;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 0 0 12px;
}

.newheader-section .globe_class ul.lang_list_class:before,
.newheader-section .globe_class ul.lang_list_class:after {
  display: none;
}

.newheader-section .globe_class ul.lang_list_class li {
  border: 0;
  display: inline-block;
  padding: 0 14px 0 0;
}

.newheader-section .globe_class ul.lang_list_class li a {
  color: #b9b9b9;
  font-weight: normal;
  font-size: 14px;
  text-transform: uppercase;
}

.newheader-section .globe_class ul.lang_list_class li:first-child a {
  color: #0088ce;
  font-weight: normal;
  position: relative;
}

.newheader-section .globe_class ul.lang_list_class li:first-child a:before {
  display: none;
  content: " ";
  top: auto;
  bottom: -7px;
  background: #0088ce;
  border-radius: 4px;
  height: 3px;
  width: 100%;
  position: absolute;
}

/* Mobile Styles */
@media (max-width: 991px) {
  .mobile-section .newheader-section .container {
    max-width: 100%;
    padding: 0 20px;
  }

  .mobile-section .newheader-section {
    padding: 20px 0;
    position: relative;
  } 

  .mobile-section .newheader-section .header-btn.mobile-right {
    width: 60px;
    float: left;
    text-align: right;
  }

  .mobile-section .newheader-section .left-part.mobile-center {
    width: calc(100% - 120px);
    float: left;
    text-align: center;
  }

  .mobile-section .newheader-section .left-part.mobile-center .logo {
    width: 170px;
    max-width: 100%;
    margin: auto;
  }

  .mobile-section .newheader-section .header-btn.mobile-right a img {
    max-width: 24px;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-button {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-button span {
    display: inline-block;
    width: 30px;
    height: 3px;
    background: #0088ce;
    border-radius: 70px;
    position: relative;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-button span:before {
    content: " ";
    width: 30px;
    height: 3px;
    background: #0088ce;
    border-radius: 70px;
    position: absolute;
    top: -7px;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-button span:after {
    content: " ";
    width: 30px;
    height: 3px;
    background: #0088ce;
    border-radius: 70px;
    position: absolute;
    top: 7px;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-box {
    position: fixed;
    top: 0;
    z-index: 999;
    background: #fff;
    width: 100%;
    height: 100vh;
    overflow: auto;
    transition: all 0.4s;
    left: -100%;
  }

  .newheader-section .container {
    position: inherit;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-box .top-strip {
    width: 100%;
    display: flex;
    border-bottom: 1px solid #d7d7d7;
    padding: 18px 20px;
    position: relative;
    align-items: center;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-box .top-strip .close-btn {
    position: absolute;
    top: 50%;
    left: auto;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-box .top-strip h4 {
    margin: 0;
    text-transform: uppercase;
    color: #000;
    font-weight: 800;
    font-size: 18px;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-box .mainmenu {
    width: 100%;
    padding: 10px 15px 30px;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-box .mainmenu .hs-menu-wrapper ul li {
    width: 100%;
    border-bottom: 1px solid #d7d7d7;
    padding: 29px 7px 24px;
    position: relative;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-box .mainmenu .hs-menu-wrapper ul {
    width: 100%;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-box .mainmenu .hs-menu-wrapper ul li a {
    font-weight: 800;
    font-size: 16px;
  }

  .mobile-open .mobile-section .newheader-section .right-part.mobile-left .menu-box {
    left: 0;
  }

  body.mobile-open {
    overflow: hidden;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-box .mainmenu .hs-menu-wrapper > ul li > ul {
    padding: 0;
    display: none;
    transition: inherit;
    position: relative;
    transform: translateY(14px);
    opacity: 1;
    visibility: visible;
  }

  .newheader-section .hs-menu-wrapper > ul > li:first-child > ul .you-need-menu {
    padding: 0;
  }

  .newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu .box {
    width: calc(100% / 1 - 34px);
    margin-bottom: 25px;
  }

  .newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu .box .box-menu ul li {
    border-bottom: 0;
  }

  .newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu {
    padding-top: 8px;
  }

  .newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu .box .top a {
    max-width: 100%;
    align-items: center;
  }

  .newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu .box .top a .text h6 {
    margin: 0;
    color: #0088ce;
  }

  .newheader-section .hs-menu-wrapper > ul > li:first-child > ul .need-megamenu .box .box-menu {
    max-width: 100%;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-box .mainmenu .hs-menu-wrapper ul li.hs-item-has-children {
    position: relative;
  }

  .mobile-section
    .newheader-section
    .right-part.mobile-left
    .menu-box
    .mainmenu
    .hs-menu-wrapper
    ul
    li.hs-item-has-children
    span.child-triggerm {
    position: absolute;
    top: 12px;
    left: 0;
    height: 60px;
    width: 100%;
  }

  .mobile-section
    .newheader-section
    .right-part.mobile-left
    .menu-box
    .mainmenu
    .hs-menu-wrapper
    ul
    li.hs-item-has-children
    ul
    li {
    border-bottom: 0;
    padding: 5px 0;
  }

  .mobile-section
    .newheader-section
    .right-part.mobile-left
    .menu-box
    .mainmenu
    .hs-menu-wrapper
    ul
    li.hs-item-has-children
    ul
    li
    a {
    font-weight: 500;
    font-size: 16px;
  }

  .mobile-section
    .newheader-section
    .right-part.mobile-left
    .menu-box
    .mainmenu
    .hs-menu-wrapper
    ul
    li.hs-item-has-children:hover
    a {
    color: #3c3732;
  }

  .mobile-section
    .newheader-section
    .right-part.mobile-left
    .menu-box
    .mainmenu
    .hs-menu-wrapper
    ul
    li.hs-item-has-children:hover
    a:before {
    transform: inherit;
  }

  .newheader-section .hs-menu-wrapper > ul > li:first-child > ul .you-need-menu ul li {
    padding-left: 15px !important;
  }

  .newheader-section .hs-menu-wrapper > ul > li:first-child > ul .you-need-menu ul {
    padding-left: 5px;
  }

  .newheader-section .hs-menu-wrapper > ul > li:first-child > ul .you-need-menu {
    padding-left: 0px !important;
  }

  .newheader-section .globe_class ul.lang_list_class {
    padding: 0 0 0 22px;
  }

  .mobile-section .newheader-section .right-part.mobile-left .menu-box .mainmenu .hs-menu-wrapper ul li a {
    width: auto;
  }
}

@media (max-width: 1199px) {
  .newheader-section .hs-menu-wrapper > ul > li > a {
    font-size: 14px;
  }

  .newheader-section .hs-menu-wrapper > ul > li {
    padding: 21px 7px 14px;
  }

  .newheader-section .mainmenu {
    padding-right: 5px;
  }

  .newheader-section .hs-menu-wrapper > ul > li:first-child > ul .you-need-menu {
    padding-left: 10px;
  }

  .newheader-section .container {
    max-width: 990px;
  }
}


/* Space between the nav and the first section, owned by the header so it is
   the same on every page (a page-level row padding only exists on some).
   Blog templates were designed flush against the header, so they are skipped. */
body:not([class*="hs-blog"]) .site-header {
  padding-bottom: 50px;
}
/* ========================================
   Footer Component Styles
   Extracted from global-old.css
   ======================================== */

.newfooter-section {
  width: 100%;
  display: inline-block;
  vertical-align: top;
  background-repeat: no-repeat;
  background-size: 100% 220px;
  background-position: bottom center;
  background-color: #fff;
  padding: 70px 0 0;
  border-top: 1px solid #b6b1a8;
}

.newfooter-section .bgimg {
  display: none;
}

.newfooter-section > .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Footer Logo & Content */
.newfooter-section .left-side .footer-logo {
  max-width: 170px;
  width: 100%;
}

.newfooter-section .left-side .footer-content {
  max-width: 255px;
  width: 100%;
  padding: 20px 0 10px;
}

.newfooter-section .left-side .footer-content p {
  font-weight: normal;
  font-size: 12px !important;
  line-height: 17px;
  color: #3c3732;
}

.newfooter-section h3 {
  font-weight: 900;
  font-size: 20px;
  line-height: 27px;
  color: #0088ce;
  text-transform: capitalize;
}

.newfooter-section .left-side .footer-service {
  padding-top: 10px;
}

.newfooter-section .left-side .footer-service .box {
  width: calc(100% / 2 - 4px);
  display: inline-block;
  vertical-align: top;
  padding-right: 10px;
}

/* Footer Menu */
.newfooter-section .footer-menu ul {
  padding-top: 5px;
}

.newfooter-section .footer-menu ul > li > a {
  padding: 0;
  font-weight: normal;
  font-size: 14px;
  line-height: 16px;
  color: #3c3732;
  transition: all 0.5s;
  text-decoration: none;
}

.newfooter-section .footer-menu ul li {
  width: 100%;
}

.newfooter-section .footer-menu ul > li > a:hover {
  color: #0088ce;
}

.newfooter-section .center-side .footer-menu-box {
  display: inline-block;
  vertical-align: top;
  margin: 0;
}

.newfooter-section .center-side .footer-menu-box .footer-menu-title h4 {
  font-weight: 800;
  font-size: 16px;
  line-height: 22px;
  color: #3c3732;
  padding: 0;
}

.newfooter-section .center-side .footer-menu-box .footer-menu ul li a {
  padding: 0;
  width: 100%;
  font-weight: normal;
  font-size: 14px;
  line-height: 23px;
  color: #3c3732;
  white-space: inherit;
  text-overflow: inherit;
  transition: all 0.5s;
}

.newfooter-section .center-side .footer-menu-box .footer-menu ul li {
  width: 100%;
}

.newfooter-section .center-side .footer-menu-box .footer-menu ul li a:hover {
  color: #0088ce;
}

.newfooter-section .center-side .footer-title h3 {
  padding-bottom: 5px;
}

/* Footer Social */
.newfooter-section .right-side .footer-social ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.newfooter-section .right-side .footer-social ul li {
  display: inline-block;
  padding: 0 4px;
}

.newfooter-section .right-side .social-title h3 {
  padding-bottom: 10px;
}

.newfooter-section .right-side .footer-social ul li a {
  display: inline-block;
  background: #0088ce;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: #fff;
  font-size: 25px;
  text-align: center;
  padding-top: 4px;
  border: 1px solid #0088ce;
  transition: all 0.5s;
}

.newfooter-section .right-side .footer-social ul li a:hover {
  color: #0088ce;
  background: #fff;
}

/* Footer CTA Button */
.newfooter-section .right-side .footer-btn {
  padding-top: 35px;
}

.newfooter-section .right-side .cta_button,
.newfooter-section .right-side .cta {
  min-width: 200px;
  padding: 7px 0 9px !important;
}

.newfooter-section .right-side .footer-btn a {
  background: #0088ce;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 7px 22px 9px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: all 0.5s;
}

.newfooter-section .right-side .footer-btn a:before {
  content: " ";
  width: 22px;
  height: 22px;
  background-image: url("https://www.altametris.com/hubfs/mail.svg");
  position: relative;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  top: -3px;
  margin-right: 6px;
  transition: all 0.5s;
}

.newfooter-section .right-side .footer-btn a:after {
  content: "\f105";
  font-family: FontAwesome;
  font-size: 20px;
  top: 2px;
  position: relative;
  margin-left: 12px;
  transition: all 0.5s;
}

.newfooter-section .right-side .footer-btn a:hover {
  background: #3c3732;
}

.newfooter-section .right-side .footer-social ul li:first-child {
  padding-left: 0;
}

/* Footer Bottom */
.newfooter-section .bottom-footer {
  width: 100%;
  display: inline-block;
  vertical-align: top;
  text-align: center;
  padding-top: 130px;
}

.newfooter-section .bottom-footer ul {
  margin: 0;
}

.newfooter-section .bottom-footer ul li {
  display: inline-block;
  position: relative;
}

.newfooter-section .bottom-footer ul li a {
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.5s;
}

.newfooter-section .bottom-footer ul li a:hover {
  text-decoration: underline;
}

.newfooter-section .bottom-footer ul li:before {
  content: " ";
  top: 21px;
  left: auto;
  right: -3px;
  background: #c4c4c4;
  width: 4px;
  height: 2px;
  position: absolute;
}

.newfooter-section .bottom-footer ul li:last-child:before {
  display: none;
}

/* ===== Responsive Adjustments ===== */

@media (max-width: 1199px) {
  .newfooter-section .right-side {
    width: 100%;
    text-align: center;
    padding: 30px 0 0;
  }
  .newfooter-section .center-side {
    width: 65%;
  }
}

@media (max-width: 767px) {
  .newfooter-section .left-side {
    width: 100%;
    padding: 0;
  }
  .newfooter-section .left-side .footer-content {
    max-width: 100%;
  }
  .newfooter-section .center-side {
    width: 100%;
  }
  .newfooter-section {
    background-size: 100% 140px;
  }
  .newfooter-section .bottom-footer ul li a {
    padding: 0 14px;
  }
  .newfooter-section .bottom-footer ul li:before {
    top: 11px;
  }
  .newfooter-section .bottom-footer {
    padding-top: 90px;
  }
}

@media (max-width: 575px) {
  .newfooter-section {
    padding: 40px 0 10px;
    background-size: auto 140px;
  }
  .newfooter-section .bottom-footer ul li a {
    padding: 0 10px;
    font-size: 13px;
  }
  .newfooter-section .bottom-footer ul li {
    display: inline-block;
    width: auto;
  }
  .newfooter-section .bottom-footer ul li:before {
    display: none;
  }
  .newfooter-section .bottom-footer {
    padding-top: 90px;
  }
  .newfooter-section .right-side .footer-social ul li a {
    width: 35px;
    height: 35px;
    font-size: 19px;
  }
  .newfooter-section .right-side .footer-btn {
    padding-top: 25px;
  }
  .newfooter-section .left-side .footer-service .box ul li a {
    padding: 3px 0;
  }
}

@media (max-width: 480px) {
  .newfooter-section .center-side .footer-menu-box {
    width: 100%;
    padding: 0;
  }
  .newfooter-section {
    background-size: auto 180px;
  }
  .newfooter-section .bottom-footer {
    padding-top: 80px;
  }
  .newfooter-section .right-side {
    padding: 10px 0 0;
  }
}

/* ========================================
   Merged from footer-social.module/module.css,
   footer-services.module/module.css,
   footer-policy.module/module.css,
   footer-button-toggle.module/module.css
   to avoid 4 extra render-blocking CSS requests
   on every page (footer is global).
   Footer dark-mode rules are in the "Footer — dark mode" block at the
   end of this file.
   ======================================== */

.footer-policy-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 25px;
}

.footer-policy-columns h3 {
  text-transform: none !important;
}

.footer-policy-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 992px) {
  .footer-policy-columns {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
}

/* ========================================
   Footer — dark mode (tokens only, see utilities/_variables.css)
   ======================================== */

html[data-theme="dark"] .newfooter-section {
  background: var(--color-bg-footer) !important;
  border-top-color: var(--color-border-medium);
}

/* Decorative light-mode artwork is dropped on the dark gradient */
html[data-theme="dark"] .newfooter-section::before,
html[data-theme="dark"] .newfooter-section::after,
html[data-theme="dark"] .newfooter-section img[src*="footer"],
html[data-theme="dark"] .newfooter-section img[src*="Sillon"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html[data-theme="dark"] .newfooter-section,
html[data-theme="dark"] .newfooter-section p,
html[data-theme="dark"] .newfooter-section li,
html[data-theme="dark"] .newfooter-section span {
  color: var(--color-text);
}

html[data-theme="dark"] .newfooter-section .left-side .footer-logo img {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .newfooter-section .left-side .footer-service .box {
  background-color: transparent !important;
}

/* The light rules use the full .center-side .footer-menu-box chain, so the
   dark ones must match it to out-rank them. */
html[data-theme="dark"] .newfooter-section .footer-menu ul > li > a,
html[data-theme="dark"] .newfooter-section .center-side .footer-menu-box .footer-menu ul li a {
  color: var(--color-text);
}

html[data-theme="dark"] .newfooter-section .footer-menu ul > li > a:hover,
html[data-theme="dark"] .newfooter-section .center-side .footer-menu-box .footer-menu ul li a:hover {
  color: var(--color-primary);
}

/* Social icons and the contact button share one treatment: light-blue fill,
   dark icon/text; hover flips to the page color with light text. */
html[data-theme="dark"] .newfooter-section .right-side .footer-social ul li a,
html[data-theme="dark"] .newfooter-section .right-side .footer-btn a {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

html[data-theme="dark"] .newfooter-section .right-side .footer-social ul li a:hover,
html[data-theme="dark"] .newfooter-section .right-side .footer-btn a:hover {
  background: var(--color-bg);
  border-color: var(--color-bg);
  color: var(--color-text-light);
}

/* The envelope is a white SVG file; as a mask it takes the exact text color
   (a filter can only reach pure black). */
html[data-theme="dark"] .newfooter-section .right-side .footer-btn a:before {
  background-image: none;
  background-color: var(--color-on-primary);
  -webkit-mask: url("https://www.altametris.com/hubfs/mail.svg") no-repeat center / contain;
  mask: url("https://www.altametris.com/hubfs/mail.svg") no-repeat center / contain;
}

html[data-theme="dark"] .newfooter-section .right-side .footer-btn a:hover:before {
  background-color: var(--color-text-light);
}
/* Menu and simple menu */

.hs-menu-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Horizontal menu */

.hs-menu-wrapper.hs-menu-flow-horizontal .hs-menu-children-wrapper {
  flex-direction: column;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.hs-menu-flow-horizontal ul {
    flex-direction: column;
  }
}

/* Vertical menu */

.hs-menu-wrapper.hs-menu-flow-vertical ul {
  flex-direction: column;
}

/* Flyouts */

.hs-menu-wrapper.hs-menu-flow-vertical.flyouts ul {
  display: inline-flex;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.hs-menu-flow-vertical ul {
    display: flex;
  }
}

.hs-menu-wrapper.flyouts .hs-item-has-children {
  position: relative;
}

.hs-menu-wrapper.flyouts .hs-menu-children-wrapper {
  left: -9999px;
  opacity: 0;
  position: absolute;
}

.hs-menu-wrapper.flyouts .hs-menu-children-wrapper a {
  display: block;
  white-space: nowrap;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.flyouts
  .hs-item-has-children:hover
  > .hs-menu-children-wrapper {
  left: 0;
  opacity: 1;
  top: 100%;
}

.hs-menu-wrapper.hs-menu-flow-vertical.flyouts
  .hs-item-has-children:hover
  > .hs-menu-children-wrapper {
  left: 100%;
  opacity: 1;
  top: 0;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.flyouts .hs-menu-children-wrapper,
  .hs-menu-wrapper.hs-menu-flow-horizontal.flyouts
    .hs-item-has-children:hover
    > .hs-menu-children-wrapper,
  .hs-menu-wrapper.hs-menu-flow-vertical.flyouts
    .hs-item-has-children:hover
    > .hs-menu-children-wrapper {
    left: 0;
    opacity: 1;
    position: relative;
    top: auto;
  }
}

/* CTA, logo, and rich text images */

.hs_cos_wrapper_type_cta img,
.hs_cos_wrapper_type_logo img,
.hs_cos_wrapper_type_rich_text img {
  height: auto;
  max-width: 100%;
}

/* Three Columns Module */

.three-columns {
  margin: 60px 0;
}

.three-columns .item {
  margin: 1.5rem 0;
}

.three-columns .item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
}

@media (min-width: 992px) {
  .three-columns .inner {
    display: grid;
    grid-template-areas:
      "item-1 item-3 item-5"
      "item-2 item-4 item-6";
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 3rem;
    grid-row-gap: 1rem;
    align-items: start;
  }
}

/* Video/Iframe Embeds */

.iframe_wrapper {
  height: 0;
  padding-bottom: 56.25%;
  padding-top: 25px;
  position: relative;
}

.oembed_container {
  display: inline-block;
  height: 100%;
  position: relative;
  width: 100%;
}

.oembed_container .iframe_wrapper > * {
  height: 100%;
  left: 0;
  margin: 0 auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

.embed_container {
  display: inline-block;
  height: 100%;
  position: relative;
  width: 100%;
}

.embed_container iframe {
  left: 0;
  max-height: 100%;
  max-width: 100%;
  position: absolute;
  right: 0;
  top: 0;
}

/* Utilities
Helper classes with ability to override anything that comes before it
*/

/* ========================================
   CSS Custom Properties (Design Tokens)
   Altametris 2025 Theme

   Single source of truth for color. The dark palette is defined ONCE,
   in the `html[data-theme="dark"]` block below; components only ever
   read tokens, they never hard-code a dark value.
   ======================================== */

:root {
  /* ===== Color Palette ===== */

  /* Primary Blue */
  --color-primary: #0088ce;
  --color-primary-light: #97c7ec;
  --color-primary-lighter: #b8dcf5;
  --color-primary-dark: #006ba1;
  --color-on-primary: #ffffff; /* text/icons on a --color-primary fill */

  /* Secondary Purple */
  --color-secondary: #800064;
  --color-secondary-light: #ba6aa7;

  /* Tertiary Teal */
  --color-tertiary: #00aaa0;
  --color-tertiary-light: #7fccc6;

  /* Quaternary Orange */
  --color-quaternary: #f26334;
  --color-quaternary-light: #f8a98d;

  /* Text */
  --color-text: #33475b;
  --color-text-light: #d9d9d9;
  --color-text-muted: #b9b9b9;
  --color-text-gray: #999;
  --color-heading: #003865;

  /* Surfaces */
  --color-bg: #ffffff; /* page, header, sections, menus */
  --color-bg-alt: #f5f8fa; /* secondary surface (summary box, hover) */
  --color-bg-footer: linear-gradient(180deg, #0084d4 0%, #003865 65%, #003865 100%);
  --color-card-bg: #ffffff;
  --color-card-text: #212529;
  --color-card-accent: #0088ce;

  /* Borders */
  --color-border: #e0e0e0;
  --color-border-medium: rgba(255, 255, 255, 0.2);
  --color-border-strong: rgba(255, 255, 255, 0.3);

  /* Links */
  --color-link: var(--color-primary);
  --color-link-hover: var(--color-primary-dark);

  /* ===== Spacing ===== */
  --gap-footer: 25px;

  /* ===== Transitions ===== */
  --transition-default: all 0.3s ease;
  --transition-fast: all 0.2s ease;

  /* ===== Shadows ===== */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Dark Mode — the only place dark colors are defined
   ======================================== */

html[data-theme="dark"] {
  color-scheme: dark; /* native scrollbars, form controls, selects */

  /* Brand — one light blue for links, accents and button fills */
  --color-primary: #97c7ec;
  --color-primary-light: #b8dcf5;
  --color-primary-lighter: #d4ecff;
  --color-primary-dark: #b8dcf5;
  --color-on-primary: #3c3732;

  --color-secondary: #ba6aa7;
  --color-secondary-light: #cf91c1;
  --color-tertiary: #7fccc6;
  --color-quaternary: #f8a98d;

  /* Text */
  --color-text: #d9d9d9;
  --color-text-light: #ffffff;
  --color-text-muted: #b9b9b9;
  --color-text-gray: #c4c4c4;
  --color-heading: #d4ecff;

  /* Surfaces — ONE flat background everywhere (no alternating sections) */
  --color-bg: #3c3732;
  --color-bg-alt: #747678;
  --color-bg-footer: linear-gradient(180deg, rgba(0, 132, 212, 0.65) 0%, #003865 89%);
  --color-card-bg: #b9b9b9;
  --color-card-text: #000000;
  --color-card-accent: #003865;

  /* Borders */
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-medium: rgba(255, 255, 255, 0.2);
  --color-border-strong: rgba(255, 255, 255, 0.3);

  /* Links */
  --color-link: var(--color-primary);
  --color-link-hover: var(--color-primary-light);

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 4px 20px rgba(0, 0, 0, 0.7);
}
/* For content that needs to be visually hidden but stay visible for screenreaders */

.show-for-sr {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

@media (max-width: 767px) {
  .show-for-sr--mobile {
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
  }
}
/* ========================================
   Dark Mode — global rules

   HOW IT WORKS
   1. The data-theme="dark" attribute on the root element is set before first paint by the inline
      script in templates/layouts/base.html, and toggled by the header
      module (header-top-bar.module/module.js). Choice lives in
      localStorage ("theme").
   2. Colors come from tokens only. The dark palette is defined once, in
      utilities/_variables.css. Nothing here (or in a component) should
      hard-code a dark hex — change the token instead.
   3. The page is ONE flat color (--color-bg). Sections never alternate.
   4. Component dark rules live next to the component (module.css,
      _header.css, _footer.css) and use tokens too. This file holds only
      what is global: base, editor-authored content, forms, buttons.
   5. Safety net for the future: headings, links and body text are
      readable by default, so a new module is legible before it gets any
      dark rule of its own.
   ======================================== */

/* ===== 1. Base ===== */
html[data-theme="dark"] body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

html[data-theme="dark"] a {
  color: var(--color-link);
}

html[data-theme="dark"] a:hover {
  color: var(--color-link-hover);
}

/* Plain headings. !important is deliberate: a heading's own light-mode
   color must never win on a dark page. A module that needs a different
   title color (see bullets / onglets) overrides this with !important and
   a more specific selector. */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
  color: var(--color-heading) !important;
}

html[data-theme="dark"] hr {
  border-color: var(--color-border);
}

html[data-theme="dark"] img:not(.logo):not([data-no-dark]) {
  opacity: 0.9;
}

/* ===== 2. Native HubSpot section backgrounds =====
   "Edit section > Background" color/gradient is a light-mode choice made
   per row in the page editor. In dark mode every row sits on the same flat
   page color instead. (Rows with a real background image are left alone.) */
html[data-theme="dark"]
  :is([class*="-background-color"], [class*="-background-gradient"]):not([class*="-background-image"]) {
  background-color: transparent !important;
  background-image: none !important;
}

/* ===== 3. Editor-authored content =====
   Legacy rich text and widget style fields carry light-mode colors the
   theme can't know about. They are mapped onto tokens here. */

/* 3a. Inline light backgrounds (white / pale blue highlight blocks) */
html[data-theme="dark"]
  :is(
    [style*="background-color: #fff"],
    [style*="background-color:#fff"],
    [style*="background-color: white"],
    [style*="background-color: rgb(255, 255, 255)"],
    [style*="background-color: #f5f8fa"],
    [style*="background-color: #d4ecff"],
    [style*="background-color: #D4ECFF"],
    [style*="background: #fff"],
    [style*="background:#fff"]
  ):not(a, button, img, .alt-card *) {
  background-color: transparent !important;
}

/* 3b. Inline dark text → readable text */
html[data-theme="dark"]
  :is(
    [style*="color: #000"],
    [style*="color:#000"],
    [style*="color: black"],
    [style*="color: rgb(0, 0, 0)"],
    [style*="color: #212529"],
    [style*="color:#212529"],
    [style*="color: #333"],
    [style*="color:#333"],
    [style*="color: #353a40"],
    [style*="color: #3c3732"],
    [style*="color:#3c3732"],
    [style*="color: #3C3732"],
    [style*="color: #4f4f4f"],
    [style*="color: #494a52"],
    [style*="color: #33475b"]
  ):not(.alt-card *) {
  color: var(--color-text) !important;
}

/* 3c. Inline brand colors → their dark-mode equivalent */
html[data-theme="dark"]
  :is(
    [style*="color: #0088ce"],
    [style*="color:#0088ce"],
    [style*="color: #0088CE"],
    [style*="color:#0088CE"],
    [style*="color: #0086c3"]
  ) {
  color: var(--color-primary) !important;
}

/* Purple text: the lighter shade, since the base one is too faint for body-size text */
html[data-theme="dark"] :is([style*="color: #800064"], [style*="color:#800064"]) {
  color: var(--color-secondary-light) !important;
}

html[data-theme="dark"] :is([style*="color: #999"], [style*="color:#999"]) {
  color: var(--color-text-gray) !important;
}

html[data-theme="dark"] :is([style*="color: #003865"], [style*="color:#003865"]) {
  color: var(--color-heading) !important;
}

/* 3d. Inline brand-colored fills (table header cells, highlight blocks):
   they become the light-blue fill, so the text on them must be the dark one */
html[data-theme="dark"]
  :is(
    [style*="background-color: #0088ce"],
    [style*="background-color: #0088CE"],
    [style*="background:#0088ce"],
    [style*="background-color: #97c7ec"],
    [style*="background-color: #97C7EC"],
    [style*="background-color: #b8dcf5"]
  ) {
  background-color: var(--color-primary) !important;
  color: var(--color-on-primary) !important;
}

html[data-theme="dark"]
  :is(
    [style*="background-color: #0088ce"],
    [style*="background-color: #0088CE"],
    [style*="background:#0088ce"],
    [style*="background-color: #97c7ec"],
    [style*="background-color: #97C7EC"],
    [style*="background-color: #b8dcf5"]
  )
  * {
  color: inherit !important;
}

/* 3e. Native widgets (Header / Text / Rich text) with a "Text color" style
   field. HubSpot renders it as `#hs_cos_wrapper_widget_N h2 { color: … !important }`
   — an ID selector, which no class-based rule can beat even with !important.
   `:is(#_, html)` gives these rules ID-level specificity: `:is()` takes its
   most specific argument, and the unused `#_` never has to match. */
html[data-theme="dark"]:is(#_, html)
  :is(.widget-type-header, .widget-type-text, .widget-type-rich_text)
  :is(h1, h2, h3, h4, h5, h6) {
  color: var(--color-heading) !important;
}

html[data-theme="dark"]:is(#_, html)
  :is(.widget-type-text, .widget-type-rich_text)
  :is(p, li, span, label, div):not([style*="color"]):not([style*="background-color"] *) {
  color: var(--color-text) !important;
}

/* ===== 4. Forms (HubSpot embedded forms) ===== */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background-color: var(--color-bg-alt);
  border-color: var(--color-border-medium);
  color: var(--color-text-light);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--color-text-muted);
}

html[data-theme="dark"] label {
  color: var(--color-text);
}

/* ===== 5. Buttons =====
   Filled buttons: light-blue fill, dark text; hover goes one step lighter.
   Header and footer buttons have their own (validated) hover states. */
html[data-theme="dark"] .cta:not([style*="background"]),
html[data-theme="dark"] .hs-button {
  background-color: var(--color-primary);
  border-color: var(--color-border-medium);
  color: var(--color-on-primary);
}

html[data-theme="dark"] .cta:not([style*="background"]):hover,
html[data-theme="dark"] .hs-button:hover {
  background-color: var(--color-primary-light);
}

html[data-theme="dark"] .splide__toggle {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

html[data-theme="dark"] .splide__toggle svg {
  fill: var(--color-on-primary);
}

/* ===== 6. Embedded forms (contact-form module, and the legacy
   altametris-form module still used on 2025 pages — same markup) =====
   Editors set the section, card, label and button colors per instance
   (scoped inline <style>), all light-mode choices — hence !important.
   In dark mode: flat page background, the form sits on a light card (same
   as the testimonial cards), outlined fields, dark button. */
html[data-theme="dark"] .form-section {
  background: transparent !important;
}

html[data-theme="dark"] .form-wrapper {
  background-color: var(--color-card-bg) !important;
  color: var(--color-card-text);
}

html[data-theme="dark"] .form-wrapper :is(h2, label, legend, p, span, li, div, .hs-richtext) {
  color: var(--color-card-text) !important;
}

html[data-theme="dark"] .form-wrapper a {
  color: var(--color-card-accent) !important;
}

html[data-theme="dark"] .form-wrapper :is(input:not([type="submit"]), textarea, select) {
  background-color: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45) !important;
  color: var(--color-card-text);
}

html[data-theme="dark"] .form-wrapper :is(input, textarea)::placeholder {
  color: rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .form-wrapper .actions .hs-button {
  background-color: var(--color-card-accent) !important;
  color: var(--color-text-light) !important;
}