/* =====================================================================
   MORITA CODED HEADER  — transparent-over-hero → solid-on-scroll
   ===================================================================== */

/* 1) Hide the old Hello / ElementsKit header so there's no duplicate */
header.site-header,
#masthead.site-header,
.ekit-template-content-header,
[data-elementor-type="header"],
.elementor-location-header,
.elementskit-navbar-nav-default.ekit-nav-menu-ready > .site-header{
	display:none !important;
}

/* 2) Variables */
:root{
	--mh-teal:#0A6EBD; --mh-teal-d:#075A9E; --mh-ochre:#E0883B;
	--mh-ink:#13302A; --mh-line:#E7E1D4;
	--mh-fd:'Bricolage Grotesque',sans-serif; --mh-fb:'DM Sans',sans-serif;
}

/* 3) Shell */
.mh{position:fixed;top:0;left:0;right:0;z-index:9990;font-family:var(--mh-fb);
	transition:background .35s ease,box-shadow .35s ease}
body.admin-bar .mh{top:32px}
@media(max-width:782px){body.admin-bar .mh{top:46px}}
.mh a{text-decoration:none;color:inherit}
.mh .mh-wrap{max-width:1240px;margin:0 auto;padding:0 24px;display:flex;
	align-items:center;justify-content:space-between;gap:1.5rem}

/* 4) Top contact bar */
.mh-top{font-size:.84rem;overflow:hidden;max-height:46px;
	border-bottom:1px solid rgba(255,255,255,.18);
	transition:max-height .35s ease,opacity .3s ease,border-color .35s ease}
.mh-top .mh-wrap{padding-top:.55rem;padding-bottom:.55rem}
.mh-top a,.mh-top span{color:rgba(255,255,255,.92)}
.mh-top a:hover{color:#fff}
.mh-sep{opacity:.4;margin:0 .55rem}
.mh-top-right{display:flex;align-items:center;gap:1.1rem}

/* 5) Main bar */
.mh-main .mh-wrap{padding-top:1.05rem;padding-bottom:1.05rem;transition:padding .35s ease}
.mh-logo{display:flex;align-items:center}
.mh-logo img,.mh-logo .custom-logo{max-height:52px;width:auto;transition:filter .35s ease}
.mh-logo-text{font-family:var(--mh-fd);font-weight:700;font-size:1.3rem;color:#fff;white-space:nowrap;transition:color .35s ease}
.mh-logo-text b{color:var(--mh-ochre);font-weight:700}

/* nav */
.mh-nav{display:flex;align-items:center;gap:1.9rem}
.mh-nav ul.mh-menu{display:flex;align-items:center;gap:1.9rem;list-style:none;margin:0;padding:0}
.mh-nav ul.mh-menu li{position:relative}
.mh-nav ul.mh-menu a{color:#fff;font-weight:500;position:relative;transition:color .35s ease;display:inline-block}
.mh-nav ul.mh-menu > li > a::after{content:"";position:absolute;left:0;right:100%;bottom:-6px;height:2px;background:var(--mh-ochre);transition:right .25s ease}
.mh-nav ul.mh-menu > li > a:hover::after{right:0}

/* dropdown sub-menus */
.mh-nav ul.mh-menu .sub-menu{position:absolute;top:calc(100% + 14px);left:0;min-width:210px;
	background:#fff;border-radius:12px;box-shadow:0 18px 40px rgba(19,48,42,.16);
	padding:.5rem;list-style:none;margin:0;opacity:0;visibility:hidden;transform:translateY(8px);
	transition:opacity .2s ease,transform .2s ease,visibility .2s;z-index:5}
.mh-nav ul.mh-menu li:hover > .sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.mh-nav ul.mh-menu .sub-menu a{color:var(--mh-ink)!important;display:block;padding:.55rem .8rem;border-radius:8px;font-weight:500}
.mh-nav ul.mh-menu .sub-menu a::after{display:none}
.mh-nav ul.mh-menu .sub-menu a:hover{background:#FBF7EF;color:var(--mh-teal)!important}
.mh-nav ul.mh-menu .menu-item-has-children > a::before{content:"\25BE";font-size:.7em;margin-left:.35em;opacity:.8}

/* CTA */
.mh-cta{background:var(--mh-ochre)!important;color:#fff!important;font-weight:700;
	padding:.6rem 1.3rem;border-radius:999px;
	transition:transform .2s ease,filter .2s ease}
.mh-cta::after{display:none!important}
.mh-cta:hover{transform:translateY(-2px);filter:brightness(1.05)}

/* burger */
.mh-burger{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:6px}
.mh-burger span{width:26px;height:2px;background:#fff;transition:background .35s ease}

/* 6) SOLID (scrolled, or non-hero pages) */
.mh.scrolled{background:rgba(255,255,255,.72);
	-webkit-backdrop-filter:saturate(140%) blur(14px);
	backdrop-filter:saturate(140%) blur(14px);
	box-shadow:0 6px 24px rgba(19,48,42,.08);
	border-bottom:1px solid rgba(255,255,255,.45)}
.mh.scrolled .mh-top{max-height:0;opacity:0;border-color:transparent}
.mh.scrolled .mh-main .mh-wrap{padding-top:.7rem;padding-bottom:.7rem}
.mh.scrolled .mh-logo-text{color:var(--mh-teal)}
.mh.scrolled .mh-logo .custom-logo{filter:none}
.mh.scrolled .mh-nav ul.mh-menu a{color:var(--mh-ink)}
.mh.scrolled .mh-nav ul.mh-menu a:hover{color:var(--mh-teal)}
.mh.scrolled .mh-burger span{background:var(--mh-ink)}

/* 7) TRANSPARENT (top of hero pages): whiten an image logo for contrast */
body.m-has-hero .mh:not(.scrolled) .mh-logo .custom-logo{filter:brightness(0) invert(1)}

/* subtle shade behind the transparent header so nav/contact text stays readable */
body.m-has-hero .mh:not(.scrolled)::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,30,26,.55),rgba(8,30,26,.18) 65%,rgba(8,30,26,0));pointer-events:none;z-index:-1}

/* 8) Keep page content clear of the fixed header */
body.m-no-hero{padding-top:var(--mh-h,116px)}
body.m-has-hero .t2-heroin{padding-top:calc(var(--mh-h,124px) + 1.6rem) !important}
body.m-has-hero .arch-heroin{padding-top:calc(var(--mh-h,124px) + 1.6rem) !important}

/* 9) Mobile */
@media(max-width:880px){
	.mh-top{display:none}
	.mh-nav{position:absolute;top:100%;right:24px;left:24px;flex-direction:column;align-items:stretch;
		gap:0;background:#fff;border-radius:14px;box-shadow:0 18px 40px rgba(19,48,42,.16);
		padding:.6rem;transform-origin:top;transform:scaleY(.6);opacity:0;visibility:hidden;
		transition:transform .25s ease,opacity .25s ease,visibility .25s}
	.mh-nav.open{transform:scaleY(1);opacity:1;visibility:visible}
	.mh-nav ul.mh-menu{flex-direction:column;align-items:stretch;gap:0;width:100%}
	.mh-nav ul.mh-menu a{color:var(--mh-ink)!important;padding:.7rem .8rem;border-radius:8px}
	.mh-nav ul.mh-menu a::after{display:none}
	.mh-nav ul.mh-menu .sub-menu{position:static;opacity:1;visibility:visible;transform:none;
		box-shadow:none;padding:0 0 0 .8rem;min-width:0}
	.mh-cta{margin:.5rem .8rem;text-align:center}
	.mh-burger{display:flex}
	.mh.scrolled .mh-burger span,.mh-burger span{background:var(--mh-ink)}
	body.m-no-hero{padding-top:var(--mh-h,70px)}
}
