/* ── ServioCS · Shared Public Header ─────────────────────────────────────── */

nav.site-header {
  position: fixed;
  top: var(--promo-banner-height, 0px);
  left: 0;
  right: 0;
  z-index: 180;
  padding: 16px 18px 0;
  background: linear-gradient(180deg, rgba(5, 8, 11, 0.88), rgba(5, 8, 11, 0));
  pointer-events: none;
}

.site-nav-row {
  pointer-events: auto;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 82px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(14, 18, 24, 0.96), rgba(9, 12, 16, 0.92));
  backdrop-filter: blur(28px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 18px;
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.nav-logo:hover,
.nav-logo.nav-section-active {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-logo-img {
  width: auto;
  height: 38px;
  display: block;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
}

.nav-logo-cs {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.nav-top-link,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(241, 245, 249, 0.7);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.nav-top-link:hover,
.nav-dropdown-trigger:hover,
.nav-section-active,
.nav-top-link.nav-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-top-link.nav-active,
.nav-dropdown-trigger.nav-section-active {
  box-shadow: inset 0 0 0 1px rgba(82, 176, 67, 0.24);
}

.nav-chevron {
  width: 13px;
  height: 13px;
  opacity: 0.9;
  transition: transform 0.18s ease;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown.open .nav-chevron {
  transform: translateY(1px) rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  display: none;
  max-width: calc(100vw - 36px);
  transform: translateX(calc(-50% + var(--nav-menu-shift, 0px)));
  z-index: 220;
  pointer-events: none;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
  pointer-events: auto;
}

.nav-dropdown-menu-inner {
  width: max-content;
  min-width: 320px;
  max-width: calc(100vw - 36px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.98), rgba(8, 11, 15, 0.96));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(28px);
}

.nav-dropdown-menu--platform .nav-dropdown-menu-inner {
  width: min(1120px, calc(100vw - 36px));
  min-width: min(1120px, calc(100vw - 36px));
}

.nav-dropdown-menu--solutions .nav-dropdown-menu-inner,
.nav-dropdown-menu--resources .nav-dropdown-menu-inner {
  width: min(1040px, calc(100vw - 36px));
  min-width: min(1040px, calc(100vw - 36px));
}

.nav-dropdown-grid {
  display: grid;
  gap: 14px;
}

.nav-dropdown-grid--platform,
.nav-dropdown-grid--solutions,
.nav-dropdown-grid--resources {
  grid-template-columns: minmax(280px, 1.05fr) repeat(3, minmax(0, 1fr));
}

.nav-dropdown-spotlight,
.nav-dropdown-section {
  min-width: 0;
}

.nav-dropdown-spotlight {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(82, 176, 67, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(82, 176, 67, 0.16), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.nav-dropdown-spotlight-label {
  color: rgba(186, 230, 253, 0.92);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.nav-dropdown-spotlight-title {
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #ffffff;
}

.nav-dropdown-spotlight-copy {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.72);
}

.nav-dropdown-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.nav-dropdown-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
}

.nav-dropdown-section-label {
  padding: 0 4px 6px;
  color: rgba(148, 163, 184, 0.58);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: rgba(241, 245, 249, 0.74);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active,
.nav-dropdown-item.nav-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.nav-dropdown-item.active,
.nav-dropdown-item.nav-active {
  box-shadow: inset 0 0 0 1px rgba(82, 176, 67, 0.22);
}

.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(82, 176, 67, 0.1);
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.nav-dropdown-item-label {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.24;
}

.nav-dropdown-item-desc {
  margin-top: 4px;
  color: rgba(148, 163, 184, 0.82);
  font-size: 11px;
  line-height: 1.6;
}

.nav-dropdown-note {
  margin-top: auto;
  padding: 12px 4px 0;
  color: rgba(148, 163, 184, 0.72);
  font-size: 11px;
  line-height: 1.7;
}

.nav-dropdown-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.nav-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.nav-inline-link:hover {
  color: #ffffff;
  border-color: rgba(82, 176, 67, 0.24);
  background: rgba(82, 176, 67, 0.08);
}

.nav-dropdown-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #52b043, #3a8a2e);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-dropdown-cta-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#nav-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 236px;
}

.nav-utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
  transition: color 0.18s ease;
}

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

.nav-cta-primary {
  padding: 12px 22px;
  font-size: 11px;
  white-space: nowrap;
}

.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: calc(var(--site-header-offset, 82px) + 8px);
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 165;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(10, 14, 18, 0.98);
  backdrop-filter: blur(28px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(-14px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-mobile-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 24px;
}

.nav-mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-hero {
  padding: 18px;
  border: 1px solid rgba(82, 176, 67, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(82, 176, 67, 0.16), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.nav-mobile-kicker {
  display: inline-block;
  font-size: 21px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.nav-mobile-kicker span {
  color: var(--orange);
}

.nav-mobile-hero p {
  margin-top: 10px;
  color: rgba(226, 232, 240, 0.74);
  font-size: 13px;
  line-height: 1.7;
}

.nav-mobile-section-label {
  padding: 12px 12px 4px;
  color: rgba(148, 163, 184, 0.72);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.nav-mobile-inner a {
  display: block;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: rgba(241, 245, 249, 0.76);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.nav-mobile-inner a:hover,
.nav-mobile-inner a.nav-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nav-mobile-grid a {
  text-align: center;
  font-size: 12px;
  padding: 14px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

.nav-mobile-cta {
  margin-top: 8px;
  border-radius: 18px;
  background: linear-gradient(135deg, #52b043, #3a8a2e);
  color: #ffffff !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.nav-mobile-divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 1320px) {
  .site-nav-row {
    gap: 16px;
  }

  .nav-dropdown-menu--platform .nav-dropdown-menu-inner {
    width: min(1020px, calc(100vw - 36px));
    min-width: min(1020px, calc(100vw - 36px));
  }

  .nav-dropdown-grid--platform,
  .nav-dropdown-grid--solutions,
  .nav-dropdown-grid--resources {
    grid-template-columns: minmax(250px, 0.95fr) repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .nav-links {
    gap: 6px;
  }

  .nav-top-link,
  .nav-dropdown-trigger {
    padding: 12px 14px;
    letter-spacing: 0.12em;
  }

  #nav-auth {
    min-width: 208px;
  }

  .nav-dropdown-grid--platform,
  .nav-dropdown-grid--solutions,
  .nav-dropdown-grid--resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-dropdown-spotlight {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1280px) {
  nav.site-header {
    padding: 14px 14px 0;
  }

  .site-nav-row {
    min-height: 74px;
    padding: 12px 14px;
  }

  .nav-links {
    display: none;
  }

  #nav-auth {
    display: none;
  }

  .nav-hamburger {
    display: inline-flex;
  }

  .nav-mobile-drawer {
    display: block;
  }
}

@media (max-width: 760px) {
  .nav-logo-img {
    height: 34px;
  }

  .nav-logo-text {
    font-size: 21px;
  }

  .nav-mobile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  nav.site-header {
    padding: 12px 10px 0;
  }

  .site-nav-row {
    gap: 10px;
    min-height: 70px;
    padding: 10px 12px;
    border-radius: 24px;
  }

  .nav-logo {
    padding: 6px 8px;
    gap: 8px;
  }

  .nav-logo-text {
    font-size: 19px;
  }

  .nav-mobile-drawer {
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 24px;
  }

  .nav-mobile-grid {
    grid-template-columns: 1fr;
  }
}
