.oc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(12, 39, 64, 0.08);
  backdrop-filter: blur(10px);
}

.oc-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.oc-header__brand {
  display: flex;
  align-items: center;
}

.oc-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #0c273f;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.oc-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #0c5ea8, #8fa6c3);
  position: relative;
  overflow: hidden;
}

.oc-header__logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 0.4rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.oc-header__logo-text {
  white-space: nowrap;
}

.oc-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.oc-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.oc-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
  color: #314659;
  text-decoration: none;
  font-size: 0.95rem;
}

.oc-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #0c5ea8;
  transition: width 0.2s ease;
}

.oc-header__nav-link:focus-visible,
.oc-header__nav-link:hover {
  color: #0c273f;
}

.oc-header__nav-link:hover::after,
.oc-header__nav-link:focus-visible::after {
  width: 100%;
}

.oc-header__cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.oc-header__cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: #0c5ea8;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.oc-header__cta-link--outline {
  background: transparent;
  color: #0c5ea8;
  border: 1px solid rgba(12, 94, 168, 0.4);
}

.oc-header__cta-link:hover,
.oc-header__cta-link:focus-visible {
  background: #084879;
  color: #ffffff;
}

.oc-header__cta-link--outline:hover,
.oc-header__cta-link--outline:focus-visible {
  background: rgba(12, 94, 168, 0.06);
  border-color: #0c5ea8;
}

.oc-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(12, 39, 63, 0.16);
  background-color: #ffffff;
  padding: 0;
  cursor: pointer;
}

.oc-header__toggle-bar {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  border-radius: 999px;
  background-color: #0c273f;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.oc-header__toggle-bar:nth-child(1) {
  top: 13px;
}

.oc-header__toggle-bar:nth-child(2) {
  top: 18px;
}

.oc-header__toggle-bar:nth-child(3) {
  bottom: 13px;
}

.oc-header__toggle[aria-expanded="true"] .oc-header__toggle-bar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.oc-header__toggle[aria-expanded="true"] .oc-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.oc-header__toggle[aria-expanded="true"] .oc-header__toggle-bar:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* Focus styles */
.oc-header__logo-link:focus-visible,
.oc-header__toggle:focus-visible,
.oc-header__cta-link:focus-visible {
  outline: 2px solid #0c5ea8;
  outline-offset: 3px;
}

/* Mobile layout */
@media (max-width: 768px) {
  .oc-header__inner {
    padding-inline: 1rem;
  }

  .oc-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .oc-header__nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 56px;
    background-color: #ffffff;
    border-top: 1px solid rgba(12, 39, 64, 0.08);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0.75rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .oc-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .oc-header__nav-link {
    width: 100%;
    padding-block: 0.5rem;
  }

  .oc-header__cta-group {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .oc-header__cta-link,
  .oc-header__cta-link--outline {
    flex: 1 1 auto;
    justify-content: center;
  }

  .oc-header__nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Respect users with reduced motion */
@media (prefers-reduced-motion: reduce) {
  .oc-header__nav,
  .oc-header__toggle-bar {
    transition: none;
  }
}
