/* MECT Premium Header v1.0 | Kadence classic header; preserves menu markup. */
:root{--mect-navy:#102b43;--mect-navy2:#173f5d;--mect-gold:#edb84a;--mect-gold-soft:#fff4d8}
#masthead.site-header{isolation:isolate;z-index:1000}
#masthead .site-main-header-wrap .site-header-row-container-inner{
  background:rgba(255,255,255,.98);
  border-bottom:1px solid rgba(16,43,67,.09);
  box-shadow:0 8px 28px rgba(16,43,67,.065);
  transition:background .3s ease,box-shadow .3s ease,border-color .3s ease;
}
body.mect-has-scrolled #masthead .site-main-header-wrap .site-header-row-container-inner{
  background:rgba(255,255,255,.96);
  box-shadow:0 12px 30px rgba(16,43,67,.13);
  border-bottom-color:rgba(237,184,74,.35);
}
@supports(backdrop-filter:blur(14px)){
 body.mect-has-scrolled #masthead .site-main-header-wrap .site-header-row-container-inner{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
}
#masthead .site-branding img,#masthead .site-branding a img{
 max-height:76px;width:auto;object-fit:contain;
 transition:transform .35s cubic-bezier(.2,.7,.2,1),filter .35s ease;
}
#masthead .site-branding a:hover img{transform:scale(1.045);filter:drop-shadow(0 6px 9px rgba(16,43,67,.15))}
/* Desktop nav */
@media(min-width:1025px){
 #masthead #site-navigation .primary-menu-container>ul>li>a,
 #masthead .main-navigation .primary-menu-container>ul>li>a{
  position:relative;display:flex;align-items:center;min-height:54px;
  padding-left:16px;padding-right:16px;
  font-weight:650;letter-spacing:.01em;
  color:var(--mect-navy);
  transition:color .22s ease,transform .22s ease;
 }
 #masthead #site-navigation .primary-menu-container>ul>li>a::after,
 #masthead .main-navigation .primary-menu-container>ul>li>a::after{
  content:"";position:absolute;bottom:8px;left:16px;right:16px;height:3px;
  background:linear-gradient(90deg,var(--mect-gold),#f9d990);
  border-radius:30px;transform:scaleX(0);transform-origin:center;
  transition:transform .3s cubic-bezier(.16,1,.3,1);
 }
 #masthead #site-navigation .primary-menu-container>ul>li>a:hover,
 #masthead .main-navigation .primary-menu-container>ul>li>a:hover{color:#bc8426;transform:translateY(-1px)}
 #masthead #site-navigation .primary-menu-container>ul>li:hover>a::after,
 #masthead #site-navigation .primary-menu-container>ul>li.current-menu-item>a::after,
 #masthead #site-navigation .primary-menu-container>ul>li.current-menu-ancestor>a::after,
 #masthead .main-navigation .primary-menu-container>ul>li:hover>a::after,
 #masthead .main-navigation .primary-menu-container>ul>li.current-menu-item>a::after,
 #masthead .main-navigation .primary-menu-container>ul>li.current-menu-ancestor>a::after{transform:scaleX(1)}
 #masthead .main-navigation ul ul.sub-menu{border:1px solid #e9edf1;border-top:3px solid var(--mect-gold);border-radius:0 0 14px 14px;box-shadow:0 18px 45px rgba(16,43,67,.16);overflow:hidden}
 #masthead .main-navigation ul ul.sub-menu li>a{transition:background .2s,color .2s,padding .2s}
 #masthead .main-navigation ul ul.sub-menu li>a:hover{background:var(--mect-gold-soft);color:var(--mect-navy);padding-left:1.3em}
}
/* Native header elements - no duplicate buttons */
#masthead .header-button-wrap .header-button,
#masthead .header-button-wrap a.header-button{
 border-radius:11px;box-shadow:0 7px 18px rgba(16,43,67,.13);
 transition:transform .22s ease,box-shadow .22s ease,filter .22s ease;
}
#masthead .header-button-wrap .header-button:hover,
#masthead .header-button-wrap a.header-button:hover{transform:translateY(-2px);box-shadow:0 11px 22px rgba(16,43,67,.2);filter:brightness(1.04)}
#masthead .header-cart-wrap a,#masthead .header-search-wrap a{transition:color .2s ease,transform .2s ease}
#masthead .header-cart-wrap a:hover,#masthead .header-search-wrap a:hover{color:#bc8426;transform:translateY(-2px)}
/* Compact premium mobile header */
@media(max-width:1024px){
 #masthead .site-mobile-header-wrap .site-header-row-container-inner,
 #masthead .site-mobile-header-wrap .site-main-header-wrap .site-header-row-container-inner{
  background:#fff;border-bottom:1px solid rgba(16,43,67,.1);
  box-shadow:0 5px 20px rgba(16,43,67,.08);
 }
 #masthead .site-branding img{max-height:60px}
 #masthead .menu-toggle-open,#masthead .mobile-toggle-open-container .menu-toggle-open{
  border-radius:12px;transition:transform .2s ease,background .2s ease;
 }
 #masthead .menu-toggle-open:hover{background:var(--mect-gold-soft);transform:scale(1.04)}
 #mobile-drawer .drawer-inner{background:#fff}
 #mobile-drawer .mobile-navigation a{color:var(--mect-navy);font-weight:600;border-color:rgba(16,43,67,.08)}
 #mobile-drawer .mobile-navigation a:hover,#mobile-drawer .mobile-navigation .current-menu-item>a{background:var(--mect-gold-soft);color:#9b6b19}
}
/* Animate the existing header once after page load */
@media(prefers-reduced-motion:no-preference){
 body.mect-header-ready #masthead .site-header-row-container-inner{animation:mectHeaderIntro .45s cubic-bezier(.2,.7,.2,1) both}
 @keyframes mectHeaderIntro{from{opacity:.5;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
}
@media(prefers-reduced-motion:reduce){#masthead *,#masthead *::before,#masthead *::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
