/* =====================================================================
   Shared JETOUR site header — copied from the /dealer page
   (jetour-website/dealer). Solid white bar, logo left, nav centre,
   action CTAs right; mega menus on hover + burger drawer on mobile.
   Applied to every page in monolith-jetour-old so the header is
   identical everywhere.
   ===================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --jt-model-header-h: 90px;
  --jt-model-container-max: 1660px;
  --jt-model-gutter: clamp(20px, 4vw, 56px);

  --jt-model-color-teal: #39aeb2;
  --jt-model-color-teal-dark: #339da0;
  --jt-model-color-ink: #111417;
  --jt-model-color-surface: #f2f2f2;
  --jt-model-color-surface-soft: #e7e7e7;

  --jt-model-font-display: 'JETOURTypePRO VF', 'HarmonyOS Sans', sans-serif;
  --jt-model-font-body: 'HarmonyOS Sans', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* locator palette (only the tokens the drawer needs) */
  --surface: #ffffff;
  --surface-2: #eaf0f0;
  --line: #d9e2e3;
  --accent: var(--jt-model-color-teal);
  --accent-strong: var(--jt-model-color-teal-dark);
  --accent-soft: #e0f2f2;

  --jt-header-h: var(--jt-model-header-h);
}

/* ================================================================= header */
.jt-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--jt-header-h);
  font-size: 16px; /* hard baseline: the host pages set html{font-size:100px} */
  color: var(--jt-model-color-ink);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  transition: height .3s ease;
  font-family: var(--jt-model-font-body);
}

.jt-header--solid { background: #fff; color: var(--jt-model-color-ink); }

.jt-header__inner {
  position: relative;
  height: 100%;
  max-width: var(--jt-model-container-max);
  margin-inline: auto;
  padding-inline: var(--jt-model-gutter);
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
}

.jt-header__brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.jt-header__logo { height: 38px; width: auto; display: block; }

.jt-header__navwrap {
  display: none;
  align-self: stretch;
}

.jt-header__nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: clamp(22px, 2.6vw, 48px);
}

.jt-header__link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--jt-model-font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.jt-header__link-text { position: relative; white-space: nowrap; }
.jt-header__link-text::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.jt-header__link:hover .jt-header__link-text::after,
.jt-header__link[aria-expanded="true"] .jt-header__link-text::after { transform: scaleX(1); }
.jt-header__link:hover { color: var(--jt-model-color-teal-dark); }

.jt-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.jt-header__action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid var(--jt-model-color-teal);
  border-radius: 6px;
  color: var(--jt-model-color-teal-dark);
  background: transparent;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.jt-header__action:hover { background: var(--jt-model-color-teal); border-color: var(--jt-model-color-teal); color: #fff; }
.jt-header__action--current { background: var(--jt-model-color-teal); border-color: var(--jt-model-color-teal); color: #fff; }
.jt-header__action--current:hover { background: var(--jt-model-color-teal-dark); border-color: var(--jt-model-color-teal-dark); }
.jt-header__action-icon { display: inline-flex; width: 20px; height: 20px; }
.jt-header__action-icon svg { width: 100%; height: 100%; }

.jt-header__burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 0;
  border-radius: 6px;
  background: var(--jt-model-color-teal);
  cursor: pointer;
  transition: background-color .2s ease;
}
.jt-header__burger:hover { background: var(--jt-model-color-teal-dark); }
.jt-header__burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ============================================================= mega menus */
.jt-mega {
  position: fixed;
  top: var(--jt-header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: #fff;
  color: var(--jt-model-color-ink);
  border-top: 1px solid #ececec;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .12);
  animation: jt-mega-in .18s ease;
}
.jt-mega__inner {
  max-width: var(--jt-model-container-max);
  margin-inline: auto;
  padding: clamp(28px, 3vw, 44px) var(--jt-model-gutter) clamp(34px, 3vw, 52px);
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 48px);
}
.jt-mega__title {
  margin: 0 0 20px;
  font-family: var(--jt-model-font-body);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}
.jt-mega__lead { flex: 0 0 150px; }
.jt-mega__all {
  display: inline-block;
  font-weight: 400;
  font-size: 14px;
  color: var(--jt-model-color-ink);
  text-decoration: none;
}
.jt-mega__all:hover { color: var(--jt-model-color-teal); }
.jt-mega__vehicles {
  flex: 1 1 auto;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jt-mega__vehicles > li {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}
.jt-mega__vehicle {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  color: var(--jt-model-color-ink);
  text-decoration: none;
}
.jt-mega__vehicle img {
  width: 100%;
  aspect-ratio: 214 / 113;
  object-fit: contain;
  border-radius: 2px;
  display: block;
  opacity: .5;
  transition: opacity .3s ease;
}
.jt-mega__vehicle:hover img { opacity: 1; }
.jt-mega__vehicle span { margin-top: 16px; font-size: 16px; font-weight: 400; line-height: 1.3; }
.jt-mega__vehicle:hover span { color: var(--jt-model-color-teal); }
.jt-mega__featured {
  flex: 0 0 190px;
  align-self: stretch;
  padding-left: clamp(20px, 3vw, 44px);
  border-left: 1px solid #e3e5e8;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.jt-mega__featured a { font-size: 15px; font-weight: 500; color: var(--jt-model-color-ink); text-decoration: none; }
.jt-mega__featured a:hover { color: var(--jt-model-color-teal); }
.jt-mega__cols { flex: 1 1 auto; display: flex; }
.jt-mega__col { flex: 1 1 0; min-width: 0; }
.jt-mega__col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.jt-mega__col a { font-size: 14px; font-weight: 400; color: var(--jt-model-color-ink); text-decoration: none; }
.jt-mega__col a:hover { color: var(--jt-model-color-teal); }
@keyframes jt-mega-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jt-mega { animation: none; }
}

/* =================================================== mobile drawer (burger) */
.drawer { position: fixed; inset: 0; z-index: 150; background: rgba(8, 14, 15, .45); }
.drawer nav { font-size: 15px; background: var(--surface); width: min(320px, 88%); height: 100%; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 16px; display: grid; align-content: start; gap: 4px; overflow-y: auto; }
.drawer nav a { padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--jt-model-color-ink); }
.drawer nav a[aria-current] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.drawer nav .drawer-group { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.drawer nav .drawer-group h3 { margin: 0; font-family: var(--jt-model-font-display); font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.drawer nav .drawer-vehicles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer nav .drawer-vehicles a { padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.drawer nav .drawer-vehicles img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--surface-2); border-radius: 6px; }
.drawer nav .drawer-all { font-weight: 600; color: var(--accent-strong); }

/* ============================================================== responsive */
@media (min-width: 1024px) {
  .jt-header__navwrap { display: block; }
  .jt-header__burger { display: none; }
}

@media (max-width: 1023px) {
  :root { --jt-header-h: 68px; }
  .jt-header__inner { justify-content: flex-end; gap: 0; }
  .jt-header__brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .jt-header__actions { display: none; }
  .jt-header__burger { margin-left: 0; }
  .jt-mega { display: none !important; }
}

/* =====================================================================
   Owners nav item hidden (requested) - applies to every page that uses
   this shared header. Remove this block to bring "Owners" back.
   ===================================================================== */
.jt-header__nav [data-menu="owners"] { display: none !important; }
#mega-owners { display: none !important; }
