/* Crafts Software UI 5: corporate finish. Loads last.
   Flat solid colours only (no gradients, glows or gradient text), smaller corner radii, quieter shadows,
   one corporate blue used sparingly. Neutrals carry the page; blue marks actions and the current item. */

:root {
  --radius: 10px;
  --sh-card: 0 1px 2px rgba(13, 23, 38, .05);
  --sh-lift: 0 12px 28px -16px rgba(13, 23, 38, .28);
  --sh-float: 0 24px 48px -24px rgba(6, 12, 22, .45);
}

/* Type: calmer, tighter headlines */
h1, h2, h3, h4 { letter-spacing: -.02em; }
.eyebrow { color: var(--acc) !important; font-size: .78rem; letter-spacing: .12em; }
.eyebrow::before { width: 18px !important; height: 2px !important; border-radius: 0 !important; background: currentColor !important; }
.on-dark .eyebrow, .dark .eyebrow, .hero .eyebrow, .x-uae-copy .eyebrow { color: var(--acc-light) !important; }

/* Buttons: solid, squared-off */
.btn { border-radius: 6px !important; box-shadow: none !important; }
.btn-primary { background: var(--acc) !important; color: #fff !important; }
.btn-primary:hover { background: var(--ink) !important; color: #fff !important; transform: none !important; }
.btn-ghost { border-color: var(--line-strong) !important; }
.on-dark .btn-primary, .hero .btn-primary, .section.dark .btn-primary { background: #fff !important; color: var(--ink) !important; }
.on-dark .btn-primary:hover, .hero .btn-primary:hover, .section.dark .btn-primary:hover { background: var(--acc-light) !important; color: var(--ink) !important; }
.hero .btn-ghost, .on-dark .btn-ghost { background: transparent !important; border-color: rgba(255, 255, 255, .35) !important; color: #fff !important; }

/* Header: solid charcoal-navy, thin rule */
.topbar { background: var(--mid-2) !important; }
.site-header, .site-header.scrolled { background: var(--midnight) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: none !important; }
.site-header .brand-mark rect { fill: #fff !important; }
.site-header .brand-mark path { stroke: var(--midnight) !important; }
.site-footer .brand-mark rect { fill: #fff !important; }
.site-footer .brand-mark path { stroke: var(--midnight) !important; }
.site-header .menu-btn { background: #fff !important; color: var(--ink) !important; border-radius: 6px !important; }
.site-header .search-btn { border-radius: 6px !important; }
@media (min-width: 1041px) {
  .site-header .nav-links > a, .site-header .has-menu > a { border-radius: 0 !important; background: none !important; }
  .site-header .nav-links > a::after, .site-header .has-menu > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -19px; height: 2px; background: transparent; }
  .site-header .nav-links > a:hover::after, .site-header .has-menu:hover > a::after { background: rgba(255, 255, 255, .4); }
  .site-header .nav-links > a[aria-current="page"]::after, .site-header .has-menu > a[aria-current="page"]::after { background: #fff; }
  .site-header .has-menu:hover .menu-panel, .site-header .has-menu:focus-within .menu-panel { border-radius: 8px !important; box-shadow: var(--sh-float) !important; top: calc(100% + 18px) !important; }
  .site-header .has-menu .menu-panel::before { top: -22px !important; height: 22px !important; }
  .site-header .menu-panel a { border-radius: 6px !important; }
  .site-header .menu-panel a:not(.menu-all)::before { border-radius: 6px !important; }
  .site-header .menu-panel .menu-all { border-radius: 6px !important; background: var(--acc) !important; }
}
@media (max-width: 1040px) {
  .site-header .nav .nav-cta { border-radius: 6px !important; background: var(--acc) !important; }
  .site-header .nav-more { border-radius: 8px !important; }
  .sub-toggle, .nav-close { border-radius: 6px !important; }
  .site-header .nav .nav-links > a[aria-current="page"]::before { background: var(--acc) !important; }
}

/* Heroes: flat solid, no glow, no grid, solid headline accent */
.hero, .hero.on-dark { background: var(--midnight) !important; background-image: none !important; }
.x-hero-glow, .hero::before, .hero::after { display: none !important; }
.hero h1 .h1-accent, .hero .h1-accent { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: var(--acc-light) !important; -webkit-text-fill-color: var(--acc-light) !important; }
.hero .eyebrow, .hero.on-dark .eyebrow { background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.hero-note span::before { background: var(--acc-light) !important; }
.x-stats { border-radius: 8px !important; background: transparent !important; backdrop-filter: none !important; border-color: rgba(255, 255, 255, .14) !important; }
.x-stats li:first-child strong { color: #fff !important; }
.x-window { border-radius: 8px 8px 0 0 !important; box-shadow: 0 -1px 0 rgba(255, 255, 255, .1) !important; }
.x-window-bar i:nth-child(n) { background: #c7cdd7 !important; }
.st-card { border-radius: 8px !important; box-shadow: var(--sh-float) !important; }
.st-bars i { background: var(--acc) !important; border-radius: 2px 2px 0 0 !important; }
.st-bars i:nth-child(odd) { background: #d3d9e2 !important; }
.st-chip { background: var(--ink) !important; border-radius: 6px !important; box-shadow: var(--sh-float) !important; }
.st-chip.x-c2 { background: #fff !important; }
.st-kpi, .st-lead, .st-row, .x-side span { border-radius: 6px !important; }

/* Strips */
.x-marquee span { -webkit-text-stroke: 0 !important; color: #9aa3b2 !important; }
.x-marquee span:nth-child(3n) { color: var(--ink) !important; }
.x-marquee span::after { color: #c7cdd7 !important; content: "\2014" !important; }
.marquee::before, .marquee::after { display: none !important; }

/* Cards and tiles: flat, thin borders */
.card, .why, .ind, .ind-card, .x-ind, .x-why-item, .deliver li, .faq details, details.reveal, .x-tablist [role="tab"], .proof-grid, .sw-card { border-radius: 8px !important; box-shadow: none !important; }
.card:hover, .x-ind:hover, .ind-card:hover { transform: none !important; box-shadow: var(--sh-lift) !important; border-color: var(--ink) !important; }
.card::after, .ind::after, .x-ind::after { display: none !important; }
.shot { background: var(--pearl) !important; background-image: none !important; border-radius: 6px !important; border: 1px solid var(--line); }
.glyph, .x-ind-ico, .x-ico, .ind-card svg { border-radius: 6px !important; }
.glyph, .x-ind-ico { background: var(--pearl) !important; color: var(--acc) !important; border: 1px solid var(--line) !important; }
.tag, .tag.cat, .cat-badge { border-radius: 4px !important; }
.tag.cat { background: var(--pearl) !important; color: var(--acc) !important; }
.bento .card:nth-child(n) { background: #fff !important; color: inherit !important; }
.bento .card:nth-child(n) h3 { color: var(--ink) !important; }
.bento .card:nth-child(n) p { color: var(--body) !important; }
.bento .card:nth-child(n) .more { color: var(--acc) !important; }
.cat-chips a, .x-chips a, .mk-chips a { border-radius: 6px !important; }

/* Services: dark solid panel, tabs with a blue rule */
.x-tablist [role="tab"][aria-selected="true"] { background: #fff !important; border-color: var(--ink) !important; box-shadow: inset 4px 0 0 var(--acc) !important; transform: none !important; }
.x-tablist [role="tab"][aria-selected="true"] strong { color: var(--ink) !important; }
.x-tablist [role="tab"][aria-selected="true"] small { color: var(--muted) !important; }
.x-tablist [role="tab"][aria-selected="true"] .x-num, .x-tablist [role="tab"][aria-selected="true"] .x-tab-arrow { color: var(--acc) !important; }
.x-panel { background: var(--midnight) !important; background-image: none !important; border-radius: 8px !important; box-shadow: none !important; }
.x-panel .glyph { background: rgba(255, 255, 255, .08) !important; color: #fff !important; border-color: rgba(255, 255, 255, .16) !important; }
.x-panel p { color: var(--on-dark-dim) !important; }
.x-panel-tag { color: #fff !important; }
.x-checks li::before { background-color: var(--acc) !important; }
.x-panel .btn-primary { background: #fff !important; color: var(--ink) !important; }
.x-panel .btn-primary:hover { background: var(--acc-light) !important; }

/* Industries: two solid dark tiles */
.x-ind.big, .x-ind.big:nth-child(2) { background: var(--midnight) !important; background-image: none !important; border-radius: 8px !important; }
.x-ind.big:nth-child(2) { background: var(--acc) !important; }
.x-ind.big .x-ind-ico { background: rgba(255, 255, 255, .1) !important; color: #fff !important; border-color: rgba(255, 255, 255, .16) !important; }
.x-ind.big:hover { border-color: transparent !important; }

/* Why and delivery */
.x-why-item:nth-child(even) { transform: none !important; }
.x-why { padding-bottom: clamp(56px, 7vw, 96px) !important; }
.x-why-item .x-num { color: #d3d9e2 !important; }
.x-why-item .glyph { background: var(--ink) !important; color: #fff !important; border: 0 !important; }
.x-steps::before { background: var(--line-strong) !important; opacity: 1 !important; }
.x-node { box-shadow: none !important; border-color: var(--ink) !important; color: var(--ink) !important; border-radius: 50% !important; }
.x-steps li:last-child .x-node { background: var(--acc) !important; border-color: var(--acc) !important; color: #fff !important; }
.deliver .d-n { background: var(--pearl) !important; color: var(--acc) !important; border-color: var(--line) !important; }

/* Coverage: solid dark panel, faint skyline */
.x-uae-panel { background: var(--midnight) url("/assets/img/skyline.svg") right bottom / auto 60% no-repeat !important; border-radius: 8px !important; }
.x-uae-panel::before { background: rgba(12, 22, 38, .86) !important; }
.x-emirates a { border-radius: 6px !important; backdrop-filter: none !important; }
.x-emirates a:first-child { background: #fff !important; color: var(--ink) !important; }
.x-emirates a:first-child .x-num { color: var(--acc) !important; }
.uae-panel { background: var(--midnight) !important; background-image: none !important; border-radius: 8px !important; }
.uae-panel::after { display: none !important; }

/* Call to action: solid dark band, contact tiles */
.x-cta-card { background: var(--midnight) !important; background-image: none !important; border-radius: 8px !important; box-shadow: none !important; }
.x-cta-tiles a, .x-cta-tiles li > div { border-radius: 6px !important; backdrop-filter: none !important; background: rgba(255, 255, 255, .05) !important; border-color: rgba(255, 255, 255, .12) !important; }
.x-cta-tiles a:hover { background: #fff !important; transform: none !important; }
.x-cta-tiles small { color: #8f99aa !important; }
.x-cta-main .lead { color: var(--on-dark-dim) !important; }
.x-cta .btn-primary { background: #fff !important; color: var(--ink) !important; }
.x-cta .btn-primary:hover { background: var(--acc-light) !important; color: var(--ink) !important; }
.section.dark, .section.dark:last-of-type { background-image: none !important; }
.section.dark:not(.x-cta) { background: var(--midnight) !important; }
.side-cta, .contact-aside { background: var(--midnight) !important; background-image: none !important; border-radius: 8px !important; }

/* Footer */
.site-footer { background: var(--mid-2) !important; }
.site-footer .foot-sub, .site-footer .foot-tiles li a, .site-footer .foot-tiles li > div { border-radius: 6px !important; }
.foot-sub-row input, .foot-sub-row button { border-radius: 6px !important; }
.foot-sub-row button { background: #fff !important; color: var(--ink) !important; }
.foot-tiles .x-ico { background: rgba(255, 255, 255, .06) !important; color: #fff !important; }
.foot-tiles a:hover { background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .25) !important; }

/* Bottom bar, phones: docked edge-to-edge action bar. Four tabs on white, one solid blue Enquire block. */
.cbar, .crail, .csheet[hidden] { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
  .cbar { display: flex !important; position: fixed; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 45; height: auto; padding: 0 0 env(safe-area-inset-bottom) !important; margin: 0; border-radius: 0 !important; background: #fff !important; border: 0 !important; border-top: 1px solid var(--line-strong) !important; box-shadow: 0 -6px 20px -12px rgba(13, 23, 38, .25) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; overflow: visible; }
  .cbar-tabs { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cbar .cbar-tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 0 2px; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: #6a7383 !important; font: 600 .68rem/1 var(--font); letter-spacing: .01em; text-decoration: none; }
  .cbar .cbar-tabs a svg { width: 22px; height: 22px; }
  .cbar .cbar-tabs a[aria-current="page"] { color: var(--acc) !important; }
  .cbar .cbar-tabs a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; background: var(--acc); }
  .cbar .cbar-tabs a:active { background: var(--pearl) !important; }
  .cbar-go { flex: 0 0 31%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; margin: 0; padding: 0 6px; border: 0; border-radius: 0; background: var(--acc); color: #fff; font: 700 .72rem/1 var(--font); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
  .cbar-go svg { width: 22px; height: 22px; }
  .cbar-go[aria-expanded="true"] { background: var(--ink); }
  body.menu-open .cbar { display: none !important; }

  /* Enquire sheet: plain list of contact routes, one primary button */
  .csheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; }
  .csheet .x-sheet-scrim { position: absolute; inset: 0; background: rgba(8, 16, 28, .55); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .csheet .x-sheet-card { position: relative; width: 100%; padding: 6px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 12px 12px 0 0 !important; background: #fff; box-shadow: none; animation: xup .24s var(--ease); }
  .csheet .x-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line); }
  .csheet .x-sheet-head p { margin: 0; font: 650 1.05rem var(--display); color: var(--ink); }
  .csheet .x-sheet-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
  .csheet-list { list-style: none; margin: 0 0 16px; padding: 0; }
  .csheet-list li { margin: 0; border-bottom: 1px solid var(--line); }
  .csheet-list a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 2px; color: var(--ink); text-decoration: none; }
  .csheet-list a > svg:first-child { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 6px; background: var(--pearl); color: var(--acc); border: 1px solid var(--line); box-sizing: border-box; }
  .csheet-list a > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
  .csheet-list strong { font-size: .98rem; font-weight: 650; }
  .csheet-list small { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .csheet-list a > svg:last-child { flex: none; color: #9aa3b2; }
  .csheet-cta { display: flex !important; justify-content: center; width: 100%; min-height: 52px; }
}

/* Bottom bar, desktop: slim contact rail on the right edge, appears after the first screen */
@media (min-width: 761px) {
  .x-dock { display: none !important; }
  .crail { display: flex; flex-direction: column; position: fixed; right: 0; top: 50%; z-index: 45; background: #fff; border: 1px solid var(--line-strong); border-right: 0; border-radius: 8px 0 0 8px; box-shadow: 0 10px 30px -16px rgba(13, 23, 38, .35); transform: translate(110%, -50%); transition: transform .35s var(--ease); }
  .crail.show { transform: translate(0, -50%); }
  .crail > a, .crail > button { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; transition: background var(--fast), color var(--fast); }
  .crail > :first-child { border-radius: 8px 0 0 0; }
  .crail > :last-child { border-bottom: 0; border-radius: 0 0 0 8px; }
  .crail > a:hover, .crail > button:hover { background: var(--pearl); color: var(--acc); }
  .crail .crail-cta { height: auto; padding: 18px 0; background: var(--acc); color: #fff; }
  .crail .crail-cta:hover { background: var(--ink); color: #fff; }
  .crail-cta span { writing-mode: vertical-rl; transform: rotate(180deg); font: 650 .82rem var(--font); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
  .crail-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 4px; background: var(--ink); color: #fff; font: 600 .78rem var(--font); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--fast); }
  .crail > a:hover .crail-tip, .crail > button:hover .crail-tip, .crail > a:focus-visible .crail-tip, .crail > button:focus-visible .crail-tip { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .crail { transition: none; } .csheet .x-sheet-card { animation: none; } }

/* Older page sections that used soft colour washes */
.mk-top, .lp-hero { background-image: none !important; background-color: var(--pearl) !important; }
.read-progress i { background: var(--acc) !important; }
.prose h3, .article-body h3 { border-radius: 0 !important; }
.pagination a[aria-current="page"] { background: var(--acc) !important; }
@media (max-width:760px){.csheet .csheet-cta{background:var(--acc)!important;color:#fff!important}}

/* Remaining sheen and wash layers from the older stylesheets */
.btn::after, .btn::before, .shot::after, .section::before, .contact-aside::before, .side-cta::before { background-image: none !important; display: none !important; }
.sw-card-noimg { background: var(--pearl) !important; background-image: none !important; }
.sw-badge { background: var(--ink) !important; background-image: none !important; color: #fff !important; }

/* Phone bar: direct Call and WhatsApp buttons in place of Enquire */
@media (max-width: 760px) {
  .cbar-acts { flex: 0 0 46%; display: flex; }
  .cbar-acts a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; color: #fff !important; font: 700 .7rem/1 var(--font); letter-spacing: .03em; text-decoration: none; border-radius: 0 !important; box-shadow: none !important; }
  .cbar-acts a svg { width: 22px; height: 22px; }
  .cbar .cbar-acts .cbar-call { background: var(--acc) !important; }
  .cbar .cbar-acts .cbar-wa { background: #128c4a !important; }
  .cbar .cbar-acts a:active { filter: brightness(.9); }
}

/* Readability pass: stronger text contrast everywhere */
:root { --muted: #4a5363; --body: #2b3340; --on-dark-dim: #c3cad6; }
body, p, li, .lead { color: var(--body); }
.lead { color: #3a4352 !important; }
.on-dark .lead, .hero .lead, .dark .lead, .section.dark .lead, .x-panel p, .x-uae-panel p, .x-cta-main .lead { color: var(--on-dark-dim) !important; }
.hero .hero-note, .hero .hero-note span, .x-stats span, .x-stats small, .x-stats li > span { color: #c3cad6 !important; }
.x-hero-caption, .st-cap { color: #9aa5b6 !important; }
small, .muted, .card p, .x-ind-txt, .x-why-item p, .x-steps p, .x-case p, .x-tablist small { color: var(--muted) !important; }
.x-why-item .x-num { color: var(--acc) !important; opacity: .55; }
.x-marquee span { color: #5b6475 !important; }
.x-marquee span:nth-child(3n) { color: var(--ink) !important; }
.site-footer, .site-footer p, .site-footer li a, .site-footer .foot-tagline { color: #c3cad6 !important; }
.site-footer li a:hover { color: #fff !important; }
.site-footer .foot-title, .site-footer summary h2 { color: #fff !important; }
.site-footer .foot-bottom, .site-footer .foot-bottom a, .foot-sub small, .foot-sub p small { color: #aab3c2 !important; }
.foot-tiles small, .x-cta-tiles small { color: #aab3c2 !important; letter-spacing: .08em; }
.foot-tiles strong, .x-cta-tiles strong { color: #fff; }
.x-cta-tiles a:hover small { color: var(--muted) !important; }
.x-cta-tiles a:hover strong { color: var(--ink); }
@media (min-width: 1041px) { .site-header .nav-links > a, .site-header .has-menu > a { color: #e3e7ee !important; } }
@media (max-width: 1040px) { .site-header .nav .nav-links > a, .site-header .nav .has-menu > a { color: var(--ink) !important; } .site-header .nav .nav-links > a[aria-current="page"], .site-header .nav .has-menu > a[aria-current="page"] { color: var(--acc) !important; } .site-header .nav .nav-head, .site-header .nav .nav-head * { color: var(--ink); } }
.topbar, .topbar a, .topbar span { color: #c3cad6 !important; }
.eyebrow { color: #0f3d7a !important; }
.on-dark .eyebrow, .dark .eyebrow, .hero .eyebrow, .x-uae-copy .eyebrow, .x-cta .eyebrow { color: #c3d4ee !important; }
.hero h1 .h1-accent, .hero .h1-accent { color: #b9cdec !important; -webkit-text-fill-color: #b9cdec !important; }
.crumbs, .crumbs a, .breadcrumb, .breadcrumb a { color: #c3cad6 !important; }
input::placeholder, textarea::placeholder { color: #6a7383 !important; opacity: 1; }
.site-footer input::placeholder { color: #9aa5b6 !important; }
.cbar .cbar-tabs a { color: #4a5363 !important; }
.cbar .cbar-acts .cbar-wa { background: #0f7a40 !important; }

/* Polish: email and long names no longer break mid-word on phones */
.x-cta-tiles strong, .foot-tiles strong { overflow-wrap: normal !important; word-break: normal !important; font-size: clamp(.84rem, 3.7vw, .95rem); }
.x-cta-tiles a > span:not(.x-ico), .foot-tiles a > span:not(.x-ico) { min-width: 0; }
@media (max-width: 760px) {
  .x-emirates a { padding: 14px; gap: 10px; }
  .x-emirates .x-go { display: none; }
  .x-emirates strong { line-height: 1.25; }
  .x-ind .x-ind-txt { display: block !important; font-size: .82rem; line-height: 1.45; margin-top: 4px; }
}
.x-ind.big .x-ind-txt { color: #c3cad6 !important; }
.breadcrumb.on-light, .breadcrumb.on-light a, .breadcrumb.on-light span { color: var(--muted) !important; }
.breadcrumb.on-light a:hover { color: var(--acc) !important; }

/* Phone hero tagline: compact centred label instead of a long wrapped line with a dash */
@media (max-width: 760px) {
  .x-hero .eyebrow { display: inline-block; max-width: 30ch; margin-inline: auto; padding: 0 !important; font-size: .74rem; line-height: 1.55; letter-spacing: .1em; text-align: center; text-wrap: balance; }
  .x-hero .eyebrow::before { display: none !important; }
  .x-hero-in { text-align: center; }
}
/* Phones: one contact section at the bottom. The call-to-action keeps its buttons; the contact tiles live in the footer only. */
@media (max-width: 760px) {
  .x-cta-tiles { display: none !important; }
}
@media (max-width: 760px) { .site-footer { padding-bottom: 28px !important; } .site-footer .foot-bottom { margin-top: 20px; } }
