/* LTBM v1.4.1 — ROVERS-family floating navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 10px 20px 0;
  background: transparent !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
  pointer-events: none;
}

.site-header .header-inner {
  position: relative;
  width: min(1180px, calc(100vw - 40px));
  min-height: 66px;
  margin: 0 auto;
  padding: 0 12px 0 16px;
  border: 1px solid rgba(218, 238, 220, .18);
  border-radius: 21px;
  background:
    linear-gradient(110deg, rgba(7, 32, 20, .95), rgba(14, 45, 24, .91) 58%, rgba(22, 50, 27, .92));
  box-shadow:
    0 12px 34px rgba(1, 15, 8, .16),
    inset 0 1px 0 rgba(255, 255, 255, .055);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  pointer-events: auto;
  transition:
    min-height .24s ease,
    transform .24s ease,
    background .24s ease,
    border-color .24s ease,
    box-shadow .24s ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 60px;
  transform: translateY(-3px);
  border-color: rgba(218, 238, 220, .25);
  background:
    linear-gradient(110deg, rgba(5, 27, 16, .985), rgba(12, 39, 22, .97) 58%, rgba(18, 43, 23, .975));
  box-shadow:
    0 16px 38px rgba(0, 12, 7, .25),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

.site-header .brand {
  flex: 0 0 auto;
  gap: 10px;
  color: #f4f3e8;
}

.site-header .brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}

.site-header .brand-copy small {
  color: rgba(244, 243, 232, .72);
  font-size: 8px;
  letter-spacing: .23em;
}

.site-header .brand-copy strong {
  color: #f7f5e8;
  font-size: 25px;
  letter-spacing: -.025em;
}

.site-header .site-nav {
  gap: 25px;
}

.site-header .site-nav > a:not(.button) {
  position: relative;
  color: rgba(247, 246, 237, .91);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -.01em;
  text-transform: none;
  transition: color .18s ease;
}

.site-header .site-nav > a:not(.button)::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -7px;
  height: 1px;
  background: #c7ea8a;
  transition: left .18s ease, right .18s ease;
}

.site-header .site-nav > a:not(.button):hover {
  color: #dff4b7;
}

.site-header .site-nav > a:not(.button):hover::after {
  left: 0;
  right: 0;
}

.site-header .theme-toggle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237, 243, 230, .19);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: #f5f4e9;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.site-header .theme-toggle:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(230, 244, 220, .32);
  transform: translateY(-1px);
}

.site-header .site-nav .button,
.site-header .site-nav .button-small {
  min-height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 245, 232, .4);
  border-radius: 999px;
  background: #efeddf;
  color: #102217;
  box-shadow: 0 8px 22px rgba(0,0,0,.11);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.site-header .site-nav .button:hover,
.site-header .site-nav .button-small:hover {
  transform: translateY(-1px);
  background: #f8f6eb;
  box-shadow: 0 11px 24px rgba(0,0,0,.17);
  color: #102217;
}

.site-header .nav-toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(237, 243, 230, .18);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #f7f5e8;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header .site-nav { gap: 18px; }
  .site-header .site-nav > a:not(.button) { font-size: 12px; }
  .site-header .site-nav .button,
  .site-header .site-nav .button-small { padding-inline: 17px; }
}

@media (max-width: 900px) {
  .site-header {
    padding: 8px 10px 0;
  }

  .site-header .header-inner {
    width: calc(100vw - 20px);
    min-height: 60px;
    padding: 0 10px 0 12px;
    border-radius: 18px;
  }

  .site-header.is-scrolled .header-inner {
    min-height: 56px;
    transform: translateY(-2px);
  }

  .site-header .brand-mark { width: 38px; height: 38px; }
  .site-header .brand-copy strong { font-size: 23px; }

  .site-header .site-nav {
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid rgba(218, 238, 220, .18) !important;
    border-radius: 18px !important;
    background: rgba(7, 31, 18, .985) !important;
    box-shadow: 0 20px 45px rgba(0, 13, 7, .28) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .site-header .site-nav > a:not(.button) {
    padding: 11px 10px;
    color: #f7f5e8;
    font-size: 14px;
  }

  .site-header .site-nav > a:not(.button)::after { display: none; }
  .site-header .theme-toggle { width: 100%; min-width: 0; border-radius: 12px; }
  .site-header .site-nav .button,
  .site-header .site-nav .button-small { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .header-inner,
  .site-header .site-nav > a:not(.button)::after,
  .site-header .theme-toggle,
  .site-header .site-nav .button { transition: none !important; }
}
