/* ========================================================
   SECTION: HEADER & NAVIGATION
   ======================================================== */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 900;
  box-shadow: 0 4px 18px -2px rgba(16, 42, 107, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.35vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links li {
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.2;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 6px 2px;
}

.nav-links a:hover {
  color: var(--primary-cyan);
}

.has-dropdown {
  position: relative;
}

.has-dropdown > a svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 2px;
}

.has-dropdown:hover > a svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 240px;
  box-shadow: 0 16px 36px -4px rgba(16, 42, 107, 0.14), 0 6px 14px -2px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 10px 20px;
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary-navy);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.desktop-only-btn {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 7px;
  flex-shrink: 0;
  line-height: 1.2;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(16, 42, 107, 0.05);
}

/* Intermediate responsiveness for laptops & narrow desktop monitors */
@media (max-width: 1220px) {
  .nav-container {
    padding: 0 16px;
    gap: 10px;
  }
  .nav-links {
    gap: 10px;
  }
  .nav-links a {
    font-size: 12.8px;
    padding: 4px 1px;
  }
  .desktop-only-btn {
    padding: 7px 12px;
    font-size: 12.5px;
  }
}

/* Switch cleanly to touch mobile drawer when screen cannot fit full nav row */
@media (max-width: 1060px) {
  .nav-links, .desktop-only-btn {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #FFFFFF;
  z-index: 1001;
  box-shadow: -10px 0 36px rgba(16, 42, 107, 0.16);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-overlay.open {
  display: block;
}

.mobile-nav-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-nav-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.mobile-nav-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.08em;
  margin-top: 10px;
  text-transform: uppercase;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #F1F5F9;
}
