/* Shared motion, theme and tools; intentionally scoped to MP Tech pages. */
body.mptech-custom-page { --mp-gold: #ccb775; }
body.mptech-custom-page .mptech-global-tools {display:flex;align-items:center;gap:8px;direction:ltr}
body.mptech-custom-page #language, body.mptech-custom-page #theme {min-width:39px;min-height:37px;border:1px solid #444;border-radius:30px;padding:5px 12px;background:#222;color:#f5f5f5;cursor:pointer;font:600 12px/1.6 Arial,sans-serif}
body.mptech-custom-page #language:hover,body.mptech-custom-page #theme:hover {border-color:#ccb775;color:#ccb775}
body.mptech-custom-page [data-mp-reveal] {transition:opacity .75s ease,transform .75s cubic-bezier(.2,.7,.2,1)}
body.mptech-custom-page.mptech-motion-ready [data-mp-reveal]:not(.mptech-visible) {opacity:0;transform:translateY(24px)}
body.mptech-custom-page [data-mp-reveal].mptech-visible {opacity:1;transform:none}
body.mptech-custom-page .service,body.mptech-custom-page .service-card,body.mptech-custom-page .expertise-card {transition:transform .3s ease,border-color .3s ease,background-color .3s ease}
@media (hover:hover) {body.mptech-custom-page .service:hover,body.mptech-custom-page .service-card:hover,body.mptech-custom-page .expertise-card:hover {transform:translateY(-5px);border-color:#ccb775}}
body.mptech-custom-page.light {--bg:#f4f4f4;--panel:#fff;--card:#fff;--text:#242424;--muted:#555;--border:#ddd;--line:#ddd;color:#242424;background:#f4f4f4;color-scheme:light}
body.mptech-custom-page.light .hero {background-color:#e8e6e0;position:relative}
body.mptech-custom-page.light .hero:before {content:"";position:absolute;inset:0;background:rgba(255,255,255,.79);pointer-events:none}
body.mptech-custom-page.light .hero > * {position:relative;z-index:1}
body.mptech-custom-page.light h1,body.mptech-custom-page.light h2,body.mptech-custom-page.light h3,body.mptech-custom-page.light h4,body.mptech-custom-page.light p,body.mptech-custom-page.light label,body.mptech-custom-page.light a:not(.pill),body.mptech-custom-page.light .header nav a {color:#252525!important;-webkit-text-fill-color:initial}
body.mptech-custom-page.light .service,body.mptech-custom-page.light .service-card,body.mptech-custom-page.light .expertise-card,body.mptech-custom-page.light .contact form,body.mptech-custom-page.light .contact-card {background:#fff;border-color:#ddd}
body.mptech-custom-page.light footer {background:#e9e9e9;color:#242424}
body.mptech-custom-page.light input,body.mptech-custom-page.light textarea,body.mptech-custom-page.light select {background:#fff;color:#222;border-color:#bbb}
body.mptech-custom-page.light #language,body.mptech-custom-page.light #theme {background:#fff;color:#222;border-color:#bbb}
body.mptech-custom-page.light .mptech-global-tools button {background:#fff;color:#222}
body.mptech-custom-page.light .contact-button,body.mptech-custom-page.light .hero-actions .pill {background:#272727;color:#fff!important}
body.mptech-custom-page.light .contact-cta {background:#f4f4f4}
body.mptech-custom-page.light .footer-bottom {border-color:#aaa}
body.mptech-custom-page[dir="ltr"] .header nav {direction:ltr}
body.mptech-custom-page[dir="ltr"] .hero-content {direction:ltr}
body.mptech-custom-page[dir="ltr"] .header {direction:ltr}
@media (prefers-reduced-motion:reduce) {body.mptech-custom-page [data-mp-reveal],body.mptech-custom-page .service,body.mptech-custom-page .service-card,body.mptech-custom-page .expertise-card {transition:none!important;transform:none!important;opacity:1!important}}
@media(max-width:999px){body.mptech-custom-page .mptech-global-tools{margin-inline-start:auto}}

/* v1.3 — Correct light mode across service catalogue, not just body */
body.mptech-custom-page.mptech-services.light .catalogue,
body.mptech-custom-page.mptech-services.light .catalogue-groups,
body.mptech-custom-page.mptech-services.light .service-group {background:#f4f4f4;color:#242424}
body.mptech-custom-page.mptech-services.light .service-card,
body.mptech-custom-page.mptech-services.light .cards {background:#fff;color:#242424;border-color:#dedede}
body.mptech-custom-page.mptech-services.light .service-card p {color:#555!important}
body.mptech-custom-page.mptech-services.light .category-label,
body.mptech-custom-page.mptech-services.light .service-card h3 {color:#202020!important;-webkit-text-fill-color:#202020}
body.mptech-custom-page.mptech-services.light .request {background:#f7f7f7;border-color:#d6d6d6;color:#5e4c1a!important;-webkit-text-fill-color:#5e4c1a}
body.mptech-custom-page.mptech-services.light .service-icon {color:#222;border-color:#ddd}
body.mptech-custom-page.mptech-services.light .catalogue-title {background:none!important;color:#202020!important;-webkit-text-fill-color:#202020!important}
body.mptech-custom-page.mptech-services.light .category-label:after {background:#bbb}
body.mptech-custom-page.light .mptech-photo-cover,
body.mptech-custom-page.light .mptech-photo-service {filter:none}
.mptech-photo-service {display:block;width:100%;height:105px;object-fit:cover;border-radius:10px;margin-bottom:10px;animation:mptech-photo-in .6s ease}
.mptech-services .service-card:has(.mptech-photo-service) {height:auto;min-height:302px}
.mptech-services .service-card:has(.mptech-photo-service) .request {margin-top:auto}
.mptech-photo-hero {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.27;pointer-events:none;z-index:0;transition:opacity .65s ease}
body.mptech-custom-page.light .mptech-photo-hero {opacity:.13}
@keyframes mptech-photo-in {from{opacity:.25}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.mptech-photo-service,.mptech-photo-hero{animation:none;transition:none}}

/* v1.4: Complete light theme for the three additional pages. */
body.mptech-extra-page.light {background:#f3f3f1!important;color:#242424!important;color-scheme:light}
body.mptech-extra-page.light .mptech-extra {--m-bg:#f3f3f1;--m-card:#fff;--m-line:#d9d9d9;--m-ink:#242424;--m-muted:#555;--m-gold:#866d32;background:#f3f3f1!important;color:#242424!important}
body.mptech-extra-page.light .mptech-extra .top,
body.mptech-extra-page.light .mptech-extra .footer {background:#fff!important;border-color:#ddd!important;color:#242424!important}
body.mptech-extra-page.light .mptech-extra .hero-extra,
body.mptech-extra-page.light .mptech-extra .section,
body.mptech-extra-page.light .mptech-extra .cta {background:#f3f3f1!important;color:#242424!important}
body.mptech-extra-page.light .mptech-extra .tile,
body.mptech-extra-page.light .mptech-extra .form-wrap,
body.mptech-extra-page.light .mptech-extra .notice {background:#fff!important;color:#242424!important;border-color:#d9d9d9!important}
body.mptech-extra-page.light .mptech-extra .top nav a,
body.mptech-extra-page.light .mptech-extra .logo,
body.mptech-extra-page.light .mptech-extra h1,
body.mptech-extra-page.light .mptech-extra h2,
body.mptech-extra-page.light .mptech-extra h3 {color:#252525!important;-webkit-text-fill-color:#252525!important}
body.mptech-extra-page.light .mptech-extra .hint,
body.mptech-extra-page.light .mptech-extra .lead,
body.mptech-extra-page.light .mptech-extra .tile p,
body.mptech-extra-page.light .mptech-extra .article-meta {color:#555!important}
body.mptech-extra-page.light .mptech-extra input,
body.mptech-extra-page.light .mptech-extra textarea,
body.mptech-extra-page.light .mptech-extra select {background:#fff!important;color:#242424!important;border-color:#bbb!important}
body.mptech-extra-page.light .mptech-extra .btn {background:#252525!important;color:#fff!important}
body.mptech-extra-page.light .mptech-extra .top nav a[aria-current],
body.mptech-extra-page.light .mptech-extra .top nav a:hover {color:#866d32!important;-webkit-text-fill-color:#866d32!important}
body.mptech-extra-page[dir=ltr] .mptech-extra {direction:ltr;text-align:left}
body.mptech-extra-page[dir=ltr] .mptech-extra .top nav {direction:ltr}
