/* ===== Header like the reference: info top bar + centered menu + two pill CTAs ===== */
.topbar { background: linear-gradient(90deg, #1E3048 0%, #263C59 55%, #1E3048 100%); color: #fff; font-size: 13.5px; }
.topbar .container { height: 46px; justify-content: space-between; }
.topbar .left { display: flex; align-items: center; gap: 34px; }
.topbar .left a { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.92); font-weight: 500; }
.topbar .left a:hover { color: #fff; }
.topbar .left svg.i { width: 15px; height: 15px; color: var(--teal); }
.topbar .right { display: flex; align-items: center; gap: 22px; }
.topbar .lang { transform: scale(.92); transform-origin: right center; }
.tb-soc { display: flex; align-items: center; gap: 16px; }
.tb-soc a { display: grid; place-items: center; width: 22px; height: 22px; color: #fff; opacity: .9; transition: opacity .2s, color .2s; }
.tb-soc a:hover { opacity: 1; color: var(--teal); }
.tb-soc svg.i { width: 16px; height: 16px; }

.nav { background: rgba(255,255,255,.97); }
.nav .container { height: 88px; gap: 28px; }
.nav .logo { flex-shrink: 0; }
.nav .logo img { height: 42px; width: auto; max-width: none; margin: 0; }
.nav .menu { margin: 0 auto; gap: 30px; }
.nav .menu > a, .nav .menu .dd > button { padding: 10px 0; border-radius: 0; font-size: 14.5px; font-weight: 600; color: var(--navy-900); }
.nav .menu > a:hover, .nav .menu .dd > button:hover { color: var(--teal-600); }
.nav .menu > a.active { color: var(--teal-600); }
.nav .menu > a.active::after { left: 0; right: 0; bottom: 0; height: 2px; }
.nav .menu .dd > button[data-nav].active { color: var(--teal-600); }
.nav .nav-actions { gap: 14px; }
.nav .nav-actions .btn { height: 48px; padding: 0 28px; font-size: 13px; font-weight: 600; letter-spacing: .05em; }
/* Action capsule: COI · Pay · Quote are actions, not sections, so they live together outside the menu */
.hd-actions { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px; border: 1.5px solid var(--slate-200); background: #fff; box-shadow: 0 8px 22px -16px rgba(6,26,58,.35); }
.hd-actions a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1.5px solid transparent; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-900); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.hd-actions a svg.i { width: 16px; height: 16px; color: var(--teal-600); transition: color .2s; }
.hd-actions a:hover, .hd-actions a.active { background: var(--slate-50); }
.hd-actions a.active { color: var(--teal-600); }
.hd-actions .sep { width: 1px; height: 22px; background: var(--slate-200); margin: 0 2px; }
.hd-actions a.q { margin-left: 4px; background: var(--teal-50); border-color: var(--teal-600); color: var(--teal-600); }
.hd-actions a.q:hover, .hd-actions a.q:focus-visible { background: var(--teal-600); color: #fff; }
.hd-actions a.q:hover svg.i, .hd-actions a.q:focus-visible svg.i { color: #fff; }

@media (max-width: 1280px) {
  .nav .menu { gap: 22px; }
  .hd-actions a { padding: 0 12px; }
  .topbar .left { gap: 24px; }
}
@media (max-width: 1080px) {
  .topbar .right { display: flex; }
  .topbar .left .addr { display: none; }
  .nav .container { height: 76px; }
  .nav .logo img { height: 36px; margin: 0; }
}
@media (max-width: 640px) {
  .topbar .container { justify-content: space-between; height: 44px; }
  .topbar .left a.tel { display: inline-flex; font-size: 13px; }
  .topbar .left a.mail, .tb-soc { display: none; }
  .topbar .right { gap: 0; }
  .nav .container { height: 64px; }
  .nav .logo img { height: 30px; margin: 0; }
  .topbar .lang { transform: none; }
  .topbar .lang button { padding: 4px 8px; }
  .nav .nav-actions .hd-actions { display: none; }
}
@media (max-width: 360px) {
  .topbar .left a.tel { font-size: 12px; }
}

.nav .menu > a, .nav .menu .dd > button { white-space: nowrap; }
@media (max-width: 1280px) { .nav .menu { gap: 18px; } .nav .menu > a, .nav .menu .dd > button { font-size: 14px; } }

/* ===== Header search (magnifier + panel) ===== */
.hd-search { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1.5px solid var(--slate-200); background: #fff; display: grid; place-items: center; color: var(--navy-900); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.hd-search:hover { border-color: var(--teal); color: var(--teal-600); }
.hd-search.on { border-color: var(--cb); background: var(--cb-50); color: var(--cb-600); }
.hd-search svg.i { width: 19px; height: 19px; }
.fb-panel { position: sticky; top: 88px; z-index: 49; background: #fff; border-bottom: 1px solid var(--slate-100); box-shadow: 0 30px 40px -30px rgba(4,19,48,.4); animation: fbIn .22s ease; }
.fb-panel[hidden] { display: none; }
@keyframes fbIn { from { opacity: 0; transform: translateY(-6px); } }
.fb-panel .container { padding-top: 18px; padding-bottom: 18px; }
.fb-panel .finder { margin-top: 0; max-width: none; border: 1.5px solid var(--slate-200); box-shadow: none; }
.fb-panel .finder:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(57,155,128,.15); }
.fb-panel .finder-hints { color: var(--slate-500); }
.fb-panel .finder-hints button { color: var(--navy-900); background: var(--slate-50); border-color: var(--slate-100); }
.fb-panel .finder-hints button:hover { background: var(--cb-50); border-color: var(--cb); }
@media (max-width: 1080px) {
  .fb-panel { top: 76px; }
}
@media (max-width: 640px) {
  .fb-panel { top: 64px; }
  .hd-search { width: 44px; height: 44px; }
  .fb-panel .container { padding-top: 12px; padding-bottom: 14px; }
}
.fb-panel .finder.open ~ .finder-hints { visibility: hidden; }
/* Logo In Trucks Corp: shrinks where the full desktop row gets tight (above the burger breakpoint) */
@media (max-width: 1360px) and (min-width: 1081px) { .nav .logo img { height: 34px; } }
@media (max-width: 1180px) and (min-width: 1081px) { .nav .logo img { height: 28px; } .nav .container { gap: 18px; } }
/* Action capsule: tighter where the desktop row is fullest, icon-only COI/Pay on narrow tablets */
@media (max-width: 1180px) and (min-width: 1081px) { .hd-actions a { padding: 0 10px; font-size: 12px; letter-spacing: .03em; gap: 6px; } .nav .nav-actions { gap: 10px; } }
@media (max-width: 760px) and (min-width: 641px) {
  .hd-actions a:not(.q) { padding: 0 12px; }
  .hd-actions a:not(.q) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Trucker Space button next to the action capsule: same look as the Trucker Space logo panel */
.hd-ts { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: 36px; padding: 0 11px; border-radius: 11px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(32,197,175,.28), transparent 60%), linear-gradient(160deg, #0B213D, #00152E);
  border: 1px solid rgba(32,197,175,.45); box-shadow: 0 10px 24px -14px rgba(0,21,46,.8); transition: transform .2s, box-shadow .2s, border-color .2s; }
.hd-ts::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 10px 10px; }
.hd-ts:hover, .hd-ts:focus-visible, .hd-ts.active { transform: translateY(-1px); border-color: #20C5AF; outline: none; box-shadow: 0 0 0 4px rgba(32,197,175,.18), 0 12px 26px -12px rgba(32,197,175,.7); }
.hd-ts .crop { position: relative; z-index: 1; display: block; width: 84px; aspect-ratio: 960 / 142; overflow: hidden; }
/* wordmark only ("TruckerSpace"), cut from the full logo: no rocket/cloud */
.hd-ts .crop img { display: block; max-width: none; width: 125.73%; height: auto; margin: -83.54% 0 0 -13.33%; }
@media (max-width: 1520px) and (min-width: 1361px) { .hd-actions a { padding: 0 13px; } .nav .nav-actions { gap: 12px; } }
@media (max-width: 1360px) and (min-width: 641px) { .hd-ts .crop { width: 80px; } }
@media (max-width: 1280px) and (min-width: 641px) {
  .hd-actions a:not(.q) { padding: 0 12px; }
  .hd-actions a:not(.q) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav .nav-actions { gap: 10px; }
}
@media (max-width: 640px) { .hd-ts { height: 32px; padding: 0 8px; border-radius: 9px; } .hd-ts .crop { width: 68px; } .nav .nav-actions { gap: 8px; } }
@media (max-width: 380px) { .hd-ts { padding: 0 6px; } .hd-ts .crop { width: 50px; } .nav .nav-actions { gap: 5px; } }
@media (max-width: 356px) { .hd-ts { display: none; } }
@media (max-width: 720px) and (min-width: 641px) { .hd-ts { padding: 0 7px; } .hd-ts .crop { width: 54px; } .nav .nav-actions { gap: 6px; } .hd-actions a.q { padding: 0 12px; } .nav .logo img { height: 30px; width: auto; } }

/* Top bar and header run edge to edge (logo at the left edge, actions at the right edge) */
.topbar .container, .nav .container { max-width: none; padding: 0 clamp(16px, 2.6vw, 48px); }
