/* Header base — matches Generator theme header height ~149px */
.show-for-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Utility bar — above main nav, Sterling-style subtle */
.ns-util { background: #1a1a2e; border-bottom: 1px solid rgba(255,255,255,0.08); font-family: Inter, sans-serif; font-size: 14px; color: #d1d5db; }
.ns-util__inner { width: 100%; margin: 0; padding: 9px 96px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ns-util__left { display: flex; align-items: center; flex-wrap: wrap; }
.ns-util__item { display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; color: #d1d5db; text-decoration: none; transition: color 0.15s ease; white-space: nowrap; font-family: Inter, sans-serif; }
.ns-util__item:first-child { padding-left: 0; }
.ns-util__item + .ns-util__item { border-left: 1px solid rgba(255,255,255,0.15); }
.ns-util__item svg { width: 17px; height: 17px; fill: #60a5fa; flex-shrink: 0; }
.ns-util__item--phone svg { width: 20px; height: 20px; }
.ns-util__item--phone { font-weight: 500; }
.ns-util__item:hover { color: #60a5fa; }
.ns-util__right { display: flex; align-items: center; gap: 0; }
.ns-util__social { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 38px; height: 30px; padding: 0 14px; color: #d1d5db; transition: color 0.15s ease; text-decoration: none; }
.ns-util__social + .ns-util__social { border-left: 1px solid rgba(255,255,255,0.15); }
.ns-util__social:hover { color: #60a5fa; }
.ns-util__social svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 1200px) {
  .ns-util__inner { padding: 9px 48px; }
}
@media (max-width: 900px) {
  .ns-util__item--hours,
  .ns-util__item--support { display: none; }
  .ns-util__inner { padding: 9px 32px; }
}
@media (max-width: 700px) {
  .ns-util__item--email { display: none; }
  .ns-util__inner { padding: 8px 16px; }
}
@media (max-width: 480px) {
  .ns-util__social { display: none; }
}

.ns-header { background: #fff; padding: 24px 0; position: relative; z-index: 1000; box-shadow: 0 1px 4px rgba(0,0,0,0.06); min-height: 90px; }
.ns-header__inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.ns-header__logo img { display: block; height: auto; }
.ns-header__logo a { display: inline-block; }

/* Desktop nav — Inter 18px to match Generator theme */
.ns-nav { display: flex; align-items: center; }
.ns-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.ns-nav__item { position: relative; }
.ns-nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 14px 16px; color: #191a1a; text-decoration: none; font-size: 18px; font-weight: 400; letter-spacing: 0.2px; white-space: nowrap; transition: color 0.15s ease; font-family: Inter, sans-serif; cursor: pointer; }
.ns-nav__link:hover { color: #0a77ba; }
.ns-nav__link--active { color: #0a77ba; }
.ns-nav__chevron { width: 11px; height: 11px; fill: currentColor; flex-shrink: 0; transition: transform 0.2s ease; }
.ns-nav__item--open .ns-nav__chevron { transform: rotate(180deg); }

/* Standard dropdown menu — refined cosmetic treatment */
.ns-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background: #ffffff;
  min-width: 260px;
  width: max-content;
  max-width: 320px;
  border-top: 2px solid #0a77ba;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04), 0 14px 40px rgba(10,119,186,0.10);
  padding: 8px 0;
  list-style: none;
  margin: 0;
}
.ns-nav__item--open > .ns-nav__dropdown {
  display: block;
  animation: ns-dropdown-fade 0.16s ease-out;
}
@keyframes ns-dropdown-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ns-nav__dropdown li { display: block; width: 100%; }
.ns-nav__dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  color: #1f2937;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.1px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, padding 0.15s ease;
  font-family: Inter, sans-serif;
}
.ns-nav__dropdown li a::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  border-left: 5px solid #0a77ba;
  opacity: 0.5;
  transition: opacity 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.ns-nav__dropdown li a:hover {
  background: #f0f7fc;
  color: #0a77ba;
}
.ns-nav__dropdown li a:hover::before {
  opacity: 1;
  transform: translateX(3px);
}

/* Mega menu for Services, Industries — 2 columns */
.ns-nav__dropdown.ns-nav__dropdown--mega { min-width: 580px; max-width: 640px; width: 620px; }
.ns-nav__item--open > .ns-nav__dropdown.ns-nav__dropdown--mega {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ns-nav__dropdown--mega li { width: auto; }
.ns-nav__dropdown--mega li a { padding: 10px 22px; font-size: 15px; white-space: normal; }

/* Mega menu for Services — 3 columns with category sections */
.ns-nav__dropdown.ns-nav__dropdown--mega-3col {
  display: none;
  min-width: 900px;
  max-width: 980px;
  width: 940px;
  padding: 16px 0;
}
.ns-nav__item--open > .ns-nav__dropdown.ns-nav__dropdown--mega-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.ns-nav__dropdown-section {
  padding: 0 4px;
  border-right: 1px solid #e5e7eb;
  list-style: none;
  display: block;
}
.ns-nav__dropdown-section:last-child { border-right: none; }
.ns-nav__dropdown-section::before { display: none !important; }
.ns-nav__dropdown-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #0a77ba;
  padding: 2px 22px 8px;
  margin: 0 0 6px;
  font-family: Inter, sans-serif;
  border-bottom: 1px solid #eef4f9;
}
.ns-nav__dropdown-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ns-nav__dropdown-section ul li a {
  padding: 8px 22px;
  font-size: 14px;
  white-space: normal;
  line-height: 1.35;
}

/* Single-column labeled dropdown — for Resources + About */
.ns-nav__dropdown.ns-nav__dropdown--labeled {
  min-width: 240px;
  max-width: 300px;
  width: 260px;
  padding: 16px 0;
}
.ns-nav__item--open > .ns-nav__dropdown.ns-nav__dropdown--labeled {
  display: block;
}
.ns-nav__dropdown--labeled .ns-nav__dropdown-section {
  padding: 0;
  border-right: none;
}
.ns-nav__dropdown--labeled .ns-nav__dropdown-section ul li a {
  padding: 9px 22px;
  font-size: 15px;
}

/* Mobile nav — category headings inside Services dropdown */
.ns-mobile-nav__dropdown-heading {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #0a77ba;
  padding: 14px 24px 6px;
  font-family: Inter, sans-serif;
  background: #f9fafb;
}

/* CTA button */
.ns-nav__cta { display: inline-block; padding: 12px 22px; background: #0a77ba; color: #fff !important; text-decoration: none; border-radius: 6px; font-size: 16px; font-weight: 600; white-space: nowrap; transition: background 0.15s ease; font-family: Inter, sans-serif; margin-left: 16px; }
.ns-nav__cta:hover { background: #085d94; color: #fff !important; }

/* Mobile hamburger */
.ns-header__mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.ns-header__mobile-toggle svg { width: 28px; height: 28px; fill: #191a1a; }

/* Mobile nav panel */
.ns-mobile-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 9998; max-height: 80vh; overflow-y: auto; }
.ns-mobile-nav--open { display: block; }
.ns-mobile-nav__list { list-style: none; margin: 0; padding: 16px 0; }
.ns-mobile-nav__item { display: block; width: 100%; position: relative; }
.ns-mobile-nav__link { display: block; padding: 14px 24px; color: #191a1a; text-decoration: none; font-size: 18px; font-weight: 400; font-family: Inter, sans-serif; }
.ns-mobile-nav__link:hover { background: #f0f7fc; color: #0a77ba; }
.ns-mobile-nav__toggle { background: none; border: none; cursor: pointer; padding: 14px 20px; position: absolute; right: 0; top: 0; }
.ns-mobile-nav__toggle svg { width: 14px; height: 14px; fill: #191a1a; transition: transform 0.2s ease; }
.ns-mobile-nav__item--open > .ns-mobile-nav__toggle svg { transform: rotate(180deg); }
.ns-mobile-nav__dropdown { display: none; list-style: none; margin: 0; padding: 0; background: #f9fafb; }
.ns-mobile-nav__item--open > .ns-mobile-nav__dropdown { display: block; }
.ns-mobile-nav__dropdown li a { display: block; padding: 12px 24px 12px 40px; color: #191a1a; text-decoration: none; font-size: 16px; font-family: Inter, sans-serif; }
.ns-mobile-nav__dropdown li a:hover { color: #0a77ba; }
.ns-mobile-nav__cta { display: block; margin: 12px 24px; padding: 14px 20px; background: #0a77ba; color: #fff !important; text-decoration: none; border-radius: 6px; font-size: 16px; font-weight: 600; text-align: center; font-family: Inter, sans-serif; }

/* Responsive */
@media (max-width: 1024px) {
  .ns-nav { display: none; }
  .ns-header__mobile-toggle { display: block; }
}
@media (min-width: 1025px) {
  .ns-mobile-nav { display: none !important; }
}

/* Floating Support Button — fixed right edge */
.ns-support-float { position: fixed; right: 0; top: 35%; transform: translateY(-50%); z-index: 9990; }
.ns-support-float__btn { display: flex; align-items: center; gap: 12px; padding: 22px 24px; background: #0a77ba; color: #fff; text-decoration: none; font-family: Poppins, Inter, sans-serif; font-size: 18px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; border-radius: 12px 0 0 12px; box-shadow: -3px 3px 16px rgba(0,0,0,0.2); transition: background 0.15s ease, padding-right 0.15s ease; writing-mode: vertical-rl; text-orientation: mixed; white-space: nowrap; }
.ns-support-float__btn:hover { background: #085d94; padding-right: 30px; color: #fff; }
.ns-support-float__btn svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
@media (max-width: 768px) {
  .ns-support-float { top: 40%; }
  .ns-support-float__btn { padding: 14px 14px; font-size: 13px; }
  .ns-support-float__btn svg { width: 18px; height: 18px; }
}
