/* =====================================================
   NAVIGATION BASE
===================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font-main);
}

.nav-light .navbar {
  background: #fff;
  color: #1a1a1a;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

/* =====================================================
   NAV CONTAINER
===================================================== */

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 4rem;
  display: flex;
  align-items: center;
}

/* =====================================================
   LOGO
===================================================== */

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

/* =====================================================
   NAV LINKS
===================================================== */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-links a,
.nav-label {
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  color: #fff;
}

.nav-light .nav-links a,
.nav-light .nav-label {
  color: #1a1a1a;
}

.nav-links a:hover {
  font-weight: 600;
}

.nav-links > a,
.nav-links > .nav-item > .nav-label {
  white-space: nowrap;
}

/* =====================================================
   NAV ITEMS
===================================================== */

.nav-item {
  position: relative;
}

.nav-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

/* =====================================================
   STANDARD DROPDOWN
===================================================== */

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.75rem 0;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  z-index: 2000;
}

.nav-light .nav-submenu {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
}

.nav-submenu a {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: inherit;
}

.nav-item:not(.mega):hover > .nav-submenu {
  display: flex;
}

/* =====================================================
   MEGA MENU
===================================================== */

.nav-item.mega {
  position: static;
}

.nav-item.mega > .nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #000;
  padding: 3rem 6rem;
  display: none;
  justify-content: center;
  z-index: 5000;
}

.nav-light .nav-item.mega > .nav-submenu {
  background: #fff;
}

.nav-item.mega.open > .nav-submenu {
  display: flex;
}

.mega-inner {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: center;
  gap: 6rem;
}

.nav-submenu-column {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 280px;
  flex-shrink: 0;
}

.nav-submenu-link {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.nav-submenu-link:hover {
  font-weight: 600;
}

.nav-submenu-link span:first-of-type {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

.nav-submenu-desc {
  font-size: 0.75rem;
  margin-top: 4px;
  line-height: 1.35;
  opacity: 0.65;
}

.nav-submenu-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* =====================================================
   CTA + SEARCH ALIGNMENT
===================================================== */

.nav-cta {
  margin-left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* =====================================================
   ENTERPRISE SEARCH
===================================================== */

.nav-search {
  position: relative;
}

.nav-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  padding: 0;
}

/* SEARCH PANEL */

.nav-search-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 420px;
  background: #fff;
  padding: 1.25rem;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  display: none;
  z-index: 6000;
}

.nav-light .nav-search-panel {
  background: #fff;
}

/* SEARCH FIELD WRAPPER */

.nav-search-field {
  position: relative;
  width: 100%;
}

/* INPUT */

.nav-search-field input {
  width: 100%;
  height: 46px;
  padding: 0 120px 0 18px;
  border-radius: 50px;
  border: 1px solid #d7dde3;
  font-size: 0.9rem;
  font-family: var(--font-main);
  outline: none;
  transition: all 0.2s ease;
  background: #fff;
  color: #1a1a1a;
}

.nav-search-field input:focus {
  border-color: #1c5769;
  box-shadow: 0 0 0 3px rgba(28,87,105,0.08);
}

/* SUBMIT BUTTON */

.nav-search-submit {
  position: absolute;
  right: 6px;
  top: 6px;
  height: 34px;
  padding: 0 20px;
  border-radius: 50px;
  border: none;
  background: #1c5769;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.nav-search-submit:hover {
  background: #174754;
}

.nav-search-submit:active {
  transform: scale(0.97);
}

/* =====================================================
   MOBILE
===================================================== */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: inherit;
}

@media (max-width: 900px) {

  .nav-toggle {
    display: block;
  }

  .nav-container {
    padding: 1rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: inherit;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-submenu,
  .nav-item.mega > .nav-submenu {
    position: static;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: none;
  }

  .mega-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .nav-submenu-column {
    width: 100%;
  }

  .nav-search-panel {
    position: static;
    width: 100%;
    margin-top: 1rem;
    box-shadow: none;
  }

  .nav-cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta .btn {
    width: 100%;
  }
}