/* Brand: approved navy / emerald / gold. Original WordPress SVGs, no resized WebP. */
:root{--matsh-navy:#061e3d;--matsh-emerald:#005641;--matsh-gold:#d6a349}
#masthead .custom-logo-link,#masthead .matsh-original-logo,#masthead .site-branding a.custom-logo-link{display:flex!important;align-items:center!important;min-width:230px!important;max-width:300px!important;min-height:72px!important;flex-shrink:0!important;overflow:visible!important;padding:4px 0!important}
#masthead img.custom-logo,#masthead img.matsh-approved-logo,#masthead img.matsh-original-logo-img,.site-header img.custom-logo{content:var(--matsh-approved-site-logo)!important;width:268px!important;max-width:268px!important;min-width:240px!important;height:68px!important;max-height:68px!important;object-fit:contain!important;object-position:center!important;filter:none!important;image-rendering:auto!important;transform:none!important;opacity:1!important}
#masthead .site-branding,#masthead .site-logo{min-width:240px!important;overflow:visible!important}
#colophon img.matsh-original-footer-logo,.site-footer img.matsh-original-footer-logo,footer img.matsh-original-footer-logo{content:var(--matsh-approved-site-logo)!important;max-width:250px!important;width:min(250px,100%)!important;height:auto!important;max-height:100px!important;object-fit:contain!important;object-position:left center!important;image-rendering:auto!important;filter:none!important;opacity:1!important}
#colophon img[src*="logo" i],.site-footer img[src*="logo" i]{content:var(--matsh-approved-site-logo)!important;max-width:250px!important;max-height:105px!important;width:auto!important;height:auto!important;object-fit:contain!important}
@media(max-width:800px){#masthead .custom-logo-link,#masthead .matsh-original-logo{min-width:168px!important;min-height:54px!important;max-width:210px!important}#masthead img.custom-logo,#masthead img.matsh-approved-logo,#masthead img.matsh-original-logo-img{width:190px!important;min-width:165px!important;max-width:190px!important;height:50px!important;max-height:55px!important}}
/* Editorial homepage, preserve people photo and clear hero typography. */
body.mhn-native .mhn-hero{background:#061e3d!important}
body.mhn-native .mhn-hero-img{inset:0!important;width:100%!important;object-fit:cover!important;object-position:center 43%!important}
body.mhn-native .mhn-hero:before{inset:0!important;clip-path:none!important;background:linear-gradient(96deg,#061e3d 0%,#061e3d 22%,rgba(0,86,65,.96) 41%,rgba(6,30,61,.64) 59%,rgba(6,30,61,.06) 81%)!important}
body.mhn-native .mhn-main[dir=rtl] .mhn-hero:before{background:linear-gradient(264deg,#061e3d 0%,#061e3d 24%,rgba(0,86,65,.95) 43%,rgba(6,30,61,.55) 61%,rgba(6,30,61,.04) 83%)!important}
body.mhn-native .mhn-hero:after{content:""!important;display:block!important;position:absolute!important;inset:auto 0 0!important;height:5px!important;transform:none!important;background:linear-gradient(90deg,#d6a349,#005641,#d6a349)!important;z-index:2!important}
/* Inner pages get actual editorial photographs with dark foreground-safe overlay. */
body.matsh-inner-hero-enhanced{--matsh-inner-photo:var(--matsh-inner-hero-general)}
body.matsh-about-enhanced{--matsh-inner-photo:var(--matsh-inner-hero-professional)}
body.matsh-services-enhanced{--matsh-inner-photo:var(--matsh-inner-hero-professional)}
body.matsh-contact-enhanced{--matsh-inner-photo:var(--matsh-inner-hero-women)}
body.matsh-inner-hero-enhanced main>section:first-of-type:has(h1),body.matsh-inner-hero-enhanced .phero,body.matsh-inner-hero-enhanced .page-hero,body.matsh-inner-hero-enhanced .schedule-hero,body.matsh-inner-hero-enhanced .calhero,body.matsh-inner-hero-enhanced .inner-hero{
 background-image:linear-gradient(94deg,rgba(6,30,61,.99) 0%,rgba(0,86,65,.91) 47%,rgba(6,30,61,.38) 100%),var(--matsh-inner-photo)!important;
 background-size:cover!important;background-position:center!important;position:relative;isolation:isolate;min-height:235px;}
body.matsh-site-ar.matsh-inner-hero-enhanced main>section:first-of-type:has(h1),body.matsh-site-ar.matsh-inner-hero-enhanced .phero{background-image:linear-gradient(270deg,rgba(6,30,61,.99),rgba(0,86,65,.88) 50%,rgba(6,30,61,.30)),var(--matsh-inner-photo)!important}
body.matsh-inner-hero-enhanced main>section:first-of-type:has(h1) h1,body.matsh-inner-hero-enhanced .phero h1,body.matsh-inner-hero-enhanced .page-hero h1{color:#fff!important}
@media(max-width:720px){body.matsh-inner-hero-enhanced main>section:first-of-type:has(h1){min-height:220px;background-position:center!important}body.mhn-native .mhn-hero:before,body.mhn-native .mhn-main[dir=rtl] .mhn-hero:before{background:linear-gradient(155deg,rgba(6,30,61,.96),rgba(0,86,65,.88))!important}}
/* Navigation: compact, scannable category menu, natural wrapping, no big right-hand blue tiles. */
@media(min-width:1000px){
#masthead .header-navigation .sub-menu:has(>li:nth-child(7)),#masthead .main-navigation .sub-menu:has(>li:nth-child(7)),#masthead ul.menu .sub-menu:has(>li:nth-child(7)){
width:min(920px,calc(100vw - 48px))!important;max-height:72vh!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;column-gap:13px!important;row-gap:5px!important;border:1px solid #e1e9e7!important;border-top:4px solid #d6a349!important;border-radius:12px!important;overflow-y:auto!important;overflow-x:hidden!important;box-shadow:0 20px 50px #061e3d30!important;padding:18px!important;background:#fff!important}
#masthead .header-navigation .sub-menu:has(>li:nth-child(7)) li,#masthead .main-navigation .sub-menu:has(>li:nth-child(7)) li{margin:0!important;padding:0!important;border:0!important;float:none!important;background:none!important}
#masthead .header-navigation .sub-menu:has(>li:nth-child(7)) a,#masthead .main-navigation .sub-menu:has(>li:nth-child(7)) a{display:block!important;border:0!important;border-radius:7px!important;padding:10px 12px!important;background:#f5f9f7!important;color:#092b47!important;font-size:13px!important;font-weight:650!important;line-height:1.4!important;min-height:42px!important;white-space:normal!important}
#masthead .header-navigation .sub-menu a:hover,#masthead .main-navigation .sub-menu a:hover{background:#e4f1eb!important;color:#005641!important}
}

/* Insert original localized wordmark into otherwise text-only WordPress footer. */
#colophon .matsh-footer-identity,.site-footer .matsh-footer-identity{display:flex;justify-content:center;align-items:center;min-height:96px;padding:14px 12px 8px;background:#fff}
#colophon .matsh-footer-identity a{display:flex;align-items:center;justify-content:center;min-height:65px;text-decoration:none}
#colophon .matsh-footer-identity img{display:block!important;content:var(--matsh-approved-site-logo)!important;width:250px!important;max-width:80vw!important;height:70px!important;max-height:76px!important;object-fit:contain!important;image-rendering:auto!important;filter:none!important}
#colophon .footer-html-inner{text-align:center}
@media(max-width:720px){#colophon .matsh-footer-identity{min-height:76px;padding:12px 8px}#colophon .matsh-footer-identity img{width:195px!important;height:54px!important}}
/* 2.3.0: real inner-page hero selectors discovered on live English + Arabic DOM.
   Kadence page hero for About/Services; legacy gradient DIV for Upcoming/Contact. */
body.matsh-inner-hero-enhanced .entry-hero.page-hero-section,
body.matsh-inner-hero-enhanced .entry-hero.page-hero-section .entry-hero-container-inner,
body.matsh-inner-hero-enhanced main > div:first-child[style*="linear-gradient"]:has(h1),
body.matsh-inner-hero-enhanced main > div:first-child[style*="background"]:has(> .mw > h1){
  background-image:linear-gradient(90deg,rgba(6,30,61,.98) 0%,rgba(0,86,65,.92) 45%,rgba(6,30,61,.45) 79%,rgba(6,30,61,.15) 100%),var(--matsh-inner-photo)!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  color:#fff!important;
  min-height:245px!important;
  isolation:isolate;
  position:relative;
}
body.matsh-site-ar.matsh-inner-hero-enhanced .entry-hero.page-hero-section,
body.matsh-site-ar.matsh-inner-hero-enhanced .entry-hero.page-hero-section .entry-hero-container-inner,
body.matsh-site-ar.matsh-inner-hero-enhanced main > div:first-child[style*="linear-gradient"]:has(h1),
body.matsh-site-ar.matsh-inner-hero-enhanced main > div:first-child[style*="background"]:has(> .mw > h1){
  background-image:linear-gradient(270deg,rgba(6,30,61,.98) 0%,rgba(0,86,65,.9) 47%,rgba(6,30,61,.38) 87%,rgba(6,30,61,.16) 100%),var(--matsh-inner-photo)!important;
}
body.matsh-inner-hero-enhanced .entry-hero.page-hero-section .hero-section-overlay{background:transparent!important;opacity:0!important}
body.matsh-inner-hero-enhanced .entry-hero.page-hero-section .entry-header,
body.matsh-inner-hero-enhanced .entry-hero.page-hero-section .entry-title,
body.matsh-inner-hero-enhanced main > div:first-child[style*="linear-gradient"]:has(h1) h1{color:white!important;text-shadow:0 1px 8px rgba(0,0,0,.14)}
body.matsh-inner-hero-enhanced main > div:first-child[style*="linear-gradient"]:has(h1) .mw{max-width:1190px;margin:auto}
body.matsh-inner-hero-enhanced main > div:first-child[style*="linear-gradient"]:has(h1) p{color:#f0f5f5!important;max-width:650px!important}
@media(max-width:720px){
  body.matsh-inner-hero-enhanced .entry-hero.page-hero-section,
  body.matsh-inner-hero-enhanced .entry-hero.page-hero-section .entry-hero-container-inner,
  body.matsh-inner-hero-enhanced main > div:first-child[style*="linear-gradient"]:has(h1){min-height:215px!important;background-position:center!important}
}

/* Version 2.4: ensure crisp localised SVG wins over every legacy raster image rule. */
#masthead .site-branding a.brand img.custom-logo,
#masthead .site-branding a img.custom-logo,
#masthead .site-logo a img.custom-logo,
#masthead .site-branding a.brand img.matsh-approved-logo{
  content:var(--matsh-approved-site-logo)!important;
  image-rendering:auto!important;
  filter:none!important;
  transform:none!important;
  object-fit:contain!important;
}
