/* ============================================
   NAVIGATION BAR STYLES
   ============================================ */

:root {
  /* Colors - Sky Blue Theme */
  --color-slate-blue: #296def;
  --color-deeper-slate: #0c6fd1;
  --color-copper: #4da3f5;
  --color-copper-light: #7dbcf8;
  --color-white: #ffffff;
  --color-warm-white: #fafbfc;
  --color-cloud-gray: #f4f6f9;
  --color-soft-gray: #e3e8ef;
  --color-medium-gray: #9ca8b8;
  --color-charcoal: #4a5568;
  --color-deep-charcoal: #2d3748;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --nav-edge-gap: 48px;

  /* Transitions */
  --transition-fast: 200ms ease-out;
  --transition-medium: 300ms ease-in-out;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-nav: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ============================================
   NAVBAR CONTAINER
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 80px;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-soft-gray);
  z-index: 1000;
  transition: box-shadow var(--transition-fast);
}

.navbar.scrolled {
  box-shadow: var(--shadow-nav);
}

.navbar-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ============================================
   LOGO
   ============================================ */
.navbar-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.navbar-logo:hover {
  opacity: 0.85;
}

.navbar-logo img {
  height: 32px;
  width: auto;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */
.navbar-menu {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navbar-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: var(--color-charcoal);
  text-decoration: none;
  padding: 8px 0;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--color-slate-blue);
}

.nav-link.active {
  color: var(--color-slate-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-slate-blue);
}

/* ============================================
   CTA BUTTON
   ============================================ */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  height: 48px;
  background-color: var(--color-slate-blue);
  color: var(--color-white);
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border: none;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(45, 62, 80, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.btn-cta:hover {
  background-color: var(--color-deeper-slate);
  box-shadow: 0 4px 10px rgba(45, 62, 80, 0.25);
}

.btn-cta:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px rgba(45, 62, 80, 0.2);
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--color-slate-blue);
  transition: all var(--transition-fast);
}

.navbar-toggle:hover .hamburger-line {
  background-color: var(--color-copper);
}

/* Transform hamburger to X when menu is open */
.navbar-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #b0d8fe46;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
  z-index: -1;
}

.mobile-menu.active::before {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85%;
  height: 100vh;
  background-color: var(--color-white);
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--transition-medium);
  z-index: 1002;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-slate-blue);
  cursor: pointer;
  padding: 8px;
  transition: color var(--transition-fast);
}

.mobile-menu-close:hover {
  color: var(--color-copper);
}

.mobile-nav {
  list-style: none;
  margin-top: 80px;
  margin-bottom: 40px;
}

.mobile-nav-item {
  margin-bottom: var(--space-lg);
}

.mobile-nav-link {
  display: block;
  font-size: 18px;
  font-weight: var(--font-weight-medium);
  color: var(--color-charcoal);
  text-decoration: none;
  padding: 16px 0;
  transition: color var(--transition-fast);
  position: relative;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  color: var(--color-copper);
}

.mobile-nav-link.active {
  color: var(--color-slate-blue);
  border-left: 4px solid var(--color-slate-blue);
  padding-left: 16px;
}

.btn-cta-mobile {
  width: 100%;
  height: 56px;
  margin-top: var(--space-lg);
}

/* ============================================
   BODY SCROLL LOCK
   ============================================ */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   ACCESSIBILITY - FOCUS STATES
   ============================================ */
.nav-link:focus,
.btn-cta:focus,
.navbar-toggle:focus,
.mobile-nav-link:focus,
.mobile-menu-close:focus {
  outline: none;
  outline-offset: 2px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet */
@media (max-width: 1199px) {
  .navbar-container {
    padding: 0 32px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .navbar {
    height: 64px;
  }

  .navbar-container {
    padding: 0 20px;
  }

  .navbar-logo img {
    height: 28px;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
