/* ==========================================================================
   Sunlight Mirage — Navigation + Services
   File: usersc/templates/<active_theme>/css/nav.css
   ========================================================================== */

/* ---------- Design Tokens ------------------------------------------------ */

:root {
  --mirage-nav-hover: neon;

  /* Single canvas stops */
  --mirage-canvas-1: #060a14;
  --mirage-canvas-2: #0a1020;
  --mirage-canvas-3: #4a1246;

  /* Text/accents */
  --mirage-text: #eaeaea;
  --mirage-muted: #b6b8d6;
  --mirage-cyan: #00e7ff;
  --mirage-magenta: #ff00c8;
  --mirage-violet: #9b5fff;

  /* Radii / shadows / sizes */
  --radius-sm: .5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow-1: 0 6px 22px rgba(0,0,0,.35);
  --glow-1: 0 0 24px rgba(0,231,255,.35);
  --glow-2: 0 0 36px rgba(255,0,200,.30), 0 0 72px rgba(255,0,200,.15);
  --nav-h: 64px;
}

/* WHMCS header strip (language / login / register / cart) */
#header {
  background:
    linear-gradient(180deg, rgba(8,12,22,.26), rgba(8,12,22,.18)),
    linear-gradient(90deg, rgba(0,231,255,.07), rgba(255,0,200,.06)),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  backdrop-filter: blur(10px) saturate(115%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

#header .top-nav {
  float: right;
  width: auto;
}

/* Switch hover style via data attribute on a parent element */
[data-nav-hover='solid'] {
  --mirage-nav-hover: solid;
}

/* ---------- Body Nav Presets -------------------------------------------- */

body.nav-transparent {
  --nav-top-alpha: 0;
  --nav-btm-alpha: 0;
}

body.nav-clear {
  --nav-top-alpha: .10;
  --nav-btm-alpha: .06;
}

body.nav-tint {
  --nav-top-alpha: .34;
  --nav-btm-alpha: .24;
}

body.nav-match {
  --nav-top-alpha: .14;
  --nav-btm-alpha: .10;
}

/* ---------- Neon Nav Shell ---------------------------------------------- */

.neon-nav {
  position: sticky;
  top: 0;
  z-index: 1030;

  background:
    linear-gradient(180deg, rgba(8,12,22,.26), rgba(8,12,22,.18)),
    linear-gradient(90deg, rgba(0,231,255,.07), rgba(255,0,200,.06)),
    linear-gradient(
      180deg,
      rgba(255,255,255,var(--nav-top-alpha)),
      rgba(255,255,255,var(--nav-btm-alpha))
    );
  backdrop-filter: blur(10px) saturate(115%);
  border-bottom: 0;

  display: flex;
  align-items: center;
  min-height: var(--nav-h);
  padding: .25rem .75rem;
}

@media (max-width: 991.98px) {
  .neon-nav {
    display: block;
    min-height: auto;
  }
}

/* Brand mark in nav */
.neon-nav .us_brand img {
  height: 26px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0,231,255,.35));
}

@media (min-width: 1400px) {
  .neon-nav .us_brand img {
    height: 28px;
  }
}

/* ---------- Main Nav Line (UL + Brand) ---------------------------------- */

.nav-blend {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: .25rem;
  width: 100%;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.nav-blend > li,
.nav-blend .us_brand {
  flex: 0 0 auto;
}

/* Prevent legacy dark hover inside right-side wrapper */
.us_menu.dark .nav-right .nav-inner li:hover > a,
.us_menu.dark .nav-right .nav-inner li > a:hover {
  background: transparent !important;
  box-shadow: none !important;
}

/* ---------- Base Nav Link “Chip” ---------------------------------------- */

.nav-blend > li > a,
.top-nav > li > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .8rem;
  color: #cfd8ff !important;
  background: transparent !important;
  border: 1px solid transparent;
  border-radius: 999px; /* pill */
  line-height: 1.1;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.nav-blend .labelText {
  display: inline;
}

/* Hover: gradient on text label only */
.nav-blend > li > a:hover,
.top-nav > li > a:not(.btn):hover {
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(
    90deg,
    rgba(0,231,255,.12),
    rgba(255,0,200,.12)
  );
}

.nav-blend > li > a:hover .labelText {
  color: transparent !important;
  background-image: linear-gradient(90deg, var(--mirage-cyan), var(--mirage-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

@supports not (-webkit-background-clip:text) {
  .nav-blend > li > a:hover .labelText {
    color: var(--mirage-cyan) !important;
  }
}

/* Active: subtle neon pill */
.nav-blend > li.active > a,
.top-nav > li.active > a:not(.btn) {
  color: #fff !important;
  border: 1px solid transparent;
  background-color: rgba(255,255,255,.06);
  background-image:
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)),
    linear-gradient(90deg, var(--mirage-cyan), var(--mirage-magenta));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(0,231,255,.22);
}

.nav-blend > li.active > a::after {
  content: none !important;
}

/* Keyboard focus */
.nav-blend > li > a:focus-visible,
.top-nav > li > a:not(.btn):focus-visible {
  outline: none;
  border-radius: 12px;
  box-shadow: 0 0 0 .18rem rgba(0,231,255,.28);
}

/* Save space 992–1200px: hide labels, keep icons */
@media (max-width:1200px) and (min-width:992px) {
  .nav-blend .labelText {
    display: none;
  }
}

/* Optional: hide labels slightly earlier to keep single line */
@media (max-width: 1360px) and (min-width: 992px) {
  .neon-nav .labelText {
    display: none;
  }
}

/* ---------- Right-Side Nav Group (CTA + Account + Admin) ---------------- */

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Primary right-side group inside neon nav */
.neon-nav .nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* CTA on the right (Get a Quote) */
.neon-nav .nav-cta {
  margin-left: auto;
}

.nav-right .nav-cta {
  margin-left: 0 !important;
}

/* Inside the right group, do NOT push with auto margin */
.neon-nav .nav-right .nav-cta {
  margin-left: 0 !important;
}

.neon-nav li > a.btn,
.top-nav li.primary-action > a.btn {
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem !important;
  height: auto !important;
  line-height: 1.1 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.28);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.45));
}

/* Right-side dropdown triggers */
.nav-right .nav-inner > li > a,
.nav-right .nav-inner .dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .8rem;
  color: #cfd8ff !important;
  background: transparent !important;
  border: 1px solid transparent;
  border-radius: 999px;
  line-height: 1.1;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

/* Right-side hover */
.nav-right .nav-inner > li > a:hover,
.nav-right .nav-inner .dropdown > a:hover {
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(
    90deg,
    rgba(0,231,255,.12),
    rgba(255,0,200,.12)
  );
}

.nav-right .nav-inner > li > a:hover .labelText,
.nav-right .nav-inner .dropdown > a:hover .labelText {
  color: transparent !important;
  background-image: linear-gradient(90deg, var(--mirage-cyan), var(--mirage-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* Right-side active pill */
.nav-right .nav-inner > li.active > a,
.nav-right .nav-inner .dropdown.active > a {
  color: #fff !important;
  border: 1px solid transparent;
  background-color: rgba(255,255,255,.06);
  background-image:
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)),
    linear-gradient(90deg, var(--mirage-cyan), var(--mirage-magenta));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(0,231,255,.22);
}

/* Keyboard focus ring for right-side links */
.nav-right .nav-inner > li > a:focus-visible,
.nav-right .nav-inner .dropdown > a:focus-visible {
  outline: none;
  border-radius: 999px;
  box-shadow: 0 0 0 .18rem rgba(0,231,255,.28);
}

/* Kill legacy dark hover on dropdown triggers */
.us_menu.horizontal.dark .dropdown > a,
.us_menu.horizontal.dark .dropdown > a:hover {
  background: transparent !important;
  box-shadow: none !important;
}

/* Solid hover mode: disable gradient label on hover */
[data-nav-hover='solid'] .nav-blend > li > a:hover .labelText,
[data-nav-hover='solid'] .nav-right .nav-inner > li > a:hover .labelText {
  color: var(--neon-text-hover, #fff) !important;
  background-image: none;
}

/* ---------- Services Quick-Nav (part of nav band) ---------------------- */

.services-nav .btn {
  background: rgba(10,10,31,.28);
  border-color: rgba(255,255,255,.35);
  color: #e7ecff;
  border-radius: 999px;
  padding: .45rem .9rem;
}

.services-nav .btn:hover {
  border-color: var(--mirage-cyan);
  box-shadow: var(--glow-1);
}

/* Anchor scroll comfort for services sections */
#design,
#hosting,
#care {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

/* ---------- Navbar Buttons (context-only styles) ----------------------- */

.neon-nav .btn {
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}

.neon-nav .btn-cta {
  border: 1px solid rgba(255,255,255,.22);
}

/* ---------- Navbar Wrap / Overflow Fix (Desktop) ----------------------- */

.neon-nav .nav-blend {
  flex-wrap: nowrap;
  overflow: visible;
}

.neon-nav .nav-blend::-webkit-scrollbar {
  display: none;
}

/* Ensure dropdown panels float above content */
.neon-nav .us_sub-menu {
  z-index: 2000;
}

/* Glassy dropdowns to match brighter nav */
.neon-nav .dropdown > .us_sub-menu,
.us_menu.horizontal.dark li.dropdown > .us_sub-menu {
  background:
    linear-gradient(180deg, rgba(8,12,22,.82), rgba(8,12,22,.70)),
    linear-gradient(90deg, rgba(0,231,255,.08), rgba(255,0,200,.06));
  border: 1px solid rgba(255,255,255,.14) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* Remove any accidental bottom lines from wrappers */
.neon-nav,
.neon-nav * {
  border-image: initial;
}

/* ===== NAVBAR WRAP FIX (full nav container) ============================ */

.us_menu.horizontal.dark.nav-blend.neon-nav {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  overflow: visible;
}

.us_menu.horizontal.dark.nav-blend.neon-nav::-webkit-scrollbar {
  display: none;
}

/* Keep the right-side group pinned to the far right */
.us_menu.horizontal.dark.nav-blend.neon-nav > .nav-right {
  margin-left: auto !important;
  display: flex !important;
  align-items: center;
  gap: .25rem;
}

/* Ensure .nav-inner items stay inline */
.nav-right .nav-inner {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: .25rem;
  white-space: nowrap;
}

/* Prevent long text from forcing line breaks */
.us_menu.horizontal.dark.nav-blend.neon-nav a,
.us_menu.horizontal.dark.nav-blend.neon-nav .labelText {
  white-space: nowrap;
}

/* ---------- Transparent Navbar Mode ------------------------------------ */

body.nav-transparent .neon-nav .dropdown > .us_sub-menu,
body.nav-transparent .us_menu.horizontal.dark li.dropdown > .us_sub-menu {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.nav-transparent .us_menu.horizontal.dark .dropdown-divider {
  background: transparent !important;
  border-color: rgba(255,255,255,.18) !important;
}

/* Readability in transparent mode: faint chip on submenu items */
body.nav-transparent .us_menu.horizontal.dark .us_sub-menu li a {
  background: rgba(6,10,20,.62) !important;
  border-color: rgba(255,255,255,.36) !important;
  color: #f6f8ff !important;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 8px rgba(0,0,0,.65);
  box-shadow: 0 8px 18px rgba(0,0,0,.34);
}

body.nav-transparent .us_menu.horizontal.dark .us_sub-menu li a:hover {
  background:
    linear-gradient(180deg, rgba(6,10,20,.72), rgba(6,10,20,.72)),
    linear-gradient(90deg, rgba(0,231,255,.38), rgba(255,0,200,.36)) !important;
  border-color: rgba(255,255,255,.48) !important;
  text-shadow: 0 1px 10px rgba(0,0,0,.70);
}

/* ---------- Nav Underline Reset ---------------------------------------- */

/* Remove unwanted underline on hover/focus/active for main nav items */
.nav-blend > li > a,
.nav-blend > li > a:hover,
.nav-blend > li > a:focus,
.nav-blend > li.active > a {
  text-decoration: none !important;
}

/* Remove underline for WHMCS top header links */
.top-nav > li > a,
.top-nav > li > a:hover,
.top-nav > li > a:focus {
  text-decoration: none !important;
}

/* Remove underline from WHMCS main nav (blue bar) */
.nav-right .nav-inner > li > a,
.nav-right .nav-inner > li > a:hover,
.nav-right .nav-inner > li > a:focus {
    text-decoration: none !important;
}

/* Mirage: remove Six teal bar behind main menu */
section#main-menu,
#main-menu {
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* Ensure the <nav> itself doesn’t bring its own color */
#main-menu #nav {
    background: transparent !important;
    border: 0 !important;
}

/* Small spacing between glass header bar and main nav */
section#main-menu {
    padding-top: 4px;
    padding-bottom: 6px;
}

/* === Mirage override: let the page gradient show behind the nav ========== */

/* Remove the blue/gray bar behind the nav pills */
.neon-nav {
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Make sure the main-menu wrapper itself doesn’t re-introduce a color */
section#main-menu,
#main-menu {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* === Mirage override: remove blue/gray header bar ====================== */

#header {
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* In case Six adds a background on the inner container */
#header > .container {
    background: transparent !important;
}
