/*
Theme Name: Neve Child Clean
Template: neve
*/

/* === Imports === */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap');

/* =========================
   UNIVERSAL
   ========================= */
body {
  font-family: 'Source Sans Pro', sans-serif;
  margin-bottom: 10px;
}

/* Add to desktop version, to give more margin around content like store content
.nv-content-wrap
{
    margin: 3rem;
}*/

.page .neve-main,
.single:not(.single-product) .neve-main {
  margin: 0 !important;
}

/* Effectively mobile header only due to `hide-on-desktop`, retained as universal */
/*#header-grid > nav.header--row.header-main.hide-on-desktop.layout-full-contained.nv-navbar.has-center.header--row > div {
  border-bottom-width: 2px !important;
}*/

#header-grid > nav.header--row.header-main.hide-on-mobile.hide-on-tablet.layout-full-contained.nv-navbar.header--row > div
{
      border-bottom-width: 1px !important;
}

/* Keep (consider scoping later to content) */
ul {
  list-style-type: circle !important;
  list-style-position: inside;
}

/* Keep (consider scoping to header if only for nav submenus) */
.sub-menu {
  text-indent: 0px !important;
}

h5 {
  font-family: "Hey Gotcha";
  margin-bottom: 5px;
  letter-spacing: 1px;
  font-weight: 200;
}

.site-header {
  margin: 0 auto;
  z-index: 999 !important;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.wp-block-button { /* reserved */ }

.thick-divider {
  border-top: 2px solid !important;
  margin: 10px 0 10px;
}

.wp-block-heading {
  line-height: 1 !important;
  margin-bottom: 20px !important;
}

.blog_paragraph {
  margin-left: 10px !important;
  padding-left: 10px !important;
}

.wp-block-themeisle-blocks-advanced-column {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  overflow: visible !important;
}

.header-top {
  height: 38px !important;
  font-weight: 600 !important;
  padding-top: 6px;
  z-index: 1 !important;
}

.button {
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  line-height: 2 !important;
}

.header-content-section { /* commented in original */ }

.best-seller-section {
  padding: 0px !important;
  margin: 0px !important;
}

#mailerlite-form_1 {
  margin-bottom: 20px !important;
}

.mailerlite-subscribe-submit {
  margin-top: 40px;
}

.nv-single-post-wrap>div:first-child {
  margin-top: 20px !important;
}

.nv-index-posts,
.nv-single-post-wrap {
  margin-bottom: -60px !important;
}

.neve_main {
  margin-top: 0px !important;
}

/* WPForms styling */
div.wpforms-container-full .wpforms-form .wpforms-field-label {
  color: black;
  padding-bottom: 10px;
  padding-top: 20px;
  font-weight: 300;
}

div.wpforms-container-full .wpforms-form input.wpforms-field-large,
div.wpforms-container-full .wpforms-form select.wpforms-field-l {
  padding: 25px 15px 25px 15px;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  border-width: 0px;
  border-radius: 0px;
  font-size: 14px;
}

div.wpforms-container-full .wpforms-form button[type=submit] {
  font-size: 1em;
  border-radius: 4px;
  padding: 15px 35px;
  border: none;
}

div.wpforms-container-full .wpforms-form button[type=submit]:hover {
  background-color: var(--nv-secondary-accent);
  color: white;
}

div.wpforms-container-full .wpforms-form .wpforms-required-label {
  color: #82d7c7;
  font-weight: 400;
}

.obfx-menu-icon {
  display: none !important;
}

/* Keep; if desktop should allow taller logo, move this into mobile later */
.site-logo img {
  max-height: 45px !important;
  height: auto !important;
  width: auto !important;
}

/* ==========================================================================
   DESKTOP ONLY (≥992px) -- when we make updates
   ========================================================================== */
@media (min-width: 992px) {
  /* Main menu item styling */
  .main-navigation ul li.menu-item > .wrap > a {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: rgba(18, 18, 18, 0.75);
    letter-spacing: 0.4px;
    padding: 0.5rem 0;
    margin: 0;
    text-decoration: none;
    display: block;
    position: relative;
    transition: color 0.2s ease;
  }

  .main-navigation ul li.menu-item > .wrap > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 0%;
    background-color: rgba(18, 18, 18, 0.75);
    transition: width 0.2s ease;
  }

  .main-navigation ul li.menu-item > .wrap > a:hover::after { width: 100%; }

  .main-navigation ul li.menu-item.current-menu-item > .wrap > a::after {
    width: 100%;
    height: 3px;
  }

  /* Submenu alignment (desktop dropdowns) */
  ul.sub-menu {
    left: 0 !important;
    right: auto !important;
  }

  /* Dropdown panel styling */
  .nav-ul .sub-menu {
    min-width: 200px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.05) !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
    right: auto !important;
    left: 0 !important;
  }

  .nav-ul .sub-menu li .wrap {
    padding: 5px 20px !important;
    display: block;
    white-space: nowrap;
  }

  .nav-ul .sub-menu li .wrap:hover a {
    text-decoration: underline !important;
    text-underline-offset: 3px;
    background-color: transparent !important;
  }

  .main-navigation ul ul.sub-menu {
    background-color: #fff;
    border: 1px solid rgba(18, 18, 18, 0.1);
    box-shadow: 0 4px 5px rgba(18, 18, 18, 0.05);
    padding: 10px 0;
    width: 200px;
    margin-top: 4px !important;
  }

  .main-navigation ul ul.sub-menu li.menu-item > .wrap {
    padding-left: 0;
  }

  .main-navigation ul ul.sub-menu li.menu-item > .wrap > a {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: rgba(18, 18, 18, 0.75);
    padding: 0.5rem 1rem;
    display: block;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .main-navigation ul ul.sub-menu li.menu-item > .wrap > a:hover {
    text-decoration: underline;
    background-color: transparent;
  }

  .header-menu-sidebar-bg {
    width: 100%;
    justify-content: flex-end !important;
  }

  .primary-menu-ul {
    justify-content: flex-end !important;
  }

  /* Desktop caret/icon cluster */
  .nav-menu-primary .menu-item .caret-wrap.caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-menu-primary .menu-item .caret-wrap.caret svg {
    width: 10px;
    height: 10px;
    color: currentColor;
    opacity: 0.7;
    transition: transform 0.3s ease;
  }

  .nav-menu-primary .menu-item > .wrap {
    display: flex;
    align-items: center;
  }

  .nav-menu-primary .menu-item .caret-wrap.caret {
    display: inline-flex !important;
  }
}

/* ==========================================================================
   MOBILE & TABLET (≤991px)
   Changing this from 991 to 959 as the 960-991 range is forced by Neve to be
   desktop. This varies from the store, and may be source of future enhancement.
   ========================================================================== */
@media (max-width: 959px) {
  /* Mobile dropdown box style (minimal) */
  .nav-ul .sub-menu {
    background: #ffffff !important;
    padding: 10px 0 !important;
    right: auto !important;
    left: 0 !important;
  }

  /* Header main row sizing for mobile */
  .header--row.header-main {
    height: auto !important;
    overflow-y: auto;
    background: #fff;
    box-shadow: none !important;
    padding-top: 2rem;
  }

  .header--row.header-main.is-open {
    height: 100vh !important;
    overflow-y: auto;
    background: #fff;
    padding-top: 2rem;
  }
  
  /* Adding from the original CSS that worked. */
  .is-menu-sidebar .header-menu-sidebar-inner 
	{
		box-sizing: content-box !important;
	}

  .header--row.header-main:not(.is-open) {
    height: auto !important;
    overflow: hidden;
    padding: 0;
  }

  /* Primary mobile menu items */
  .primary-menu-ul .menu-item {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    /* border-bottom: 1px solid #f0f0f0; */
    margin: 0 !important;
    letter-spacing: normal !important;
    line-height: 23.4px;
  }
  
  /* === COPIED FROM PREVIOUS CSS
         Selects only the top-most (parent) menu item == */
	.menu-item .menu-item-title-wrap.dd-title
	{
    	padding-top: 11px !important;
    	padding-left: 35px !important; /*not needed becuase wrapper item is 30px padding already */
   		padding-right: 52px !important;
		padding-bottom: 11px !important;
		font-size: 18px;
		font-weight: 400 !important;
	}
	
	/* Menu item to get rid of some of the extra padding. */
	.menu-item-has-children > .wrap {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-top: 30px;
	  }

  .primary-menu-ul .menu-item:last-child {
    border-bottom: none;
  }

  .primary-menu-ul .menu-item > .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Caret toggle button cleanup (mobile row) */
  .caret-wrap.navbar-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
  }

  .caret-wrap.navbar-toggle svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
  }

  /* Logo sizing/alignment on mobile */
  .site-logo img {
    max-height: 45px;
    height: auto;
    width: auto;
  }

  .title-with-logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 5px 0 !important;
  }

  .site-logo {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  /* Hamburger area padding (present in your original) */
  .menu-mobile-toggle {
    padding-top: 1rem;
  }

  /* Mobile hamburger + X animation */
  .menu-mobile-toggle.item-button.navbar-toggle-wrapper {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10001;
  }

  .menu-mobile-toggle .navbar-toggle .bars {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }

  .menu-mobile-toggle .icon-bar {
    width: 20px;
    height: 1.5px;
    background-color: #121212;
    border-radius: 1px;
    margin: 3px 0; /* match Shopify spacing */
    transition: opacity 0.2s ease;
  }

  .menu-mobile-toggle .navbar-toggle[aria-expanded="true"] .icon-bar {
    opacity: 0;
  }

  .menu-mobile-toggle .navbar-toggle[aria-expanded="true"] .bars::before {
    content: "✕";
    font-size: 22px;
    color: #121212;
    font-weight: 400; /* lighter X */
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .menu-mobile-toggle .navbar-toggle {
    outline: none !important;
    background-color: transparent;
  }

  /* Extra padding on mobile header container (your deep selector) */
  #header-grid > nav.header--row.header-main.hide-on-desktop.layout-full-contained.nv-navbar.has-center.header--row > div > div {
    padding-left: 25px !important;
    padding-right: 25px !important;
  }

  /* Mobile “panel” submenus (default hidden) */
  .primary-menu-ul .sub-menu {
    display: none;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 100px 20px 20px;
    z-index: 9999;
    transition: opacity 0.3s ease-in-out;
  }

  .primary-menu-ul .sub-menu li {
    display: block;
    padding: 1rem 0;
    font-size: 18px;
    /* border-bottom: 1px solid #eee; */
    color: #121212;
  }

  /* Utility for caret rotation (mobile) */
  .icon.rotated {
    transform: rotate(180deg);
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
  }

  /* Mobile class variant for sliding panel */
  .primary-menu-ul.menu-mobile .sub-menu {
    display: none;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100vh;
    background: #ffffff;
    z-index: 9999;
    padding: 100px 20px 20px;
    overflow-y: auto;
  }

  .primary-menu-ul.menu-mobile .sub-menu.active-submenu {
    display: block;
    opacity: 1;
    transform: translateX(0%);
  }

  .primary-menu-ul.menu-mobile .sub-menu.active-submenu.custom-submenu-slide {
    animation: slideInFromRight 0.3s ease forwards;
  }

  .primary-menu-ul.menu-mobile .sub-menu li {
    display: block;
    padding-top: 5px;
    padding-bottom: 6px;
    font-size: 18px;
    color: #121212;
  }

  /* Back row and its contents */
  .primary-menu-ul.menu-mobile .sub-menu .back-link {
    background-color: #f5f5f5;
    font-weight: 500;
    font-size: 14px;
    /* border-bottom: 1px solid #e0e0e0; */
    margin-bottom: 1rem;
    padding: 0; /* inner wrap handles padding */
  }

  .primary-menu-ul.menu-mobile .sub-menu .back-link .wrap {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
  }

  .back-link .back-link-button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1.2rem 1rem;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
  }

  .primary-menu-ul.menu-mobile .back-link > .wrap > a.back-link-button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.6rem !important;
    white-space: nowrap;
  }

  .back-link .back-text {
    display: inline-block;
    line-height: 1;
  }

  .back-link .icon-arrow.back-arrow {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    transform: rotate(180deg); /* point left */
    display: block;
    flex: 0 0 auto;
  }

  /* Hide Neve’s default “open” state for nested ULs in our panel model */
  .primary-menu-ul.menu-mobile ul.sub-menu.dropdown-open {
    display: none !important;
    height: 0 !important;
    /* overflow: hidden !important; */
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    transform: translateX(100%) !important;
  }

  .sub-menu .back-link ~ .menu-item {
    display: block;
  }

  .primary-menu-ul.menu-mobile .menu-item-has-children > .wrap > a {
    pointer-events: auto !important;
  }

  /* Keep parent rows visible while open */
  body.menu-open .primary-menu-ul.menu-mobile > li > .wrap {
    display: flex !important;
  }

  /* These were in your original inside a separate mobile block */
  .menu-mobile .sub-menu li {
    padding: 1rem;
    font-size: 18px;
    /* border-bottom: 1px solid #eee; */
    color: #121212;
  }

  .menu-mobile .sub-menu li a {
    color: inherit;
    text-decoration: none;
  }

  .menu-mobile .sub-menu li::marker {
    content: '';
  }

  .wrap.wrap-hidden {
    display: none !important;
  }

  .builder-item {
    padding-right: 5px !important;
    padding-left: 5px !important;
  }
  
  /* Patch 1: Fixing the spacing between elements in mobile menu. */
  /* Parent rows */
  .primary-menu-ul .menu-item { 
      padding: 0px !important;
      font-size: 18px !important;
   }

  /* Submenu panel padding (reduce header offset from 100px) */
  .primary-menu-ul .sub-menu { padding: 72px 16px 16px !important; }

  /* Submenu items */
  .primary-menu-ul .sub-menu li { 
      padding-top: 11px !important; 
      padding-bottom: 11px !important;
  }

  /* Link padding in rows (keep snug) */
  .header-menu-sidebar .nav-ul li:not([class*=block]) > .wrap > a 
  { 
      padding: 0 !important; 
  }
  
  /* Fixing the padding at the top of mobile menu to have a gap between the
    Header and the start of the menu. */
    .header-menu-sidebar .nv-nav-wrap
    {
        padding-top: 30px !important;
    }
    
    /* Patch 2 */
    /* === SCROLL LOCK — robust, CSS-only (works in modern Chrome/Firefox/Safari) === */

    /* 1) Lock <html> when the body has the open class */
    html:has(body.menu-open),
    html:has(body.is-menu-sidebar) {
      overflow: hidden !important;
      height: 100% !important;
    }
    
    /* 2) Lock <body> too (covers older engines and theme quirks) */
    body.menu-open,
    body.is-menu-sidebar {
      overflow: hidden !important;
      height: 100vh !important;
      position: relative !important; /* avoids accidental page shift */
      overscroll-behavior: none !important; /* no pull-to-refresh/over-scroll */
      touch-action: pan-y; /* allow vertical scroll inside the panel only */
    }
    
    /* 3) Make the off-canvas panel fill the viewport and scroll internally */
    body.menu-open #header-menu-sidebar,
    body.is-menu-sidebar #header-menu-sidebar {
      position: fixed !important;
      inset: 0 !important;
      z-index: 9998 !important;
      padding-top: var(--header-height, 110px) !important; /* adjust if your header height differs */
    }
    
    #header-menu-sidebar-inner {
      max-height: calc(100vh - var(--header-height, 110px)) !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important; /* iOS momentum */
    }
    
    /* 4) Prevent background wrappers from stealing scroll */
    .site,
    .nv-content-wrap,
    .neve-main,
    .site-main {
      overscroll-behavior: contain !important;
      overflow: clip !important; /* modern "hidden" without scrollbars */
    }
    
    /* Fix back section dropped low when submenu is open.*/
    /* Submenu: remove the big top gap (both mobile + tablet) */
.primary-menu-ul .sub-menu,
.primary-menu-ul.menu-mobile .sub-menu {
  padding-top: 8px !important; /* was 72px/100px in places */
}

/* Back row: no li padding, spacing lives on .wrap */
.primary-menu-ul.menu-mobile .sub-menu .back-link {
  padding: 0 !important;
  margin: 0 0 8px 0 !important;
}
.primary-menu-ul.menu-mobile .sub-menu .back-link .wrap {
  padding: 10px 16px !important; /* tweak to taste */
}
/* If you still have a generic li padding, exclude the Back row */
.menu-mobile .sub-menu li.back-link {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* Keep the back link’s anchor tidy */
.primary-menu-ul.menu-mobile .back-link > .wrap > a.back-link-button {
  padding: 0 !important;
  gap: .5rem !important;
  display: flex !important;
  align-items: center !important;
}

/* Optional: ensure the first real item after Back isn't adding margin */
.primary-menu-ul .sub-menu > li:first-child {
  margin-top: 0 !important;
}

.nav-ul .sub-menu li > .wrap {
    padding-left: 14px !important;
  }
    
    /* END OF FIX SECTION */

}

/* ==========================================================================
   SMALL MOBILE (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
  .site-logo img {
    max-height: 40px !important;
  }
  .site-logo {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
  }
}

/* ==========================================================================
   MOBILE SMALLER PANEL (≤749px)
   ========================================================================== */
@media (max-width: 749px) {
  /* Make off-canvas full width */
  #header-menu-sidebar,
  #header-menu-sidebar-bg,
  #header-menu-sidebar-inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: content-box;
  }

  /* Remove container caps on the sidebar */
  #header-menu-sidebar-inner.container,
  .header-menu-sidebar .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Freeze mobile header rows while menu is open */
  body.menu-open .header--row.header-top.hide-on-desktop,
  body.menu-open .header--row.header-main.hide-on-desktop {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
  }

  #header-menu-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 9998;
    padding-top: 100px !important; /* offset for sticky header */
    display: flex;
    flex-direction: column;
  }

  #header-menu-sidebar-bg {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* overflow: hidden; */
    justify-content: flex-start !important;
  }

  #header-menu-sidebar-inner {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 !important;
    padding: 0 16px; /* adjust side padding if needed */
  }

  body.menu-open {
    overflow: hidden;
    height: 100vh; /* prevent background from scrolling on iOS */
  }
}

/* ===========================================================================
   TABLET (min width: 750px and max width: 959px)
   At 960 - 991 px, Neve takes over and wants to force desktop.  
   This varies from the store.  Future enhancement.
   ========================================================================== */
   /* Make mobile menu look like a Tablet drawer (774–991px) */
  @media (min-width: 750px) and (max-width: 959px) {
  :root { --header-height: 118px; } /* adjust if your sticky header is taller */

    /* Seems like there's extra padding in the tablet version of the logo. */
   .site-logo {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
  
  /* Neutralize Neve's bg layer */
    body.menu-open #header-menu-sidebar-bg,
    body.is-menu-sidebar #header-menu-sidebar-bg 
    { 
        background: transparent !important; 
    }
    
    /* Dim just .neve-main */
    body.menu-open .neve-main::before,
    body.is-menu-sidebar .neve-main::before {
      content: "";
      position: fixed;
      top: var(--header-height, 120px);
      left: 0; 
      right: 0; 
      bottom: 0;
      background: rgba(0,0,0,.5);
      z-index: 9997; /* below your drawer (9998), above page content */
    }
    
    /* Make sure header & drawer sit above the dim layer */
    .site-header { z-index: 10020 !important; }
    #header-menu-sidebar { z-index: 10010 !important; }
    #header-menu-sidebar-inner { position: relative; z-index: 10011 !important; }

  /* Anchor the container to the viewport */
  body.menu-open #header-menu-sidebar,
  body.is-menu-sidebar #header-menu-sidebar {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9998 !important;
    padding-top: 0 !important; /* we’ll offset the inner panel instead */
  }

  /* Drawer panel */
  #header-menu-sidebar-inner {
    position: absolute !important;
    top: var(--header-height);
    right: 0;
    right: auto;
    width: 400px;
    height: calc(100vh - var(--header-height));
    background: #fff;
    border-right: 1px solid rgba(0,0,0,.08);
    /*box-shadow: 0 12px 30px rgba(0,0,0,.12);*/
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 240ms cubic-bezier(.22,1,.36,1);
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
  
  body.menu-open #header-menu-sidebar-inner,
  body.is-menu-sidebar #header-menu-sidebar-inner {
    transform: translateX(0);
  }

  /* Tighter rows on tablet */
  .primary-menu-ul .menu-item { 
      /*padding: 0.6rem 1rem !important; 
      font-size: 1rem !important;*/
   }
  .primary-menu-ul .menu-item:last-child { border-bottom: none; }

  /* Submenus live INSIDE the drawer, not full-viewport */
  .primary-menu-ul .sub-menu,
  .primary-menu-ul.menu-mobile .sub-menu {
    position: relative !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    /*padding: 8px 0 12px !important;*/
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }
  .primary-menu-ul .sub-menu li,
  .primary-menu-ul.menu-mobile .sub-menu li 
  { 
      /*padding: .5rem 0 !important; */
      font-size: 1rem !important; 
  }

  /* Back row keeps compact look */
 /* .primary-menu-ul.menu-mobile .sub-menu .back-link .wrap 
  { padding: .75rem 1rem !important; }
  .primary-menu-ul.menu-mobile .back-link > .wrap > a.back-link-button 
  { gap: .5rem !important; } */

  /* Make sure the desktop caret is hidden; mobile caret shows */
  .nav-menu-primary .menu-item .caret-wrap.caret { display: none !important; }
  .caret-wrap.navbar-toggle { display: flex !important; }
}

/* =========================
   KEYFRAMES (GLOBAL)
   ========================= */
@keyframes slideInFromRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0%);   opacity: 1; }
}

@keyframes submenuSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===========================================================================
   BRIDGE: Force DESKTOP nav in the in-between band (960–991px)
   (Hides mobile header/overlay, uses non-mobile UL, restores horizontal
   layout + hover dropdowns, resets any mobile geometry/typography leaks)
   ==========================================================================*/
@media (min-width: 960px) and (max-width: 991px) {
  /* 1) Desktop header rows only */
  #header-grid .header--row.hide-on-mobile,
  #header-grid .header--row.hide-on-tablet,
  #header-grid .header--row[data-show-on="desktop"] {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  #header-grid .header--row.hide-on-desktop,
  #header-grid .header--row[data-show-on="mobile"] {
    display: none !important;
    visibility: hidden !important;
    /*pointer-events: none !important;*/
  }

  /* 2) Kill ALL mobile sidebar/overlay/hamburger in this band */
  #header-menu-sidebar,
  #header-menu-sidebar-bg,
  #header-menu-sidebar-inner,
  .menu-mobile-toggle {
    display: none !important;
    opacity: 0 !important;
    /*pointer-events: none !important;*/
  }

  /* 3) Use ONLY the non-mobile UL; make it horizontal */
  .site-header .nv-navbar .primary-menu-ul.menu-mobile { display: none !important; }
  .site-header .nv-navbar .primary-menu-ul:not(.menu-mobile),
  .main-navigation .primary-menu-ul:not(.menu-mobile) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 24px !important;     /* adjust spacing if you prefer */
    padding: 0 !important;
    margin: 0 !important;
  }
  .main-navigation .primary-menu-ul:not(.menu-mobile) > li {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
  }
  .main-navigation .primary-menu-ul:not(.menu-mobile) > li > .wrap {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
  }
  /* Make sure links are clickable; hide mobile caret */
  .main-navigation .primary-menu-ul:not(.menu-mobile) > li > .wrap > a {
    pointer-events: auto !important;
    display: inline-block !important;
  }
  .main-navigation .primary-menu-ul:not(.menu-mobile) > li .caret-wrap {
    display: none !important;
  }

  /* 4) Reset mobile submenu geometry; restore hover dropdowns */
  .main-navigation .primary-menu-ul:not(.menu-mobile) .sub-menu {
    display: none !important;                 /* hidden until hover */
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    width: 200px !important;
    min-height: auto !important;
    height: auto !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 4px 5px rgba(0,0,0,0.05) !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: 1001 !important;
  }
  .main-navigation .primary-menu-ul:not(.menu-mobile) > li:hover > .sub-menu {
    display: block !important;
  }

  /* 5) Desktop typography so mobile sizes don’t leak in this band */
  .main-navigation ul li.menu-item > .wrap > a {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    color: rgba(18,18,18,.75) !important;
    letter-spacing: .4px !important;
    padding: .5rem 0 !important;
    margin: 0 !important;
    position: relative !important;
  }
  .main-navigation ul li.menu-item > .wrap > a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -4px; left: 0;
    height: 2px; width: 0%;
    background-color: rgba(18,18,18,.75);
    transition: width .2s ease;
  }
  .main-navigation ul li.menu-item > .wrap > a:hover::after { width: 100% !important; }
  .main-navigation ul li.menu-item.current-menu-item > .wrap > a::after {
    width: 100% !important; height: 3px !important;
  }

  /* 6) Header containers full width (avoid “narrow/centered” look) */
  .site-header .header--row.hide-on-mobile .container,
  .site-header .header--row.hide-on-tablet .container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* 7) Stacking order safety */
  .site-header { position: relative; z-index: 1000 !important; }
  .main-navigation .sub-menu { z-index: 1001 !important; }
  
    /* Let dropdowns overflow the header row/container */
  .site-header .header--row.hide-on-mobile,
  .site-header .header--row.hide-on-tablet,
  .site-header .header--row.hide-on-mobile .container,
  .site-header .header--row.hide-on-tablet .container,
  .site-header .nv-navbar {
    overflow: visible !important;
  }

  /* Add the thin hairline under the header (matches desktop look) */
  #header-grid .header--row.header-main.hide-on-mobile,
  #header-grid .header--row.header-main.hide-on-tablet {
    border-bottom: 1px solid rgba(18,18,18,.12) !important;
  }

  /* Ensure each top-level item is an anchor point for its submenu */
  .main-navigation .primary-menu-ul:not(.menu-mobile) > li {
    position: relative !important;        /* anchor for absolutely positioned submenu */
    flex: 0 0 auto !important;
    width: auto !important;
  }

  /* Desktop dropdown panel: size + outline + shadow */
  .main-navigation .primary-menu-ul:not(.menu-mobile) .sub-menu {
    display: none !important;             /* stays hidden until hover */
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: auto !important;
    min-width: 200px !important;
    width: auto !important;               /* prevent full-width stretch */
    background: #fff !important;
    border: 1px solid rgba(18,18,18,.12) !important;  /* thin outline */
    box-shadow: 0 4px 10px rgba(18,18,18,.06) !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: 1001 !important;
  }

  /* Reveal on hover (desktop behavior) */
  .main-navigation .primary-menu-ul:not(.menu-mobile) > li:hover > .sub-menu {
    display: block !important;
  }

  /* Top-level link block layout (prevents odd centering) */
  .main-navigation .primary-menu-ul:not(.menu-mobile) > li > .wrap {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
  }
}
/* =========================================================================== */
/* ==========================================================================
   DESKTOP (≥960): Click-to-open and click-to-close for parent titles
   ==========================================================================*/
@media (min-width: 960px) {
  /* Open when forced */
  .main-navigation .primary-menu-ul:not(.menu-mobile)
    > li.force-open > .sub-menu {
    display: block !important;
  }

  /* Close even if hovered when force-close is present */
  .main-navigation .primary-menu-ul:not(.menu-mobile)
    > li.force-close > .sub-menu,
  .main-navigation .primary-menu-ul:not(.menu-mobile)
    > li.force-close:hover > .sub-menu {
    display: none !important;
  }

  /* IMPORTANT: allow the anchor to receive clicks (we'll intercept in JS) */
  .main-navigation .primary-menu-ul:not(.menu-mobile)
    > li.menu-item-has-children > .wrap > a {
    pointer-events: auto !important;
    cursor: pointer;
  }

  /* Make the whole wrap feel clickable too */
  .main-navigation .primary-menu-ul:not(.menu-mobile)
    > li.menu-item-has-children > .wrap {
    cursor: pointer;
  }
}


