/* ==========================================================================
   Site Header — single, responsive replacement for the old triplicated
   (desktop / sticky-clone / mobile-clone) header markup.
   Uses the site's existing brand colors (lime accent #71CA00, dark navy/
   near-black surfaces) and the Manrope font already loaded on every page.
   ========================================================================== */

:root {
  --site-header-height: 84px;
  --site-header-height-scrolled: 68px;
  --site-header-bg: rgba(15, 17, 23, 0.92);
  --site-header-bg-scrolled: rgba(12, 14, 19, 0.98);
  --site-header-border: rgba(255, 255, 255, 0.08);
  --site-header-text: #ffffff;
  --site-header-text-muted: rgba(255, 255, 255, 0.72);
  --site-header-accent: #71ca00;
  --site-header-accent-contrast: #10130a;
  --site-header-font: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

#site-header-root {
  position: relative;
  z-index: 1000;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--site-header-height);
  display: flex;
  align-items: center;
  background: var(--site-header-bg);
  border-bottom: 1px solid var(--site-header-border);
  font-family: var(--site-header-font);
  transition: height 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  height: var(--site-header-height-scrolled);
  background: var(--site-header-bg-scrolled);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Push page content below the fixed header */
.site-header-spacer {
  height: var(--site-header-height);
}

.site-header-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* --- Logo --- */
.site-header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-header-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* --- Desktop nav --- */
.site-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.site-header-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header-nav .nav-item {
  position: relative;
}

.site-header-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  color: var(--site-header-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-header-nav .nav-link:hover,
.site-header-nav .nav-item.active > .nav-link {
  color: var(--site-header-accent);
  background: rgba(113, 202, 0, 0.1);
}

.site-header-nav .nav-caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.site-header-nav .nav-item.has-dropdown:hover .nav-caret {
  transform: rotate(180deg);
}

/* --- Dropdown (desktop) --- */
.site-header-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  /* No margin gap here on purpose — a gap between the trigger link and
     the dropdown breaks :hover the instant the cursor crosses it in a
     straight line, making the menu flicker closed before you reach it.
     Padding gives the same visual breathing room without a real gap. */
  margin-top: 0;
  padding: 8px;
  background: #12151c;
  border: 1px solid var(--site-header-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.site-header-nav .nav-item.has-dropdown:hover .dropdown,
.site-header-nav .nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header-nav .dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--site-header-text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-header-nav .dropdown li a:hover {
  color: var(--site-header-accent);
  background: rgba(113, 202, 0, 0.08);
}

/* --- Mega menu variant (used by "Models") -------------------------- */
.site-header-nav .dropdown.mega-menu {
  left: 50%;
  min-width: 640px;
  max-width: min(90vw, 760px);
  padding: 20px;
  display: flex;
  gap: 14px;
  transform: translateX(-50%) translateY(4px);
}
.site-header-nav .nav-item.has-dropdown:hover .dropdown.mega-menu,
.site-header-nav .nav-item.has-dropdown:focus-within .dropdown.mega-menu {
  /* transform: translateX(-50%) translateY(0); */
}

.site-header-nav .mega-menu-card {
  flex: 1;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: #171b24;
  border: 1px solid var(--site-header-border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.site-header-nav .mega-menu-card:hover {
  border-color: var(--site-header-accent);
  transform: translateY(-2px);
}
.site-header-nav .mega-menu-card .mega-menu-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0d1015;
}
.site-header-nav .mega-menu-card .mega-menu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.site-header-nav .mega-menu-card:hover .mega-menu-thumb img {
  transform: scale(1.06);
}
.site-header-nav .mega-menu-card .mega-menu-label {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--site-header-text);
}
.site-header-nav .mega-menu-card .mega-menu-sub {
  display: block;
  padding: 0 12px 10px;
  margin-top: -6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--site-header-text-muted);
}
.site-header-nav .mega-menu-card:hover .mega-menu-label {
  color: var(--site-header-accent);
}

/* --- Right side: CTA + mobile toggle --- */
.site-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.site-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--site-header-accent);
  color: var(--site-header-accent-contrast);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.site-header-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.site-header-cta .cta-icon {
  display: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.site-header-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--site-header-border);
  border-radius: 8px;
  cursor: pointer;
}
.site-header-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--site-header-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.site-header.is-menu-open .site-header-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-menu-open .site-header-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.is-menu-open .site-header-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.site-header.is-menu-open ~ .site-header-backdrop,
.site-header-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

/* Tablet: tighten spacing a bit before the mobile menu kicks in */
@media (max-width: 1199px) {
  .site-header-inner {
    padding: 0 18px;
    gap: 14px;
  }
  .site-header-nav .nav-link {
    padding: 10px 12px;
    font-size: 14px;
  }
  .site-header-cta {
    padding: 10px 18px;
  }
}

/* Mobile / small tablet: collapse to hamburger + slide-in panel */
@media (max-width: 991px) {
  :root {
    --site-header-height: 68px;
    --site-header-height-scrolled: 60px;
  }

  .site-header-toggle {
    display: flex;
  }

  .site-header-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    width: min(320px, 86vw);
    max-width: 100%;
    background: #12151c;
    border-left: 1px solid var(--site-header-border);
    padding: calc(var(--site-header-height) + 16px) 20px 24px;
    display: block;
    justify-content: flex-start;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.4);
  }

  .site-header.is-menu-open .site-header-nav {
    transform: translateX(0);
  }

  .site-header-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-header-nav .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 13px 10px;
    border-bottom: 1px solid var(--site-header-border);
    border-radius: 0;
  }

  .site-header-nav .nav-caret {
    transition: transform 0.2s ease;
  }
  .site-header-nav .nav-item.has-dropdown.is-open .nav-caret {
    transform: rotate(180deg);
  }

  /* Dropdowns become inline accordions on mobile */
  .site-header-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-header-nav .nav-item.has-dropdown.is-open .dropdown {
    max-height: 400px;
  }
  .site-header-nav .dropdown li a {
    padding: 10px 10px 10px 22px;
    font-size: 13.5px;
  }

  /* Mega menu (Models) collapses to a 2-column image grid on mobile */
  .site-header-nav .dropdown.mega-menu {
    left: auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 10px;
    padding: 4px 10px 14px;
    transform: none;
  }
  .site-header-nav .nav-item.has-dropdown.is-open .dropdown.mega-menu {
    /* max-height: 600px; */
    max-height: 1200px;
  }
  .site-header-nav .mega-menu-card .mega-menu-label {
    font-size: 12px;
    padding: 8px 10px;
  }
  .site-header-nav .mega-menu-card .mega-menu-sub {
    font-size: 10px;
    padding: 0 10px 8px;
  }

  .site-header-cta {
    padding: 9px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .site-header-logo img {
    height: 28px;
  }
  .site-header-cta {
    padding: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    justify-content: center;
  }
  .site-header-cta span.cta-label {
    display: none;
  }
  .site-header-cta .cta-icon {
    display: block;
  }
}
