/* --- TOP BAR --- */
.top-bar {
  background: var(--primary, #091b57);
  color: var(--white, #ffffff);
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  width: 100%;
}

.top-bar--container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar--left,
.top-bar--right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: var(--secondary);
}

.top-bar ion-icon {
  font-size: 1.1rem;
}

/* --- MAIN HEADER --- */
#header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header--wrapper {
  background: transparent;
  transition: all 0.4s ease;
  width: 100%;
}

.scrolled .top-bar {
  margin-top: -45px;
  /* Hide top bar on scroll */
  opacity: 0;
  pointer-events: none;
}

.scrolled .header--wrapper {
  background: rgba(10, 20, 50, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: 5px 0;
}

.header--top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  height: 80px;
  /* Fixed height for consistent alignment */
}

.header--top-left,
.desktop-nav,
.header--top-right {
  display: flex;
  align-items: center;
}

.brand {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
  display: block;
}

.scrolled .brand {
  height: 50px;
}

/* Desktop Navigation */
.desktop-nav {
  gap: 2rem;
}

.desktop-nav a {
  color: var(--white, #ffffff);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 5px 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.header--top-right {
  gap: 1.5rem;
}

.header--top-right .btn--primary {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* Mobile Toggle */
.menu {
  display: none;
  font-size: 2.2rem;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .header--top {
    height: 70px;
  }

  .top-bar--left span {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .header--top-right .btn--primary {
    display: none;
  }

  .brand {
    height: 50px;
  }
}

@media (max-width: 576px) {
  .top-bar--right {
    gap: 1rem;
  }

  .top-bar--left {
    display: none;
  }

  .top-bar--container {
    justify-content: center;
  }
}

/* Mobile Menu Drawer - Redesigned for Native App Feel */
.header--bottom {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  /* Full screen overlay */
  height: 100vh;
  background: rgba(10, 20, 50, 0.98);
  /* Deep branded navy with high opacity */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5000;
}

.menu-open .header--bottom {
  right: 0;
}

.close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 3.5rem;
  color: var(--secondary);
  cursor: pointer;
  line-height: 1;
  transition: transform 0.3s ease;
}

.close-menu:hover {
  transform: rotate(90deg);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  text-align: center;
}

.mobile-nav-links a {
  font-size: 1.8rem;
  color: var(--white);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav-links a.active,
.mobile-nav-links a:hover {
  color: var(--secondary);
  transform: scale(1.1);
}

/* Screen Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 4999;
  transition: opacity 0.4s ease;
}

.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}