/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 20px rgba(26, 35, 126, 0.1);
  transition: box-shadow var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* ===== LOGO ===== */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 44px;
  flex-shrink: 0;
}

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

.logo-name {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.logo-tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ===== NAV LINKS ===== */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--navy);
  background-color: var(--bg-mid);
}

.nav-menu a.active {
  font-weight: 600;
  color: var(--orange);
  background-color: rgba(230, 64, 0, 0.07);
}

/* ===== CTA BUTTON ===== */
.navbar-cta {
  flex-shrink: 0;
}

/* ===== HAMBURGER TOGGLE (CSS only) ===== */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px;
  transition: background-color var(--transition);
  flex-shrink: 0;
}

.hamburger:hover {
  background-color: var(--bg-mid);
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animate hamburger when checked */
.menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE NAV OVERLAY ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 21, 87, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(320px, 85vw);
    background-color: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 90px 20px 40px;
    z-index: 999;
    box-shadow: -8px 0 40px rgba(26, 35, 126, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .nav-menu a {
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 10px;
  }

  .menu-toggle:checked ~ .nav-overlay {
    display: block;
    opacity: 1;
  }

  .menu-toggle:checked ~ .nav-menu {
    right: 0;
  }

  .navbar-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .navbar-inner {
    height: 64px;
  }

  .logo-name {
    font-size: 30px;
  }
}
