/* Three clear zones: identity, page navigation, and the contact action. */
.main-header { transition: padding .25s var(--ease); }
.main-header .nav-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(20px, 2.6vw, 40px); height: 86px; padding-inline: 24px;
  border-radius: 16px; border-color: #5e789b80;
  transition: height .3s var(--ease), box-shadow .3s, border-color .3s;
}
.nav-inner > .brand { padding-right: 26px; border-right: 1px solid #526c8e80; min-height: 44px; }
.main-header .main-nav {
  position: relative; isolation: isolate; display: flex; align-items: center;
  justify-self: center; gap: 4px; margin: 0; padding: 5px;
  background: #15263c9c; border: 1px solid #59769d66; border-radius: 12px;
}
.main-nav:before {
  content: ''; position: absolute; top: 0; left: 0; z-index: -1;
  width: var(--nav-width, 0px); height: var(--nav-height, 0px);
  transform: translate(var(--nav-x, 0px), var(--nav-y, 0px));
  opacity: var(--nav-opacity, 0); border-radius: 8px;
  background: linear-gradient(120deg, #3c5e8d, #304c76);
  box-shadow: inset 0 1px #d1e5ff1a, 0 3px 10px #0b172924;
  transition: transform .28s var(--ease), width .28s var(--ease), height .28s var(--ease), opacity .2s;
  pointer-events: none;
}
.main-header .main-nav a {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 15px; border-radius: 8px;
  color: #bdcde4; font-size: 13px; font-weight: 550; line-height: 1.4;
  transition: color .2s;
}
.main-header .main-nav a:after { display: none; }
.main-header .main-nav a[aria-current] { background: #35537e; color: #fff; }
.main-header .main-nav[data-indicator-ready=true] a[aria-current] { background: transparent; }
.main-header .main-nav a:hover, .main-header .main-nav a:focus-visible { color: #fff; }
.main-nav a:focus-visible { outline: 2px solid #b3d7ff; outline-offset: 1px; }
.nav-end { display: flex; align-items: center; justify-content: flex-end; gap: 15px; padding-left: 26px; border-left: 1px solid #526c8e80; }
.main-header .nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 17px; gap: 18px; font-size: 13px; white-space: nowrap; }
.main-header.is-scrolled { padding-block: 8px; }
.main-header.is-scrolled .nav-inner { height: 72px; border-color: #728eaf9c; box-shadow: 0 10px 28px #0b142638; }
.main-header.is-menu-open .nav-inner { border-color: #9abbe7; }
.main-header .menu-toggle { display: none; }
.main-header .menu-toggle i { position: relative; width: 18px; height: 12px; border: 0; transform: none; }
.menu-toggle i:before, .menu-toggle i:after { content: ''; position: absolute; left: 0; width: 18px; height: 1px; background: #d3e4fa; transition: transform .25s, top .25s; }
.menu-toggle i:before { top: 2px; }
.menu-toggle i:after { top: 10px; }
.menu-toggle[aria-expanded=true] i:before { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded=true] i:after { top: 6px; transform: rotate(-45deg); }
.main-header .mobile-nav { padding: 12px 24px 18px; margin-top: 10px; border-color: #5f7c9f; background: #203149fa; }
.main-header .mobile-nav > a { display: grid; grid-template-columns: 28px 1fr 22px; gap: 15px; min-height: 62px; padding: 14px 7px; border-color: #4a6588; font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.mobile-nav .nav-item-number { color: #91b7e7; font: 500 11px/1.5 var(--body-font); letter-spacing: .06em; }
.mobile-nav > a > .arrow { width: 19px; height: 19px; color: #a1c9ff; transition: transform .25s; }
.main-header .mobile-nav > a[aria-current] { color: #f3f8ff; background: #35537e70; }
.mobile-nav > a:hover .arrow, .mobile-nav > a:focus-visible .arrow { transform: translate(2px, -2px); }
.mobile-nav-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 16px; border-top: 1px solid #5d789d; }
.main-header .mobile-nav-end a { min-height: 44px; padding: 10px 0; border: 0; font-family: var(--body-font); font-size: 13px; line-height: 1.5; letter-spacing: 0; }
.main-header .mobile-nav-end .mobile-contact { color: #e5f1ff; }
.main-header .mobile-nav-end .mobile-social { color: #a9c9f1; }
.mobile-nav-end .arrow { width: 16px; height: 16px; margin-left: 9px; }
.home-focused .logo-entrance { inset: 0; }
@media(min-width:961px) { .main-header .mobile-nav { display: none; } }
@media(min-width:961px) and (max-width:1100px) {
  .main-header .nav-inner { gap: 18px; padding-inline: 20px; }
  .nav-inner > .brand { padding-right: 18px; font-size: 22px; }
  .nav-end { padding-left: 18px; }
  .main-header .main-nav a { padding-inline: 12px; font-size: 12px; }
  .main-header .nav-cta { padding-inline: 14px; font-size: 12px; gap: 14px; }
}
@media(max-width:960px) {
  .main-header .nav-inner { grid-template-columns: 1fr auto; gap: 15px; height: 72px; padding-inline: 18px; }
  .main-header .main-nav { display: none; }
  .nav-inner > .brand { border: 0; padding: 0; }
  .nav-end { border: 0; padding: 0; gap: 16px; }
  .main-header .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; min-width: 58px; padding: 8px 0; gap: 9px; font-size: 12px; line-height: 1.5; }
  .main-header .nav-cta { min-height: 42px; padding: 10px 13px; font-size: 12px; gap: 12px; }
  .main-header.is-scrolled .nav-inner { height: 66px; }
  .main-header .mobile-nav { max-height: calc(100dvh - 136px); overflow-y: auto; }
}
@media(max-width:760px) {
  .main-header .nav-inner { width: calc(100% - 40px); height: 68px; padding-inline: 15px; border-radius: 13px; }
  .main-header .mobile-nav { width: calc(100% - 40px); padding: 10px 18px 16px; }
  .nav-end { gap: 12px; }
  .main-header.is-scrolled .nav-inner { height: 62px; }
  .main-header .mobile-nav > a { font-size: 24px; }
}
@media(max-width:420px) {
  .main-header .nav-cta { display: none; }
  .main-header .nav-inner { padding-inline: 15px; }
  .main-header .mobile-nav-end { flex-direction: column; align-items: flex-start; gap: 0; }
}
@media(max-width:350px) {
  .main-header .nav-inner, .main-header .mobile-nav { width: calc(100% - 32px); }
  .main-header .mobile-nav { padding-inline: 14px; }
}
