/* =================================================================
   ASTRO ARUN — PREMIUM NAV BAR (Light theme, final)
   Add this entire file as a NEW file: css/nav-premium.css
   Then link it in index.html <head> (instructions in chat).
   ================================================================= */

/* -----------------------------------------------------------------
   STICKY HEADER FIX
   Wraps BOTH the top contact strip and the nav bar together so they
   stick to the top as one solid block, never overlapping/clipping
   each other while scrolling.
   ----------------------------------------------------------------- */

.site-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
}

/* -----------------------------------------------------------------
   NAV STRUCTURE — light, soft lavender background
   ----------------------------------------------------------------- */

.nav-premium {
  position: relative;
  font-family: inherit;
  padding: 0;
  border: none;
  box-shadow: 0 2px 18px rgba(77, 0, 121, 0.10);
  background: #faf7ff;
}

.nav-premium .nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 8px 10px;
}

/* Logo — no wrapper box, sits directly on the light nav */
.nav-premium .nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-premium .nav-brand img {
  height: 40px;
  width: auto;
  display: block;
}

/* Desktop link list */
.nav-premium .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-premium .nav-links > li {
  position: relative;
}

.nav-premium .nav-links > li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: rgba(77, 0, 121, 0.18);
}

.nav-premium .nav-links > li:last-child::after,
.nav-premium .nav-links > li:has(.nav-cta)::after {
  display: none;
}

.nav-premium .nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
  border-radius: 6px;
  color: #3a2a55;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}

.nav-premium .nav-links > li > a:hover,
.nav-premium .nav-links > li > a.active {
  color: #4d0079;
  background: rgba(77, 0, 121, 0.07);
}

.nav-premium .nav-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* Dropdown */
.nav-premium .has-dropdown {
  display: flex;
  align-items: center;
}

.nav-premium .dropdown-caret {
  width: 9px;
  height: 9px;
  margin-left: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-premium li.has-dropdown:hover .dropdown-caret {
  transform: rotate(225deg);
}

.nav-premium .dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(20, 10, 40, 0.18);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}

.nav-premium li.has-dropdown:hover .dropdown-panel,
.nav-premium li.has-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-premium .dropdown-panel a {
  display: block;
  padding: 11px 14px;
  border-radius: 7px;
  text-decoration: none;
  color: #2c2540;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-premium .dropdown-panel a:hover {
  background: #f5f1fb;
  color: #4d0079;
}

/* CTA button (desktop only — hidden on mobile) */
.nav-premium .nav-cta {
  margin-left: 14px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4d0079 0%, #7a1fb0 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(77, 0, 121, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-premium .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(77, 0, 121, 0.4);
}

.nav-premium .nav-cta svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Hamburger — violet lines on light background */
.nav-premium .nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-premium .nav-toggle span {
  display: block;
  height: 3px;
  width: 28px;
  border-radius: 2px;
  background: #4d0079;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-premium .nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-premium .nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-premium .nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =================================================================
   RESPONSIVE — mobile menu
   ================================================================= */

@media (max-width: 991px) {

  .nav-premium .nav-toggle {
    display: flex;
  }

  .nav-premium .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #2d0a52 0%, #4d0079 100%);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.25);
    transition: max-height 0.3s ease;
  }

  .nav-premium .nav-links.open {
    max-height: 600px;
  }

  .nav-premium .nav-links > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-premium .nav-links > li::after {
    display: none;
  }

  .nav-premium .nav-links > li > a {
    width: 100%;
    padding: 15px 22px;
    border-radius: 0;
    color: #ece4fa;
  }

  .nav-premium .nav-links > li > a:hover,
  .nav-premium .nav-links > li > a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
  }

  .nav-premium .nav-links > li > a.active {
    background: rgba(255, 255, 255, 0.18);
    border-left: 4px solid #ffffff;
    padding-left: 18px;
  }

  .nav-premium .nav-links > li > a::after {
    display: none;
  }

  .nav-premium .has-dropdown {
    flex-wrap: wrap;
  }

  .nav-premium .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    width: 100%;
    display: none;
    border-radius: 0;
    padding: 0 0 6px 14px;
    background: transparent;
  }

  .nav-premium li.has-dropdown.open .dropdown-panel {
    display: block;
  }

  .nav-premium .dropdown-panel a {
    color: #ece4fa;
  }

  .nav-premium .dropdown-panel a:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
  }

  /* CTA hidden on mobile — top contact strip WhatsApp icon already covers this */
  .nav-premium .nav-links > li:has(.nav-cta) {
    display: none;
  }
}
