/* Root vars — easy theming */
:root {
  --nav-h: 65px;
  --nav-bg: #0a0a0a;
  --nav-fg: #fff;
  --nav-muted: rgba(255, 255, 255, 0.75);
  --nav-accent: #e4312c;
  /* red underline */
  --nav-glow: 0 0 12px rgba(228, 49, 44, 0.6);
  --nav-border: rgba(255, 255, 255, 0.08);
}

/* 1) Make sure anything with [hidden] is actually hidden */
.nav-drawer[hidden],
.nav-subwrap[hidden] {
  display: none !important;
}

@media (min-width: 1024px) {
  .nav-item.has-children:hover>.nav-subwrap[hidden] {
    display: block !important;
    /* allow hover to show the panel */
  }
}

/* Sticky logic: starts absolute at 645px, becomes fixed at top on scroll */
.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 645px;
  /* initial position per request */
  z-index: 1000;
  background: var(--nav-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.site-nav.is-fixed {
  position: fixed;
  top: 0;
}

.site-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

/* “Drag racing” vibe: bold italic caps + taller vertical stretch */
@font-face {
  font-family: 'Bebas Neue', 'Impact-ish', sans-serif;
  src: local('Impact'), local('Arial Black');
  font-weight: 700;
  font-style: normal;
}

.nav-link span,
.nav-brand .brand-text {
  font-family: 'Bebas Neue', 'Impact-ish', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 2.4rem;        /* was smaller — now larger */
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transform-origin: center;
  transform: scaleY(1.6px);
  line-height: 1.2;
  color: #fff;
  text-shadow:
    0 0 6px rgba(255, 0, 0, 0.65),
    0 0 12px rgba(255, 0, 0, 0.45),
    0 0 18px rgba(0, 0, 0, 0.6);
}



/* Desktop menu */
.nav-menu-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-menu-desktop {
    display: block;
    flex: 1;
    justify-content: center;  /* centers horizontally */
  }
  .nav-root{
    justify-content: center;  /* centers horizontally */
  }
}

.nav-root {
  list-style: none;
  margin: 0;
  font-size: 1.4rem;        /* was smaller — now larger */
  line-height: 1.8;         /* extra breathing room vertically */
  padding: 0 10px;          /* adjust spacing to fit */
  display: flex;
  gap: 28px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: var(--nav-h);
  color: var(--nav-fg);
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .12s ease, text-shadow .12s ease, opacity .12s ease;
}


.nav-item:hover>.nav-link {
  transform: translateY(-1px);
  text-shadow: var(--nav-glow);
}

/* Active page: glow + red underline */
.nav-item.is-active>.nav-link {
  text-shadow: var(--nav-glow);
}

.nav-item.is-active>.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--nav-accent);
}

/* Submenus (desktop hover) */
.nav-item.has-children .nav-subwrap {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #0f0f10;
  border: 1px solid var(--nav-border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  display: none;
}

.nav-item.has-children:hover>.nav-subwrap {
  display: block;
}

.nav-sub {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.nav-sub>li>.nav-link {
  height: 38px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Disclosure button (for mobile) kept hidden on desktop */
.nav-disclosure {
  display: none;
}

/* Hamburger */
.nav-toggle {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--nav-border);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger,
.burger::before,
.burger::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
}

.burger::before {
  position: absolute;
  top: -6px;
}

.burger::after {
  position: absolute;
  top: 6px;
}

/* Hide hamburger on desktop */
@media (min-width: 1023px) {
  .nav-toggle {
    display: none;
  }
  .nav-brand{
    display: none;
  }
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 340px);
  background: #0b0b0c;
  border-right: 1px solid var(--nav-border);
  box-shadow: 10px 0 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.drawer-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--nav-border);
  color: #fff;
  font-weight: 700;
  letter-spacing: .3px;
}

.drawer-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.drawer-body {
  overflow: auto;
  padding: 10px 6px 16px 6px;
}

/* Mobile list style (accordions) */
@media (max-width: 1023px) {
  .nav-brand{
    display: contents;
  }
  .nav-root {
    flex-direction: column;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-item>.nav-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-item>.nav-parent>.nav-link {
    height: 48px;
    padding: 0 8px;
    font-style: normal;
  }

  .nav-disclosure {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .nav-disclosure::after {
    content: '▸';
    transform: rotate(0deg);
    transition: transform .12s ease;
  }

  .nav-disclosure[aria-expanded="true"]::after {
    transform: rotate(90deg);
  }

  .nav-item.has-children .nav-subwrap {
    position: static;
    display: block;
    border: 0;
    border-radius: 0;
    padding: 0 0 8px 0;
    box-shadow: none;
  }

  .nav-sub>li>.nav-link {
    height: 42px;
    padding-left: 16px;
    font-weight: 700;
  }
}

/* --- MOBILE POSITION FIX --- */
@media (max-width: 1023px) {
  .site-nav {
    position: fixed;       /* always visible at top */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .nav-drawer {
    top: 0;                /* make sure drawer slides from very top */
    height: 100vh;         /* full height of viewport */
  }

  /* Add a bit of backdrop so users notice it */
  .nav-drawer::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
  }
}


