/* Harbor header: final shared rules and responsive variants. */
.hb-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ocf-bg);
}

.hb-nav__inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.home .hb-nav__inner {
  min-height: 88px;
}

.hb-nav__brand {
  font: 700 24px/30px var(--font-body);
  color: var(--ocf-heading);
  text-decoration: none;
  max-width: 300px;
  overflow-wrap: anywhere;
}

.hb-nav__brand img {
  width: auto;
  max-width: 240px;
  max-height: 56px;
  object-fit: contain;
}

.hb-nav__menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hb-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hb-nav__link-row {
  display: flex;
  align-items: center;
}

.hb-nav__link-row > a {
  font: 500 14px/20px var(--font-body);
  color: var(--ocf-heading);
  text-decoration: none;
  padding-block: 16px;
}

.hb-nav__item {
  position: relative;
}

.hb-nav__disclosure {
  border: 0;
  background: none;
  color: var(--ocf-heading);
  min-width: 32px;
  min-height: 44px;
  cursor: pointer;
}

.hb-nav__chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}

.hb-nav__disclosure[aria-expanded="true"] .hb-nav__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.hb-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 600px;
  max-width: calc(100vw - 48px);
  padding: 24px;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ocf-border);
  border-radius: var(--hb-radius);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--ocf-heading) 7%, transparent);
}

.hb-nav__dropdown[hidden] {
  display: none;
}

@media (min-width: 992px) and (hover: hover) {
  .hb-nav__item:hover .hb-nav__dropdown[hidden] {
    display: grid;
  }
}

.hb-nav__dropdown a {
  color: var(--ocf-heading);
  font: 500 16px/24px var(--font-body);
  padding: 14px 12px;
  border-radius: var(--ocf-radius-sm, var(--hb-radius));
  text-decoration: none;
}

.hb-nav__dropdown a:hover {
  background: var(--ocf-bg-alt);
}

.hb-nav__toggle {
  display: none;
}

.home .hb-nav {
  position: fixed;
  top: 0;
  inset: 0 0 auto;
  width: 100%;
  background: var(--ocf-bg);
  border-bottom: 1px solid var(--ocf-border);
  color: var(--ocf-heading);
}

.home .hb-nav .container-global {
  width: min(100% - (var(--container-pad) * 2), var(--container-max));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.home .hb-nav__disclosure {
  color: var(--ocf-heading);
}

.home .hb-nav__brand {
  color: var(--ocf-heading);
  display: inline-flex;
  align-items: center;
}

.home .hb-nav__placeholder-logo {
  width: 190px;
  max-width: 190px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  filter: none;
  mix-blend-mode: multiply;
}

html[data-theme="dark"] .home .hb-nav__placeholder-logo {
  mix-blend-mode: normal;
}

.home .hb-nav__link-row > a {
  color: var(--ocf-heading);
  font-size: 16px;
  line-height: 24px;
}

.home .hb-nav__link-row > a:hover {
  color: var(--ocf-heading);
  opacity: .8;
}

.nav-cta {
  border-radius: var(--ocf-button-radius);
  min-height: 56px;
  box-shadow: none;
  font-size: 14px;
}

@media (max-width: 1199px) {
  .hb-nav__links {
    gap: 16px;
  }
  .hb-nav__menu {
    gap: 24px;
  }
  .hb-nav .hb-button {
    width: 210px;
  }
  .home .hb-nav .container-global {
    padding-inline: 0;
  }
  .home .hb-nav {
    inset: auto;
  }
  .home .hb-nav__toggle {
    border-color: var(--ocf-border);
    color: var(--ocf-heading);
  }
}

@media (max-width: 991px) {
  .hb-nav__inner {
    min-height: 88px;
    flex-wrap: wrap;
    gap: 0;
  }
  .hb-nav__menu {
    display: none;
    flex-basis: 100%;
    align-items: stretch;
    padding: 16px 0 32px;
    flex-direction: column;
  }
  .hb-nav__menu.is-open {
    display: flex;
  }
  .hb-nav__links {
    display: block;
  }
  .hb-nav__link-row {
    justify-content: space-between;
    border-bottom: 1px solid var(--ocf-border);
  }
  .hb-nav__link-row a {
    flex: 1;
  }
  .hb-nav__dropdown {
    width: 100%;
    max-width: none;
  }
  .hb-nav .hb-button {
    width: 280px;
  }
}

@media (max-width: 599px) {
  .hb-nav__brand {
    font-size: 20px;
    max-width: 220px;
  }
  .hb-nav__brand img {
    max-width: 180px;
  }
  .home .hb-nav .container-global {
    padding-inline: 0;
  }
  .home .hb-nav__menu {
    margin-inline: -24px;
    padding-inline: 24px;
    background: var(--ocf-bg);
  }
  .hb-nav__dropdown {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
  }
  .hb-nav__dropdown a {
    font-size: 14px;
    padding: 12px 4px;
  }
}

.hb-nav__menu-icon {
  display: block;
}

@media (max-width: 991px) {
  .hb-nav__toggle {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ocf-heading);
    font: 500 14px/20px var(--font-body);
    width: 48px;
    height: 48px;
    padding: 8px;
    box-shadow: none;
  }

  .hb-nav__toggle .hb-nav__menu-icon {
    width: 32px;
    height: 32px;
  }
}

.hb-header {
  --hb-header-height: 89px;
  height: var(--hb-header-height);
}

.hb-header .hb-nav__menu {
  gap: 28px;
}

.hb-header .hb-nav__links {
  padding: 6px 12px;
  background: color-mix(in srgb, var(--ocf-heading) 7%, var(--ocf-bg));
}

.hb-header .hb-nav__link-row > a {
  padding: 12px 12px;
}

.hb-header .hb-nav__disclosure {
  min-width: 24px;
  margin-inline-start: -8px;
  margin-inline-end: 6px;
}

.hb-header .hb-nav__phone {
  min-height: 44px;
  white-space: nowrap;
  font-size: 16px;
  line-height: 24px;
  color: var(--ocf-heading);
}

.hb-header .hb-nav__phone:hover {
  text-decoration: none;
  opacity: .72;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hb-header .hb-nav__menu {
    gap: 18px;
  }
  .hb-header .hb-nav__links {
    padding-inline: 8px;
  }
  .hb-header .hb-nav__link-row > a {
    padding-inline: 8px;
    font-size: 14px;
  }
  .hb-header .hb-nav__phone {
    font-size: 14px;
  }
  .hb-header .hb-nav .hb-button {
    width: 210px;
  }
}

@media (min-width: 992px) and (max-width: 1099px) {
  .hb-header .hb-nav__actions .hb-nav__phone {
    display: none;
  }
}

@media (max-width: 991px) {
  .hb-header .hb-nav__links {
    padding: 0;
    border-radius: 0;
  }
  .hb-header .hb-nav__phone {
    padding-block: 16px;
    border-bottom: 1px solid var(--ocf-border);
  }
}

.hb-header .hb-nav__actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

@media (min-width: 1400px) {
  .hb-header .hb-nav__inner {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(max-content, 1fr);
    align-items: center;
    gap: 32px;
  }
  .hb-header .hb-nav__menu {
    display: contents;
  }
  .hb-header .hb-nav__links {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  .hb-header .hb-nav__actions {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
    min-width: 0;
  }
}

@media (min-width: 992px) and (max-width: 1399px) {
  .hb-header .hb-nav__actions {
    gap: 18px;
  }
}

@media (max-width: 991px) {
  .hb-header .hb-nav__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .hb-header .hb-nav__actions .hb-button {
    flex-basis: auto;
  }
  .hb-nav__dropdown {
    position: static;
    margin-block: 16px;
    box-shadow: none;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1400px) {
  .hb-header .hb-nav__actions .hb-button {
    flex: 0 0 240px;
    width: 240px;
  }
}

@media (min-width: 1400px) and (max-width: 1599px) {
  .hb-header .hb-nav__actions {
    gap: 18px;
  }
}

@media (min-width: 992px) {
  .hb-header .hb-nav__links {
    background: var(--ocf-bg-alt);
  }
}

.hb-header .hb-nav__links {
  gap: 0;
  padding-inline: 20px;
  border-radius: var(--hb-control-radius);
}

.hb-header .hb-nav__dropdown {
  border-radius: var(--hb-control-radius);
}

.hb-header .hb-nav .hb-button {
  width: max-content;
  min-width: min(100%, var(--hb-button-width));
  max-width: 100%;
}

.hb-header .hb-nav__actions .hb-button {
  width: max-content;
  min-width: min(100%, var(--hb-button-width));
  max-width: 100%;
  flex-basis: auto;
}

@media (max-width: 991px) {
  .hb-header {
    height: auto;
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .hb-header .hb-nav {
    position: static;
  }
  .hb-header .hb-nav__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 88px auto;
    align-items: center;
  }
  .hb-header .hb-nav__brand {
    grid-column: 1;
    grid-row: 1;
  }
  .hb-header .hb-nav__toggle {
    grid-column: 2;
    grid-row: 1;
  }
  .hb-header .hb-nav__menu {
    padding-top: 32px;
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    box-sizing: border-box;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .hb-header .hb-nav__links {
    gap: 0;
    background: transparent;
    padding-inline: 0;
  }
  .hb-header .hb-nav__link-row > a {
    padding-block: 14px;
  }
  .hb-header .hb-nav__dropdown a {
    font-size: 18px;
    line-height: 28px;
    padding-block: 16px;
  }
}

.hb-header .hb-nav__inner {
  min-height: 88px;
}

.hb-header .hb-nav__link-row > a {
  font-size: 16px;
  line-height: 24px;
}

@media (max-width: 991px) {
  .hb-header .hb-nav__link-row > a {
    font-size: 18px;
    line-height: 28px;
  }
  .hb-header .hb-nav__actions .hb-button {
    width: 100%;
    flex: 0 0 auto;
    min-height: 52px;
    height: auto;
  }
}

.hb-nav__dropdown {
  display: grid;
  gap: 8px 24px;
  background: var(--ocf-bg);
  --hb-dropdown-gutter: 24px;
  padding-top: 12px;
  padding-bottom: 0;
}

@media (min-width: 992px) {
  .hb-nav__dropdown {
    left: -96px;
    width: 676px;
    padding: 12px 24px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
    row-gap: 0;
  }
}

.hb-nav__dropdown > a:not(.hb-nav__all) {
  color: var(--ocf-heading);
  border-radius: 0;
  border-bottom: 0;
  padding: 14px 12px;
}

.hb-nav__dropdown > a:not(.hb-nav__all):hover {
  background: color-mix(in srgb, var(--ocf-primary) 7%, var(--ocf-bg));
  color: var(--ocf-heading);
}

.hb-nav__dropdown .hb-nav__all {
  grid-column: 1/-1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
  margin-inline: calc(-1 * var(--hb-dropdown-gutter));
  padding: 14px calc(var(--hb-dropdown-gutter) + 18px) 14px calc(var(--hb-dropdown-gutter) + 12px);
  border-top: 1px solid var(--ocf-border);
  border-radius: 0 0 var(--hb-control-radius, var(--hb-radius)) var(--hb-control-radius, var(--hb-radius));
  background: var(--ocf-bg-alt);
  color: var(--ocf-heading);
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}

.hb-nav__dropdown .hb-nav__all:hover {
  background: color-mix(in srgb, var(--ocf-primary) 7%, var(--ocf-bg));
  color: var(--ocf-heading);
}

.hb-nav__dropdown .hb-nav__all svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

@media (max-width: 991px) {
  .hb-header .hb-nav__dropdown .hb-nav__all {
    font-size: 18px;
    line-height: 28px;
    margin-top: 0;
    padding-block: 14px;
  }
}

@media (max-width: 599px) {
  .hb-nav__dropdown {
    gap: 8px;
    --hb-dropdown-gutter: 16px;
  }
}

.hb-nav__services-label {
  display: none;
}

@media (max-width: 991px) {
  .hb-header .hb-nav__item--services .hb-nav__link-row > a {
    display: none;
  }
  .hb-header .hb-nav__item--services .hb-nav__disclosure {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 14px 12px;
    font: 500 18px/28px var(--font-body);
    text-align: left;
  }
  .hb-header .hb-nav__services-label {
    display: inline;
  }
}
