/* Round 3 of the 15 Nov 2026 site audit. Author: Ahmed Fathy. Linked after round2 on every page that links it.
   Palette v2 only: Navy #052976, deep navy #041F5C, Bridge Blue #2633FF, Cyan #4CC4FF on dark only, Ink #0B1F3A, Paper #FAFAF7. */

/* 0. header: the English sub line no longer runs under the buttons on 430 px phones */
@media(max-width:520px){.top .brand .en{letter-spacing:.05em;font-size:10px;white-space:nowrap}.top .brand{min-width:0}}

/* 1. living hero: a real drawing sheet, drawn once on page load, stamped by the reviewing engineer */
.hx3{position:relative;isolation:isolate;color:#fff;border-bottom:1px solid rgba(255,255,255,.12);
  background:radial-gradient(60% 55% at 18% 0%,rgba(76,196,255,.16),transparent 70%),
  repeating-linear-gradient(0deg,rgba(255,255,255,.045) 0 1px,transparent 1px 32px),
  repeating-linear-gradient(90deg,rgba(255,255,255,.045) 0 1px,transparent 1px 32px),#041F5C}
.hx3-in{display:grid;gap:28px;padding-block:clamp(28px,4.5vw,56px);align-items:center}
@media(min-width:900px){.hx3-in{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px}}
.hx3-t{display:grid;gap:16px;justify-items:start;min-width:0}
.hx3 .hx-k{margin:0;font-size:var(--fs-sm);color:#E3EAF8;letter-spacing:.02em}
.hx3 h1{margin:0;color:#fff;font-size:clamp(29px,3.3vw,46px);line-height:1.25;font-weight:800;text-wrap:balance}
.hx3 h1 .hx-b{display:block;margin:0 0 12px;font-size:clamp(15px,1.5vw,19px);font-weight:700;line-height:1.5;color:#E3EAF8}
.hx3 .hx-p{margin:0;max-width:38em;color:#E3EAF8;font-size:var(--fs-body);line-height:1.8}
.hx3-price{margin:0;padding:10px 14px;border-inline-start:3px solid #4CC4FF;background:rgba(255,255,255,.07);border-radius:0 4px 4px 0;font-size:var(--fs-sm);line-height:1.7;max-width:34em;color:#fff}
.hx3-price a.hx3-pl{color:#fff;font-weight:800;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#4CC4FF}
.hx3-pr{margin:0;font-size:var(--fs-sm);color:#E3EAF8;line-height:1.8}
.hx3 .hx-svc{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 24px}
.hx3 .hx-svc a{color:#fff;font-weight:800;font-size:var(--fs-sm);text-decoration:none;border-bottom:1px solid #4CC4FF;padding-bottom:2px}
.hx3 .hx-cta{display:flex;flex-wrap:wrap;gap:12px}
.hx3 .btn.ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.7)}
.hx3 .btn.ghost:hover{background:rgba(255,255,255,.12)}
.hx3-sheet{margin:0;position:relative;min-width:0}
.hx3-frame{position:relative;background:#F3F4F6;padding:8px;border:1px solid rgba(255,255,255,.3);border-radius:4px;box-shadow:0 18px 40px rgba(0,0,0,.35)}
.hx3-frame img{display:block;width:100%;height:auto;background:#fff;aspect-ratio:1200/848}
.hx3-scan{position:absolute;inset-inline:8px;top:8px;height:2px;background:#4CC4FF;box-shadow:0 0 12px rgba(76,196,255,.85);pointer-events:none}
.hx3-stamp{position:absolute;left:4%;bottom:9%;transform:rotate(-8deg);text-align:center;color:#1E29CC;background:rgba(255,255,255,.9);
  border:3px double #1E29CC;border-radius:4px;padding:6px 14px 7px;line-height:1.35;pointer-events:none}
.hx3-stamp b{display:block;font-size:clamp(15px,1.6vw,19px);font-weight:800}
.hx3-stamp .lat{display:block;font-size:10.5px;letter-spacing:.1em;font-weight:700}
.hx3-cap{margin:10px 0 0;font-size:var(--fs-cap);color:#C9D4EA;line-height:1.7}
.hx3-cap a{color:#fff;text-decoration:underline;text-underline-offset:3px}
@keyframes hx3-draw{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes hx3-scan{0%{top:8px;opacity:1}92%{opacity:1}100%{top:calc(100% - 10px);opacity:0}}
@keyframes hx3-stamp{0%{opacity:0;transform:rotate(-8deg) scale(1.4)}60%{opacity:1;transform:rotate(-8deg) scale(.96)}100%{opacity:1;transform:rotate(-8deg) scale(1)}}
@keyframes hx3-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:no-preference){
 .hx3-frame img{animation:hx3-draw 2.4s cubic-bezier(.3,.6,.2,1) .2s both}
 .hx3-scan{animation:hx3-scan 2.4s cubic-bezier(.3,.6,.2,1) .2s both}
 .hx3-stamp{animation:hx3-stamp .55s cubic-bezier(.2,.9,.3,1.2) 2.5s both}
 .hx3-t>*{animation:hx3-in .6s ease both}
 .hx3-t>:nth-child(2){animation-delay:.06s}.hx3-t>:nth-child(3){animation-delay:.12s}.hx3-t>:nth-child(4){animation-delay:.18s}
 .hx3-t>:nth-child(5){animation-delay:.24s}.hx3-t>:nth-child(6){animation-delay:.3s}.hx3-t>:nth-child(7){animation-delay:.36s}
}

/* 2. proof bento: real outputs (Navisworks model, P6 programme) */
.pf{display:grid;gap:14px;grid-template-columns:1fr}
.pf-i{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:6px;overflow:hidden;color:inherit;text-decoration:none;min-width:0}
.pf-i picture,.pf-i img{display:block;width:100%}
.pf-i img{height:auto;aspect-ratio:16/9;object-fit:cover;object-position:left top;background:#EEF1F7}
.pf-c{display:grid;gap:2px;padding:12px 16px 14px}
.pf-c b{font-size:var(--fs-sm);font-weight:800;color:var(--ink)}
.pf-c span{font-size:var(--fs-cap);color:var(--mut);line-height:1.6}
.pf-i:hover{border-color:var(--navy);box-shadow:0 8px 24px rgba(5,41,118,.1)}
.pf-n{margin:14px 0 0;font-size:var(--fs-sm);color:var(--mut);max-width:62ch}
@media(min-width:900px){
 .pf{grid-template-columns:1.6fr 1fr}
 .pf-i:first-child{grid-row:span 2}
 .pf-i:first-child picture{flex:1;min-height:0}
 .pf-i:first-child img{height:100%;aspect-ratio:auto;object-position:center}
 .pf--row{grid-template-columns:repeat(3,1fr)}
 .pf--row .pf-i:first-child{grid-row:auto}
 .pf--row .pf-i:first-child img{height:auto;aspect-ratio:16/9}
}
[data-theme=dark] .pf-c b{color:#fff}

/* 3. bento: home price cards and the "what you receive" block of the service pages */
@media(min-width:900px){
 .pcs{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
 .pcs>.fc:nth-child(1){grid-column:span 2}
 .pcs>.fc:nth-child(6){grid-column:span 2}
 .pcs>.fc:nth-child(1),.pcs>.fc:nth-child(6){background:var(--navy);border-color:var(--navy);color:#fff}
 .pcs>.fc:nth-child(1) *,.pcs>.fc:nth-child(6) *{color:#fff}
 .pcs>.fc:nth-child(1) .btn.dark,.pcs>.fc:nth-child(6) .btn.dark{background:transparent;border-color:#4CC4FF}
 .pcs>.fc:nth-child(1) .sar,.pcs>.fc:nth-child(6) .sar,.pcs>.fc:nth-child(1) .sar *,.pcs>.fc:nth-child(6) .sar *{color:#4CC4FF}
}
section.s:not(.soft) .deliv{grid-template-columns:1fr;gap:12px}
section.s:not(.soft) .deliv>div:first-child{background:var(--navy);border-color:var(--navy);color:#fff}
section.s:not(.soft) .deliv>div:first-child :where(b,span){color:#fff}
@media(min-width:760px){
 section.s:not(.soft) .deliv{grid-template-columns:repeat(3,1fr);grid-auto-flow:dense}
 section.s:not(.soft) .deliv>div:first-child{grid-column:span 2;display:flex;flex-direction:column;justify-content:center;padding:26px}
 section.s:not(.soft) .deliv>div:first-child b{font-size:1.375rem;line-height:1.5}
 section.s:not(.soft) .deliv>div:last-child:nth-child(3n){grid-column:span 3}
 section.s:not(.soft) .deliv>div:last-child:nth-child(3n+1):not(:first-child){grid-column:span 2}
}

/* 4. article template: one scale, one measure, a contents box */
.art{font-size:var(--fs-body);line-height:1.9;max-width:42em}
.art h2{font-size:clamp(1.375rem,2.4vw,1.75rem);line-height:1.4;margin:38px 0 12px;scroll-margin-top:96px}
.art h3{font-size:clamp(1.125rem,1.8vw,1.25rem);line-height:1.5;margin:24px 0 8px}
.art p,.art li{max-width:none}
.art .ptab-w,.art table{max-width:none}
.toc{margin:0 0 26px;padding:14px 18px 10px;border:1px solid var(--line);border-inline-start:4px solid var(--navy);border-radius:4px;background:var(--soft)}
.toc p{margin:0 0 6px;font-size:var(--fs-sm);font-weight:800;color:var(--ink)}
.toc ol{margin:0;padding-inline-start:20px;font-size:var(--fs-sm)}
.toc li{margin:2px 0;line-height:1.7}
.toc a{color:var(--indigo-link);text-decoration:underline;text-underline-offset:3px;display:inline-block;padding-block:6px}
[data-theme=dark] .toc p{color:#fff}
.arts .agrid{gap:16px}
.arts h2{font-size:var(--fs-h2)}

/* 5. print and long Arabic measure on desktop for service articles */
@media(min-width:1100px){.awrap{grid-template-columns:minmax(0,1fr) 300px;gap:56px}}
