/* Professional navbar styles */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1041;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.site-navbar a {
  color: #1f2937; /* slate-800 */
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.site-navbar a:hover,
.site-navbar a:focus {
  background: #f3f4f6; /* gray-100 */
  color: #111827; /* gray-900 */
  outline: none;
}

.site-navbar a:active {
  background: #e5e7eb; /* gray-200 */
}

/* Hide close icon globally on all pages */
.ps-noti__close { display: none !important; }

/* Toggle button - hidden on desktop */
.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #1f2937;
  font-weight: 700;
  font-size: 22px; /* hamburger size */
  padding: 8px 10px;
  border-radius: 8px;
  position: relative;
  z-index: 1042; /* ensure button stays clickable above other layers */
}
.menu-toggle:focus { outline: none; }

/* Mobile brand text beside the icon */
.brand-mobile {
  display: none;
  color: #16a34a; /* green-600 */
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  margin-left: 8px;
  text-shadow: 0 1px 0 #d1fae5, 0 0 8px rgba(34, 197, 94, 0.35);
}

/* Mobile sidebar container */
.mobile-sidebar {
  position: fixed;
  top: var(--nb-top); /* below number bar */
  left: 0;
  height: calc(100% - var(--nb-top));
  width: 80%;
  max-width: 320px;
  background: #ffffff;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 1035;
  padding: 16px;
}
.mobile-sidebar a {
  display: block;
  color: #1f2937;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 6px;
}
.mobile-sidebar a:hover { background: #f3f4f6; }

/* Backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: var(--nb-top) 0 0 0; /* below number bar */
  background: rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1034;
}

/* Open states */
body.sidebar-open .mobile-sidebar { transform: translateX(0); }
body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }

/* Hide Products link globally in legacy and custom sidebars */
.ps-menu--slidebar a[href="products.html"] { display: none !important; }
.mobile-sidebar a[href="products.html"] { display: none !important; }

@media (max-width: 768px) {
  /* Fix mobile number bar to top */
  .ps-noti {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1040;
  }
  .ps-noti__close { display: none !important; }
  body { padding-top: 48px; }

  /* Place navbar below the fixed number bar */
  .site-navbar {
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 12px;
    position: sticky;
    top: var(--nb-top); /* sits below the number bar */
  }
  /* Hide inline links on mobile, show toggle */
  .site-navbar a { display: none !important; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; background: transparent !important; border: none !important; box-shadow: none !important; }
  .brand-mobile { display: inline-block; }
}
:root { --nb-top: 48px; }