:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #fff;
  --shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }
body { font-family: Inter, system-ui, Segoe UI, Roboto, sans-serif; }

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.is-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity .2s;
}

.logo:hover { opacity: .85; }

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: #1f2937;
}

/* Desktop Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 10px 0;
  transition: color .2s;
}

.nav-link:hover { color: var(--primary); }

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .2s;
}

.nav-link:hover::after { width: 100%; }

/* Dropdown (Desktop – pure CSS) */
.dropdown { position: relative; }

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.dropdown-arrow {
  transition: transform .2s;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 300px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .2s ease;
  z-index: 1200;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content { padding: 8px; }

.dropdown-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .15s;
}

.dropdown-item:hover {
  background: #dbeafe;
  border-left-color: var(--primary);
  transform: translateX(4px);
}

.dropdown-item i {
  color: var(--primary);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.dropdown-title {
  font-weight: 600;
  color: #1f2937;
  display: block;
  margin-bottom: 2px;
}

.dropdown-desc {
  font-size: 14px;
  color: #4b5563;
}

/* CTA Button */
.cta-btn {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s, background .15s, box-shadow .15s;
}

.cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(0,0,0,.25);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.hamburger {
  width: 24px;
  height: 3px;
  background: #374151;
  border-radius: 2px;
  transition: all .2s;
}

.mobile-toggle.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.mobile-menu.active {
  max-height: 600px;
}

.mobile-nav {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  transition: all .2s;
}

.mobile-nav-link:hover {
  color: var(--primary);
  padding-left: 12px;
}

.mobile-cta {
  margin-top: 10px;
  justify-content: center;
}

/* Mobile Dropdown */
.mobile-dropdown-trigger {
  background: none;
  border: 0;
  color: #374151;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}

.mobile-dropdown-trigger:hover {
  color: var(--primary);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  background: #f9fafb;
  margin: 0 -20px;
  padding: 0 20px;
}

.mobile-dropdown-content.open {
  max-height: 400px;
}

.mobile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4b5563;
  text-decoration: none;
  padding: 8px 0 8px 16px;
  transition: all .15s;
}

.mobile-dropdown-item:hover {
  color: var(--primary);
  padding-left: 24px;
}

.mobile-dropdown-item i {
  color: var(--primary);
  font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
}

/* Accessibility Focus */
.nav-link:focus,
.dropdown-item:focus,
.cta-btn:focus,
.mobile-toggle:focus,
.mobile-dropdown-trigger:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}