/* Digital QMS refresh (Nov 2026): one font family, aligned logo, calmer menu.
   Loaded last on every page, so it wins over older styles. */
:root{--dq-font:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
body,button,input,select,textarea,.btn,header .links,header .links a,.solution-trigger,h1,h2,h3,h4,h5,h6{font-family:var(--dq-font)!important}
h1,h2{letter-spacing:-.02em}

/* Logo: sit on the same left edge as the page content */
header .brand-logo{justify-content:flex-start!important;padding:3px 0!important;width:200px!important;flex-basis:200px!important}
header .brand-logo img{object-position:left center!important;margin-left:-5px!important}

/* Menu: lighter weight, even spacing, centred with the logo */
header nav,header nav.wrap{gap:20px!important}
header .links{gap:2px!important;padding:5px!important;font-size:15px!important;font-weight:600!important}
header .links>a:not(.btn),header .solution-menu>.solution-trigger{padding:9px 14px!important;font-size:15px!important;font-weight:600!important;line-height:1.2!important;color:#0b2144}
header .links>a.active{font-weight:700!important}
header .links .btn{font-size:15px!important;font-weight:700!important;min-height:42px!important}
@media(min-width:1101px) and (max-width:1280px){header .links>a:not(.btn),header .solution-menu>.solution-trigger{padding:9px 10px!important;font-size:14px!important}}

/* Floating email / WhatsApp / assistant buttons: smaller so they never cover content */
@media(min-width:601px){
 .ad-assist-launch,.whatsapp-launch,.enquiry-launch{width:50px!important;height:50px!important;right:18px!important}
 .ad-assist-launch{bottom:20px!important;font-size:19px!important}
 .whatsapp-launch{bottom:80px!important}.whatsapp-launch svg{width:24px!important;height:24px!important}
 .enquiry-launch{bottom:140px!important;font-size:17px!important}
}
@media(max-width:600px){
 .ad-assist-launch,.whatsapp-launch,.enquiry-launch{width:44px!important;height:44px!important;right:12px!important}
 .ad-assist-launch{bottom:14px!important;font-size:17px!important}
 .whatsapp-launch{bottom:66px!important}.whatsapp-launch svg{width:22px!important;height:22px!important}
 .enquiry-launch{bottom:118px!important;font-size:15px!important}
}

/* Module page hero photos */
.hero-visual{isolation:isolate}
.hero-visual .hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.hero-visual:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(7,27,61,.05) 30%,rgba(7,27,61,.88) 100%)}
.hero-visual:before{z-index:0}
.hero-visual>.hero-chip{z-index:1}.hero-visual>.hero-mark{position:relative;z-index:1}

/* ===== Site polish (Nov 2026): consistent headings, aligned sections, motion ===== */
/* Section headings: one size and rhythm everywhere */
main>section:not(.dq3) h2{font-size:clamp(30px,3.1vw,44px)!important;line-height:1.1!important;letter-spacing:-.025em}
.head,.portfolio-head,.manual-head,.alliance-head,.testimonial-head{align-items:end!important;column-gap:56px!important}
.head>p,.portfolio-head>p,.manual-head>p,.alliance-head>p{margin:0 0 6px!important;max-width:54ch}
.kicker{letter-spacing:.12em}

/* Module cards: same top line, equal height, livelier hover */
.portfolio-grid{align-items:stretch}
.portfolio-card,.portfolio-card.featured{transform:none;position:relative;overflow:hidden;height:100%}
.portfolio-card:before{content:"";position:absolute;left:0;top:0;height:3px;width:100%;background:linear-gradient(90deg,#1268e8,#55b7ff);transform:scaleX(0);transform-origin:left;transition:transform .35s ease}
.portfolio-card:hover{transform:translateY(-6px)!important;box-shadow:0 24px 50px #0b39741f!important}
.portfolio-card:hover:before{transform:scaleX(1)}
.portfolio-card.featured:before{background:linear-gradient(90deg,#55b7ff,#fff)}
.portfolio-card a{transition:color .2s,letter-spacing .2s}
.portfolio-card:hover a{color:#1268e8}
.portfolio-card.featured:hover a{color:#fff}
.portfolio-card .portfolio-no{display:inline-grid;place-items:center;width:34px;height:26px;border-radius:8px;background:#eaf2ff}
.portfolio-card.featured .portfolio-no{background:#ffffff22}
.portfolio-card h3{margin-top:20px!important}

/* Company overview: straight frame, photo and values panel aligned */
.overview-media:before{transform:none!important}
.overview-grid{align-items:center!important}
.overview-highlights{align-items:stretch}
.overview-card{height:100%}

/* CTA band: breathing room after the dark process section */
.process+.cta{padding-top:72px!important}
.cta-box{align-items:center}

/* Partners: five equal cards */
@media(min-width:1101px){.alliance-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
.alliance-card{height:100%;transition:transform .25s,box-shadow .25s}
.alliance-card:hover{transform:translateY(-5px);box-shadow:0 20px 44px #0b39741c}

/* Steps, compare and testimonial cards: gentle hover */
.step,.compare-card,.testimonial-card,.overview-card{transition:transform .25s,box-shadow .25s}
.step:hover,.testimonial-card:hover,.overview-card:hover{transform:translateY(-4px)}

/* Scroll reveal (only when JS is running; respects reduced motion) */
.dq-js .dq-reveal{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .8s cubic-bezier(.2,.7,.2,1);transition-delay:var(--dq-d,0s)}
.dq-js .dq-reveal.is-in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.dq-js .dq-reveal{opacity:1;transform:none;transition:none}}

/* Banner: keep floating cards and site buttons clear of each other */
.dq3-toast--b{top:auto!important;bottom:70px;right:-24px}
.dq3-toast--a{bottom:auto!important;top:46%;left:-44px}
@media(min-width:981px) and (max-width:1440px){.dq3-stage{margin-right:56px}.dq3 .dq-nav{margin-right:60px}}
@media(min-width:981px) and (max-height:640px){.dq3-toast{padding:8px 11px;font-size:11px}.dq3-toast b{width:26px;height:26px}.dq3-toast strong{font-size:11.5px}}
@media(min-width:981px) and (max-height:700px){.dq3-toast--a{display:none}}
@media(min-width:981px) and (min-height:701px){.dq3-toast--a{top:auto!important;bottom:-18px!important;left:-36px}}

/* ===== Header menu v2: clean bar, underline links, feature dropdown ===== */
@media(min-width:1101px){
 header .links{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;gap:6px!important}
 header .links>a:not(.btn),header .solution-menu>.solution-trigger{position:relative;padding:10px 12px!important;border-radius:8px!important;background:none!important;box-shadow:none!important;color:#0b2144!important;font-size:15px!important;font-weight:600!important}
 header .links>a:not(.btn):after,header .solution-menu>.solution-trigger:before{content:"";position:absolute;left:12px;right:12px;bottom:3px;height:2px;border-radius:2px;background:#1268e8;transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
 header .links>a:not(.btn):hover,header .solution-menu>.solution-trigger:hover,header .solution-menu.open>.solution-trigger{color:#1268e8!important}
 header .links>a:not(.btn):hover:after,header .links>a.active:after,header .solution-menu>.solution-trigger.active:before,header .solution-menu.open>.solution-trigger:before{transform:scaleX(1)}
 header .links>a.active,header .solution-menu>.solution-trigger.active{color:#1268e8!important;font-weight:700!important}
 header .links .btn{margin-left:14px!important;min-height:44px!important;padding:6px 8px 6px 20px!important;font-size:15px!important}
 header nav,header nav.wrap{transition:height .25s ease,min-height .25s ease}
 header.dq-scrolled nav,header.dq-scrolled nav.wrap{height:60px!important;min-height:60px!important}
 header.dq-scrolled .brand-logo{height:52px!important}
 header .qms-solutions-menu.has-feature{width:min(860px,calc(100vw - 36px))!important;max-width:860px!important;display:grid;grid-template-columns:230px 1fr;column-gap:18px;padding:14px!important}
 header .qms-solutions-menu.has-feature>*:not(.qms-feature){grid-column:2}
 header .qms-solutions-menu.has-feature .qms-feature{grid-column:1;grid-row:1 / span 3}
}
header.dq-scrolled{box-shadow:0 10px 30px rgba(7,27,61,.12)!important}
.qms-feature{position:relative;display:flex;align-items:flex-end;min-height:300px;border-radius:14px;overflow:hidden;color:#fff!important;text-decoration:none;background:#071b3d}
.qms-feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.qms-feature:hover img{transform:scale(1.05)}
.qms-feature:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,27,61,.1) 20%,rgba(7,27,61,.92))}
.qms-feature span{position:relative;z-index:1;padding:18px}
.qms-feature small{display:block;font-size:10.5px;font-weight:800;letter-spacing:.1em;color:#9cc8ff;text-transform:uppercase}
.qms-feature strong{display:block;font-size:17px;line-height:1.3;margin:6px 0 10px}
.qms-feature em{font-style:normal;font-size:13px;font-weight:700;color:#fff;border-bottom:2px solid #55b7ff;padding-bottom:2px}
@media(max-width:1100px){.qms-feature{display:none}}

/* ===== Typography system: one font, one scale, every page ===== */
:root{--t-h1:clamp(34px,4vw,52px);--t-h2:clamp(28px,3vw,42px);--t-h3:20px;--t-lead:18px;--t-body:16px;--t-card:15px;--t-kicker:13px}
body *:not(svg):not(svg *):not(code):not(pre){font-family:var(--dq-font)!important}
main>section:not(.dq3) h1{font-size:var(--t-h1)!important;font-weight:800!important;line-height:1.08!important;letter-spacing:-.025em!important}
main>section:not(.dq3) h2{font-size:var(--t-h2)!important;font-weight:800!important;line-height:1.12!important;letter-spacing:-.022em!important}
main>section:not(.dq3) h3{font-size:var(--t-h3)!important;font-weight:700!important;line-height:1.3!important;letter-spacing:-.01em!important}
main>section:not(.dq3) p,main>section:not(.dq3) li{font-size:var(--t-body);line-height:1.65}
main>section:not(.dq3) article p,main>section:not(.dq3) article li{font-size:var(--t-card);line-height:1.6}
.head>p,.portfolio-head>p,.manual-head>p,.alliance-head>p,.section-head>p,.overview-copy>p,.mace-grid>div>p,.testimonial-intro>p,.product-hero p{font-size:var(--t-lead)!important;line-height:1.65!important}
.kicker,.compare-label,.alliance-type,.footer-kicker,.portfolio-family-title,.hero-chip{font-size:var(--t-kicker)!important;font-weight:800!important;letter-spacing:.12em!important;text-transform:uppercase}
main .btn,.dqx-cta,.final-cta .btn{font-size:15px!important;font-weight:700!important}
header .links>a,header .solution-trigger{font-size:15px!important}
footer p,footer li,footer a{font-size:15px}
footer h2,footer h3,footer h4{font-weight:700!important}
/* exceptions that need their own size */
.dqx .dqx-ba p,.dqx .dqx-feats li{font-size:14.5px}
.dqx .dqx-row-t small{font-size:13px}
.dqm .dqm-list li{font-size:inherit}
.hero-mark b{font-weight:800!important}

/* ===== Demo / enquiry popup ===== */
.dqe-lock,.dqe-lock body{overflow:hidden}
.dqe{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:16px;font-family:var(--dq-font)}
.dqe[hidden]{display:none}
.dqe-bg{position:absolute;inset:0;background:#030d22b3;backdrop-filter:blur(4px);animation:dqeF .25s ease}
.dqe-card{position:relative;width:min(880px,100%);max-height:calc(100vh - 32px);overflow:auto;display:grid;grid-template-columns:280px 1fr;background:#fff;border-radius:22px;box-shadow:0 40px 100px #00081c80;animation:dqeU .3s ease}
@keyframes dqeF{from{opacity:0}}@keyframes dqeU{from{opacity:0;transform:translateY(16px) scale(.98)}}
.dqe-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border-radius:10px;border:0;background:#eef3fa;color:#0b2144;font-size:22px;line-height:1;cursor:pointer;z-index:2}
.dqe-side{background:linear-gradient(160deg,#061936,#0d3170);color:#cfdcf3;padding:30px 26px;border-radius:22px 0 0 22px}
.dqe-side img{background:#fff;border-radius:10px;padding:6px 10px;height:auto;margin-bottom:26px}
.dqe-side h3{color:#fff;font-size:17px;margin:0 0 12px}
.dqe-side ol{margin:0 0 24px;padding-left:18px;display:grid;gap:10px;font-size:14px;line-height:1.5}
.dqe-side p{font-size:13.5px;margin:0}.dqe-side a{color:#55b7ff;font-weight:700;font-size:16px;text-decoration:none}
.dqe-form,.dqe-done{padding:30px 30px 24px}
.dqe-form h2,.dqe-done h2{margin:0 0 4px;font-size:24px;color:#0b2144;font-weight:800}
.dqe-sub{margin:0 0 18px;color:#5a6b85;font-size:14.5px}
.dqe-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.dqe-grid label{display:grid;gap:6px;font-size:13px;font-weight:700;color:#0b2144}
.dqe-grid label.full{grid-column:1/-1}
.dqe-grid input,.dqe-grid select,.dqe-grid textarea{font:inherit;font-size:14.5px;font-weight:500;padding:11px 12px;border:1px solid #d5dfee;border-radius:10px;background:#f8fbff;color:#0b2144;width:100%;box-sizing:border-box}
.dqe-grid input:focus,.dqe-grid select:focus,.dqe-grid textarea:focus{outline:2px solid #1268e8;outline-offset:0;border-color:#1268e8;background:#fff}
.dqe-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.dqe-err{min-height:0;margin:12px 0 0;color:#c0362c;font-size:13.5px;font-weight:600}.dqe-err:empty{display:none}
.dqe-err a{color:#1268e8}
.dqe-send{margin-top:16px;width:100%;padding:14px;border:0;border-radius:12px;background:#1268e8;color:#fff;font:inherit;font-weight:700;font-size:15.5px;cursor:pointer;box-shadow:0 12px 26px #1268e855}
.dqe-send:disabled{opacity:.7;cursor:wait}
.dqe-note{margin:10px 0 0;font-size:12px;color:#8a98ad;text-align:center}
.dqe-done{text-align:center;display:grid;align-content:center;justify-items:center}
.dqe-done[hidden],.dqe-form[hidden]{display:none}
.dqe-tick{width:64px;height:64px;border-radius:50%;background:#e4f6ec;color:#14a05a;display:grid;place-items:center;font-size:30px;font-weight:800;margin-bottom:14px}
.dqe-done p{color:#5a6b85;max-width:340px}
.dqe-done .dqe-send{width:auto;padding:12px 34px}
@media (max-width:760px){.dqe-card{grid-template-columns:1fr}.dqe-side{display:none}.dqe-grid{grid-template-columns:1fr}.dqe-form,.dqe-done{padding:24px 20px 20px}}

/* ===== Page hero scale matched to the homepage banner (all pages) ===== */
:root{--t-h1:clamp(26px,min(3.2vw,6.4vh),50px)}
html body main>section:not(.dq3) h1{line-height:1.08!important;letter-spacing:-.03em!important}
.page-hero>.wrap>div>p,.page-hero p.lead,.industry-hero p,.faq-hero p,.family-hero p,.career-hero p,.product-hero p[data-intro]{font-size:clamp(15px,min(1.2vw,2.6vh),18px)!important}
/* Mega menu: compact so 8 modules fit one screen */
.qms-menu-item{padding-top:9px!important;padding-bottom:9px!important}
@media (min-width:1101px){.qms-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (min-width:1101px) and (max-width:1279px){header .qms-solutions-menu .qms-feature{display:none!important}header .qms-solutions-menu.has-feature{grid-template-columns:1fr!important;width:min(900px,calc(100vw - 36px))!important;max-width:900px!important}header .qms-solutions-menu.has-feature>*{grid-column:1!important}}
@media (min-width:1280px){header .qms-solutions-menu.has-feature{width:min(1150px,calc(100vw - 36px))!important;max-width:1150px!important}}

/* ===== Mobile polish (all pages) ===== */
@media (max-width:700px){
 .ad-assist-launch{right:10px!important;bottom:12px!important;width:44px!important;height:44px!important;font-size:17px!important}
 .whatsapp-launch,.enquiry-launch{right:10px!important;width:44px!important;height:44px!important}
 .whatsapp-launch{bottom:62px!important}.enquiry-launch{bottom:112px!important;font-size:16px!important}
 .whatsapp-launch svg{width:22px!important;height:22px!important}
 .footer-main ul{display:grid!important;grid-template-columns:1fr 1fr;column-gap:16px}
 /* module + page heroes */
 .mx-hero .mx-actions{flex-direction:column;align-items:stretch}
 .mx-hero .mx-btn{justify-content:center}
 .mx-visual{padding:14px 0 0!important}
 .mx-photo{aspect-ratio:4/3!important;height:auto!important;border-radius:18px}
 .mx-float{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:auto!important;margin:-56px 14px 0;animation:none}
 .mx-float--b{display:none}
 .mx-trust{gap:10px}.mx-trust small{width:100%}
 /* module strip: one scrollable row */
 .mx-strip .wrap{flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-top:12px;padding-bottom:12px}
 .mx-strip .wrap::-webkit-scrollbar{display:none}
 .mx-strip a{flex:0 0 auto}.mx-strip small{flex:0 0 auto}
 .mx-ba-row>div{padding:14px 16px}
 .ct-topics{grid-template-columns:1fr 1fr!important;gap:10px!important}
 .ct-topic{padding:16px}.ct-topic small{display:none}.ct-topic .mx-ic{width:38px;height:38px;margin-bottom:4px}.ct-topic strong{font-size:15px}
}
body:has(header .links.open) .whatsapp-launch,body:has(header .links.open) .enquiry-launch,body:has(header .links.open) .ad-assist-launch{opacity:0;pointer-events:none}

/* Popup form: not affected by page form grids */
.dqe .dqe-form{display:block!important;grid-template-columns:none!important;gap:0!important}
.dqe .dqe-form>*{grid-column:auto!important}
.dqe .dqe-grid{display:grid!important}
@media (max-width:760px){.dqe .dqe-grid{grid-template-columns:1fr!important}}
@media (min-width:761px){.dqe .dqe-grid{grid-template-columns:1fr 1fr!important}}
.dqe .dqe-grid textarea{min-height:64px!important;height:72px!important}
.dqe .dqe-send{width:100%!important;height:auto!important;min-height:0!important}
@media (max-height:700px){.dqe .dqe-form{padding:22px 26px 16px}.dqe .dqe-sub{margin-bottom:12px}.dqe .dqe-grid{gap:8px 14px!important}.dqe .dqe-grid input,.dqe .dqe-grid select{padding:9px 12px}.dqe .dqe-send{margin-top:12px;padding:12px}}
