/* Mech Mates header: top bar, logo + mega menu, Let's Talk button. Scoped to .mmh so the legacy navbar CSS cannot leak in. */

@font-face{font-family:'Montserrat';font-weight:400;font-style:normal;font-display:swap;src:url('../fonts/montserrat-400.woff2') format('woff2')}
@font-face{font-family:'Montserrat';font-weight:500;font-style:normal;font-display:swap;src:url('../fonts/montserrat-500.woff2') format('woff2')}
@font-face{font-family:'Montserrat';font-weight:600;font-style:normal;font-display:swap;src:url('../fonts/montserrat-600.woff2') format('woff2')}
@font-face{font-family:'Montserrat';font-weight:700;font-style:normal;font-display:swap;src:url('../fonts/montserrat-700.woff2') format('woff2')}

.mmh{
	--mmh-yellow:#ffce00;
	--mmh-top-h:28px;
	--mmh-bar-h:80px;
	--mmh-pad:3.4%;
	position:absolute;top:0;left:0;right:0;z-index:9999;
	font-family:'Montserrat',Arial,sans-serif;
	font-size:11px;line-height:1.4;color:#fff;
	-webkit-font-smoothing:antialiased;
}
body.admin-bar .mmh{top:32px}
@media(max-width:782px){body.admin-bar .mmh{top:46px}}
.mmh *,.mmh *::before,.mmh *::after{box-sizing:border-box}
.mmh ul{list-style:none;margin:0;padding:0}
.mmh li{margin:0;padding:0;list-style:none}
.mmh a{text-decoration:none;color:inherit}
.mmh p{margin:0}
.mmh svg{display:block}

/* ---- top bar ---- */
.mmh-top{height:var(--mmh-top-h);background:rgba(0,0,0,.92);border-bottom:1px solid #1d1d1d;overflow:hidden;transition:height .25s ease,border-color .25s ease}
.mmh-top__in{height:100%;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding-left:var(--mmh-pad)}
.mmh-tag{grid-column:2;font-weight:500;font-size:11px;letter-spacing:.01em;color:#fff;text-align:center;white-space:nowrap}
.mmh-top__right{grid-column:3;justify-self:end;height:100%;display:flex;align-items:center}
.mmh-help{font-weight:500;font-size:11px;margin-right:26px;color:#fff;transition:color .2s}
.mmh-help:hover{color:var(--mmh-yellow)}
.mmh-social{display:flex;align-items:center;gap:15px;margin-right:30px!important}
.mmh-social a{display:block;color:#fff;transition:color .2s}
.mmh-social a:hover{color:var(--mmh-yellow)}
.mmh-social svg{width:12px;height:12px}
.mmh-search{position:relative;height:100%;width:222px;border-left:1px solid #2b2b2b;margin:0}
.mmh-search input[type=search],.mmh-search input[type=text]{width:100%;height:100%;border:0;border-radius:0;background:transparent;box-shadow:none;outline:0;color:#fff;font:500 11px 'Montserrat',Arial,sans-serif;padding:0 38px 0 18px;-webkit-appearance:none;appearance:none}
.mmh-search input::placeholder{color:#8a8a8a;opacity:1;text-transform:capitalize}
.mmh-search input:focus{background:rgba(255,255,255,.04)}
.mmh-search button{position:absolute;right:0;top:0;height:100%;width:38px;border:0;background:transparent;color:#fff;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color .2s}
.mmh-search button:hover{color:var(--mmh-yellow)}
.mmh-search button svg{width:13px;height:13px}
.mmh-search--mobile{display:none}

/* ---- main bar ---- */
.mmh-bar{position:relative;height:var(--mmh-bar-h);display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:30px;padding:0 var(--mmh-pad);background:linear-gradient(180deg,rgba(0,0,0,.8) 0%,rgba(0,0,0,.45) 60%,rgba(0,0,0,0) 100%);transition:background .25s ease,box-shadow .25s ease,height .25s ease}
.mmh-logo{display:block;width:212px;line-height:0}
.mmh-logo img{width:100%;height:auto;display:block}
.mmh-burger{display:none}

/* ---- primary menu ---- */
.mmh-nav{height:100%;min-width:0}
.mmh-menu{height:100%;display:flex;align-items:stretch;justify-content:center;gap:0}
.mmh-menu > li{position:relative;display:flex;align-items:center}
.mmh-menu > li > a{display:flex;align-items:center;height:100%;padding:0 15px;font-weight:600;font-size:11px;letter-spacing:.02em;text-transform:uppercase;color:#fff;white-space:nowrap;transition:color .2s}
.mmh-menu > li:hover > a,.mmh-menu > li:focus-within > a,.mmh-menu > li.current > a,.mmh-menu > li.current-ancestor > a{color:var(--mmh-yellow)}
.mmh-sub-toggle{display:none}

/* mega panel */
.mmh-panel{position:absolute;top:100%;left:0;z-index:5;display:flex;align-items:flex-start;gap:30px;min-width:260px;padding:28px 32px 26px;background:rgba(0,0,0,.88);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-top:4px solid var(--mmh-yellow);visibility:hidden;opacity:0;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s}
.mmh-menu > li.is-flip > .mmh-panel{left:auto;right:0}
.mmh-menu > li.has-sub:hover > .mmh-panel,
.mmh-menu > li.has-sub:focus-within > .mmh-panel,
.mmh-menu > li.has-sub.is-touch-open > .mmh-panel{visibility:visible;opacity:1;transform:none;transition-delay:0s}
.mmh-sublist{min-width:200px;flex:0 0 auto}
.mmh-sublist.is-wide{column-count:2;column-gap:36px;min-width:430px}
.mmh-sublist li{break-inside:avoid}
.mmh-sublist a{display:block;padding:5px 0;font-weight:400;font-size:11px;letter-spacing:.02em;text-transform:uppercase;line-height:1.5;color:#fff;white-space:nowrap;transition:color .2s,padding-left .2s}
.mmh-sublist a:hover,.mmh-sublist li.current > a{color:var(--mmh-yellow);padding-left:4px}
.mmh-sublist li{margin-bottom:3px}
.mmh-feat{display:flex;gap:16px;flex:0 0 auto}
.mmh-feat a{display:block;width:143px;height:190px;background:#f1f1f1;overflow:hidden}
.mmh-feat img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.mmh-feat a:hover img{transform:scale(1.05)}

/* ---- Let's Talk ---- */
.mmh-cta{display:inline-flex;align-items:center;gap:10px;height:30px;padding:0 15px 0 18px;border-radius:30px;background:var(--mmh-yellow);color:#000!important;font-weight:500;font-size:13px;letter-spacing:0;white-space:nowrap;transition:background .2s,transform .2s}
.mmh-cta svg{width:24px;height:24px}
.mmh-cta{--mmh-cta-bg:#ffce00}\n.mmh-cta:hover{background:#fff;--mmh-cta-bg:#fff;transform:translateY(-1px)}
.mmh-cta--mobile{display:none}

/* ---- scrolled state ---- */
.mmh.is-stuck{position:fixed}
.mmh.is-stuck .mmh-top{height:0;border-color:transparent}
.mmh.is-stuck .mmh-bar{height:68px;background:rgba(8,8,8,.96);box-shadow:0 6px 26px rgba(0,0,0,.55)}
.mmh.is-stuck .mmh-logo{width:176px}

/* ---- inner pages: solid header, content pushed below it ---- */
body.mmh-solid{padding-top:108px}
body.mmh-solid .mmh-bar{background:linear-gradient(180deg,#1b1b1b 0%,#000 100%)}
body.mmh-solid .mmh.is-stuck .mmh-bar{background:rgba(8,8,8,.96)}

/* ---- laptop ---- */
@media(max-width:1280px){
	.mmh-menu > li > a{padding:0 11px}
	.mmh-logo{width:180px}
	.mmh-bar{column-gap:18px}
}

/* ---- tablet / mobile ---- */
@media(max-width:1279px){
	.mmh{--mmh-bar-h:64px;--mmh-pad:18px}
	body.mmh-solid{padding-top:92px}
	.mmh-top__in{grid-template-columns:1fr;padding:0 var(--mmh-pad)}
	.mmh-tag{grid-column:1;font-size:10px;overflow:hidden;text-overflow:ellipsis}
	.mmh-top__right{display:none}
	.mmh-bar{grid-template-columns:1fr auto;background:rgba(0,0,0,.9)}
	.mmh-logo{width:150px}
	.mmh.is-stuck .mmh-logo{width:136px}
	.mmh.is-stuck .mmh-bar{height:60px}
	.mmh > .mmh-bar > .mmh-cta{display:none}
	.mmh-burger{display:flex;flex-direction:column;justify-content:center;gap:5px;width:42px;height:42px;padding:0 9px;border:1px solid #333;border-radius:4px;background:transparent;cursor:pointer}
	.mmh-burger span{display:block;height:2px;background:#fff;border-radius:2px;transition:transform .25s,opacity .2s}
	.mmh.is-open .mmh-burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
	.mmh.is-open .mmh-burger span:nth-child(2){opacity:0}
	.mmh.is-open .mmh-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
	.mmh-nav{position:absolute;left:0;right:0;top:100%;height:auto;max-height:0;overflow:hidden;background:#0b0b0b;border-top:3px solid var(--mmh-yellow);visibility:hidden;transition:max-height .3s ease,visibility 0s linear .3s}
	.mmh.is-open .mmh-nav{max-height:calc(100vh - 100px);overflow-y:auto;visibility:visible;transition-delay:0s}
	.mmh .mmh-menu{flex-direction:column;align-items:stretch;padding:8px var(--mmh-pad) 4px}
	.mmh-menu > li{display:block;border-bottom:1px solid #1d1d1d;position:relative}
	.mmh-menu > li > a{height:auto;padding:15px 44px 15px 0;font-size:12px}
	.mmh-sub-toggle{display:block;position:absolute;right:0;top:6px;width:42px;height:42px;border:0;background:transparent;cursor:pointer}
	.mmh-sub-toggle::before{content:"";position:absolute;left:15px;top:14px;width:9px;height:9px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg);transition:transform .2s}
	.mmh-menu > li.is-expanded > .mmh-sub-toggle::before{transform:rotate(-135deg);top:20px}
	.mmh-panel{position:static;display:none;visibility:visible;opacity:1;transform:none;min-width:0;padding:0 0 12px 14px;background:transparent;border-top:0;backdrop-filter:none;-webkit-backdrop-filter:none}
	.mmh-menu > li.is-expanded > .mmh-panel{display:block}
	.mmh-sublist,.mmh-sublist.is-wide{column-count:1;min-width:0}
	.mmh-sublist a{white-space:normal;padding:8px 0}
	.mmh-feat{display:none}
	.mmh-search--mobile{display:block;width:auto;height:44px;margin:12px var(--mmh-pad) 6px;border:1px solid #2b2b2b;border-radius:4px}
	.mmh-search--mobile input{padding-left:14px}
	.mmh-cta--mobile{display:inline-flex;margin:8px var(--mmh-pad) 20px}
}

@media(prefers-reduced-motion:reduce){
	.mmh *{transition:none!important}
}

/* ---- larger desktop sizing ---- */
@media(min-width:1280px){
.mmh{--mmh-top-h:38px;--mmh-bar-h:100px;font-size:13px}
body.mmh-solid{padding-top:138px}
.mmh-tag,.mmh-help,.mmh-search input[type=search],.mmh-search input[type=text]{font-size:13px}
.mmh-social{gap:18px}.mmh-social svg{width:15px;height:15px}
.mmh-search{width:270px}.mmh-search button svg{width:16px;height:16px}
.mmh-logo{width:250px}
.mmh-menu > li > a{font-size:13.5px;padding:0 18px}
.mmh-sublist a{font-size:13px;padding:6px 0}
.mmh-panel{padding:34px 38px 32px;gap:36px}
.mmh-sublist{min-width:230px}.mmh-sublist.is-wide{min-width:500px}
.mmh-feat a{width:170px;height:225px}
.mmh-cta{height:40px;font-size:15.5px;padding:0 18px 0 22px;gap:12px}.mmh-cta svg{width:28px;height:28px}
.mmh.is-stuck .mmh-bar{height:80px}.mmh.is-stuck .mmh-logo{width:210px}
}
@media(min-width:1280px) and (max-width:1399px){
.mmh-menu > li > a{font-size:12.5px;padding:0 11px}.mmh-logo{width:200px}.mmh-cta{font-size:14px}.mmh-tag{font-size:12px}
}
@media(min-width:1700px){
.mmh{--mmh-top-h:42px;--mmh-bar-h:112px}
body.mmh-solid{padding-top:154px}
.mmh-tag,.mmh-help,.mmh-search input[type=search],.mmh-search input[type=text]{font-size:14.5px}
.mmh-logo{width:290px}
.mmh-menu > li > a{font-size:15px;padding:0 22px}
.mmh-sublist a{font-size:14.5px}
.mmh-feat a{width:190px;height:250px}
.mmh-cta{height:46px;font-size:17px}.mmh-cta svg{width:31px;height:31px}
.mmh-search{width:300px}.mmh-social svg{width:17px;height:17px}
.mmh.is-stuck .mmh-bar{height:88px}.mmh.is-stuck .mmh-logo{width:240px}
}

/* ---- top bar fit ---- */
.mmh-help{white-space:nowrap}
@media(min-width:1280px) and (max-width:1599px){
.mmh-tag{font-size:11.5px}
.mmh-help{margin-right:16px;font-size:11.5px}
.mmh-social{gap:13px;margin-right:18px!important}
.mmh-search{width:200px}
}

/* ---- panel fit ---- */
.mmh-logo img{filter:drop-shadow(0 1px 4px rgba(0,0,0,.65))}
@media(min-width:1280px) and (max-width:1699px){
.mmh-panel{padding:28px 32px 26px;gap:30px}
.mmh-sublist{min-width:210px}.mmh-sublist.is-wide{min-width:440px}
.mmh-sublist a{font-size:12.5px}
.mmh-feat a{width:150px;height:200px}
}

/* ---- mobile: header sits above the banner ---- */
@media(max-width:1279px){
.mmh,.mmh.is-stuck{position:sticky;top:0}
body.admin-bar .mmh{top:46px}
body.mmh-solid,body.mmh-overlay{padding-top:0}
.mmh .mmh-bar,.mmh.is-stuck .mmh-bar{height:var(--mmh-bar-h);background:#000;box-shadow:none}
.mmh.is-stuck .mmh-top{height:var(--mmh-top-h);border-color:#1d1d1d}
.mmh.is-stuck .mmh-bar{box-shadow:0 6px 18px rgba(0,0,0,.45)}
.mmh.is-stuck .mmh-logo{width:150px}
}
@media(max-width:600px){body.admin-bar .mmh{top:0}}

/* ---- search results page fix ---- */
/* WordPress adds the body class "search" on search pages; the legacy stylesheet has a ".search" rule (the old header input: display:none, absolute, 74px high) that hid the whole page. */
body.search{display:block;position:static;left:auto;right:auto;top:auto;width:auto;height:auto;padding:0;border:0;background:#000;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;color:#333}
