.aah-header-widget {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(9, 18, 30, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-gold);
  transition: padding .4s var(--ease);
  padding: 16px 0;
  color: #fff;
}

.aah-header-widget.scrolled {
  padding: 10px 0;
  box-shadow: 0 1px 0 var(--line-gold), 0 14px 40px -24px #000;
}

.aah-header-widget .aah-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 4.75rem);
}

.aah-header-widget .aah-header__brand { flex-shrink: 0; }

.aah-header-widget .brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.34rem;
  color: #fff;
  letter-spacing: 1.6px;
}

.aah-header-widget .brand .mark { width: 38px; height: 38px; flex: 0 0 auto; object-fit: contain; }

.aah-header-widget .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.34rem;
  color: #fff;
  letter-spacing: 1.6px;
}

.aah-header-widget .brand-accent { color: var(--gold); }

.aah-header-widget .brand-tagline {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .42em;
  color: var(--muted-navy);
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
  line-height: 1;
}

.aah-header-widget .wordmark { display: flex; flex-direction: column; line-height: 1; }

.aah-header-widget .aah-desktop-nav { margin-left: auto; }

.aah-header-widget .aah-menu-list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aah-header-widget .aah-nav-item { position: relative; white-space: nowrap; }

.aah-header-widget .aah-nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: #d7e0ea;
  position: relative;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color .3s var(--ease);
}

.aah-header-widget .aah-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width .3s var(--ease);
}

.aah-header-widget .aah-nav-link:hover,
.aah-header-widget .aah-nav-link:focus-visible { color: #fff; }

.aah-header-widget .aah-nav-link:hover::after,
.aah-header-widget .aah-nav-link:focus-visible::after { width: 100%; }

.aah-header-widget .aah-nav-link.active { color: #fff; }
.aah-header-widget .aah-nav-link.active::after { width: 100%; }

.aah-header-widget .aah-nav-caret {
  display: inline-flex;
  width: 12px;
  height: 12px;
  transition: transform .3s var(--ease);
}

.aah-header-widget .aah-nav-item--has-children:hover .aah-nav-caret { transform: rotate(180deg); }

.aah-header-widget .aah-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 180px;
  margin: 0;
  padding: 12px 14px;
  list-style: none;
  background: var(--navy-2);
  border: 1px solid var(--line-gold);
  border-radius: 6px;
  box-shadow: 0 20px 25px -5px rgba(10,23,38,.15);
  z-index: 100;
  grid-template-columns: 1fr;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.aah-header-widget .aah-nav-item--has-children:hover > .aah-submenu,
.aah-header-widget .aah-nav-item--has-children:focus-within > .aah-submenu {
  display: grid;
  opacity: 1;
  transform: none;
}

.aah-header-widget .aah-submenu-link {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #d7e0ea;
  border-radius: 4px;
  text-decoration: none;
  transition: all .2s var(--ease);
}

.aah-header-widget .aah-submenu-link:hover,
.aah-header-widget .aah-submenu-link:focus-visible { background: rgba(198,161,91,.1); color: #fff; }

.aah-header-widget .aah-header__cta { flex-shrink: 0; margin-left: auto; }
.aah-header-widget .aah-header-cta .btn { padding: 11px 20px; font-size: 13px; }

.aah-header-widget .aah-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width .1s linear;
}

.aah-header-widget .nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: flex-end;
  flex-shrink: 0;
}

.aah-header-widget .nav-toggle span {
  display: block;
  height: 1.5px;
  width: 24px;
  background: var(--gold-pale);
  transition: .3s var(--ease);
  transform-origin: center;
}

.aah-header-widget .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.aah-header-widget .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.aah-header-widget .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.aah-header-widget .aah-mobile-nav { display: none; }
.aah-header-widget .aah-mobile-overlay { display: none; }

@media (max-width: 1024px) {
  .aah-header-widget { height: 66px; }
  .aah-header-widget .aah-header__inner { padding: 0 16px; }
  .aah-header-widget .aah-desktop-nav { display: none; }
  .aah-header-widget .aah-header__cta { display: none; }
  .aah-header-widget .nav-toggle { display: flex; }

  .aah-header-widget .aah-mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(8,16,28,.98);
    backdrop-filter: blur(8px);
    z-index: 55;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    overflow-y: auto;
  }

  .aah-header-widget .aah-mobile-nav[aria-hidden="false"] { transform: translateX(0); }

  .aah-header-widget .aah-mobile-nav__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 80px 24px 40px;
    gap: 24px;
  }

  .aah-header-widget .aah-mobile-nav__brand { margin-bottom: 32px; }
  .aah-header-widget .aah-mobile-nav .aah-mobile-menu-list { flex-direction: column; gap: 24px; text-align: center; }
  .aah-header-widget .aah-mobile-nav .aah-nav-link { font-family: var(--font-display); font-size: 1.7rem; color: #fff; padding: 8px 0; }
  .aah-header-widget .aah-mobile-nav .aah-nav-link::after { display: none; }
  .aah-header-widget .aah-mobile-nav__cta { margin-top: 32px; }
  .aah-header-widget .aah-mobile-nav__cta .btn { padding: 15px 28px; font-size: 14px; }

  .aah-header-widget .aah-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8,16,28,.72);
    z-index: 54;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
  }

  .aah-header-widget .aah-mobile-overlay[data-open="true"] { opacity: 1; pointer-events: auto; }
}

@media (max-width: 767px) {
  .aah-header-widget .aah-header__inner { padding: 0 16px; }
}

@media print { .aah-header-widget { display: none !important; } }
