/* Unified site navbar (desktop + mobile) */
.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 58, 95, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e3a5f;
  text-decoration: none;
  letter-spacing: -0.05em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  color: #1e3a5f;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.nav-item:hover {
  color: #8b1538;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.nav-dropdown > .nav-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 32px;
  padding: 0;
}

.nav-dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 200px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(30, 58, 95, 0.15);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  color: #1e3a5f;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-dropdown a:hover {
  background: rgba(30, 58, 95, 0.08);
  color: #0f2847;
}

.btn-cta-nav {
  background: #8b1538;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-cta-nav:hover {
  background: #6d1029;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 21, 56, 0.4);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(30, 58, 95, 0.2);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: #1e3a5f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  border-color: rgba(30, 58, 95, 0.35);
  background: #fff;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: rgba(250, 250, 249, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 80px 24px 24px;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid rgba(30, 58, 95, 0.12);
  box-shadow: -20px 0 50px rgba(15, 23, 42, 0.12);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.38);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-item {
  display: block;
  padding: 16px 0;
  color: #1e3a5f;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(30, 58, 95, 0.12);
}

.mobile-nav-item:hover {
  color: #8b1538;
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  color: #1e3a5f;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(30, 58, 95, 0.12);
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}

.mobile-dropdown-toggle svg {
  transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.active svg {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(30, 58, 95, 0.05);
  margin: 0 -24px;
  padding: 0 24px;
}

.mobile-dropdown-content.active {
  max-height: 500px;
}

.mobile-dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.mobile-dropdown-content a:hover {
  color: #8b1538;
}

.mobile-cta {
  display: block;
  margin-top: 24px;
  padding: 16px;
  background: linear-gradient(135deg, #1e3a5f, #8b1538);
  border-radius: 12px;
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 24px rgba(30, 58, 95, 0.25);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}
