/* ================================================================
   NEW HEIGHTS ACADEMY — PREMIUM NAVBAR
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --n-navy:        #0a1f44;
  --n-navy-dark:   #071533;
  --n-navy-hover:  #122857;
  --n-gold:        #f5a623;
  --n-gold-dark:   #d48c0f;
  --n-gold-light:  rgba(245,166,35,0.12);
  --n-white:       #ffffff;
  --n-light:       #f4f7fb;
  --n-muted:       rgba(255,255,255,0.55);
  --n-border:      rgba(255,255,255,0.10);
  --n-shadow:      0 6px 32px rgba(10,31,68,0.22);
  --n-ease:        cubic-bezier(0.4,0,0.2,1);
  --n-dur:         0.26s;
  --n-topbar:      42px;
  --n-navh:        70px;
}

/* ── Global reset inside navbar scope ───────────────────────── */
#nha-topbar,
#nha-navbar,
#nha-mobile-drawer,
#nha-overlay {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

#nha-topbar *,
#nha-navbar *,
#nha-mobile-drawer *,
#nha-overlay * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}

/* ================================================================
   GOLD ACCENT STRIP
   ================================================================ */
#nha-accent-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--n-gold), #ffcc5e, var(--n-gold));
  width: 100%;
  position: relative;
  z-index: 1002;
}

/* ================================================================
   TOP BAR
   ================================================================ */
#nha-topbar {
  background: var(--n-navy-dark);
  height: var(--n-topbar);
  display: flex;
  align-items: center;
  padding: 0 40px;
  position: relative;
  z-index: 1001;
  border-bottom: 1px solid rgba(245,166,35,0.15);
}

.nha-topbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nha-topbar-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nha-topbar-left a {
  color: var(--n-muted);
  font-size: 12.5px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--n-dur) var(--n-ease);
  letter-spacing: 0.01em;
}

.nha-topbar-left a:hover { color: var(--n-gold); }

.nha-topbar-left i {
  color: var(--n-gold);
  font-size: 12px;
}

.nha-topbar-sep {
  width: 1px;
  height: 14px;
  background: var(--n-border);
}

.nha-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nha-social {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--n-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--n-muted) !important;
  font-size: 12px;
  transition: background var(--n-dur) var(--n-ease),
              color var(--n-dur) var(--n-ease),
              border-color var(--n-dur) var(--n-ease);
}

.nha-social:hover {
  background: var(--n-gold) !important;
  color: var(--n-navy) !important;
  border-color: var(--n-gold) !important;
}

/* ================================================================
   MAIN NAVBAR
   ================================================================ */
#nha-navbar {
  background: var(--n-navy);
  height: var(--n-navh);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: height var(--n-dur) var(--n-ease),
              box-shadow var(--n-dur) var(--n-ease),
              background var(--n-dur) var(--n-ease);
}

/* Scrolled state */
#nha-navbar.is-scrolled {
  height: 60px;
  box-shadow: var(--n-shadow);
  background: rgba(10,31,68,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nha-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ── Logo ───────────────────────────────────────────────────── */
.nha-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: #ffffff;
  padding: 6px 18px 6px 6px;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(10,31,68,0.15);
  transition: box-shadow var(--n-dur) var(--n-ease), transform var(--n-dur) var(--n-ease);
}

.nha-logo a:hover {
  box-shadow: 0 4px 20px rgba(10,31,68,0.22);
  transform: translateY(-1px);
}

.nha-logo-emblem {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2.5px solid var(--n-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--n-light);
  flex-shrink: 0;
  transition: border-color var(--n-dur) var(--n-ease), transform var(--n-dur) var(--n-ease);
}

.nha-logo-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nha-logo a:hover .nha-logo-emblem {
  border-color: var(--n-gold);
  transform: scale(1.04);
}

#nha-navbar.is-scrolled .nha-logo-emblem {
  width: 42px;
  height: 42px;
}

.nha-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.nha-logo-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--n-navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nha-logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--n-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Desktop Menu ───────────────────────────────────────────── */
.nha-menu {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 100%;
  flex: 1;
  margin-left: 24px;
  gap: 0;
}

.nha-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Nav links */
.nha-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.88) !important;
  letter-spacing: 0.015em;
  white-space: nowrap;
  position: relative;
  transition: color var(--n-dur) var(--n-ease);
  cursor: pointer;
  text-decoration: none;
}

/* Gold underline bar */
.nha-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--n-gold);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--n-dur) var(--n-ease);
}

.nha-item:hover > .nha-link,
.nha-item.is-active > .nha-link {
  color: var(--n-gold) !important;
}

.nha-item:hover > .nha-link::after,
.nha-item.is-active > .nha-link::after {
  transform: scaleX(1);
}

/* Chevron */
.nha-chev {
  font-size: 10px;
  opacity: 0.6;
  transition: transform var(--n-dur) var(--n-ease),
              opacity var(--n-dur) var(--n-ease),
              color var(--n-dur) var(--n-ease);
}

.nha-item:hover > .nha-link .nha-chev {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--n-gold);
}

/* ── Dropdown ───────────────────────────────────────────────── */
.nha-drop {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--n-white);
  min-width: 248px;
  border-radius: 10px;
  border-top: 3px solid var(--n-gold);
  box-shadow: 0 24px 64px rgba(10,31,68,0.18), 0 4px 12px rgba(10,31,68,0.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--n-dur) var(--n-ease),
              transform var(--n-dur) var(--n-ease),
              visibility var(--n-dur) var(--n-ease);
  z-index: 9999;
}

/* small arrow tip */
.nha-drop::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  border: 0 solid transparent;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 7px solid var(--n-gold);
}

.nha-item:hover > .nha-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown link */
.nha-drop a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--n-navy) !important;
  border-left: 3px solid transparent;
  transition: background var(--n-dur) var(--n-ease),
              color var(--n-dur) var(--n-ease),
              border-left-color var(--n-dur) var(--n-ease),
              padding-left var(--n-dur) var(--n-ease);
}

.nha-drop a:hover {
  background: var(--n-gold-light);
  color: var(--n-navy) !important;
  border-left-color: var(--n-gold);
  padding-left: 28px;
}

/* icon badge */
.nha-drop-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--n-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--n-navy);
  flex-shrink: 0;
  transition: background var(--n-dur) var(--n-ease), color var(--n-dur) var(--n-ease);
}

.nha-drop a:hover .nha-drop-icon {
  background: var(--n-gold);
  color: var(--n-white);
}

.nha-drop-divider {
  height: 1px;
  background: rgba(10,31,68,0.07);
  margin: 6px 16px;
}

/* ── Pay Fee CTA ────────────────────────────────────────────── */
.nha-cta {
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--n-gold);
  color: var(--n-navy) !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245,166,35,0.40);
  transition: background var(--n-dur) var(--n-ease),
              box-shadow var(--n-dur) var(--n-ease),
              transform var(--n-dur) var(--n-ease);
  text-decoration: none;
}

.nha-cta:hover {
  background: var(--n-gold-dark);
  color: var(--n-white) !important;
  box-shadow: 0 8px 28px rgba(245,166,35,0.55);
  transform: scale(1.04) translateY(-1px);
}

/* ================================================================
   HAMBURGER
   ================================================================ */
#nha-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5.5px;
  width: 44px;
  height: 44px;
  padding: 9px 8px;
  background: var(--n-gold-light);
  border: 1.5px solid rgba(245,166,35,0.35);
  border-radius: 8px;
  cursor: pointer;
  z-index: 1200;
  transition: background var(--n-dur);
  flex-shrink: 0;
}

#nha-hamburger span {
  display: block;
  height: 2.5px;
  background: var(--n-white);
  border-radius: 3px;
  transition: transform 0.32s var(--n-ease),
              opacity 0.22s ease,
              width 0.22s ease;
}

#nha-hamburger span:nth-child(1) { width: 22px; }
#nha-hamburger span:nth-child(2) { width: 16px; }
#nha-hamburger span:nth-child(3) { width: 22px; }

#nha-hamburger.is-open span:nth-child(1) {
  width: 22px;
  transform: translateY(8px) rotate(45deg);
}
#nha-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
#nha-hamburger.is-open span:nth-child(3) {
  width: 22px;
  transform: translateY(-8px) rotate(-45deg);
}

#nha-hamburger:hover {
  background: rgba(245,166,35,0.20);
}

/* ================================================================
   MOBILE SLIDE-DOWN DRAWER
   ================================================================ */
#nha-mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--n-navy);
  z-index: 999;
  transition: max-height 0.4s var(--n-ease);
  border-bottom: 3px solid var(--n-gold);
}

#nha-mobile-drawer.is-open {
  max-height: 100vh;
  overflow-y: auto;
}

.nha-drawer-inner {
  padding: 80px 0 24px;
}

/* Mobile nav item */
.nha-m-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nha-m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9) !important;
  cursor: pointer;
  transition: background var(--n-dur), color var(--n-dur);
}

.nha-m-link:hover {
  background: rgba(245,166,35,0.08);
  color: var(--n-gold) !important;
}

.nha-m-chev {
  font-size: 11px;
  color: var(--n-gold);
  opacity: 0.7;
  transition: transform 0.28s var(--n-ease);
}

.nha-m-item.is-open > .nha-m-link .nha-m-chev {
  transform: rotate(180deg);
}

/* Mobile sub menu */
.nha-m-sub {
  display: none;
  background: var(--n-navy-dark);
  border-left: 3px solid var(--n-gold);
  margin: 0 0 4px 28px;
  border-radius: 0 0 6px 6px;
}

.nha-m-item.is-open > .nha-m-sub {
  display: block;
}

.nha-m-sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.72) !important;
  transition: color var(--n-dur), background var(--n-dur);
}

.nha-m-sub a:hover {
  color: var(--n-gold) !important;
  background: rgba(245,166,35,0.07);
}

.nha-m-sub-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(245,166,35,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--n-gold);
  flex-shrink: 0;
}

/* Mobile CTA */
.nha-m-cta-wrap {
  padding: 20px 28px 10px;
}

.nha-m-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: var(--n-gold);
  color: var(--n-navy) !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: background var(--n-dur);
}

.nha-m-cta:hover {
  background: var(--n-gold-dark);
  color: var(--n-white) !important;
}

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */
@media (max-width: 1100px) {
  .nha-menu { display: none !important; }
  #nha-hamburger { display: flex !important; }
  #nha-mobile-drawer { display: block !important; }
  #nha-navbar { padding: 0 24px; }
  #nha-topbar { display: none; }
  #nha-accent-strip { position: sticky; top: 0; z-index: 1002; }
  #nha-navbar { top: 4px; }
}

@media (max-width: 540px) {
  .nha-logo-name { font-size: 16px; }
  .nha-logo-sub  { display: none; }
  .nha-logo-emblem { width: 40px; height: 40px; }
  .nha-logo a { padding: 5px 12px 5px 5px; }
}
