/**
 * ENFORCE sitewide main navigation — premium deep off-black redesign.
 * Loaded after theme-default.css and enforce-footer.css.
 */
:root {
  --enforce-nav-bg: rgba(0, 0, 0, 0.9);
  --enforce-nav-bg-top: rgba(0, 0, 0, 0.9);
  --enforce-nav-bg-scrolled: rgba(2, 2, 3, 0.8);
  --enforce-nav-accent: #558792;
  --enforce-nav-accent-hover: #466f78;
  --enforce-nav-text: #ffffff;
  --enforce-nav-border: rgba(255, 255, 255, 0.08);
  --enforce-nav-blur: blur(20px);
  --enforce-nav-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  --enforce-nav-max-width: 1240px;
  --enforce-nav-pad-desktop: 32px;
  --enforce-nav-pad-mobile: 20px;
}

/* ===== Base header bar ===== */
.header-section {
  background: var(--enforce-nav-bg) !important;
  backdrop-filter: var(--enforce-nav-blur);
  -webkit-backdrop-filter: var(--enforce-nav-blur);
  padding-top: 0 !important;
  border-bottom: 1px solid var(--enforce-nav-border) !important;
  box-shadow: var(--enforce-nav-shadow) !important;
  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.header-section.style1,
.header-section.style1.pin-style {
  background: var(--enforce-nav-bg-top) !important;
  backdrop-filter: var(--enforce-nav-blur);
  -webkit-backdrop-filter: var(--enforce-nav-blur);
  border-bottom: 1px solid var(--enforce-nav-border) !important;
  box-shadow: var(--enforce-nav-shadow) !important;
}

/* Frosted glass when scrolled (uses existing .pin class from megamenu JS) */
.header-section.pin-style.pin,
.header-section.pin-style.pin.style1 {
  background: var(--enforce-nav-bg-scrolled) !important;
  backdrop-filter: var(--enforce-nav-blur);
  -webkit-backdrop-filter: var(--enforce-nav-blur);
  box-shadow: var(--enforce-nav-shadow) !important;
  border-bottom: 1px solid var(--enforce-nav-border) !important;
}

/* ===== Centered max-width container ===== */
.header-section .container {
  max-width: var(--enforce-nav-max-width) !important;
  width: 100% !important;
  padding-left: var(--enforce-nav-pad-desktop) !important;
  padding-right: var(--enforce-nav-pad-desktop) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1000px) {
  .header-section .container {
    padding-left: var(--enforce-nav-pad-mobile) !important;
    padding-right: var(--enforce-nav-pad-mobile) !important;
  }
}

/* ===== Logo — white, vertically centered ===== */
@media (min-width: 1001px) {
  .header-section .mod-menu > .row {
    display: flex;
    align-items: center;
    min-height: 72px;
  }

  .header-section .mod-menu > .row > .col-sm-2 {
    float: none;
    flex: 0 0 auto;
    width: auto;
  }

  .header-section .mod-menu > .row > .col-sm-10 {
    float: none;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

.header-section .logo,
.header-section .logo.mar-44 {
  display: flex;
  align-items: center;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-right: 0 !important;
  width: auto !important;
  height: auto !important;
  padding-left: 4px;
}

.header-section .logo img,
.header-section .logo img.logoMain,
img.logoMain {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 140px !important;
  max-height: 44px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
  filter: none;
}

/* ===== Top-level nav links ===== */
.header-section #menu > ul > li > a,
.header-section .main-nav .nav > li > a,
.header-section ul li a {
  font-family: 'Montserrat', 'Open Sans', sans-serif !important;
  letter-spacing: 0.02em !important;
  transition: color 0.25s ease, opacity 0.25s ease !important;
}

.header-section #menu > ul > li > a {
  font-weight: 400 !important;
}

.header-section.style1 ul li a,
.header-section #menu > ul > li > a {
  color: var(--enforce-nav-text) !important;
  padding: 28px 18px !important;
}

.header-section ul li:hover > a,
.header-section ul li.active > a,
.header-section #menu > ul > li.hover > a,
.header-section #menu > ul > li.active > a {
  color: var(--enforce-nav-accent) !important;
}

/* Cart + mobile menu icon */
.header-section .main-nav .nav.top-nav > li > a,
.header-section .menu-icon a,
.header-section .menu-icon a .fa {
  color: var(--enforce-nav-text) !important;
}

.header-section .menu-icon a:hover,
.header-section .menu-icon a:focus {
  color: var(--enforce-nav-accent) !important;
}

/* ===== Premium mega menu dropdown ===== */
@media (min-width: 1001px) {
  .header-section ul li.mega-menu > ul {
    background: #ffffff !important;
    border-radius: 0 0 18px 18px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16) !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: none;
    padding: 8px var(--enforce-nav-pad-desktop) 28px !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    transform: none;
  }

  .header-section ul li.mega-menu > ul > li {
    padding: 28px 16px !important;
  }

  .header-section ul li.mega-menu > ul > li > a {
    color: #111111 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.06em !important;
    padding-bottom: 14px !important;
  }

  .header-section ul li.mega-menu > ul > li ul li a {
    color: #111111 !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    padding: 10px 0 !important;
    transition: color 0.25s ease, margin-left 0.25s ease !important;
  }

  .header-section ul li.mega-menu > ul > li ul li a:hover,
  .header-section ul li.mega-menu > ul > li ul li.active > a {
    color: var(--enforce-nav-accent) !important;
    margin-left: 6px !important;
  }

  .header-section ul li.mega-menu > ul > li ul li {
    border-bottom: none !important;
  }

  /* Standard nested dropdowns (non-mega) */
  .header-section ul li:not(.mega-menu) > ul {
    background: #ffffff !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14) !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
  }

  .header-section ul li:not(.mega-menu) ul li a {
    color: #111111 !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    transition: color 0.25s ease, padding-left 0.25s ease !important;
  }

  .header-section ul li:not(.mega-menu) ul li a:hover {
    color: var(--enforce-nav-accent) !important;
    margin-left: 0 !important;
    padding-left: 28px !important;
  }
}

/* ===== Mobile navigation ===== */
@media (max-width: 1000px) {
  .header-section {
    padding-bottom: 12px !important;
  }

  .header-section .mod-menu > .row {
    min-height: 64px;
  }

  .header-section .logo img,
  .header-section .logo img.logoMain {
    max-width: 120px !important;
    max-height: 38px !important;
  }

  .header-section #menu {
    padding-top: 12px !important;
    margin-left: calc(-1 * var(--enforce-nav-pad-mobile)) !important;
    margin-right: calc(-1 * var(--enforce-nav-pad-mobile)) !important;
  }

  .header-section #menu > ul {
    background: #ffffff !important;
    border-radius: 0 0 18px 18px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16) !important;
    overflow: hidden;
  }

  .header-section #menu > ul li a {
    color: #111111 !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    padding: 16px var(--enforce-nav-pad-mobile) !important;
  }

  .header-section #menu > ul li.hover > a,
  .header-section #menu > ul li.active > a {
    color: var(--enforce-nav-accent) !important;
  }

  .header-section #menu > ul li ul li a {
    padding-left: calc(var(--enforce-nav-pad-mobile) + 12px) !important;
    font-size: 14px !important;
  }

  .header-section #menu > ul li .arrow:before,
  .header-section #menu > ul li .arrow:after {
    background: #111111;
  }

  .header-section #menu > ul li.hover > .arrow:before,
  .header-section #menu > ul li.hover > .arrow:after {
    background: var(--enforce-nav-accent);
  }
}

/* ===== Keep header above content; avoid awkward hero overlap ===== */
.header-section {
  position: relative;
  z-index: 1000;
}

.header-section.pin-style.pin-start,
.header-section.pin-style.off {
  z-index: 1001;
}

/* Pages with full-bleed heroes: nav stays in document flow by default */
.site-wrapper > .col-md-12.nopadding > .header-section + section,
.site-wrapper > .col-md-12.nopadding > .header-section + .clearfix + section {
  margin-top: 0;
}

/* ===== Mega menu open/close interaction (JS-driven) ===== */
@media (min-width: 1025px) {
  .header-section ul li.mega-menu:not(.mega-menu--womens):not(.mega-menu--mens):not(.mega-menu--sustain):not(.mega-menu--about):not(.mega-menu--contact) > ul {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(10px) !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease !important;
  }

  .header-section ul li.mega-menu:not(.mega-menu--womens):not(.mega-menu--mens):not(.mega-menu--sustain):not(.mega-menu--about):not(.mega-menu--contact).is-open > ul {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    max-height: 2000px !important;
    overflow: visible !important;
  }

  .header-section ul li.mega-menu:not(.mega-menu--womens):not(.mega-menu--mens):not(.mega-menu--sustain):not(.mega-menu--about):not(.mega-menu--contact):not(.is-open):hover > ul,
  .header-section ul li.mega-menu:not(.mega-menu--womens):not(.mega-menu--mens):not(.mega-menu--sustain):not(.mega-menu--about):not(.mega-menu--contact).hover:not(.is-open) > ul {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(10px) !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 1024px) {
  .header-section ul li.mega-menu:not(.is-open) > ul {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  .header-section ul li.mega-menu.is-open > ul {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .header-section ul li.mega-menu:not(.is-open):hover > ul,
  .header-section ul li.mega-menu.hover:not(.is-open) > ul {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }
}
