/* ============================================================
   VIISE Header — Static HTML
   Matched to design/viise-vf/index.html reference (type5)
   Tokens: --vii-primary-color: #0e2f6f, accent: #008cff
   ============================================================ */

:root {
  --vii-primary-color: #0e2f6f;
  --vii-accent: #008cff;
  --vii-red: #f23b27;
}
.header-wrapper.stuck .nav-right li.html,
.header-wrapper.stuck  .nav-right li.header-block{
    display: none;
}

.header-wrapper:not(.stuck) .nav-right li.header-block{
    display: none;
}

.header-wrapper .nav-right li.html {
    display: block;
}
.header-wrapper.stuck .nav-right li.header-block{
    display: block;
}
/* ---------- Base header ---------- */
.header {
  position: relative;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
}

/* ---------- Container wrap (type5) ---------- */
.type5 .header__container-wrap {
  position: relative;
  background: #fff;
}

/* ---------- Inner container ---------- */
.header__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 12px 0;
  align-items: center;
}
@media screen and (max-width: 1200px) {
  .header__container {
    padding-right: 50px;
  }
}
@media screen and (max-width: 1024px) {
  .header__container {
    padding: 20px 15px 20px 24px;
  }
}
@media screen and (max-width: 767px) {
  .header__container {
    padding: 17px 15px 17px 24px;
  }
}

/* ---------- Logo + h6 (type5) ---------- */
.type5 .header__top-logo {
  width: auto;
  max-width: 50%;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.type5 .header__top-logo a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  max-width: 100%;
}
.type5 .header__top-logo img {
  display: block;
  padding-right: 10px;
  border-right: 1px solid var(--vii-primary-color);
  max-width: 220px;
  width: auto;
  height: auto;
}
.type5 .header__top-logo h6 {
  border-top: none !important;
  padding-left: 10px;
  text-align: left;
  line-height: 1.5;
  font-size: 13px;
  margin: 0;
  color: inherit;
}
@media screen and (max-width: 1440px) {
  .type5 .header__top-logo img { max-width: 180px; }
  .type5 .header__top-logo h6 { font-size: 12px; }
}
@media screen and (max-width: 1024px) {
  .type5 .header__top-logo h6 { font-size: 11px; }
}
@media screen and (max-width: 1200px) {
  .type5 .header__top-logo {
    width: auto;
    max-width: 60%;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
  }
  .type5 .header__top-logo img { max-width: 240px; }
}
@media screen and (max-width: 600px) {
  .header__top-logo a {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
  }
  .type5 .header__top-logo a {
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }
  .type5 .header__top-logo img {
    border-right: none;
    padding-right: 0;
    max-width: 150px;
  }
  .type5 .header__top-logo h6 {
    padding-left: 0;
    padding-top: 6px;
    font-size: 10px;
    text-align: left;
  }
}
@media screen and (max-width: 400px) {
  .type5 .header__top-logo {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .type5 .header__top-logo h6 {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    white-space: normal;
  }
}
@media only screen and (max-width: 767px) {
  .type5 .header__top-logo img { max-width: 140px; }
  .type5 .header__top-logo h6 { font-size: 10px; line-height: 1.4; }
}

/* ---------- Support logos block (type5) ---------- */
.type5 .support__logos-block {
  justify-content: flex-end;
  align-items: center;
  width: auto;
  max-width: 38%;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  margin-right: 0;
  margin-left: auto;
  gap: 0;
  display: flex;
  flex-wrap: wrap;
}
.type5 .support__logos-block .support__logos--head {
  text-align: left;
}
.type5 .support__logos-block .support__logos--head h6 {
  color: var(--vii-primary-color);
  text-transform: uppercase;
  font-size: 14px;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}
.type5 .support__logos-block .support__logos--row {
  width: auto;
  max-width: 100%;
  margin-top: 6px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.type5 .support__logos-block .support__logos--img img {
  width: auto;
  height: 34px;
  object-fit: contain;
  display: block;
}
@media screen and (max-width: 768px) {
  .type5 .support__logos-block .support__logos--img { max-width: 140px; }
  .type5 .support__logos-block .support__logos--img img { max-height: 44px; }
}
@media screen and (max-width: 550px) {
  .type5 .support__logos-block .support__logos--head h6 { font-size: 12px; }
}
@media screen and (max-width: 767px) {
  .type5 .support__logos-block {
    -webkit-box-ordinal-group: 4;
    -ms-flex-order: 3;
    order: 3;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}

/* ---------- CTA buttons ---------- */
.header__top-cta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  width: 30%;
}
.header_cta a {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  color: var(--vii-primary-color) !important;
  background: 0 0 !important;
  border-color: var(--vii-primary-color) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-theme-3 a {
  background: var(--vii-red) !important;
  color: #fff !important;
  border: 1px solid var(--vii-red) !important;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 99px;
}
.btn-theme-4 a {
  background: transparent !important;
  color: var(--vii-red) !important;
  border: 1px solid var(--vii-red) !important;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 99px;
}
.btn-theme-3 a:hover,
.btn-theme-4 a:hover {
  background: #fff !important;
  color: var(--vii-red) !important;
}

/* Desktop-only CTA hidden by default */
.type5 .header__top-cta {
  display: none;
  width: 40%;
}
.type5 .header__top-cta.mobile-only {
  display: none;
}
@media only screen and (max-width: 1200px) {
  .type5 .header__top-cta.mobile-only {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 30px;
    border-top: 1px solid #eee;
    margin-top: auto;
    width: 100%;
  }
}

/* ---------- Menu gradient (type5) ---------- */
@media (min-width: 1201px) {
  .type5 .header__menu-wrap {
    background: -webkit-gradient(linear, left top, right top, color-stop(20%, var(--vii-primary-color)), to(#008cff));
    background: linear-gradient(90deg, var(--vii-primary-color) 20%, #008cff 100%);
  }
}

/* ---------- Menu ---------- */
.type5 .header__menu {
  margin-top: 0;
}
.type5 .header__menu-list {
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding: 0;
  background: 0 0;
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
}
.type5 .header__menu-list > li > a {
  padding: 15px;
  text-transform: uppercase;
  font-size: 16px;
  color: var(--vii-primary-color);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: opacity 0.2s;
  white-space: nowrap;
  position: relative;
}
.type5 .header__menu-list > li > a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--vii-primary-color);
  transition: width 0.3s ease;
}
.type5 .header__menu-list > li > a:hover {
  opacity: 0.85;
}
.type5 .header__menu-list > li > a:hover:after {
  width: 100%;
}
@media only screen and (max-width: 1200px) {
  .type5 .header__menu-list > li > a {
    padding: 0;
    color: var(--vii-primary-color);
  }
}

/* ---------- Hamburger icon ---------- */
.hamburger-icon {
  position: relative;
  display: none;
  -ms-flex-line-pack: center;
  align-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 19px;
  padding: 0 10px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 100001;
}
.hamburger-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #fff;
  left: 0;
  transition: all 0.3s ease;
}
.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-icon span:nth-child(3) { bottom: 0; }
.type5 .hamburger-icon {
  position: absolute;
  z-index: 100001;
  top: 26px;
  right: 24px;
  height: 19px;
}
@media only screen and (max-width: 767px) {
  .type5 .hamburger-icon { top: 22px; }
}
@media only screen and (max-width: 1200px) {
  .hamburger-icon { display: -webkit-box; display: -ms-flexbox; display: flex; }
}
@media (max-width: 550px) {
  .type5 .hamburger-icon { right: 19px; }
}

/* Hamburger active state (open drawer) */
.hamburger-icon.menu_active span {
  -webkit-transform-origin: center;
  transform-origin: center;
}
.hamburger-icon.menu_active span:nth-child(1) {
  top: 6px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.hamburger-icon.menu_active span:nth-child(2) {
  opacity: 0;
}
.hamburger-icon.menu_active span:nth-child(3) {
  bottom: 6px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/* ---------- Drawer: menu_active ---------- */
@media only screen and (max-width: 1200px) {
  .type5 .header__menu.menu_active {
    right: 0;
  }
}

/* ---------- Scrolled state ---------- */
.scrolled .header {
  position: fixed;
  padding: 0 0 0;
}
.scrolled .type5.main_header {
  position: fixed;
  padding: 0;
}
.scrolled .header__container {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 14px 18px;
  -webkit-box-shadow: 4px 4px 20px 0 rgba(48, 69, 147, 0.4);
  box-shadow: 4px 4px 20px 0 rgba(48, 69, 147, 0.4);
}
.scrolled .type5 .header__container {
  -webkit-box-shadow: none;
  box-shadow: none;
}
@media only screen and (max-width: 1440px) {
  .scrolled .header__container { padding: 15px; }
}
.scrolled .header__top-cta .header_cta a {
  padding: 10px;
}
.scrolled .header__top-logo h6 { font-size: 14px; }
@media only screen and (max-width: 1440px) {
  .scrolled .header__top-logo h6 { font-size: 12px; }
}
.scrolled .header__top-logo { width: 30%; }
@media only screen and (max-width: 1440px) {
  .scrolled .header__top-logo { width: 40%; }
}
.scrolled .header__top-logo a { max-width: 100%; }
@media only screen and (max-width: 1199px) {
  .scrolled .header__top-logo { width: 80%; }
}
@media only screen and (max-width: 767px) {
  .scrolled .header__top-logo {
    width: calc(100% - 50px);
    margin-bottom: 15px;
  }
}
.scrolled .type5 .header__top-cta.desktop-only {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  width: auto;
}
.scrolled .type5 .header__top-logo {
  width: auto;
  max-width: calc(100% - 20px);
}
.scrolled .type5 .header__menu-list > li > a {
  color: #fff;
}
.scrolled .type5 .header__menu-list > li > a:after {
  background-color: #fff;
}
.scrolled .type5 .header__menu {
  width: 100%;
  max-width: 100%;
}
@media only screen and (min-width: 1200px) {
  .scrolled .type5 .header__menu { top: 0 !important; }
}

/* ---------- a11y ---------- */
.hamburger-icon:focus-visible {
  outline: 2px solid var(--vii-primary-color);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
