/* ============================================================
   SeaTrans Shipping — Navigation Styles
   ============================================================ */

/* ── Navbar Base ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  transition: all 0.4s var(--ease-smooth);
  padding: 1.25rem 0;
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(10, 22, 40, 0.4);
  padding: 0.75rem 0;
}

.navbar.hidden {
  transform: translateY(-100%);
}

/* ── Container ── */
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ── Logo ── */
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  min-height: 42px;
}

.nav-logo-img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform 0.3s var(--ease-spring);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.03);
}

/* ── Nav Menu ── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Nav Links ── */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-button);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background: var(--sea-green);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-smooth);
  transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-chevron {
  font-size: 0.65rem;
  transition: transform 0.25s var(--ease-smooth);
}

.has-dropdown:hover .nav-chevron,
.has-dropdown.dropdown-open .nav-chevron {
  transform: rotate(180deg);
}

/* ── CTA Button in Nav ── */
.nav-cta {
  background: linear-gradient(135deg, #1E9B6E, #137A54);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(30, 155, 110, 0.35);
  transition: all 0.25s var(--ease-smooth) !important;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 155, 110, 0.45);
}

/* ── Dropdown ── */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 280px;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s var(--ease-smooth);
  z-index: 9100;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: rgba(10, 22, 40, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(-50%) rotate(45deg);
}

.dropdown-menu.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-inner {
  padding: 0.5rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s var(--ease-smooth);
}

.dropdown-item:hover,
.dropdown-item.active {
  background: rgba(30, 155, 110, 0.15);
  color: #fff;
}

.dropdown-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(30, 155, 110, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sea-green);
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: all 0.2s;
}

.dropdown-item:hover .dropdown-icon {
  background: var(--sea-green);
  color: #fff;
}

.dropdown-item-title {
  font-family: var(--font-button);
  font-size: 0.875rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.3;
}

.dropdown-item-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1px;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 9200;
}

.ham-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
  transform-origin: center;
}

.hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Nav Overlay (mobile) ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.65);
  backdrop-filter: blur(4px);
  z-index: 8900;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.active {
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  .nav-overlay.active {
    pointer-events: all;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: rgba(10, 22, 40, 0.99);
    backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 6rem 1.5rem 2rem;
    gap: 0.25rem;
    z-index: 9100;
    overflow-y: auto;
    transition: right 0.4s var(--ease-smooth);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .nav-link::after { display: none; }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(30, 155, 110, 0.15);
    color: #fff;
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    justify-content: center;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    box-shadow: none;
    backdrop-filter: none;
    display: none;
    margin-top: 0.25rem;
    margin-left: 0.5rem;
  }

  .dropdown-menu::before { display: none; }

  .dropdown-menu.visible {
    display: block;
    transform: none;
  }

  .has-dropdown {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 1rem; }
  .logo-primary { font-size: 1.15rem; }
}