/* navbar.css */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 1px 0 0 rgba(15, 23, 42, 0.07);
}

#navbar.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.navbar-logo-box {
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.navbar-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navbar-logo-box span {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
}

.navbar-logo-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0b1f5e;
  line-height: 1.2;
}

.navbar-logo-tagline {
  font-size: 10px;
  font-weight: 500;
  color: var(--slate-400);
  line-height: 1.2;
}

/* Desktop nav */
.navbar-divider {
  width: 1px;
  height: 28px;
  background-color: var(--slate-200);
  flex-shrink: 0;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
}

@media (min-width: 1024px) {
  .navbar-links {
    display: flex;
  }
}

.navbar-links a {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
  border-radius: 6px;
  transition: color 0.2s ease;
  position: relative;
  text-decoration: none;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background-color: var(--blue-600);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 2px;
}

.navbar-links a:hover {
  color: var(--slate-800);
}

.navbar-links a.active {
  color: #0b1f5e;
}

.navbar-links a.active::after {
  transform: scaleX(1);
}

/* Desktop CTA button */
.navbar-cta {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background-color: #0b1f5e;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-cta:hover {
  background-color: #0d2472;
}

@media (min-width: 1024px) {
  .navbar-cta {
    display: flex;
  }
}

/* Mobile hamburger */
.navbar-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-700);
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.navbar-hamburger:hover {
  background-color: var(--slate-50);
}

@media (min-width: 1024px) {
  .navbar-hamburger {
    display: none;
  }
}

/* Mobile dropdown */
.navbar-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #ffffff;
  border-top: 1px solid var(--slate-100);
}

.navbar-mobile-menu.open {
  max-height: 600px;
}

.navbar-mobile-links {
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.navbar-mobile-links a {
  display: block;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border-left: 2px solid transparent;
}

.navbar-mobile-links a:hover {
  background-color: var(--slate-50);
  color: var(--slate-800);
}

.navbar-mobile-links a.active {
  color: #0b1f5e;
  background-color: var(--slate-50);
  border-left-color: var(--blue-600);
}

.navbar-mobile-cta {
  margin: 8px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  background-color: #0b1f5e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.navbar-mobile-cta:hover {
  background-color: #0d2472;
}

/* Spacer for mobile menu push-down */
.navbar-spacer {
  height: 0;
  transition: height 0.35s ease;
  overflow: hidden;
}

/* Push content below navbar */
.navbar-offset {
  height: 68px;
}
