/* AAA shared top navigation — self-contained.
   Scoped to .aaa-topnav so it cannot collide with any page's own styles.
   Edit this ONE file to change the nav on every page that includes it. */

.aaa-topnav,
.aaa-topnav * { box-sizing: border-box; }

.aaa-topnav {
  position: sticky; top: 0; z-index: 9000;
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem 1.1rem;
  background: rgba(10, 16, 32, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.aaa-topnav__logo {
  order: 1;
  display: flex; align-items: center; flex: 0 0 auto; text-decoration: none;
}
.aaa-topnav__logo img { height: 34px; width: auto; display: block; }

.aaa-topnav__links {
  order: 2;
  display: flex; align-items: center; gap: 1.25rem;
  margin-left: auto; flex-wrap: nowrap;
}

.aaa-topnav__links a {
  color: rgba(226, 232, 240, 0.86);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1;
  white-space: nowrap;
  transition: color .18s ease;
}
.aaa-topnav__links a:hover { color: #fff; }

.aaa-topnav__cta {
  background: linear-gradient(90deg, #22d3ee, #f5b301);
  color: #0a1020 !important;
  font-weight: 800;
  padding: .6rem 1.05rem;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(34, 211, 238, .28);
}
.aaa-topnav__cta:hover { filter: brightness(1.08); }

/* Pure-CSS mobile menu — no JavaScript, works with JS disabled.
   The bar itself is the <details>; the hamburger is its <summary>. */
.aaa-topnav__btn {
  order: 3;
  display: none;
  list-style: none;
  cursor: pointer;
  padding: .45rem .55rem;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
}
.aaa-topnav__btn::-webkit-details-marker,
.aaa-topnav__btn::marker { display: none; content: ""; }
.aaa-topnav__btn svg { width: 22px; height: 22px; display: block; }

/* Desktop: links always visible, no hamburger, open/closed state irrelevant. */
@media (min-width: 821px) {
  .aaa-topnav__links { display: flex !important; }
}

@media (max-width: 820px) {
  .aaa-topnav { padding: .5rem .85rem; }
  .aaa-topnav__logo img { height: 28px; }
  .aaa-topnav__btn { display: block; margin-left: auto; }
  .aaa-topnav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: .5rem 0;
    background: rgba(10, 16, 32, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  }
  .aaa-topnav__links a {
    padding: .95rem 1.2rem;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
  }
  .aaa-topnav__cta {
    margin: .7rem 1.2rem .4rem;
    text-align: center;
    border-top: 0 !important;
  }
  /* collapsed until the hamburger is tapped */
  .aaa-topnav:not([open]) .aaa-topnav__links { display: none; }
}

/* Never let a page's fixed hero sit on top of the bar. */
@media print { .aaa-topnav { display: none; } }
