/* MP TECH v1.8.6 | accessible bilingual typography and contrast.
   Scope exclusively to MP Tech custom pages. This file must load last. */
@font-face{font-family:"MP Cairo";src:url("home/assets/font-0.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"MP Cairo";src:url("home/assets/font-1.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"MP Cairo";src:url("home/assets/font-2.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"MP Cairo";src:url("home/assets/font-3.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"MP Poppins";src:url("home/assets/font-4.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"MP Poppins";src:url("home/assets/font-5.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"MP Poppins";src:url("home/assets/font-6.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"MP Poppins";src:url("home/assets/font-7.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
:where(body.mptech-custom-page,body.mptech-extra-page,body.mptech-service-single){--mp-font-ar:"MP Cairo",Tahoma,Arial,sans-serif;--mp-font-en:"MP Poppins",Arial,sans-serif;--mp-readable-text:#e1e1e1;--mp-readable-muted:#b9b9b9;--mp-readable-title:#f7f7f7;--mp-readable-accent:#e0c77e;--mp-readable-control:#1b1b1b;--mp-readable-control-border:#575757;font-family:var(--mp-font-ar)!important;font-size:16px;line-height:1.8;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:where(body.mptech-custom-page,body.mptech-extra-page,body.mptech-service-single):is(.light,[data-theme="light"]){--mp-readable-text:#333333;--mp-readable-muted:#515151;--mp-readable-title:#171717;--mp-readable-accent:#806222;--mp-readable-control:#ffffff;--mp-readable-control-border:#9a9a9a}
:where(body.mptech-custom-page,body.mptech-extra-page,body.mptech-service-single)[dir="ltr"]{font-family:var(--mp-font-en)!important}
:where(body.mptech-custom-page,body.mptech-extra-page,body.mptech-service-single) :is(input,textarea,select,button){font-family:inherit}
:where(body.mptech-custom-page,body.mptech-extra-page,body.mptech-service-single) :is(h1,h2,h3,h4,h5,h6){font-family:inherit;font-weight:700;line-height:1.4;text-wrap:balance}
:where(body.mptech-custom-page,body.mptech-extra-page,body.mptech-service-single) :is(p,li,label){line-height:1.85}
/* Restores visibility of the original home headline and sections after theme switching. */
body.mptech-custom-page:not(.light) .hero-content h1{color:#f7f7f7!important;-webkit-text-fill-color:#f7f7f7!important}
body.mptech-custom-page.light .hero-content h1{color:#171717!important;-webkit-text-fill-color:#171717!important}
body.mptech-custom-page:not(.light) :is(.about-copy>p,.hero-description,.service p,.service-card p,.expertise-card p,.contact aside>p,.team .person p,.footer-brand>p,.contact-card small,.contact-card p){color:var(--mp-readable-text)!important}
body.mptech-custom-page.light :is(.about-copy>p,.hero-description,.service p,.service-card p,.expertise-card p,.contact aside>p,.team .person p){color:#333333!important}
body.mptech-custom-page.light .contact form,body.mptech-custom-page.light .contact-card,body.mptech-custom-page.light .service,body.mptech-custom-page.light .service-card,body.mptech-custom-page.light .expertise-card{background-color:#ffffff!important;color:#222222!important}
body.mptech-custom-page.light :is(.contact form h3,.contact-card p,.contact-card small,.fields label,.service h3,.service-card h3,.expertise-card h3){color:#252525!important}
/* Original CSS forces muted footer text even in light mode. Ensure consistent contrast by surface. */
body.mptech-custom-page:not(.light) footer :is(p,small,li,a,.footer-column,.footer-brand>p,.footer-bottom){color:#cecece!important}
body.mptech-custom-page.light footer :is(p,small,li,a,.footer-column,.footer-brand>p,.footer-bottom){color:#343434!important}
body.mptech-custom-page.light footer :is(h3,h4,strong){color:#171717!important}
body.mptech-custom-page:not(.light) :is(.eyebrow,.section-label,.contact-label,.category-label,.quote-name,.quote-role,.project-detail,.service>a,.service-card .request){color:#d3d3d3!important}
body.mptech-custom-page.light :is(.eyebrow,.section-label,.contact-label,.category-label,.quote-name,.quote-role,.project-detail,.service>a,.service-card .request){color:#343434!important}
/* Form labels, hints and placeholders need independent contrast, not a global paragraph override. */
body.mptech-custom-page:not(.light) :is(.fields label,.contact form>p,.contact-card small,.contact aside>p){color:#d4d4d4!important}
body.mptech-custom-page.light :is(.fields label,.contact form>p,.contact-card small,.contact aside>p){color:#343434!important}
body.mptech-custom-page :is(input,textarea,select)::placeholder{color:#a0a0a0!important;opacity:1}
body.mptech-custom-page.light :is(input,textarea,select)::placeholder{color:#626262!important;opacity:1}
/* Additional pages use separate class and variables. */
body.mptech-extra-page:not(.light) .mptech-extra :is(.lead,.tile p,.hint,.section p){color:#d0d0d0!important}
body.mptech-extra-page.light .mptech-extra{--m-bg:#f4f4f4;--m-card:#fff;--m-line:#d4d4d4;--m-ink:#1b1b1b;--m-muted:#4d4d4d;background:#f4f4f4!important;color:#252525!important}
body.mptech-extra-page.light .mptech-extra :is(.tile,.form){background:#fff!important;color:#252525!important;border-color:#d4d4d4!important}
body.mptech-extra-page.light .mptech-extra :is(.lead,.tile p,.hint,.section p){color:#484848!important;-webkit-text-fill-color:#484848!important}
/* Standalone service detail colors are isolated on dark cards. */
body.mptech-service-single .mptech-detail-shell{font-family:inherit!important}
body.mptech-service-single .mptech-detail-shell :is(p,.mptech-detail-breadcrumb,.mptech-detail-description,.mptech-detail-header nav a){font-size:max(14px,1em);line-height:1.8}
body.mptech-service-single.light{--detail-ink:#1c1c1c;--detail-muted:#464646}
/* Small text: minimum readable sizes without changing layout dimensions drastically. */
:where(body.mptech-custom-page,body.mptech-extra-page,body.mptech-service-single) :is(small,.section-label,.quote-role,.footer-bottom,.footer-column,.footer-column a,.contact-card small,.contact-label,.category-label,.service-card .request,.newsletter,.newsletter small,.project-art small){font-size:max(13px,0.8125rem)!important;line-height:1.65!important}
:where(body.mptech-custom-page,body.mptech-extra-page,body.mptech-service-single) :is(.header nav a,.mptech-detail-header nav a,.top nav a){font-size:clamp(14px,0.95vw,17px)!important;font-weight:600}
:where(body.mptech-custom-page,body.mptech-extra-page,body.mptech-service-single) :is(button,a,input,select,textarea):focus-visible{outline:2px solid #b9994d!important;outline-offset:3px}
@media(max-width:767px){:where(body.mptech-custom-page,body.mptech-extra-page,body.mptech-service-single){font-size:15px;line-height:1.75}:where(body.mptech-custom-page,body.mptech-extra-page,body.mptech-service-single) :is(.hero-description,.about-copy>p,.service p,.service-card p){font-size:clamp(14px,3.7vw,17px)!important;line-height:1.85!important}}
