/* Main site header — design adapted from /investors/index.html */
:root {
  --site-header-red: #f21b2b;
  --site-header-ink: #151719;
}

.header {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 48px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  z-index: 1002;
  border-bottom: 1px solid #ecece8;
  transition: top 0.3s ease;
  box-sizing: border-box;
}

body.nav-open {
  overflow: hidden;
}

.header.navbar-hidden {
  top: -100px;
}

.header.navbar-visible {
  top: 0;
}

.header .brand {
  flex-shrink: 0;
  line-height: 0;
}

.header .brand img {
  width: 105px;
  height: auto;
  display: block;
}

.header-title {
  font-size: 9px;
  letter-spacing: 0.15em;
  font-weight: 700;
  line-height: 1.5;
  max-width: 70px;
  border-left: 1px solid #ddd;
  padding-left: 20px;
  color: var(--site-header-ink);
  text-transform: uppercase;
}

.header nav[aria-label="Main navigation"] {
  display: flex;
  gap: 36px;
  margin-left: auto;
  font-size: 17px;
  font-weight: 600;
  align-items: center;
}

.header nav[aria-label="Main navigation"] a {
  color: var(--site-header-ink);
  text-decoration: none;
  white-space: nowrap;
}

.header nav[aria-label="Main navigation"] a:hover,
.header nav[aria-label="Main navigation"] a[aria-current="page"],
.header nav[aria-label="Main navigation"] .nav-dropdown.is-active > .nav-dropdown-trigger {
  color: var(--site-header-red);
}

.header-cta[aria-current="page"] {
  color: var(--site-header-red);
  border-color: var(--site-header-red);
}

.nav-dropdown {
  position: relative;
  /* Invisible hover bridge so the pointer can reach the menu without closing it */
  padding-bottom: 16px;
  margin-bottom: -16px;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ecece8;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 1002;
}

.nav-dropdown-divider {
  display: block;
  height: 1px;
  margin: 8px 14px;
  background: #ecece8;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--site-header-ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--site-header-red);
  background: #f7f7f4;
}

.mobile-nav-sub {
  padding-left: 28px !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

.mobile-nav-group {
  border-bottom: 1px solid rgba(3, 207, 255, 0.35);
}

.mobile-nav-accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.mobile-nav-accordion::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.mobile-nav-accordion[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.mobile-nav-panel {
  padding: 0 0 8px;
}

.mobile-nav-panel .mobile-nav-sub {
  border-bottom: 0 !important;
}

.mobile-nav-group + a {
  border-top: 0;
}

.header-cta {
  margin-left: 10px;
  border: 1px solid #ccc;
  padding: 11px 17px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 23px;
  color: var(--site-header-ink);
  text-decoration: none;
  white-space: nowrap;
  background: #fff;
}

.header-cta:hover {
  color: var(--site-header-red);
  border-color: var(--site-header-red);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 12px;
  cursor: pointer;
  line-height: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--site-header-ink);
  margin: 5px 0;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1001;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8)),
    url("../images/media-1-heading.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 35% 20%;
  padding: calc(86px + 16px) 28px 28px;
  box-shadow: none;
  box-sizing: border-box;
}

.mobile-nav a {
  display: block;
  padding: 12px;
  border-bottom: 1px solid rgba(3, 207, 255, 0.35);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"],
.mobile-nav-accordion[aria-current="page"] {
  color: #f50222;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

@media (max-width: 1150px) {
  .header {
    padding-inline: 32px;
    gap: 20px;
  }

  .header-title {
    display: none;
  }

  .header nav[aria-label="Main navigation"] {
    gap: 28px;
  }
}

@media (max-width: 850px) {
  .header {
    height: 76px;
    padding-inline: 24px;
  }

  .header nav[aria-label="Main navigation"] {
    display: none;
  }

  .header-title {
    display: block;
    max-width: none;
    border: 0;
    padding: 0;
  }

  .header-cta {
    margin-left: auto;
    padding: 8px 12px;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .header .brand img {
    width: 86px;
  }

  .mobile-nav {
    padding-top: calc(76px + 16px);
  }
}

@media (max-width: 600px) {
  .header {
    padding-inline: 20px;
    gap: 15px;
    height: 70px;
  }

  .header .brand img {
    width: 76px;
  }

  .header-title {
    font-size: 8px;
    max-width: 65px;
  }

  .header-cta {
    font-size: 10px;
    padding: 7px 10px;
    gap: 12px;
  }

  .menu-toggle {
    padding: 5px;
    margin-left: -5px;
  }

  .mobile-nav {
    padding-top: calc(70px + 16px);
  }
}

@media (max-width: 360px) {
  .header {
    padding-inline: 16px;
    gap: 12px;
  }

  .header-title {
    display: none;
  }
}

