/* navbar.css — Ultra-Luxury High Performance Navigation */

.site-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  background: rgba(3, 10, 22, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.88);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-navbar.scrolled {
  background: rgba(3, 10, 22, 0.99);
  border-bottom-color: rgba(211, 47, 47, 0.4);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.95);
}

.navbar-inner,
.navbar-inner.container {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: clamp(1rem, 2vw, 2.4rem);
  height: 115px;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 clamp(1.2rem, 2.5vw, 2.75rem) !important;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.site-navbar.scrolled .navbar-inner,
.site-navbar.scrolled .navbar-inner.container {
  height: 85px;
}

/* ─── Logo (Larger, Stays strictly inside navbar) ────────────────────── */
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  padding: 0.2rem 0;
  margin-left: 0;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  z-index: 10001;
}

.nav-logo-img {
  height: 90px;
  max-height: 92px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.85)) brightness(1.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-navbar.scrolled .nav-logo-img {
  height: 68px;
  max-height: 70px;
}

.nav-logo:hover .nav-logo-img {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 8px 24px rgba(211, 47, 47, 0.5)) brightness(1.18);
}

/* ─── Nav Links Wrap (Prominent, Larger, Left-Aligned) ───────────────── */
.nav-links-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1rem;
  height: 100%;
  flex: 1;
  justify-content: flex-start !important;
  min-width: 0;
}

.nav-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: clamp(0.35rem, 0.65vw, 0.85rem);
  list-style: none !important;
  margin: 0;
  padding: 0;
  align-items: center !important;
  height: 100%;
}

.nav-links > li {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  list-style: none !important;
}

.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #e2e8f0;
  text-decoration: none;
  position: relative;
  padding: 0.45rem 0.32rem;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.2rem; left: 0.32rem; right: 0.32rem;
  height: 2.5px;
  background: var(--ruby-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: right;
}

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

/* ─── CTA Button (Pushed to Right Edge) ─────────────────────────────── */
.nav-cta {
  margin-left: auto;
  padding: 0.5rem 1.05rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  z-index: 10001;
  border-radius: 4px;
}

/* ─── Dropdown Menus ────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
}

.nav-has-drop {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
  color: #94a3b8;
  margin-top: 1px;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown.open .nav-chevron {
  transform: rotate(180deg);
  color: var(--ruby-primary);
}

/* Submenu Panel (Dropdown opens downwards on hover or click) */
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  min-width: 220px;
  list-style: none !important;
  margin: 0;
  padding: 0.45rem 0;
  background: rgba(3, 10, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 2px solid var(--ruby-primary);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  z-index: 10050;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-submenu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  pointer-events: auto;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.open .nav-submenu {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.nav-submenu li {
  width: 100%;
  display: block;
  list-style: none !important;
}

.nav-sub-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: #cbd5e1;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 10060;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-sub-link:hover,
.nav-sub-link.active {
  color: #ffffff;
  background: rgba(211, 47, 47, 0.18);
}

.sub-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--crystal-mid);
  flex-shrink: 0;
}

.sub-dot--pink { background: #f43f5e; }

.nav-submenu li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── Mobile Hamburger Toggle ───────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10020;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--platinum);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Responsive Viewports ───────────────────────────────────────────── */
@media (max-width: 1440px) {
  .nav-link {
    font-size: 0.61rem;
    padding: 0.35rem 0.24rem;
  }
  .nav-links {
    gap: 0.45rem;
  }
  .nav-logo-img {
    height: 82px;
    max-height: 85px;
  }
  .navbar-inner,
  .navbar-inner.container {
    height: 105px;
    gap: 1.25rem;
  }
}

@media (max-width: 1260px) {
  .nav-link {
    font-size: 0.58rem;
    padding: 0.28rem 0.16rem;
    letter-spacing: 0.02em;
  }
  .nav-links {
    gap: 0.32rem;
  }
  .nav-logo-img {
    height: 74px;
    max-height: 76px;
  }
  .navbar-inner,
  .navbar-inner.container {
    height: 96px;
    gap: 0.9rem;
    padding: 0 1.25rem !important;
  }
  .nav-cta {
    padding: 0.4rem 0.75rem;
    font-size: 0.65rem;
  }
}

@media (max-width: 1060px) {
  .nav-link {
    font-size: 0.54rem;
    padding: 0.22rem 0.12rem;
    letter-spacing: 0.01em;
  }
  .nav-links {
    gap: 0.25rem;
  }
  .nav-logo-img {
    height: 66px;
    max-height: 68px;
  }
  .navbar-inner,
  .navbar-inner.container {
    height: 88px;
    gap: 0.7rem;
    padding: 0 1rem !important;
  }
  .nav-cta {
    padding: 0.35rem 0.65rem;
    font-size: 0.60rem;
  }
}

@media (max-width: 992px) {
  .navbar-inner,
  .navbar-inner.container {
    justify-content: space-between !important;
    padding: 0 1.25rem !important;
    height: 85px;
  }
  .site-navbar.scrolled .navbar-inner,
  .site-navbar.scrolled .navbar-inner.container {
    height: 70px;
  }
  .nav-logo-img,
  .site-navbar.scrolled .nav-logo-img {
    height: 62px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-links-wrap {
    position: fixed;
    top: 0; right: -100%;
    width: min(340px, 85vw);
    height: 100vh;
    background: rgba(3, 10, 22, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem;
    padding: 5.5rem 1.75rem 2.5rem;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.9);
  }

  .nav-links-wrap.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem;
    width: 100%;
    height: auto;
  }

  .nav-links > li {
    width: 100%;
    flex-direction: column !important;
    align-items: flex-start !important;
    height: auto;
  }

  .nav-link {
    font-size: 0.90rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
  }

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

  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }

  .nav-submenu {
    position: static;
    transform: none;
    display: none;
    opacity: 1;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-left: 2px solid rgba(211, 47, 47, 0.5);
    border-radius: 0;
    box-shadow: none;
    padding: 0.25rem 0;
    margin: 0.25rem 0 0.5rem 0.75rem;
    width: calc(100% - 0.75rem);
    min-width: unset;
  }

  .nav-submenu::before {
    display: none;
  }

  .nav-dropdown.open .nav-submenu {
    display: block;
  }

  .nav-sub-link {
    padding: 0.55rem 0.75rem;
    font-size: 0.84rem;
  }

  .nav-cta {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }
}