/* =========================================================================
   Truck Service Hub — slim top menu (every page)
   Scoped under .tsh-nav so it doesn't touch anything else.
   ========================================================================= */
.tsh-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(5,7,10,.96);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tsh-nav *, .tsh-nav *::before, .tsh-nav *::after { box-sizing: border-box; }
.tsh-nav a { text-decoration: none; }
.tsh-nav__bar { height: 64px; max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3.4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tsh-nav__logo { flex: none; display: block; }
.tsh-nav__logo img { height: 34px; width: auto; display: block; }

.tsh-nav__menu { display: flex; align-items: center; gap: 28px; }
.tsh-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 5px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 13px/1 'Inter', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: #D5DAE0; transition: color .2s;
}
.tsh-nav__link:hover, .tsh-nav__link:focus-visible, .tsh-nav__drop.is-open > .tsh-nav__link { color: #FF8A50; }
.tsh-nav__link.is-active { color: #FFFFFF; }
.tsh-nav__link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #e8540e; }
.tsh-nav__toggle svg { transition: transform .2s; }
.tsh-nav__drop.is-open .tsh-nav__toggle svg { transform: rotate(180deg); }
.tsh-nav :focus-visible { outline: 2px solid #FF8A50; outline-offset: 3px; border-radius: 4px; }

/* dropdowns */
.tsh-nav__drop { position: relative; }
.tsh-nav__panel {
  position: absolute; top: 100%; left: -16px; min-width: 220px; padding: 10px;
  background: #0B0F14; border: 1px solid #1F2732; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.6);
  display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.tsh-nav__panel--wide { width: 500px; grid-template-columns: repeat(2, minmax(0, 1fr)); left: -160px; }
.tsh-nav__drop.is-open .tsh-nav__panel { opacity: 1; visibility: visible; transform: none; }
.tsh-nav__panel a { padding: 11px 14px; border-radius: 10px; font: 500 15px/1.3 'Inter', system-ui, sans-serif; color: #D5DAE0; }
.tsh-nav__panel a:hover { background: #141A22; color: #FFFFFF; }
.tsh-nav__panel a.is-first { font-weight: 600; color: #FFFFFF; }

/* right side */
.tsh-nav__right { flex: none; display: flex; align-items: center; gap: 20px; }
.tsh-nav__cta { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: #e8540e; color: #FFFFFF; font: 600 13px/1 'Inter', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transition: background .2s; }
.tsh-nav__cta:hover { background: #ff6a24; color: #FFFFFF; }
.tsh-nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #FFFFFF; align-items: center; justify-content: center; cursor: pointer; }
.tsh-nav__icon-close { display: none; }
.tsh-nav.is-menu-open .tsh-nav__icon-open { display: none; }
.tsh-nav.is-menu-open .tsh-nav__icon-close { display: block; }

/* smaller laptops: tighter, still one line */
@media (max-width: 1240px) {
  .tsh-nav__menu { gap: 20px; }
  .tsh-nav__right { gap: 14px; }
  .tsh-nav__link, .tsh-nav__cta { font-size: 12px; letter-spacing: .05em; }
  .tsh-nav__logo img { height: 30px; }
}

/* tablets + phones: burger menu */
@media (max-width: 1060px) {
  .tsh-nav__menu, .tsh-nav__right > .tsh-nav__link, .tsh-nav__right > .tsh-nav__cta { display: none; }
  .tsh-nav__burger { display: inline-flex; }
  .tsh-nav__bar { height: 60px; }
  .tsh-nav__logo img { height: 28px; }
}
.tsh-nav__mobile { border-top: 1px solid #1F2732; padding: 8px 20px 20px; max-height: calc(100vh - 60px); overflow-y: auto; }
.tsh-nav__mobile[hidden] { display: none; }
.tsh-nav__mobile > a, .tsh-nav__mobile summary { display: block; padding: 15px 0; border-bottom: 1px solid #1F2732; font: 600 18px/1.2 'Inter', system-ui, sans-serif; color: #FFFFFF; cursor: pointer; list-style: none; }
.tsh-nav__mobile summary::-webkit-details-marker { display: none; }
.tsh-nav__mobile summary::after { content: "+"; float: right; color: #A8B0BA; }
.tsh-nav__mobile details[open] summary { color: #FF8A50; border-bottom: 0; }
.tsh-nav__mobile details[open] summary::after { content: "−"; color: #FF8A50; }
.tsh-nav__mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; padding-bottom: 12px; border-bottom: 1px solid #1F2732; }
.tsh-nav__mgrid a { padding: 9px 0; font: 500 15px/1.3 'Inter', system-ui, sans-serif; color: #D5DAE0; }
.tsh-nav__mbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.tsh-nav__mbtn { height: 50px; border-radius: 12px; border: 1px solid #39414C; display: flex; align-items: center; justify-content: center; font: 600 16px/1 'Inter', system-ui, sans-serif; color: #FFFFFF; }
.tsh-nav__mbtn--orange { background: #e8540e; border-color: #e8540e; font-weight: 700; }
@media (min-width: 1061px) { .tsh-nav__mobile { display: none !important; } }

@media (prefers-reduced-motion: reduce) { .tsh-nav * { transition: none !important; } }

/* Logged in: Logout is a POST form, styled like the menu's buttons. */
.tsh-nav__logout { margin: 0; display: inline-flex; }
.tsh-nav__logout button, .tsh-nav__mobile form button { font: inherit; cursor: pointer; border: 0; }
.tsh-nav__mobile form { margin: 0; display: contents; }

/* Dec 1 fix 1: the old theme (nav-menu.css) gives every <header> z-index 99999,
   so any <header> inside a page covered the open Services menu (z-index 1000).
   Take that back for every header that isn't the site menu. */
.main-wrapper header:not(.tsh-nav) { z-index: 1; }
