.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.header-main {
  width: 100%;
}

.header-main .container,
.header-main .container--wide {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(24px, 5vw, 72px);
  padding-right: clamp(24px, 5vw, 72px);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.1rem, 1.8vw, 2rem);
  min-height: 84px;
  transition: min-height 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled .header-main .container,
.site-header.is-scrolled .header-main .container--wide {
  min-height: 72px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

/* LOGO */
/* LOGO */
.header-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.header-logo__link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  line-height: 1;
}

.header-logo__image,
.header-logo img,
.header-logo .custom-logo {
  display: block;
  width: auto !important;
  height: 60px !important;
  max-width: none;
  flex: 0 0 auto;
  transition: height 220ms ease, transform 220ms ease;
  transform-origin: left center;
}

.site-header.is-compact .header-logo__image,
.site-header.is-compact .header-logo img,
.site-header.is-compact .header-logo .custom-logo {
  height: 46px !important;
}
.header-main .container,
.header-main .container--wide {
  transition: min-height 220ms ease, padding 220ms ease;
}
/* NAV */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.8rem, 0.95vw, 1.3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu > li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.3rem 0.05rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 0.12vw + 0.98rem, 1.08rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  transition: color 160ms ease, opacity 160ms ease;
}

.main-menu > li > a:hover {
  color: #ffffff;
}

.main-menu > li > a:focus-visible {
  color: #ffffff;
  outline: 2px solid var(--mc-green);
  outline-offset: 3px;
  border-radius: 2px;
}

.main-menu > .current-menu-item > a,
.main-menu > .current-menu-parent > a,
.main-menu > .current-menu-ancestor > a {
  color: var(--mc-green);
}
/* Top Bar */
.header-topbar {
  width: 100%;
}

.header-topbar .container,
.header-topbar .container--wide {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(24px, 5vw, 72px);
  padding-right: clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
}

@media (max-width: 1100px) {
  .header-main .container,
  .header-main .container--wide {
    min-height: 78px;
    gap: 1rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .main-menu {
    gap: 0.8rem;
  }

  .main-menu > li > a {
    font-size: 0.96rem;
  }

  .header-logo__image,
  .header-logo img,
  .header-logo .custom-logo {
    height: 52px !important;
  }

  .site-header.is-compact .header-logo__image,
  .site-header.is-compact .header-logo img,
  .site-header.is-compact .header-logo .custom-logo {
    height: 40px !important;
  }
}

/* ============================================================
   MOBILE BREAKPOINT  -  single source of truth for the swap.
   Below 1024px: hamburger only. At/above: desktop menus only.
   !important prevents cascade-order overrides from other files.
   Confirmed DOM selectors (DevTools):
     main nav      -> nav.header-nav
     utility bar   -> nav.topbar-nav  (wrapper: .header-topbar)
     hamburger     -> button#mc-ham-toggle.mc-ham-toggle
============================================================ */
@media (max-width: 1023px) {
  /* Hide desktop menus - target both the nav elements directly
     AND the topbar wrapper so nothing bleeds through */
  .header-topbar,
  nav.topbar-nav {
    display: none !important;
  }

  .header-nav,
  nav.header-nav {
    display: none !important;
  }

  /* Show hamburger. Default display of <button> is inline-block;
     browser's min-width:1024px rule in mobile-nav.css hides it
     at desktop. margin-left:auto guarantees right-alignment even
     if the hidden nav somehow reserves width. */
  .mc-ham-toggle {
    display: inline-flex !important;
    margin-left: auto;
  }

  .header-main .container,
  .header-main .container--wide {
    min-height: 72px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .header-logo__image,
  .header-logo img,
  .header-logo .custom-logo {
    height: 42px !important;
  }

  .site-header.is-compact .header-logo__image,
  .site-header.is-compact .header-logo img,
  .site-header.is-compact .header-logo .custom-logo {
    height: 36px !important;
  }
}

/* Topbar search button */
.topbar-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 50%;
  transition: color 160ms ease, background 160ms ease;
}

.topbar-search svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.topbar-search:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.topbar-search:focus-visible {
  outline: 2px solid var(--mc-green);
  outline-offset: 3px;
}

/* Cart trigger */
.mc-cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  border-radius: 50%;
  transition: color 160ms ease, background 160ms ease;
}

.mc-cart-trigger svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mc-cart-trigger:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.mc-cart-trigger:focus-visible {
  outline: 2px solid var(--mc-green);
  outline-offset: 3px;
}

/* Count badge  -  positioned over top-right corner of trigger */
.mc-cart-count {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border-radius: var(--mc-radius-pill);
  background: var(--mc-green);
  color: var(--mc-near-black);
  font-size: 0.6rem;
  font-weight: 800;
  font-family: var(--font-body);
  line-height: 17px;
  text-align: center;
  pointer-events: none;
}

.mc-cart-count--empty {
  display: none;
}

/* =========================
   NAV CTA BUTTON
   WordPress assigns custom menu CSS classes to the <li>.
   Class: btn-nav-cta — added in WP Appearance > Menus.
========================= */
.main-menu > li.btn-nav-cta > a {
  background: var(--mc-green);
  color: var(--mc-near-black);
  padding: 0.45rem 1rem;
  border-radius: var(--mc-radius-btn);
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.main-menu > li.btn-nav-cta > a:hover {
  background: var(--mc-green-80);
  color: var(--mc-near-black);
  transform: translateY(-1px);
}

.main-menu > li.btn-nav-cta > a:focus-visible {
  outline: 2px solid var(--mc-white);
  outline-offset: 3px;
}

/* =========================
   HEADER LOGO LINK FOCUS
========================= */
/* Header logo link focus */
.header-logo__link:focus-visible {
  outline: 2px solid var(--mc-green);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .header-main .container,
  .header-main .container--wide,
  .header-logo__image,
  .header-logo img,
  .header-logo .custom-logo,
  .main-menu > li > a,
  .topbar-search {
    transition: none;
  }
}