/* ==========================================================================
   header-2026.css
   Global base + site header for pages using header-2026.php.

   Replaces header.css AND the header parts of responsive.css on the new
   template. Load order in header-2026.php:
     header-2026.css → footer-2026.css → services-2026.css
   Do not load header.css, footer.css or responsive.css alongside it.

   Values match what the live site renders today (header.css + responsive.css
   combined), with these deliberate changes:
   - Sticky header keeps the full-size logo and tagline (95px bar).
   - Header rules no longer use !important, so page CSS cannot fight them.
   - Unused rules removed (old contact bar, modals, loaders, old banner logos,
     partner header, wpcf7, webinar, etc.).
   - Vendor prefixes and "transition: all" removed.
   - Visible keyboard focus restored.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.15;
  color: #6c6c6c;
}

.container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 20px;
  color: #000;
}

h1, h2, h3 {
  font-size: 28px;
  font-weight: 400;
  line-height: 40px;
}

h4, h5, h6 {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

h4 strong, h5 strong, h6 strong {
  font-weight: 500;
}

p {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #6c6c6c;
}

a {
  color: #000;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease-out, background-color 0.3s ease-out;
}

a:hover,
a:focus {
  color: #fd7d24;
}

p a {
  display: inline-block;
  font-weight: 500;
  color: #000;
  word-break: break-word;
}

strong {
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

ol,
ul {
  list-style: none;
  margin-bottom: 10px;
}

button {
  border: 0;
  font: inherit;
}

/* Keyboard focus only — mouse clicks stay clean. */
:focus {
  outline: 0;
}

:focus-visible {
  outline: 2px solid #ff7d04;
  outline-offset: 2px;
}

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

.f-left {
  float: left;
}

.f-right {
  float: right;
}

/* Visually hidden, still read by screen readers. */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* --------------------------------------------------------------------------
   2. Buttons and lead form (shared by page and footer)
   -------------------------------------------------------------------------- */

.primary-btn {
  border-radius: 55px;
  background-color: #030cbd;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.3s ease-in-out;
}

.primary-btn:hover,
.primary-btn:focus {
  background-color: #d66d0b;
  color: #fff;
}

.consult-form {
  width: 100%;
  padding: 25px 30px 30px;
  background: #f9fcff;
  border-radius: 8px;
  box-shadow: 3px 8px 36px -15px rgba(1, 4, 60, 0.4);
}

.consult-form h2 {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  color: #000;
}

.form-group {
  margin-bottom: 12px;
}

.consult-form .form-group p {
  margin: 2px 0 0;
}

.form-control {
  display: block;
  width: 100%;
  height: 40px;
  padding: 6px 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #000;
  background-color: #f0f0f0;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}

.form-control::placeholder {
  color: #4c4c4c;
}

textarea.form-control {
  height: 98px;
  padding-top: 10px;
  resize: none;
}

.consult-form .form-control:focus {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(3, 12, 189, 0.35);
}

.error,
span.wpcf7-not-valid-tip {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #bf5454;
}


/* --------------------------------------------------------------------------
   3. Header bar
   -------------------------------------------------------------------------- */

.wrapper {
  padding-top: 130px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 130px;
  background-color: #04113f;
  transition: height 0.3s;
}

/* Keep the header below the WordPress admin bar for logged-in editors. */
@media screen and (min-width: 601px) {
  .admin-bar .header {
    top: 32px;
  }
}

@media screen and (min-width: 601px) and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

.main-head-container {
  height: 100%;
}

.top-header {
  position: relative;
  top: 15px;
  float: left;
  width: 100%;
}

.top-header .f-right {
  display: flex;
  align-items: center;
}

.main-header {
  float: left;
  width: 100%;
}


/* --------------------------------------------------------------------------
   4. Search
   Markup order is input → button; the icon is moved back to the left with
   `order`, as it looked before. Height is fixed at 40px so the larger tap
   target does not make the box taller.
   -------------------------------------------------------------------------- */

.header-search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 360px;
  height: 40px;
  margin-right: 35px;
  padding: 0 12px 0 2px;
  border: 1px solid #fff;
  border-radius: 5px;
}

.search-btn-tag {
  order: -1;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: url(https://www.nebiolab.com/wp-content/uploads/2024/10/search-head-icon-white.webp) center no-repeat;
}

.input-search-tag {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  font-size: 15px;
  color: #fff;
  background-color: transparent;
  border: 0;
}

.input-search-tag::placeholder {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.input-search-tag:focus {
  outline: 0;
}

.header-search-field:focus-within {
  border-color: #ff7d04;
}

#termDate {
  position: absolute;
  top: 38px;
  left: 0;
  z-index: 99;
  width: 100%;
  margin-top: 3px;
}

#termDate .wishlist {
  max-height: 300px;
  padding: 12px 15px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
}

#termDate .wishlist li {
  padding: 3px 0;
  font-size: 14px;
  line-height: 24px;
}

#termDate .wishlist li a br {
  display: none;
}

#termDate.no-record .wishlist {
  display: none;
}


/* --------------------------------------------------------------------------
   5. Logo and tagline
   -------------------------------------------------------------------------- */

.logo-section {
  float: left;
  margin-top: -15px;
}

.header-logo {
  position: relative;
  float: left;
  width: 232px;
}

.header-logo > img {
  margin-bottom: 0;
}

.logo-subtitle {
  position: relative;
  top: -2px;
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.915rem;
  font-weight: 600;
  line-height: 18px;
  color: #fff;
}

.header .logo-subtitle {
  white-space: nowrap;
}


/* --------------------------------------------------------------------------
   6. Main navigation
   -------------------------------------------------------------------------- */

.main-nav {
  display: flex;
  align-items: center;
  float: right;
  margin: 30px 0 0;
  padding-bottom: 0;
}

.main-nav > li {
  position: relative;
  margin: 8px 0 0 50px;
  padding-bottom: 8px;
}

.main-nav > li:first-child {
  margin-left: 0;
}

.main-nav > li > a {
  position: relative;
  display: block;
  padding-right: 14px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

/* Dropdown caret */
.main-nav > li > a::after {
  content: "";
  position: absolute;
  top: 7px;
  right: -2px;
  border-top: 5px solid #fff;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: border-color 0.3s ease-out;
}

.main-nav > li:hover > a,
.main-nav > li:focus-within > a,
.main-nav > li.current-menu-item > a,
.main-nav > li.current-menu-ancestor > a,
.main-nav li.current-menu-parent > a {
  color: #00f0ff;
  background-color: transparent;
}

.main-nav > li:hover > a::after,
.main-nav > li:focus-within > a::after,
.main-nav > li.current-menu-item > a::after,
.main-nav > li.current-menu-ancestor > a::after,
.main-nav li.current-menu-parent > a::after {
  border-top-color: #00f0ff;
}

/* Request Quote (6th item) */
.main-nav > li:nth-child(6) {
  margin-top: 0;
  margin-left: 50px;
  padding-bottom: 0;
}

.main-nav > li:nth-child(6) > a {
  min-width: 240px;
  margin: 0;
  padding: 15px 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #04113f;
  text-align: center;
  text-transform: uppercase;
  background-color: #fff;
  border-radius: 50px;
  transition: none;
}

.main-nav > li:nth-child(6) > a::after {
  display: none;
}

.main-nav > li:nth-child(6) > a:hover,
.main-nav > li:nth-child(6) > a:focus {
  color: #04113f;
  background-color: #00f0ff;
}

/* Dropdowns */
.sub-menu {
  position: absolute;
  top: 25px;
  left: 0;
  z-index: 99;
  display: none;
  width: 200px;
  margin: 0;
  padding: 10px 0;
  background: #fff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.main-nav > li > .sub-menu {
  padding-top: 0;
  border-top: 6px solid #00f0ff;
  border-radius: 0 0 20px 20px;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  display: block;
}

.sub-menu li {
  position: relative;
}

.sub-menu li > .sub-menu {
  top: 5px;
  left: -200px;
}

.sub-menu li > a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #060606;
}

.sub-menu li:hover > a,
.sub-menu li:focus-within > a,
.sub-menu li.current-menu-item > a,
.sub-menu li.current-menu-parent > a {
  color: #fff;
  background-color: #485c8c;
}

/* The "All …" link is the parent link again, so it is hidden in dropdowns,
   except under Resources (5th item). */
.main-nav > li > .sub-menu > li:first-child {
  display: none;
}

.main-nav > li:nth-child(5) > .sub-menu > li:first-child {
  display: block;
}

/* Menu icons */
.menu-icon-white {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0 10px 0 0;
  object-fit: contain;
}

.sub-menu li:hover > a .menu-icon-white,
.sub-menu li:focus-within > a .menu-icon-white,
.sub-menu li.current-menu-item > a .menu-icon-white,
.sub-menu li.current-menu-parent > a .menu-icon-white {
  filter: invert(100%) brightness(1000%);
}

/* Parent is hovered but this third-level item is not: keep its icon dark. */
.sub-menu li:hover .sub-menu li:not(:hover):not(.current-menu-item) > a .menu-icon-white {
  filter: none;
}


/* --------------------------------------------------------------------------
   7. Sticky header (added by JS on scroll)
   Full-size logo and tagline, so the tagline never wraps.
   -------------------------------------------------------------------------- */

.header.sticky-header {
  height: 95px;
}

.sticky-header .top-header {
  display: none;
}

.sticky-header .logo-section {
  margin-top: 8px;
}

.sticky-header .main-nav {
  margin-top: 22px;
}


/* --------------------------------------------------------------------------
   8. Mobile header and slide-out menu (hidden on desktop)
   -------------------------------------------------------------------------- */

.mob-responsive-block,
.sidebar-menu {
  display: none;
}


/* --------------------------------------------------------------------------
   9. Cookiebot
   -------------------------------------------------------------------------- */

a#CybotCookiebotDialogPoweredbyCybot,
div#CybotCookiebotDialogPoweredByText,
#CookiebotWidget .CookiebotWidget-body .CookiebotWidget-main-logo {
  display: none !important;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1299px) {
  .container {
    max-width: 1150px;
  }

  .header-logo {
    margin-right: 24px;
  }

  .main-nav > li {
    margin-left: 40px;
  }

  .main-nav > li:nth-child(6) {
    margin-left: 40px;
  }

  .main-nav > li:nth-child(6) > a {
    min-width: 180px;
  }
}

@media (max-width: 1199px) {
  .container {
    max-width: 986px;
  }

  .header-search-field {
    min-width: 300px;
    margin-right: 20px;
  }

  .header-logo {
    margin-right: 10px;
  }

  .main-nav > li {
    margin-left: 20px;
  }

  .main-nav > li:nth-child(6) {
    margin-left: 30px;
  }

  .main-nav > li > a {
    padding-right: 15px;
    font-size: 15px;
  }

  .main-nav > li:nth-child(6) > a {
    min-width: 160px;
  }
}

@media (max-width: 1023px) {
  .wrapper {
    padding-top: 190px;
  }

  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  .header {
    height: 190px;
    box-shadow: 0 2px 14px -7px rgba(138, 138, 138, 0.5);
  }

  .main-head-container {
    position: relative;
  }

  .main-header {
    display: none;
  }

  .top-header {
    position: static;
    top: 0;
    height: 67px;
    padding: 15px 0 10px;
  }

  .header-search-field {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    min-width: 0;
    margin-right: 0;
  }

  /* Mobile bar */
  .mob-responsive-block {
    display: block;
  }

  .mob-responsive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .mob-responsive-header .logo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    height: 58px;
    margin-top: 5px;
  }

  .header-mob-logo {
    position: absolute;
    top: 15px;
    left: 20px;
    width: 160px;
  }

  .header-mob-logo img {
    margin-bottom: 0;
  }

  .header .logo-subtitle {
    font-size: 0.633rem;
  }

  .request-btn-mob {
    width: 240px;
    padding: 13px 0;
    font-size: 13px;
    color: #04113f;
    background: #fff;
    border-radius: 50px;
  }

  .request-btn-mob:hover,
  .request-btn-mob:focus {
    color: #fff;
    background-color: #ff7d04;
  }

  /* Hamburger: a <button>, so the browser's default look is reset. */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    padding: 0;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
  }

  .sticky-header .header-mob-logo {
    left: 55px;
  }

  /* Slide-out menu. visibility keeps hidden links out of the tab order. */
  .sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: block;
    width: 100%;
    height: 100%;
    padding: 60px 20px 20px;
    overflow-y: auto;
    background: #fff;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.2s ease-in-out, visibility 0.2s ease-in-out;
  }

  .sidebar-menu.open {
    visibility: visible;
    transform: translateX(0);
  }

  .close-sidebar {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 14px;
    height: 14px;
    padding: 0;
    cursor: pointer;
    background: url(../img/close-icon.svg) left top no-repeat;
    border: 0;
  }

  .first-level-menu {
    margin-bottom: 20px;
  }

  .first-level-menu > h4 {
    position: relative;
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
  }

  /* Down / up caret, drawn with two stacked triangles */
  .first-level-menu > h4::before,
  .first-level-menu > h4::after {
    content: "";
    position: absolute;
    right: 0;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
  }

  .first-level-menu > h4::before {
    top: 9px;
    border-top: 10px solid #000;
  }

  .first-level-menu > h4::after {
    top: 7px;
    border-top: 10px solid #fff;
  }

  .first-level-menu > h4.active::before {
    top: 8px;
    border-top: 0;
    border-bottom: 10px solid #000;
  }

  .first-level-menu > h4.active::after {
    top: 10px;
    border-top: 0;
    border-bottom: 10px solid #fff;
  }

  /* The Request Quote section duplicates the button in the bar. */
  .sidebar-menu :nth-child(6) + .first-level-menu,
  .contact-link-mobile {
    display: none;
  }

  .sub-menu-nav {
    display: none;
    margin-bottom: 0;
    padding-left: 10px;
  }

  .sub-menu-nav li {
    padding-top: 15px;
  }

  .sub-menu-nav li a {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.8);
  }

  .sub-menu-nav li a:hover,
  .sub-menu-nav li a:focus {
    color: #030cbd;
  }

  .sub-menu-nav.third-level-menu {
    padding-top: 0;
  }

  .sub-menu-nav .sub-menu-nav li a {
    font-size: 14px;
    color: #48525c;
  }

  .sidebar-menu .menu-icon-white {
    display: none;
  }

  /* Form */
  .consult-form {
    padding: 20px 12px;
  }
}

@media (max-width: 767px) {
  .top-header .f-right {
    width: auto;
  }

  .header-search-field {
    bottom: 15px;
  }
}

@media (max-width: 479px) {
  .request-btn-mob {
    width: 140px;
  }
}

@media (max-width: 410px) {
  h1, h2, h3 {
    font-size: 22px;
    line-height: 32px;
  }

  .container {
    padding: 0 12px;
  }

  .header-search-field {
    left: 12px;
    width: calc(100% - 24px);
  }

  .header-mob-logo {
    left: 12px;
  }
}

@media (max-width: 370px) {
  .header-mob-logo {
    width: 155px;
  }

  .header .logo-subtitle {
    font-size: 0.61rem;
  }

  .request-btn-mob {
    width: 125px;
    font-size: 12px;
  }

  .sticky-header .header-mob-logo {
    width: 140px;
  }

  .sticky-header .logo-subtitle {
    font-size: 0.54rem;
  }
}

@media (max-width: 340px) {
  .wrapper {
    padding-top: 175px;
  }

  .header {
    height: 175px;
  }

  .header-mob-logo {
    width: 125px;
  }

  .consult-form h2 {
    font-size: 18px;
    line-height: 24px;
  }

  .form-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  #CybotCookiebotDialog {
    top: auto !important;
    bottom: 0 !important;
    height: auto !important;
    max-height: 75vh !important;
    margin: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
    border-radius: 12px 12px 0 0 !important;
    transform: translate(-50%, 0) !important;
  }

  #CybotCookiebotDialogBodyContent.CybotCookiebotScrollArea {
    max-height: 45vh !important;
    overflow-y: auto !important;
  }

  #CybotCookiebotDialogBodyContentTitle {
    margin-bottom: 6px !important;
    font-size: 1rem !important;
  }

  #CybotCookiebotDialogBodyContentText {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }

  .CybotCookiebotDialogContentWrapper {
    margin-bottom: 0 !important;
    padding: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  a,
  .header,
  .primary-btn,
  .sidebar-menu,
  .main-nav > li > a::after {
    transition: none;
  }
}